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
Merge branch 'crate-chain' into crate-chain-p2
Steven Enamakel8b5fb3f5a7c5
diff --cc crates/openhuman-tinyhumans/README.mdindex 711dd2e99e,64315bed8d..7a80fdbb61--- a/crates/openhuman-tinyhumans/README.md+++ b/crates/openhuman-tinyhumans/README.md@@@ -54,10 -51,8 +54,10 @@@ embed's `#[doc(hidden)] __host` module### Installing into a process- `install(InstallOptions)` in `src/install.rs` is the compatibility entry point-`install(InstallOptions)` in [`src/install.rs`](src/install.rs) is the entry point for hosts that-boot the core themselves. It does four things, in this order:++`install(InstallOptions)` in [`src/install.rs`](src/install.rs) is the compatibility entry point+for hosts that still boot the core themselves. It resolves the same `Wiring`+(`install::wiring`) the builder uses and applies it to the process globals.+It does four things, in this order:1. If `InstallOptions::product_identity` is set, it stores the new`ProductIdentity` (the `x-sdk-name` header value) and drops any transport it@@@ -85,31 -80,20 +85,31 @@@ is still the core's global oneopenhuman_tinyhumans::install(openhuman_tinyhumans::InstallOptions::default())?;```- The CLI does this in `crates/openhuman-cli/src/main.rs` before+ The CLI does this in [`crates/openhuman-cli/src/main.rs`](../openhuman-cli/src/main.rs) before`run_core_from_args`; in-process test suites do it through- `tests/support/tinyhumans_boot.rs`.+ [`tests/support/tinyhumans_boot.rs`](../../tests/support/tinyhumans_boot.rs).-### Library hosts: RuntimeBuilder--`RuntimeBuilder` in [`src/runtime.rs`](src/runtime.rs) wraps `openhuman_embed::RuntimeBuilder`-and mirrors it method for method (`workspace`, `api_key`, `backend_url`,-`provider`, `access`, `services`, `domains`, `tool_groups`, `host_kind`,-`session`, `config`). It adds `product_identity` and `hosted_controllers`,-which feed `InstallOptions`. `build()` calls `install`, binds the returned-transport to the embed builder with `backend_transport`, and boots the-runtime. `into_embed()` drops back to the plain embed builder with no backend-connection, and `from_embed()` starts from an already-configured one.+### The configuration path: RuntimeBuilder+- `RuntimeBuilder` in `src/runtime.rs` wraps `openhuman_embed::RuntimeBuilder`.++`RuntimeBuilder` in [`src/runtime.rs`](src/runtime.rs) wraps `openhuman_embed::RuntimeBuilder`.+It starts from `new()`, a host preset (`library()`, `desktop()`, `cli()`,+`tui()`) or `from_embed()`, and forwards every embed knob unchanged+(`workspace`, `workspace_dir`, `action_dir`, `config_source`, `token`,+`listen`, `api_key`, `backend_url`, `provider`, `access`, `services`,+`domains`, `tool_groups`, `host_kind`, `session`, `config`, `session_store`,+`memory_engine`) and every seam option (`controller_extension`, `tool_ranker`,+`post_turn_hook`, `tool_hook`, `server_launcher`, `live_policy`). It adds+`product_identity`, `hosted_controllers` and `jev_ranker`, which feed+`InstallOptions`.++`connect()` returns the embed builder with the TinyHumans connection applied+through embed's own options: the product identity is set, the SDK transport+is installed as the process global and bound with `backend_transport`, the+hosted proxies go in with `controller_extension`, and the Jev ranker with+`tool_ranker` (restored when the runtime drops). A host `tool_ranker` replaces- the Jev one. `build()` is `connect()` then boot; `run_from_args()` is++the Jev one, however it was set. `build()` is `connect()` then boot; `run_from_args()` is+`connect()` then the embed CLI dispatcher. `into_embed()` drops back to the+plain embed builder with no backend connection.```rustuse openhuman_tinyhumans::{embed::Workspace, RuntimeBuilder};diff --cc crates/openhuman-tinyhumans/src/backend/README.mdindex 9241853e42,3c4578155f..391692a6fb--- a/crates/openhuman-tinyhumans/src/backend/README.md+++ b/crates/openhuman-tinyhumans/src/backend/README.md@@@ -124,8 -124,8 +124,8 @@@ process## Boundaries- The core owns the questions (`backend::base_url` and friends in- `crates/openhuman-core/src/backend/mod.rs`) and the URL utilities this file+ [`crates/openhuman-core/src/backend/mod.rs`](../../../openhuman-core/src/backend/mod.rs)) and the URL utilities this file- re-exports (`openhuman_core::util::url`). It owns the app-environment+ re-exports (`openhuman_embed::__host::util::url`). It owns the app-environmentreading too (`config::app_env`).- Do not put the `x-sdk-name` header on third-party endpoints, MCP servers,BYOK inference endpoints or presigned storage redirects. These helpers are