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(transport): add hosted backend support
Steven Enamakel96586f92e74c
diff --git a/crates/openhuman-tinyhumans/src/backend/headers.rs b/crates/openhuman-tinyhumans/src/backend/headers.rsindex 4377c469aa..9d4f345ee7 100644--- a/crates/openhuman-tinyhumans/src/backend/headers.rs+++ b/crates/openhuman-tinyhumans/src/backend/headers.rs@@ -7,13 +7,13 @@//! shell, when it hosts the core) and `x-sdk-name` (the product identity from//! [`crate::backend::product`]). This is TinyHumans header policy, so it lives//! with the TinyHumans transport; the core only asks the installed-//! [`BackendTransport`](openhuman_embed::__host::backend::BackendTransport) for them.+//! [`BackendTransport`](openhuman_embed::BackendTransport) for them.use anyhow::{Context, Result};use reqwest::header::{HeaderMap, HeaderName, HeaderValue};use std::time::Duration;-use openhuman_embed::__host::backend::TransportProfile;+use openhuman_embed::TransportProfile;/// Upper bound on the `x-core-version` / `x-tauri-version` header values. A/// version string is short; anything longer is a misconfigured environment anddiff --git a/crates/openhuman-tinyhumans/src/backend/mod.rs b/crates/openhuman-tinyhumans/src/backend/mod.rsindex 40dfbc38c3..24556bbe91 100644--- a/crates/openhuman-tinyhumans/src/backend/mod.rs+++ b/crates/openhuman-tinyhumans/src/backend/mod.rs@@ -2,7 +2,7 @@//! is, how requests are attributed, and who they are attributed to.//!//! The core knows none of this. It asks the installed-//! [`BackendTransport`](openhuman_embed::__host::backend::BackendTransport) —+//! [`BackendTransport`](openhuman_embed::BackendTransport) —//! [`SdkBackendTransport`](crate::SdkBackendTransport) — which answers from//! these modules://!diff --git a/crates/openhuman-tinyhumans/src/hosted/mod.rs b/crates/openhuman-tinyhumans/src/hosted/mod.rsindex fe363707d0..6ace5a4542 100644--- a/crates/openhuman-tinyhumans/src/hosted/mod.rs+++ b/crates/openhuman-tinyhumans/src/hosted/mod.rs@@ -44,7 +44,7 @@ pub mod webhooks;#[cfg(test)]pub(crate) mod test_support;-use openhuman_embed::__host::core::all::{ControllerExtension, DomainGroup};+use openhuman_embed::seams::{ControllerExtension, DomainGroup};/// Namespace descriptions the core's `namespace_description` serves for the/// namespaces only the hosted surface uses. Shared namespaces (`auth`,diff --git a/crates/openhuman-tinyhumans/src/transport/error.rs b/crates/openhuman-tinyhumans/src/transport/error.rsindex ea2b7ba96c..6c43ed5fca 100644--- a/crates/openhuman-tinyhumans/src/transport/error.rs+++ b/crates/openhuman-tinyhumans/src/transport/error.rs@@ -3,7 +3,7 @@//! the integrations client see exactly the shapes they saw when they called//! the SDK directly.-use openhuman_embed::__host::backend::transport::BackendTransportError;+use openhuman_embed::BackendTransportError;use reqwest::Method;use tinyhumans_sdk::Error as SdkError;diff --git a/crates/openhuman-tinyhumans/src/transport/mod.rs b/crates/openhuman-tinyhumans/src/transport/mod.rsindex 8be9999fde..6c66fceae7 100644--- a/crates/openhuman-tinyhumans/src/transport/mod.rs+++ b/crates/openhuman-tinyhumans/src/transport/mod.rs@@ -41,7 +41,7 @@ impl SdkBackendTransport {}/// [`Self::new`] as a shared handle ready for- /// [`install_backend_transport`](openhuman_embed::__host::backend::install_backend_transport).+ /// [`install_backend_transport`](openhuman_embed::install_backend_transport).pub fn shared() -> anyhow::Result<Arc<dyn BackendTransport>> {Ok(Arc::new(Self::new()?))}