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
chore(composio): reformat imports and fix module ordering
Steven Enamakel1ae1de205c0e
diff --git a/crates/openhuman-core/src/integrations/composio/catalog/contract.rs b/crates/openhuman-core/src/integrations/composio/catalog/contract.rsindex 16fc1d773e..eb96bd62d0 100644--- a/crates/openhuman-core/src/integrations/composio/catalog/contract.rs+++ b/crates/openhuman-core/src/integrations/composio/catalog/contract.rs@@ -6,7 +6,9 @@use serde_json::Value;use crate::config::Config;-use crate::integrations::composio::client::{create_composio_client, direct_list_tools, ComposioClientKind};+use crate::integrations::composio::client::{+ create_composio_client, direct_list_tools, ComposioClientKind,+};use crate::json_schema::{compute_primary_array_path, response_fields_from_schema};/// One Composio action's LIVE, ground-truth contract — the source of truth@@ -121,7 +123,8 @@ impl<T> CacheEntry<T> {/// worth of repeat lookups (the reason these are caches at all) while/// keeping "add a Composio action, come back later today" working without a/// restart.-pub(super) const COMPOSIO_CATALOG_CACHE_TTL: std::time::Duration = std::time::Duration::from_secs(30 * 60);+pub(super) const COMPOSIO_CATALOG_CACHE_TTL: std::time::Duration =+ std::time::Duration::from_secs(30 * 60);/// Process-level cache backing [`fetch_live_toolkit_catalog`]: lowercase/// toolkit slug → every [`ToolContract`] the LIVE Composio catalog published@@ -144,7 +147,9 @@ static LIVE_CATALOG_IN_FLIGHT: std::sync::OnceLock<std::sync::Mutex<std::collections::HashMap<String, std::sync::Arc<tokio::sync::Mutex<()>>>>,> = std::sync::OnceLock::new();-pub(super) fn live_catalog_fetch_lock(toolkit: &str) -> Option<std::sync::Arc<tokio::sync::Mutex<()>>> {+pub(super) fn live_catalog_fetch_lock(+ toolkit: &str,+) -> Option<std::sync::Arc<tokio::sync::Mutex<()>>> {let mut in_flight = LIVE_CATALOG_IN_FLIGHT.get_or_init(Default::default).lock()diff --git a/crates/openhuman-core/src/integrations/composio/catalog/lookups.rs b/crates/openhuman-core/src/integrations/composio/catalog/lookups.rsindex 81daea04fe..8bffd9d9dd 100644--- a/crates/openhuman-core/src/integrations/composio/catalog/lookups.rs+++ b/crates/openhuman-core/src/integrations/composio/catalog/lookups.rs@@ -5,7 +5,6 @@use super::contract::fetch_live_toolkit_catalog;use crate::config::Config;-/// Best-effort lookup of a Composio action's **required** top-level parameter/// names — a thin projection over [`fetch_live_toolkit_catalog`]'s/// [`ToolContract`]s (this used to run its own independentdiff --git a/crates/openhuman-core/src/integrations/composio/catalog/probe.rs b/crates/openhuman-core/src/integrations/composio/catalog/probe.rsindex c75ea79563..9e9f72086d 100644--- a/crates/openhuman-core/src/integrations/composio/catalog/probe.rs+++ b/crates/openhuman-core/src/integrations/composio/catalog/probe.rs@@ -8,8 +8,10 @@ use serde_json::Value;use super::contract::{CacheEntry, ToolContract, COMPOSIO_CATALOG_CACHE_TTL};use crate::config::Config;+use crate::integrations::composio::client::{+ create_composio_client, direct_execute, ComposioClientKind,+};use crate::json_schema::compute_primary_array_path_from_value;-use crate::integrations::composio::client::{create_composio_client, direct_execute, ComposioClientKind};// ─────────────────────────────────────────────────────────────────────────────// Real-output probe (systemic tool-contract fix, Part 3 / B12)@@ -280,17 +282,14 @@ pub(crate) async fn probe_tool_output_sample(}}- let Some(toolkit) =- crate::integrations::composio::providers::toolkit_from_slug(slug)- else {+ let Some(toolkit) = crate::integrations::composio::providers::toolkit_from_slug(slug) else {return Err(format!("get_tool_output_sample: could not extract a toolkit from slug '{slug}' — it must \look like '<TOOLKIT>_<ACTION>'."));};- let integrations =- crate::integrations::composio::fetch_connected_integrations(config).await;+ let integrations = crate::integrations::composio::fetch_connected_integrations(config).await;let connected = integrations.iter().any(|i| i.connected && i.toolkit.eq_ignore_ascii_case(&toolkit));diff --git a/crates/openhuman-core/src/integrations/composio/client/connections.rs b/crates/openhuman-core/src/integrations/composio/client/connections.rsindex 8ae673797c..e83e63cdfc 100644--- a/crates/openhuman-core/src/integrations/composio/client/connections.rs+++ b/crates/openhuman-core/src/integrations/composio/client/connections.rs@@ -118,7 +118,6 @@ impl ComposioClient {.await}-// ── Raw DELETE ──────────────────────────────────────────────────/// Perform an HTTP DELETE and parse the standard backend envelope.@@ -172,8 +171,7 @@ impl ComposioClient {// Use the same UTF-8-safe truncation for the debug-log preview// — direct byte-slicing (`&body_text[..len.min(300)]`) panics// when the cutoff lands inside a multibyte codepoint.- let logged_body =- crate::integrations::client::extract_error_detail(&body_text, 300);+ let logged_body = crate::integrations::client::extract_error_detail(&body_text, 300);tracing::debug!("[composio] DELETE {} → {} body={}",url,diff --git a/crates/openhuman-core/src/integrations/composio/client/direct.rs b/crates/openhuman-core/src/integrations/composio/client/direct.rsindex 4fff9a6b0a..3038c0a914 100644--- a/crates/openhuman-core/src/integrations/composio/client/direct.rs+++ b/crates/openhuman-core/src/integrations/composio/client/direct.rs@@ -7,11 +7,11 @@use std::sync::Arc;+use super::super::direct_auth;use super::super::types::{ComposioAuthorizeResponse, ComposioConnection, ComposioConnectionsResponse,ComposioExecuteResponse, ComposioToolsResponse,};-use super::super::direct_auth;/// Direct-mode counterpart to [`ComposioClient::authorize`]. Calls/// Composio v3 `/connected_accounts/link` viadiff --git a/crates/openhuman-core/src/integrations/composio/client/execute.rs b/crates/openhuman-core/src/integrations/composio/client/execute.rsindex aaa2df1c06..3f825efc7b 100644--- a/crates/openhuman-core/src/integrations/composio/client/execute.rs+++ b/crates/openhuman-core/src/integrations/composio/client/execute.rs@@ -7,8 +7,8 @@ use std::time::Duration;use anyhow::Result;use serde_json::{json, Value};-use super::connections::ComposioClient;use super::super::types::{ComposioExecuteResponse, ComposioToolsResponse};+use super::connections::ComposioClient;const POST_OAUTH_ACTION_RETRY_DELAY: Duration = Duration::from_secs(10);/// Literal error fragments Composio's gateway emits during the post-OAuthdiff --git a/crates/openhuman-core/src/integrations/composio/client/factory.rs b/crates/openhuman-core/src/integrations/composio/client/factory.rsindex eaedda21de..4910d1f660 100644--- a/crates/openhuman-core/src/integrations/composio/client/factory.rs+++ b/crates/openhuman-core/src/integrations/composio/client/factory.rs@@ -7,7 +7,6 @@ use std::sync::Arc;use super::connections::ComposioClient;-/// Backend-mode [`ComposioClient`] constructor. **Internal to the/// composio module** — external callers should use/// [`create_composio_client`] (factory) or@@ -30,9 +29,7 @@ use super::connections::ComposioClient;/// this returns `None` is that the user isn't signed in to the backend/// (no JWT). Direct-mode availability is orthogonal — see/// [`create_composio_client`].-pub(super) fn build_composio_client(- config: &crate::config::Config,-) -> Option<ComposioClient> {+pub(super) fn build_composio_client(config: &crate::config::Config) -> Option<ComposioClient> {let inner = crate::integrations::build_client(config)?;Some(ComposioClient::new(inner))}diff --git a/crates/openhuman-core/src/integrations/composio/client/triggers.rs b/crates/openhuman-core/src/integrations/composio/client/triggers.rsindex 006191774b..fd286dd63c 100644--- a/crates/openhuman-core/src/integrations/composio/client/triggers.rs+++ b/crates/openhuman-core/src/integrations/composio/client/triggers.rs@@ -5,12 +5,12 @@use anyhow::Result;-use super::connections::ComposioClient;use super::super::types::{ComposioActiveTriggersResponse, ComposioAvailableTriggersResponse,ComposioCreateTriggerResponse, ComposioDisableTriggerResponse, ComposioEnableTriggerResponse,ComposioGithubReposResponse,};+use super::connections::ComposioClient;impl ComposioClient {pub async fn list_github_repos(diff --git a/crates/openhuman-core/src/integrations/composio/connected_integrations.rs b/crates/openhuman-core/src/integrations/composio/connected_integrations.rsindex e39403714e..018825f47e 100644--- a/crates/openhuman-core/src/integrations/composio/connected_integrations.rs+++ b/crates/openhuman-core/src/integrations/composio/connected_integrations.rs@@ -14,13 +14,13 @@ mod connectable_slug_tests;#[path = "connected_integrations_catalog_description_tests_tests.rs"]mod catalog_description_tests;+#[cfg(test)]+pub(crate) use cache::composio_cache_test_lock;pub(crate) use cache::{cache_key, cached_active_integrations, cached_active_integrations_including_expired,connected_set_hash, invalidate_connected_integrations_cache, sync_cache_with_connections,CachedIntegrations, CACHE_TTL, INTEGRATIONS_CACHE,};-#[cfg(test)]-pub(crate) use cache::composio_cache_test_lock;pub(crate) use fetch::{fetch_connected_integrations, fetch_connected_integrations_status, fetch_toolkit_actions,FetchConnectedIntegrationsStatus,diff --git a/crates/openhuman-core/src/integrations/composio/connected_integrations/cache.rs b/crates/openhuman-core/src/integrations/composio/connected_integrations/cache.rsindex 69b6798b91..7df615ae2f 100644--- a/crates/openhuman-core/src/integrations/composio/connected_integrations/cache.rs+++ b/crates/openhuman-core/src/integrations/composio/connected_integrations/cache.rs@@ -254,7 +254,9 @@ fn connected_toolkit_set(integrations: &[ConnectedIntegration]) -> HashSet<Strin/// in chat in sync with the badge the user sees in Settings, even when/// the primary event-bus invalidation path misses (e.g. Windows OAuth/// flows that overrun the 60 s readiness poll).-pub(crate) fn sync_cache_with_connections(connections: &[crate::integrations::composio::types::ComposioConnection]) {+pub(crate) fn sync_cache_with_connections(+ connections: &[crate::integrations::composio::types::ComposioConnection],+) {let live_active: HashSet<String> = connections.iter().filter(|c| c.is_active())diff --git a/crates/openhuman-core/src/integrations/composio/connected_integrations/fetch.rs b/crates/openhuman-core/src/integrations/composio/connected_integrations/fetch.rsindex 9915fff456..d1d5250dab 100644--- a/crates/openhuman-core/src/integrations/composio/connected_integrations/fetch.rs+++ b/crates/openhuman-core/src/integrations/composio/connected_integrations/fetch.rs@@ -171,10 +171,9 @@ pub(super) fn resolve_toolkit_description(catalog_descriptions: &std::collections::HashMap<String, String>,slug: &str,) -> String {- catalog_descriptions- .get(slug)- .cloned()- .unwrap_or_else(|| crate::integrations::composio::providers::toolkit_description(slug).to_string())+ catalog_descriptions.get(slug).cloned().unwrap_or_else(|| {+ crate::integrations::composio::providers::toolkit_description(slug).to_string()+ })}/// Just-in-time fetch of every available action for a single Composio@@ -227,7 +226,12 @@ pub async fn fetch_toolkit_actions(.tools.into_iter().filter(|t| t.function.name.starts_with(&action_prefix))- .filter(|t| crate::integrations::composio::providers::is_action_visible_with_pref(&t.function.name, &pref))+ .filter(|t| {+ crate::integrations::composio::providers::is_action_visible_with_pref(+ &t.function.name,+ &pref,+ )+ }).map(|t| ConnectedIntegrationTool {name: t.function.name,description: t.function.description.unwrap_or_default(),diff --git a/crates/openhuman-core/src/integrations/composio/connected_integrations/fetch_uncached.rs b/crates/openhuman-core/src/integrations/composio/connected_integrations/fetch_uncached.rsindex ea6ffd71c4..054b68b13e 100644--- a/crates/openhuman-core/src/integrations/composio/connected_integrations/fetch_uncached.rs+++ b/crates/openhuman-core/src/integrations/composio/connected_integrations/fetch_uncached.rs@@ -25,7 +25,9 @@ use super::fetch::{connectable_toolkit_slugs, resolve_toolkit_description};pub(super) async fn fetch_connected_integrations_uncached(config: &Config,) -> Option<Vec<ConnectedIntegration>> {- use super::super::client::{create_composio_client, direct_list_connections, ComposioClientKind};+ use super::super::client::{+ create_composio_client, direct_list_connections, ComposioClientKind,+ };// Route via the mode-aware factory so the chat-agent's// "connected_integrations" view reflects the live tenant — backend@@ -383,7 +385,8 @@ pub(super) async fn fetch_connected_integrations_uncached(.iter().filter(|t| t.function.name.starts_with(&action_prefix)){- if super::super::providers::is_action_visible_with_pref(&t.function.name, &pref) {+ if super::super::providers::is_action_visible_with_pref(&t.function.name, &pref)+ {visible.push(ConnectedIntegrationTool {name: t.function.name.clone(),description: t.function.description.clone().unwrap_or_default(),@@ -433,38 +436,37 @@ pub(super) async fn fetch_connected_integrations_uncached((Vec::new(), Vec::new())};- let integration_connections: Vec<- crate::agent::context::prompt::IntegrationConnection,- > = if connected {- let mut conns: Vec<_> = connections- .iter()- .filter(|c| c.is_active() && c.normalized_toolkit() == *slug)- .collect();- conns.sort_by(|a, b| a.created_at.cmp(&b.created_at));- conns- .iter()- .enumerate()- .map(|(idx, c)| {- let label = [- c.account_email.as_deref(),- c.workspace.as_deref(),- c.username.as_deref(),- ]- .into_iter()- .flatten()- .map(str::trim)- .find(|s| !s.is_empty())- .map(str::to_string);- crate::agent::context::prompt::IntegrationConnection {- connection_id: c.id.clone(),- label,- is_default: idx == 0,- }- })- .collect()- } else {- Vec::new()- };+ let integration_connections: Vec<crate::agent::context::prompt::IntegrationConnection> =+ if connected {+ let mut conns: Vec<_> = connections+ .iter()+ .filter(|c| c.is_active() && c.normalized_toolkit() == *slug)+ .collect();+ conns.sort_by(|a, b| a.created_at.cmp(&b.created_at));+ conns+ .iter()+ .enumerate()+ .map(|(idx, c)| {+ let label = [+ c.account_email.as_deref(),+ c.workspace.as_deref(),+ c.username.as_deref(),+ ]+ .into_iter()+ .flatten()+ .map(str::trim)+ .find(|s| !s.is_empty())+ .map(str::to_string);+ crate::agent::context::prompt::IntegrationConnection {+ connection_id: c.id.clone(),+ label,+ is_default: idx == 0,+ }+ })+ .collect()+ } else {+ Vec::new()+ };integrations.push(ConnectedIntegration {toolkit: slug.clone(),diff --git a/crates/openhuman-core/src/integrations/composio/ops_tests.rs b/crates/openhuman-core/src/integrations/composio/ops_tests.rsindex 2f03dd50bb..6af483d3d5 100644--- a/crates/openhuman-core/src/integrations/composio/ops_tests.rs+++ b/crates/openhuman-core/src/integrations/composio/ops_tests.rs@@ -327,11 +327,11 @@ fn make_connections_response(super::super::types::ComposioConnectionsResponse { connections }}+#[path = "ops_direct_mode_and_error_classification_tests.rs"]+mod direct_mode_and_error_classification_tests;+#[path = "ops_fetch_integrations_and_triggers_tests.rs"]+mod fetch_integrations_and_triggers_tests;#[path = "ops_no_session_and_cache_tests.rs"]mod no_session_and_cache_tests;#[path = "ops_profile_tools_execute_mock_tests.rs"]mod profile_tools_execute_mock_tests;-#[path = "ops_fetch_integrations_and_triggers_tests.rs"]-mod fetch_integrations_and_triggers_tests;-#[path = "ops_direct_mode_and_error_classification_tests.rs"]-mod direct_mode_and_error_classification_tests;diff --git a/crates/openhuman-core/src/integrations/composio/schemas/definitions.rs b/crates/openhuman-core/src/integrations/composio/schemas/definitions.rsindex 125a757cb8..9a9c91d99a 100644--- a/crates/openhuman-core/src/integrations/composio/schemas/definitions.rs+++ b/crates/openhuman-core/src/integrations/composio/schemas/definitions.rs@@ -4,7 +4,6 @@use crate::core::{ControllerSchema, FieldSchema, TypeSchema};-pub(super) fn schemas(function: &str) -> ControllerSchema {match function {"list_toolkits" => ControllerSchema {diff --git a/crates/openhuman-core/src/integrations/composio/schemas/handlers_triggers.rs b/crates/openhuman-core/src/integrations/composio/schemas/handlers_triggers.rsindex 1a0fe7b5b8..bd18b4d81e 100644--- a/crates/openhuman-core/src/integrations/composio/schemas/handlers_triggers.rs+++ b/crates/openhuman-core/src/integrations/composio/schemas/handlers_triggers.rs@@ -33,8 +33,13 @@ pub(super) fn handle_create_trigger(params: Map<String, Value>) -> ControllerFutreturn Err("invalid params: 'slug' must not be empty".to_string());}to_json(- ops::composio_create_trigger(&config, slug, payload.connection_id, payload.trigger_config)- .await?,+ ops::composio_create_trigger(+ &config,+ slug,+ payload.connection_id,+ payload.trigger_config,+ )+ .await?,)})}diff --git a/crates/openhuman-core/src/integrations/composio/schemas/registry.rs b/crates/openhuman-core/src/integrations/composio/schemas/registry.rsindex 2705423fe4..2602ec5549 100644--- a/crates/openhuman-core/src/integrations/composio/schemas/registry.rs+++ b/crates/openhuman-core/src/integrations/composio/schemas/registry.rs@@ -3,8 +3,8 @@//! [`super::definitions::schemas`] entry to its handler and register it//! with the shared controller registry.-use crate::core::ControllerSchema;use crate::core::all::RegisteredController;+use crate::core::ControllerSchema;use super::definitions::schemas;use super::handlers_connections::{@@ -13,8 +13,8 @@ use super::handlers_connections::{handle_list_toolkits, handle_set_api_key,};use super::handlers_identity::{- handle_get_user_profile, handle_get_user_scopes, handle_refresh_all_identities, handle_sync,- handle_set_user_scopes,+ handle_get_user_profile, handle_get_user_scopes, handle_refresh_all_identities,+ handle_set_user_scopes, handle_sync,};use super::handlers_tools::{handle_execute, handle_list_tools};use super::handlers_triggers::{diff --git a/crates/openhuman-core/src/integrations/composio/tools.rs b/crates/openhuman-core/src/integrations/composio/tools.rsindex dbae37627f..3a96f59fdb 100644--- a/crates/openhuman-core/src/integrations/composio/tools.rs+++ b/crates/openhuman-core/src/integrations/composio/tools.rs@@ -49,7 +49,6 @@ pub use registry::all_composio_agent_tools;// — can still reach these via a plain `use super::*;`, exactly as when// this was one un-split file. See each item's `pub(super)` in its owning// submodule.-pub(super) use visibility::{action_mutates_external_state, resolve_action_scope};use authorize::ComposioAuthorizeTool;use connect::{canonicalize_toolkit_slug, composio_connect_timeout, connection_is_active,@@ -57,8 +56,9 @@ use connect::{};use execute::ComposioExecuteTool;use list_connections::ComposioListConnectionsTool;-use list_tools::ComposioListToolsTool;use list_toolkits::ComposioListToolkitsTool;+use list_tools::ComposioListToolsTool;+pub(super) use visibility::{action_mutates_external_state, resolve_action_scope};use visibility::{empty_uncurated_toolkits_message, evaluate_tool_visibility, normalized_scope_toolkits,render_tools_markdown, retain_connected_tools, scope_error_message, uncatalogued_toolkits,diff --git a/crates/openhuman-core/src/integrations/composio/tools/connect.rs b/crates/openhuman-core/src/integrations/composio/tools/connect.rsindex a63629647b..b16b50527c 100644--- a/crates/openhuman-core/src/integrations/composio/tools/connect.rs+++ b/crates/openhuman-core/src/integrations/composio/tools/connect.rs@@ -14,7 +14,6 @@ use crate::tools::traits::{PermissionLevel, Tool, ToolCategory, ToolResult};use super::super::client::{create_composio_client, direct_list_connections, ComposioClientKind};-// ── composio_connect (inline approval card, #3993) ──────────────────/// Canonicalize an agent/user-supplied toolkit slug to the form Composio's@@ -49,7 +48,6 @@ pub(super) fn canonicalize_toolkit_slug(slug: &str) -> String {/// hanging. Generous by design; env-overridable, `0` restores the full gate TTL.pub(super) const DEFAULT_COMPOSIO_CONNECT_TIMEOUT_SECS: u64 = 120;-/// Resolve the connect-card park bound. Reads/// `OPENHUMAN_COMPOSIO_CONNECT_TIMEOUT_SECS`; `0` means "no composio-side bound"/// (`None`) → fall back to the gate's own TTL.@@ -65,7 +63,9 @@ pub(super) fn composio_connect_timeout() -> Option<std::time::Duration> {/// deterministically unit-testable. An absent/unparseable value falls back to/// [`DEFAULT_COMPOSIO_CONNECT_TIMEOUT_SECS`]; `0` yields `None` (opt out of the/// composio-side bound).-pub(super) fn parse_composio_connect_timeout(env_value: Option<&str>) -> Option<std::time::Duration> {+pub(super) fn parse_composio_connect_timeout(+ env_value: Option<&str>,+) -> Option<std::time::Duration> {let secs = env_value.and_then(|v| v.trim().parse::<u64>().ok()).unwrap_or(DEFAULT_COMPOSIO_CONNECT_TIMEOUT_SECS);diff --git a/crates/openhuman-core/src/integrations/composio/tools/execute.rs b/crates/openhuman-core/src/integrations/composio/tools/execute.rsindex 2956db7b9f..8f8ce62243 100644--- a/crates/openhuman-core/src/integrations/composio/tools/execute.rs+++ b/crates/openhuman-core/src/integrations/composio/tools/execute.rs@@ -48,7 +48,6 @@ impl ComposioExecuteTool {}}-#[async_trait]impl Tool for ComposioExecuteTool {fn name(&self) -> &str {@@ -214,8 +213,9 @@ impl Tool for ComposioExecuteTool {iana = %iana,"[composio][dispatcher] applying calendar query defaults pre-dispatch");- let arguments =- super::super::googlecalendar_args::apply_calendar_query_defaults(&tool, arguments, &iana);+ let arguments = super::super::googlecalendar_args::apply_calendar_query_defaults(+ &tool, arguments, &iana,+ );// Task-recency window (morning briefing): when the calling agent// installed a window, inject best-effort server-side narrowing fordiff --git a/crates/openhuman-core/src/integrations/composio/tools/list_toolkits.rs b/crates/openhuman-core/src/integrations/composio/tools/list_toolkits.rsindex 48a9ba6975..6209d7a2e7 100644--- a/crates/openhuman-core/src/integrations/composio/tools/list_toolkits.rs+++ b/crates/openhuman-core/src/integrations/composio/tools/list_toolkits.rs@@ -11,7 +11,6 @@ use crate::tools::traits::{PermissionLevel, Tool, ToolCategory, ToolResult};use super::super::client::{create_composio_client, ComposioClientKind};-pub struct ComposioListToolkitsTool {/// Held instead of a pre-baked `ComposioClient` so the/// [`crate::config::ComposioConfig::mode`] toggle isdiff --git a/crates/openhuman-core/src/integrations/composio/tools/list_tools.rs b/crates/openhuman-core/src/integrations/composio/tools/list_tools.rsindex 54491b017e..227bb47254 100644--- a/crates/openhuman-core/src/integrations/composio/tools/list_tools.rs+++ b/crates/openhuman-core/src/integrations/composio/tools/list_tools.rs@@ -17,7 +17,6 @@ use super::visibility::{render_tools_markdown, retain_connected_tools,};-pub struct ComposioListToolsTool {/// Held instead of a pre-baked `ComposioClient` so the/// [`crate::config::ComposioConfig::mode`] toggle isdiff --git a/crates/openhuman-core/src/integrations/composio/tools/registry.rs b/crates/openhuman-core/src/integrations/composio/tools/registry.rsindex e115bd0dbe..4d0bdfb1ff 100644--- a/crates/openhuman-core/src/integrations/composio/tools/registry.rs+++ b/crates/openhuman-core/src/integrations/composio/tools/registry.rs@@ -9,8 +9,8 @@ use super::authorize::ComposioAuthorizeTool;use super::connect::ComposioConnectTool;use super::execute::ComposioExecuteTool;use super::list_connections::ComposioListConnectionsTool;-use super::list_tools::ComposioListToolsTool;use super::list_toolkits::ComposioListToolkitsTool;+use super::list_tools::ComposioListToolsTool;pub fn all_composio_agent_tools(config: &crate::config::Config) -> Vec<Box<dyn Tool>> {// Registration gate: ask the mode-aware probe "can this user calldiff --git a/crates/openhuman-core/src/integrations/composio/tools/visibility.rs b/crates/openhuman-core/src/integrations/composio/tools/visibility.rsindex 8b192890b8..33f6fa59b9 100644--- a/crates/openhuman-core/src/integrations/composio/tools/visibility.rs+++ b/crates/openhuman-core/src/integrations/composio/tools/visibility.rs@@ -249,7 +249,8 @@ pub(super) fn render_tools_markdown(resp: &super::super::types::ComposioToolsRes// Group by toolkit slug (lowercase prefix). Use BTreeMap for stable// ordering so the agent sees the same shape across calls.- let mut by_toolkit: BTreeMap<String, Vec<&super::super::types::ComposioToolSchema>> = BTreeMap::new();+ let mut by_toolkit: BTreeMap<String, Vec<&super::super::types::ComposioToolSchema>> =+ BTreeMap::new();for t in &resp.tools {let toolkit = toolkit_from_slug(&t.function.name).unwrap_or_else(|| "other".to_string());by_toolkit.entry(toolkit).or_default().push(t);@@ -317,4 +318,3 @@ pub(super) fn scope_error_message(slug: &str, scope: ToolScope, pref: UserScopePpref.read, pref.write, pref.admin,)}-diff --git a/crates/openhuman-core/src/integrations/composio/tools_tests.rs b/crates/openhuman-core/src/integrations/composio/tools_tests.rsindex e1bc23040a..2c09566355 100644--- a/crates/openhuman-core/src/integrations/composio/tools_tests.rs+++ b/crates/openhuman-core/src/integrations/composio/tools_tests.rs@@ -131,7 +131,7 @@ fn direct_mode_config() -> crate::config::Config {config}-#[path = "tools_metadata_and_sandbox_tests.rs"]-mod metadata_and_sandbox_tests;#[path = "tools_direct_mode_routing_tests.rs"]mod direct_mode_routing_tests;+#[path = "tools_metadata_and_sandbox_tests.rs"]+mod metadata_and_sandbox_tests;