Expand description
Runtime Matters core protocol types and JSON line transport helpers.
This crate is the stable contract shared by rtm clients and rtmd. The
daemon, CLI, platform, launcher, and store crates remain private
implementation details.
§Events contract
v0.2 events use RuntimeRpc::Events and
RuntimeResponse::Events { events }. The response
is the current daemon process vector in append order. rtmd appends
RuntimeEvent::Running when shim ready is stored, then appends
RuntimeEvent::Terminated or RuntimeEvent::Lost when exit or loss
evidence is observed.
Events are kept only in the current daemon process memory. There is no v0.2
cursor, retention window, sqlite replay, or limit policy. Clients such as
session-matters should poll, filter to their session set, and dedupe by
session id plus full event content. Cursor based
Events { since } -> { cursor, events } support is deferred to v0.3.
Re-exports§
pub use admin::DoctorResponse;pub use admin::KillByPidRequest;pub use admin::KillByPidResponse;pub use admin::LauncherStatus;pub use admin::LifecycleCounts;pub use admin::MigrationState;pub use admin::RecentLostEvent;pub use admin::StatusFilter;pub use admin::StatusResponse;pub use admin::TmuxStatus;pub use admin::WatcherCounts;pub use error::ErrorCode;pub use error::ProtocolError;pub use error::RuntimeKindParseError;pub use launcher::LaunchEnv;pub use launcher::LaunchSpec;pub use launcher::LauncherError;pub use launcher::RuntimeLauncher;pub use mcp::JsonRpcError;pub use mcp::JsonRpcRequest;pub use mcp::JsonRpcResponse;pub use mcp::MCP_PROTOCOL_VERSION;pub use mcp::McpBridgeRequest;pub use mcp::McpBridgeResponse;pub use mcp::json_rpc_error;pub use mcp::json_rpc_failure;pub use mcp::json_rpc_result;pub use mcp::tool_error;pub use mcp::tool_success;pub use proto::RuntimeResponse;pub use proto::RuntimeRpc;pub use proto::StatusRequest;pub use proto::read_json_line;pub use proto::read_json_line_blocking;pub use proto::write_json_line;pub use proto::write_json_line_blocking;pub use spawn_context::CALLER_ENV_DENYLIST;pub use spawn_context::CALLER_ENV_DENYLIST_PREFIXES;pub use spawn_context::capture_caller_cwd;pub use spawn_context::capture_caller_env;pub use spawn_context::capture_env_from;pub use spawn_context::capture_env_from_os;pub use spawn_context::launcher_probe_cwd;pub use types::HeadlessSpawnTarget;pub use types::KillRequest;pub use types::Lifecycle;pub use types::LifecycleState;pub use types::LostEvidence;pub use types::NudgeFailureReason;pub use types::NudgeOutcome;pub use types::NudgeRequest;pub use types::NudgeResponse;pub use types::RuntimeEvent;pub use types::RuntimeExit;pub use types::RuntimeKind;pub use types::RuntimeSignal;pub use types::RuntimeSignalParseError;pub use types::ShimExit;pub use types::ShimLaunchRequest;pub use types::ShimReady;pub use types::SpawnRequest;pub use types::SpawnTarget;pub use types::SpawnTargetParseError;pub use types::TerminationEvidence;pub use types::TmuxAddress;pub use types::TmuxAddressParseError;pub use types::TmuxSpawnTarget;pub use types::ValidateTargetOutcome;pub use types::ValidateTargetRequest;pub use types::ValidateTargetResponse;