2026-03-21 14:34:15 +00:00
|
|
|
[package]
|
|
|
|
|
name = "sunbeam"
|
2026-03-22 13:46:15 +00:00
|
|
|
version = "1.0.1"
|
2026-03-21 14:34:15 +00:00
|
|
|
edition = "2024"
|
|
|
|
|
description = "Sunbeam local dev stack manager"
|
|
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
|
name = "sunbeam"
|
|
|
|
|
path = "src/main.rs"
|
|
|
|
|
|
|
|
|
|
[dependencies]
|
feat: wire 15 service subcommands into CLI, remove old user command
Adds Verb variants: auth, vcs, chat, search, storage, media, mon,
vault, people, docs, meet, drive, mail, cal, find. Each delegates
to the corresponding SDK cli.rs dispatch function.
Removes the legacy `user` command (replaced by `auth identity`).
Renames Get's -o to --kubectl-output to avoid conflict with the
new global -o/--output flag. Enables all SDK features in binary.
2026-03-21 22:20:15 +00:00
|
|
|
sunbeam-sdk = { path = "../sunbeam-sdk", features = ["all", "cli"] }
|
2026-03-23 11:57:24 +00:00
|
|
|
sunbeam-proto = { path = "../sunbeam-proto" }
|
2026-03-21 14:34:15 +00:00
|
|
|
tokio = { version = "1", features = ["full"] }
|
2026-03-23 11:57:24 +00:00
|
|
|
tokio-stream = "0.1"
|
2026-03-21 14:34:15 +00:00
|
|
|
clap = { version = "4", features = ["derive"] }
|
|
|
|
|
chrono = "0.4"
|
|
|
|
|
tracing = "0.1"
|
|
|
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
|
|
|
rustls = { version = "0.23", features = ["ring"] }
|
2026-03-23 11:57:24 +00:00
|
|
|
tonic = "0.14"
|
|
|
|
|
ratatui = "0.29"
|
|
|
|
|
crossterm = "0.28"
|
|
|
|
|
serde = { version = "1", features = ["derive"] }
|
|
|
|
|
serde_json = "1"
|
|
|
|
|
toml = "0.8"
|
|
|
|
|
anyhow = "1"
|
2026-03-23 15:57:15 +00:00
|
|
|
futures = "0.3"
|
|
|
|
|
crossbeam-channel = "0.5"
|
|
|
|
|
textwrap = "0.16"
|
2026-03-23 21:45:03 +00:00
|
|
|
tui-markdown = "=0.3.6"
|
feat(code): tree-sitter symbol extraction + auto-indexing
Symbol extraction (symbols.rs):
- tree-sitter parsers for Rust, TypeScript, Python
- Extracts: functions, structs, enums, traits, classes, interfaces
- Signatures, docstrings, line ranges for each symbol
- extract_project_symbols() walks project directory
- Skips hidden/vendor/target/node_modules, files >100KB
Proto: IndexSymbols + SymbolEntry messages for client→server symbol relay
Client: after SessionReady, extracts symbols and sends IndexSymbols
to Sol for indexing into the code search index.
14 unit tests for symbol extraction across Rust/TS/Python.
2026-03-24 00:42:03 +00:00
|
|
|
tree-sitter = "0.24"
|
|
|
|
|
tree-sitter-rust = "0.23"
|
|
|
|
|
tree-sitter-typescript = "0.23"
|
|
|
|
|
tree-sitter-python = "0.23"
|
feat(lsp): client-side LSP toolkit with 5 tools + integration tests
LSP client (lsp/client.rs):
- JSON-RPC framing over subprocess stdio
- Async request/response with oneshot channels
- Background read loop routing responses to pending requests
- 30s timeout per request, graceful shutdown
LSP manager (lsp/manager.rs):
- Auto-detect: Cargo.toml → rust-analyzer, package.json → tsserver,
pyproject.toml → pyright, go.mod → gopls
- Initialize handshake, lazy textDocument/didOpen
- High-level methods: definition, references, hover, document_symbols,
workspace_symbols
- Graceful degradation when binary not on PATH
LSP tools (tools.rs):
- lsp_definition, lsp_references, lsp_hover, lsp_diagnostics, lsp_symbols
- execute_lsp() async dispatch, is_lsp_tool() check
- All routed as ToolSide::Client in orchestrator
Tool schemas registered in Sol's build_tool_definitions() for Mistral.
Integration tests (6 new):
- Language detection for Rust project
- is_lsp_tool routing
- LSP initialize + hover on src/main.rs
- Document symbols (finds main function)
- Workspace symbols with retry (waits for rust-analyzer indexing)
- Graceful degradation with bad project path
2026-03-24 00:58:05 +00:00
|
|
|
lsp-types = "0.97"
|
|
|
|
|
url = "2"
|
2026-03-23 15:57:15 +00:00
|
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
|
tokio-stream = { version = "0.1", features = ["net"] }
|