The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(rpc): add HTTP host module and CLI server entrypoint
Steven Enamakel87305e16f41a
diff --git a/crates/openhuman-rpc/src/http_host/mod.rs b/crates/openhuman-rpc/src/http_host/mod.rsindex 02b7f2cfa5..80b246c66c 100644--- a/crates/openhuman-rpc/src/http_host/mod.rs+++ b/crates/openhuman-rpc/src/http_host/mod.rs@@ -42,11 +42,19 @@ const NAMESPACES: &[(&str, &str)] = &[(/// own, so it is gated as [`DomainGroup::Platform`].pub fn register_controllers() -> Result<(), String> {log::debug!("{LOG_PREFIX} registering controller extension");- register_controller_extension(ControllerExtension {+ register_controller_extension(extension())+}++/// The `http_host.*` controllers as a controller extension, for a runtime+/// builder's `controller_extension` option (what [`crate::host`] wires).+/// Kernel surface with no family of its own, so gated as+/// [`DomainGroup::Platform`].+pub fn extension() -> ControllerExtension {+ ControllerExtension {group: DomainGroup::Platform,controllers: all_http_host_registered_controllers(),namespaces: NAMESPACES,- })+ }}/// [`register_controllers`] for server setup paths that cannot return andiff --git a/crates/openhuman-rpc/src/server/cli.rs b/crates/openhuman-rpc/src/server/cli.rsindex 7c821b7d5b..ecc65fb81f 100644--- a/crates/openhuman-rpc/src/server/cli.rs+++ b/crates/openhuman-rpc/src/server/cli.rs@@ -14,7 +14,9 @@ pub fn install_cli_server() {install_server_launcher(launch);}-fn launch(request: ServeRequest) -> Pin<Box<dyn Future<Output = anyhow::Result<()>> + Send>> {+/// The [`ServerLauncher`](openhuman_tinyhumans::embed::seams::ServerLauncher)+/// behind `run` / `serve`: the standalone server shims.+pub(crate) fn launch(request: ServeRequest) -> Pin<Box<dyn Future<Output = anyhow::Result<()>> + Send>> {Box::pin(async move {log::debug!("[rpc:cli] starting server host={:?} port={:?} socketio={} headless_api={}",