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

4
sunbeam-proto/build.rs Normal file
View File

@@ -0,0 +1,4 @@
fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::compile_protos("proto/code.proto")?;
Ok(())
}