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
refactor(subagent_host): route composio sign-in probe through integrations
Steven Enamakel2a98d4af7bca
diff --git a/crates/openhuman-core/src/agent/subagent_host/mod.rs b/crates/openhuman-core/src/agent/subagent_host/mod.rsindex bccf75af5f..6bafcf2073 100644--- a/crates/openhuman-core/src/agent/subagent_host/mod.rs+++ b/crates/openhuman-core/src/agent/subagent_host/mod.rs@@ -69,10 +69,4 @@ pub use types::{pub(crate) use ops::{append_subagent_role_contract, resolve_subagent_source};-// `user_is_signed_in_to_composio` is the mode-aware "can the user call-// composio at all?" probe added in Wave 2 (#1710). Re-exported here so-// non-composio probe sites (registration gates, telemetry)-// can call it as-// `crate::agent::subagent_host::user_is_signed_in_to_composio`-// without reaching into a private sibling module.-pub(crate) use ops::user_is_signed_in_to_composio;+diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rsindex b2f5e03489..60f37dbcac 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs@@ -39,7 +39,8 @@ use tinytools_std::file_state::with_file_state_agent_id;use super::prompt::{append_artifact_offload_contract, append_subagent_role_contract, dedup_tool_specs_by_name,};-use super::provider::{resolve_subagent_source, user_is_signed_in_to_composio};+use super::provider::resolve_subagent_source;+use crate::integrations::composio::user_is_signed_in_to_composio;/// Runtime spawn-hierarchy gate decision for one delegation hop.///diff --git a/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rsindex 0c43a37d8a..710fbff2d7 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rs@@ -504,7 +504,7 @@ fn resolve_subagent_source_hint_falls_back_on_factory_error() {#[test]fn direct_mode_user_with_stored_key_passes_signed_in_check() {- use super::super::user_is_signed_in_to_composio;+ use crate::integrations::composio::user_is_signed_in_to_composio;let tmp = tempfile::tempdir().expect("tempdir");let mut config = crate::config::Config::default();config.config_path = tmp.path().join("config.toml");@@ -521,7 +521,7 @@ fn direct_mode_user_with_stored_key_passes_signed_in_check() {#[test]fn unsigned_in_user_fails_probe() {- use super::super::user_is_signed_in_to_composio;+ use crate::integrations::composio::user_is_signed_in_to_composio;let tmp = tempfile::tempdir().expect("tempdir");let mut config = crate::config::Config::default();config.config_path = tmp.path().join("config.toml");diff --git a/crates/openhuman-core/src/agent/tinyagents/mod.rs b/crates/openhuman-core/src/agent/tinyagents/mod.rsindex 560a7a4062..41e6962fbd 100644--- a/crates/openhuman-core/src/agent/tinyagents/mod.rs+++ b/crates/openhuman-core/src/agent/tinyagents/mod.rs@@ -57,7 +57,7 @@ mod turn_middleware;pub(crate) mod turn_model_resolver;mod turn_outcome;mod turn_plan;-mod turn_policy;+pub(crate) mod turn_policy;mod turn_run_error;mod turn_run_finalize;mod use_skill_dispatch;diff --git a/crates/openhuman-core/src/inference/turn_models.rs b/crates/openhuman-core/src/inference/turn_models.rsindex 36d1b8bad0..dba2c56836 100644--- a/crates/openhuman-core/src/inference/turn_models.rs+++ b/crates/openhuman-core/src/inference/turn_models.rs@@ -14,7 +14,7 @@ use tinyinference_llm::model::{ResolvedModelRoute, RouteRecordingModel};/// built once from an openhuman [`Provider`] by [`build_turn_models`] — the/// single place a turn's `native model adapters are constructed (issue #4249, Phase 5).///-/// [`OpenHumanTurnPlanner`](super::turn_plan::OpenHumanTurnPlanner) takes this bundle instead of the raw provider, so+/// [`OpenHumanTurnPlanner`](crate::agent::tinyagents::turn_plan::OpenHumanTurnPlanner) takes this bundle instead of the raw provider, so/// the harness assembly is expressed purely in crate model types; the/// `Provider` → `ChatModel` adaptation is confined to `build_turn_models`.pub(crate) struct TurnModels {@@ -90,7 +90,7 @@ impl TurnModels {/// `OpenHumanBackendModel`, local/cloud → crate `OpenAiModel`).////// The `TurnModels` shape is identical to [`build_turn_models`] so-/// [`OpenHumanTurnPlanner`](super::turn_plan::OpenHumanTurnPlanner) is unchanged. The provider metadata+/// [`OpenHumanTurnPlanner`](crate::agent::tinyagents::turn_plan::OpenHumanTurnPlanner) is unchanged. The provider metadata/// (`provider_id` / `native_tools` / `supports_vision`) is derived by the caller/// ([`TurnModelSource::build`]) from the resolved provider string and config./// `error_slot` is a fresh