Expand description
Mountain RPC services. The active surface is CocoonService - the tonic
server impl that Cocoon dials into. The other modules here
(EchoAction, Commands, Workspace, Configuration, plus the
Windows/Terminals/Debug/SCM/Processes/Telemetry cfg-feature
shells) are scaffolding for the multi-extension-host roadmap; most carry
zero external callers today.
Modules§
- Cocoon
Service - Commands
- Command-registration RPC service. Three sub-files:
CommandService(the impl handle),CommandValidation(input checks),Command(the DTO). - Configuration
- Configuration RPC service.
ConfigurationService::Structowns the key/value store;ConfigurationScope::EnumandConfigurationUpdate::Structare the wire DTOs. - Debug
- Debug-Adapter-Protocol RPC service. Placeholder for the Cocoon DAP roadmap. TODO: zero callers as of 2026-05-02.
- Echo
Action - Cocoon → Mountain submission gate. The
EchoActionServerwraps every inboundMountainServicegRPC call in an Echo work-stealing scheduler task tagged with a per-method priority lane (read/write file → High, search/git → Low, default → Normal). - Processes
- Child-process RPC service. Placeholder for
spawn+ stdio + signal handling for Cocoon. TODO: zero callers as of 2026-05-02. - SCM
- Source-control-management RPC service. Placeholder for git repo discovery, change tracking, commit/push operations. TODO: zero callers as of 2026-05-02.
- Telemetry
- OTEL telemetry RPC.
TelemetryService::Structis the impl handle;TraceSpan::StructandServiceMetrics::Structare the wire DTOs. - Terminals
- Terminal-emulation RPC service. Placeholder for the Cocoon PTY + shell-integration roadmap. TODO: zero callers as of 2026-05-02.
- Types
- Shared type definitions for RPC services. Generic
Request/Responseenvelopes; expand as cross-service types accumulate. - Vine
- Vine gRPC type re-exports for the RPC layer (placeholder for future cross-service Vine wiring). Two DTOs for now.
- Windows
- Window-management RPC service. Placeholder for the Grove + Cocoon
extension-host roadmap (window/document/webview lifecycle).
Cfg-gated
pub struct Struct. TODO: zero callers as of 2026-05-02. - Workspace
- Workspace RPC service.
WorkspaceService::Structis the impl handle;WorkspaceFolder::StructandTextDocumentInfo::Structare the DTOs returned over the wire.