feat(code): CLI client with gRPC connection + local tools

phase 3 client core:
- sunbeam code subcommand with project discovery, config loading
- gRPC client connects to Sol, starts bidirectional session
- 7 client-side tool executors: file_read, file_write, search_replace,
  grep, bash, list_directory
- project context: .sunbeam/prompt.md, .sunbeam/config.toml, git info
- tool permission config (always/ask/never per tool)
- simple stdin loop (ratatui TUI in phase 4)
- aligned sunbeam-proto to tonic 0.14
This commit is contained in:
2026-03-23 11:57:24 +00:00
parent f3e67e589b
commit 02e4d7fb37
10 changed files with 838 additions and 4 deletions

View File

@@ -5,8 +5,10 @@ edition = "2024"
description = "Shared protobuf definitions for Sunbeam gRPC services"
[dependencies]
tonic = "0.13"
prost = "0.13"
tonic = "0.14"
tonic-prost = "0.14"
prost = "0.14"
[build-dependencies]
tonic-build = "0.13"
tonic-build = "0.14"
tonic-prost-build = "0.14"

View File

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