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
fix(tinyhumans): gate composio proxy target behind modules feature
Steven Enamakelddbdf8981c63
diff --git a/crates/openhuman-embed/src/host_internals.rs b/crates/openhuman-embed/src/host_internals.rsindex 97e140106f..a2e468fb41 100644--- a/crates/openhuman-embed/src/host_internals.rs+++ b/crates/openhuman-embed/src/host_internals.rs@@ -333,6 +333,7 @@ pub mod composio {ComposioRouteBuilder,};// The proxy route's target (origin + bearer) for `composio.mode = backend`.+ #[cfg(feature = "modules")]pub use openhuman_core::modules::connectors::{register_proxy_target, unregister_proxy_target, ProxyTarget, ProxyTargetResolver,};diff --git a/crates/openhuman-tinyhumans/src/integrations/composio.rs b/crates/openhuman-tinyhumans/src/integrations/composio.rsindex b576147796..2ea2909793 100644--- a/crates/openhuman-tinyhumans/src/integrations/composio.rs+++ b/crates/openhuman-tinyhumans/src/integrations/composio.rs@@ -6,9 +6,9 @@//! ([`register`]). With this crate absent the mode answers//! `BACKEND_UNAVAILABLE:`.-use openhuman_embed::__host::composio::{- register_composio_route_builder, register_proxy_target, ComposioRoute, ProxyTarget,-};+use openhuman_embed::__host::composio::{register_composio_route_builder, ComposioRoute};+#[cfg(feature = "modules")]+use openhuman_embed::__host::composio::{register_proxy_target, ProxyTarget};use openhuman_embed::__host::config::schema::COMPOSIO_MODE_BACKEND;use openhuman_embed::__host::config::Config;@@ -21,6 +21,7 @@ const NO_SESSION: &str ="composio backend mode unavailable: no backend session token. Sign in or set a TinyHumans API key.";/// The proxy target for `config`: the backend origin and the credential secret.+#[cfg(feature = "modules")]fn proxy_target(config: &Config) -> Result<ProxyTarget, String> {let client = build_client(config).ok_or_else(|| {"composio backend mode is unavailable: no backend session token. Sign in or set a TinyHumans API key."@@ -42,5 +43,6 @@ pub(crate) fn register() {log::debug!("[tinyhumans] composio: resolved backend route");Ok(ComposioRoute::Backend)});+ #[cfg(feature = "modules")]register_proxy_target(COMPOSIO_MODE_BACKEND, proxy_target);}diff --git a/crates/openhuman-tinyhumans/src/integrations/mod_tests.rs b/crates/openhuman-tinyhumans/src/integrations/mod_tests.rsindex 0b7f95d952..9ce668f386 100644--- a/crates/openhuman-tinyhumans/src/integrations/mod_tests.rs+++ b/crates/openhuman-tinyhumans/src/integrations/mod_tests.rs@@ -53,9 +53,7 @@ fn build_client_returns_none_when_no_auth_token() {#[test]fn register_plugs_every_hosted_integration_into_the_core_registries() {- use openhuman_embed::__host::composio::{- unregister_composio_route_builder, unregister_proxy_target,- };+ use openhuman_embed::__host::composio::unregister_composio_route_builder;use openhuman_embed::__host::config::schema::COMPOSIO_MODE_BACKEND;use openhuman_embed::__host::tool_sources::unregister_tool_source;@@ -68,7 +66,10 @@ fn register_plugs_every_hosted_integration_into_the_core_registries() {#[cfg(feature = "web3")]assert!(openhuman_embed::__host::wallet_backend::unregister_wallet_backend(web3::HANDLER_ID));assert!(unregister_composio_route_builder(COMPOSIO_MODE_BACKEND));- assert!(unregister_proxy_target(COMPOSIO_MODE_BACKEND));+ #[cfg(feature = "modules")]+ assert!(openhuman_embed::__host::composio::unregister_proxy_target(+ COMPOSIO_MODE_BACKEND+ ));// Registration is idempotent and restores everything it removed above.register(&InstallOptions::default());