Skip to main content

Module RPC

Module RPC 

Source
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§

CocoonService
Commands
Command-registration RPC service. Three sub-files: CommandService (the impl handle), CommandValidation (input checks), Command (the DTO).
Configuration
Configuration RPC service. ConfigurationService::Struct owns the key/value store; ConfigurationScope::Enum and ConfigurationUpdate::Struct are the wire DTOs.
Debug
Debug-Adapter-Protocol RPC service. Placeholder for the Cocoon DAP roadmap. TODO: zero callers as of 2026-05-02.
EchoAction
Cocoon → Mountain submission gate. The EchoActionServer wraps every inbound MountainService gRPC 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::Struct is the impl handle; TraceSpan::Struct and ServiceMetrics::Struct are 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 / Response envelopes; 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::Struct is the impl handle; WorkspaceFolder::Struct and TextDocumentInfo::Struct are the DTOs returned over the wire.