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
docs(server): update README to reflect current host and shim APIs
Steven Enamakel44e72dbe0e46
diff --git a/crates/openhuman-rpc/src/server/README.md b/crates/openhuman-rpc/src/server/README.mdindex 4752c459c0..fddf2cbb04 100644--- a/crates/openhuman-rpc/src/server/README.md+++ b/crates/openhuman-rpc/src/server/README.md@@ -20,9 +20,9 @@ connected on the builder; `host::cli` hands that builder to the core CLI and```textopenhuman-core run|serve desktop shell (core_process.rs)- RuntimeBuilder::run_from_args(args) run_server_embedded_with_ready(- -> core::run_core_from_args_with host, port, socketio, cancel,- (args, HostBoot(builder)) ready_tx, Some(bearer))+ RuntimeBuilder::run_from_args(args) host::desktop(options, cancel, ready_tx)+ -> core::run_core_from_args_with desktop_builder(options)+ (args, HostBoot(builder)) -> serve_desktop(builder, ..)-> core::server_launcher |launch(ServeRequest) |--mode saas? run_server_saas (own boot) |@@ -31,12 +31,12 @@ connected on the builder; `host::cli` hands that builder to the core CLI andflagged_builder(base, flags) |\ /v v- run_server_with_services(host, port, ServiceSet, ...) (desktop path)+ (desktop path: desktop_builder in host.rs)preset: RuntimeBuilder::desktop() (HostKind::TauriShell)both presets: DomainSet::full, discovered config,OPENHUMAN_E2E set -> ToolGroups::advertised()- server_builder: services, TokenSource::Fixed(bearer) if handed- in (else EnvOrFile), listen host/port if given+ services, TokenSource::Fixed(bearer) if handed in (else+ EnvOrFile), listen host/port if givenbuild_and_serve(builder, ready_tx, shutdown_token)session_store::install_for_host() (before boot: recovery; skipped whenthe builder carries its own store)@@ -54,7 +54,7 @@ host's builder, the preset. `--headless-api` replaces the services with`ServiceSet::headless_api()` (request/response only, no detached backgroundjobs); `--jsonrpc-only` only clears Socket.IO on the builder's services.`--mode saas` ignores the builder and boots the operator's config.-`run_server` and `run_server_embedded` (the older shims) use+`run_server` (a bare shim, not connected to the backend) uses`ServiceSet::desktop()` with Socket.IO set by the caller. An embedder thatbuilt its own `CoreRuntime` can call `serve` directly.@@ -163,8 +163,8 @@ directly.| --- | --- || [`mod.rs`](mod.rs) | Module wiring and the public re-exports. || [`serve.rs`](serve.rs) | `serve` and `EmbeddedReadySignal`. |-| [`shims.rs`](shims.rs) | `run_server`, `run_server_headless`, `run_server_embedded`, `run_server_embedded_with_ready`, plus host and port defaults. |-| [`cli.rs`](cli.rs) | `install_cli_server` and the launcher it installs. |+| [`shims.rs`](shims.rs) | `run_server`, `run_server_headless`, `run_server_saas`, `build_and_serve` (shared with `host`), plus host and port defaults. |+| [`cli.rs`](cli.rs) | `launch`, the server launcher `host::cli` and `host::desktop` install, and `flagged_builder`. || [`auth.rs`](auth.rs) | `rpc_auth_middleware`: public paths, query-token paths, and the `/v1` external-key check. || [`classify.rs`](classify.rs) | `classify_failure` and `FailureDisposition`. Pure. || [`socketio.rs`](socketio.rs) | Socket.IO handshake auth, client event handlers, the event bridge, the companion seam, and the event payload types. |@@ -181,11 +181,9 @@ directly.## Key entry points-- `install_cli_server()` ([`cli.rs`](cli.rs)): call once before `run_core_from_args`.- It also registers the `http_host` controllers.- `serve(&CoreRuntime, Option<oneshot::Sender<EmbeddedReadySignal>>,Option<CancellationToken>)` (`serve.rs`).-- `run_server_embedded_with_ready(..., rpc_token)` ([`shims.rs`](shims.rs)): pass the+- `host::desktop(DesktopOptions { rpc_token, .. }, ..)` (`host.rs`): pass thebearer the shell already holds so the server never reads it from theenvironment.- `build_core_http_router(socketio_enabled)` and `rpc_handler`