feat(code): add sunbeam-proto crate with gRPC service definition

shared protobuf definitions for the sunbeam code agent:
- CodeAgent service with bidirectional Session streaming
- ClientMessage: StartSession, UserInput, ToolResult, ToolApproval
- ServerMessage: TextDelta, ToolCall, ApprovalNeeded, Status
- ToolDef for client-side tool registration

this is the transport layer between `sunbeam code` (TUI client)
and Sol (server-side agent loop). next: JWT middleware for OIDC
auth, Sol gRPC server stub, CLI subcommand stub.
This commit is contained in:
2026-03-23 11:12:51 +00:00
parent 13e3f5d42e
commit f3e67e589b
5 changed files with 141 additions and 1 deletions

3
sunbeam-proto/src/lib.rs Normal file
View File

@@ -0,0 +1,3 @@
pub mod sunbeam_code_v1 {
tonic::include_proto!("sunbeam.code.v1");
}