Files
sausage/cli/src/lib.rs
T
SAU-134 implementer 8c46d9b9d0 host: add supervisor-gated clean core.restart RPC
Return success before scheduling the existing shutdown path, coalesce pending
requests, and mark #loop invocations with SAUSAGE_LOOP=1. Keep core.exit
compatibility and document explicit per-call approval for all agents.

Card: SAU-134
2026-10-26 09:16:10 +00:00

31 lines
633 B
Rust

//! A host for worlds of JSON-RPC plugins.
mod activation;
pub mod cargo;
mod components;
pub mod console;
mod core;
mod execution;
mod filesystem;
mod graph;
mod host;
mod journal;
mod locks;
mod native;
mod process;
mod restart;
mod routing;
pub mod runtime;
mod services;
mod upgrades;
mod watcher;
pub mod world;
pub use host::Host;
pub use native::{NativeContext, NativeFuture, NativePlugin};
pub use process::ProcessInfo;
use serde_json::{Value, json};
/// A JSON result or a JSON-RPC error object.
pub type RpcResult = Result<Value, Value>;
fn error(code: i64, text: &str) -> Value {
json!({"code":code,"message":text})
}