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: update host entry point references
Steven Enamakel1a2f5c19aa7b
diff --git a/AGENTS.md b/AGENTS.mdindex a8b76b8a58..866caad6f6 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -386,12 +386,11 @@ Additional rules:router and handlers, auth middleware, Socket.IO, `/dev/connect`, thelistener bind (`openhuman_rpc::server::serve`) and the `run_server*` entrypoints. `openhuman_rpc::host::cli` gives the core this crate's server as- the `run`/`serve` launcher (the older `install_cli_server()` +- `run_core_from_args` pair does the same for embedders that predate it).+ the `run`/`serve` launcher.Domain-owned HTTP handlers the router mounts (`inference::http`, thedictation WebSocket) stay in their domains behind core's `http-server`feature. The `http_host` static-directory file server lives here too- (`openhuman_rpc::http_host`); `install_cli_server()` and+ (`openhuman_rpc::http_host`); `host::cli`, `host::desktop` and`build_core_http_router()` register its `http_host.*` controllers as a coreextension, so a host without this crate has no `http_host` surface.- The hosts boot through `openhuman_rpc::host`: `host::cli(args)` is thediff --git a/crates/openhuman-core/src/backend/README.md b/crates/openhuman-core/src/backend/README.mdindex e7212a0c00..f8f1785c7e 100644--- a/crates/openhuman-core/src/backend/README.md+++ b/crates/openhuman-core/src/backend/README.md@@ -53,7 +53,7 @@ current call. The first hit wins:(`CoreBuilder::backend_transport`, inherited by `CoreContext::derive_with`).2. The process global set by `install_backend_transport`. The desktop shell,TUI and CLI use this path because they boot the core through- `run_server_embedded_with_ready` or `run_core_from_args` rather than the+ `openhuman_rpc::host` or `run_core_from_args` rather than thebuilder. `openhuman_tinyhumans::install` (or `RuntimeBuilder` for libraryhosts) does the install.3. Under `cfg(test)` only, `PlainHttpTransport` from [`transport/plain.rs`](./transport/plain.rs).diff --git a/crates/openhuman-core/src/backend/transport/README.md b/crates/openhuman-core/src/backend/transport/README.mdindex dd34907c3c..b2213daef7 100644--- a/crates/openhuman-core/src/backend/transport/README.md+++ b/crates/openhuman-core/src/backend/transport/README.md@@ -51,7 +51,7 @@ and must be safe to call concurrently.ambient `CoreContext` (set via `CoreBuilder::backend_transport`, inherited by`derive_with`), then the process global set by `install_backend_transport`(what the desktop shell, TUI, and CLI use, since they boot the core through-`run_server_embedded_with_ready` / `run_core_from_args` rather than the+`openhuman_rpc::host` / `run_core_from_args` rather than thebuilder), then, under `cfg(test)` only, the `plain.rs` fallback. Outsidetests, a miss returns `Err(BackendTransportError::Unavailable)`. There is noimplicit production fallback.diff --git a/crates/openhuman-core/src/backend/transport/install.rs b/crates/openhuman-core/src/backend/transport/install.rsindex ff84519baf..784275c2b1 100644--- a/crates/openhuman-core/src/backend/transport/install.rs+++ b/crates/openhuman-core/src/backend/transport/install.rs@@ -7,7 +7,7 @@//! 2. the process-global transport installed with [`install_backend_transport`]//! (per thread under `cfg(test)`, so installs cannot leak between tests)//! — the path the desktop shell and CLI use, because they boot the core-//! through `run_server_embedded_with_ready` / `run_core_from_args` rather+//! through `openhuman_rpc::host` / `run_core_from_args` rather//! than through the builder;//! 3. under `cfg(test)` only, a plain `reqwest` transport so the crate's//! wiremock unit tests need no host crate;diff --git a/crates/openhuman-core/src/cron/scheduler_gate/gate.rs b/crates/openhuman-core/src/cron/scheduler_gate/gate.rsindex 292d99387c..8613be7502 100644--- a/crates/openhuman-core/src/cron/scheduler_gate/gate.rs+++ b/crates/openhuman-core/src/cron/scheduler_gate/gate.rs@@ -280,7 +280,7 @@ pub fn set_signed_out(signed_out: bool) {////// Use this in any test that exercises a code path that itself calls/// [`set_signed_out`] *after* [`init_global`] has promoted [`STATE`].-/// Notably the JSON-RPC server bootstrap (`run_server_embedded` →+/// Notably the JSON-RPC server bootstrap (`openhuman_rpc::host::serve_desktop` →/// `bootstrap_core_runtime` → `register_domain_subscribers`) flips/// the flag to `true` whenever the workspace has no stored session/// token, which is the common case for tests using a freshdiff --git a/crates/openhuman-rpc/README.md b/crates/openhuman-rpc/README.mdindex b51c062c94..ece78b92b6 100644--- a/crates/openhuman-rpc/README.md+++ b/crates/openhuman-rpc/README.md@@ -90,9 +90,8 @@ for the hosts that still call them:host::tui() tinyhumans tui preset, connected + session store-> embed Runtime (no server)- legacy: install_cli_server() + run_core_from_args, and- run_server_embedded_with_ready(...) (embed desktop/cli preset,- not connected; the host installs the transport itself)+ bare: run_server / run_server_headless / run_server_saas (embed cli+ preset, not connected; the caller installs the transport itself)servers end in: session_store::install(); RuntimeBuilder::build(); serve(..)```@@ -124,13 +123,10 @@ for the hosts that still call them:value through its `result` / `data` envelopes. The TUI decodes with it.- `post_json_rpc(url, token, body)` (`client.rs`): POSTs a body with anoptional bearer and returns status and body verbatim.-- `server::install_cli_server()` (`server/cli.rs`): call once before- `run_core_from_args` so the core CLI's `run` and `serve` start this server.- `server::serve(&CoreRuntime, ready_tx, shutdown)` (`server/serve.rs`):bind and serve an already-built runtime.-- `server::run_server`, `run_server_headless`, `run_server_embedded`,- `run_server_embedded_with_ready` (`server/shims.rs`): build a runtime from- the embed `desktop` / `cli` preset and serve it. They do not connect the+- `server::run_server`, `run_server_headless`, `run_server_saas`+ (`server/shims.rs`): build a runtime from the embed `cli` preset and serve it. They do not connect theTinyHumans backend; `host::desktop` does.- `server::build_core_http_router(socketio_enabled)` (`server/http/mod.rs`):the router on its own; root `tests/*.rs` suites use it to make real HTTPdiff --git a/crates/openhuman-rpc/src/host.rs b/crates/openhuman-rpc/src/host.rsindex 21ddb06383..ba5ee1396a 100644--- a/crates/openhuman-rpc/src/host.rs+++ b/crates/openhuman-rpc/src/host.rs@@ -3,8 +3,8 @@//!//! | Entry | Replaces | Builder |//! |---|---|---|-//! | [`cli`] | `tinyhumans::install` → `server::install_cli_server` → `run_core_from_args` | [`cli_builder`]: the `cli` preset, connected, with the server launcher and the `http_host` controllers |-//! | [`desktop`] | `tinyhumans::install` + `server::run_server_embedded_with_ready` | [`desktop_builder`]: the `desktop` preset, connected, with the bearer, listener, services, server launcher and `http_host` controllers |+//! | [`cli`] | `tinyhumans::install` → the server launcher → `run_core_from_args` | [`cli_builder`]: the `cli` preset, connected, with the server launcher and the `http_host` controllers |+//! | [`desktop`] | `tinyhumans::install` + the embedded server entry | [`desktop_builder`]: the `desktop` preset, connected, with the bearer, listener, services, server launcher and `http_host` controllers |//! | [`tui`] | `tinyhumans::install` + `session_store::install_for_host` + `CoreBuilder(full, none)` | [`tui_builder`]: the `tui` preset, connected, with the on-disk session store ([`tui`] swaps in the configured storage URL's store) |//!//! Each `*_builder` returns a [`tinyhumans::RuntimeBuilder`] so a host candiff --git a/crates/openhuman-rpc/src/http_host/README.md b/crates/openhuman-rpc/src/http_host/README.mdindex 389072b5c7..c91f5941ca 100644--- a/crates/openhuman-rpc/src/http_host/README.md+++ b/crates/openhuman-rpc/src/http_host/README.md@@ -17,8 +17,7 @@ the four controllers to the core's registry with`register_controller_extension`, under `DomainGroup::Platform` (it has nodomain family of its own, so the runtime's `DomainSet` gates it with theplatform surface). The server calls the panicking wrapper-`ensure_registered()` from both `install_cli_server` and-`build_core_http_router`, and `crate::host` adds the same controllers+`ensure_registered()` from `build_core_http_router`, and `crate::host` adds the same controllers(`http_host::extension()`) to its builders, so every host that runs the RPC server (the desktopapp and the `openhuman-core` binary) exposes `http_host.*`. Registration isidempotent. A host that embeds the core without this crate's server, such as