1pub mod admin;
23pub mod error;
24pub mod launcher;
25pub mod mcp;
26pub mod proto;
27pub mod spawn_context;
28pub mod tool_contracts;
29pub mod types;
30mod version;
31
32pub use admin::{
33 DoctorResponse, KillByPidRequest, KillByPidResponse, LauncherStatus, LifecycleCounts,
34 MigrationState, RecentLostEvent, StatusFilter, StatusResponse, TmuxStatus, WatcherCounts,
35};
36pub use error::{ErrorCode, ProtocolError, RuntimeKindParseError};
37pub use launcher::{LaunchEnv, LaunchSpec, LauncherError, RuntimeLauncher};
38pub use mcp::{
39 JsonRpcError, JsonRpcRequest, JsonRpcResponse, MCP_PROTOCOL_VERSION, McpBridgeRequest,
40 McpBridgeResponse, json_rpc_error, json_rpc_failure, json_rpc_result, tool_error, tool_success,
41};
42pub use proto::{
43 RuntimeResponse, RuntimeRpc, StatusRequest, read_json_line, read_json_line_blocking,
44 write_json_line, write_json_line_blocking,
45};
46pub use spawn_context::{
47 CALLER_ENV_DENYLIST, CALLER_ENV_DENYLIST_PREFIXES, capture_caller_cwd, capture_caller_env,
48 capture_env_from, capture_env_from_os, launcher_probe_cwd,
49};
50pub use types::{
51 HeadlessSpawnTarget, KillRequest, Lifecycle, LifecycleState, LostEvidence, NudgeFailureReason,
52 NudgeOutcome, NudgeRequest, NudgeResponse, RuntimeEvent, RuntimeExit, RuntimeKind,
53 RuntimeSignal, RuntimeSignalParseError, ShimExit, ShimLaunchRequest, ShimReady, SpawnRequest,
54 SpawnTarget, SpawnTargetParseError, TerminationEvidence, TmuxAddress, TmuxAddressParseError,
55 TmuxSpawnTarget, ValidateTargetOutcome, ValidateTargetRequest, ValidateTargetResponse,
56};
57pub use version::{
58 RUNTIME_PROTOCOL_CAPABILITIES, RUNTIME_PROTOCOL_VERSION, RuntimeCapability, VersionInfo,
59 version_info,
60};