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: files changed src/openhuman/integrations/composio/ops/connections.rs,src/openhuman/integratio\n\nAuto-committed-on: dragonfly\n
Steven Enamakel516c3ea1a201
diff --git a/src/openhuman/integrations/composio/ops/connections.rs b/src/openhuman/integrations/composio/ops/connections.rsindex 41bd625a88..e79c8aca26 100644--- a/src/openhuman/integrations/composio/ops/connections.rs+++ b/src/openhuman/integrations/composio/ops/connections.rs@@ -17,9 +17,7 @@ use super::super::types::{ComposioAuthorizeRequest, ComposioAuthorizeResponse, ComposioConnectionsResponse,ComposioDeleteConnectionRequest, ComposioDeleteResponse,};-use super::error_utils::{- direct_mode_without_key, report_composio_op_error, OpResult,-};+use super::error_utils::{direct_mode_without_key, report_composio_op_error, OpResult};use super::memory_cleanup::composio_memory_targets_for_connection;pub async fn composio_list_connections(@@ -242,15 +240,16 @@ pub(super) async fn resolve_toolkit_for_connection(connection_id: &str,) -> OpResult<String> {tracing::debug!(connection_id = %connection_id, "[composio] resolve_toolkit_for_connection");- let resp = connectors::call_bare::<ComposioConnectionsResponse>(- config,- methods::LIST_CONNECTIONS,- )- .await- .map_err(|error| {- report_composio_op_error("resolve_toolkit_for_connection", &anyhow::anyhow!("{error}"));- format!("[composio] list_connections failed: {error}")- })?;+ let resp =+ connectors::call_bare::<ComposioConnectionsResponse>(config, methods::LIST_CONNECTIONS)+ .await+ .map_err(|error| {+ report_composio_op_error(+ "resolve_toolkit_for_connection",+ &anyhow::anyhow!("{error}"),+ );+ format!("[composio] list_connections failed: {error}")+ })?;let conn = resp.connections.into_iter()diff --git a/src/openhuman/integrations/composio/ops/providers_ops.rs b/src/openhuman/integrations/composio/ops/providers_ops.rsindex 0bfabd2528..eb67664f78 100644--- a/src/openhuman/integrations/composio/ops/providers_ops.rs+++ b/src/openhuman/integrations/composio/ops/providers_ops.rs@@ -20,11 +20,11 @@ use super::super::providers::{ProviderUserProfile, SyncOutcome, SyncReason};use super::super::types::{reencode, ComposioRefreshIdentitiesResponse, ComposioUserProfile, ComposioUserProfileRequest,};+use super::connections::resolve_toolkit_for_connection;+use super::error_utils::{report_composio_op_error, OpResult};use crate::openhuman::memory::api::provider::types::SourceItem;use crate::openhuman::memory::api::types::MemoryTaint;use tinyconnectors_bus::records::{ConnectorSyncRequest, ConnectorSyncResponse};-use super::connections::resolve_toolkit_for_connection;-use super::error_utils::{report_composio_op_error, OpResult};/// The source kind every connector record is ingested under.///diff --git a/src/openhuman/integrations/composio/ops_tests.rs b/src/openhuman/integrations/composio/ops_tests.rsindex 3d0d2f407d..3a4909e573 100644--- a/src/openhuman/integrations/composio/ops_tests.rs+++ b/src/openhuman/integrations/composio/ops_tests.rs@@ -28,7 +28,6 @@ fn parse_sync_reason_rejects_unknown_values() {assert!(parse_sync_reason(Some("")).is_err());}-/// Serializes every test that reaches the connector module.////// The module is loaded once per process and holds exactly one route, but eachdiff --git a/src/openhuman/modules/connectors.rs b/src/openhuman/modules/connectors.rsindex cfff7ae164..058f7ae599 100644--- a/src/openhuman/modules/connectors.rs+++ b/src/openhuman/modules/connectors.rs@@ -150,8 +150,8 @@ fn fingerprint(route: &serde_json::Value) -> u64 {/// user's session no longer owns, and "your account is broken" is a bad way to/// tell someone they are signed out.async fn ensure_routed(config: &Config, proxy: &Proxy) -> Result<(), String> {- let mut route = module_config(config)- .unwrap_or_else(|_| serde_json::json!({ "route": "none" }));+ let mut route =+ module_config(config).unwrap_or_else(|_| serde_json::json!({ "route": "none" }));// `state_dir` is load-time only: the trigger archive opens once, and moving// it later would strand the history already written there.if let Some(object) = route.as_object_mut() {@@ -159,7 +159,11 @@ async fn ensure_routed(config: &Config, proxy: &Proxy) -> Result<(), String> {}let current = fingerprint(&route);- if *last_route().lock().unwrap_or_else(std::sync::PoisonError::into_inner) == Some(current) {+ if *last_route()+ .lock()+ .unwrap_or_else(std::sync::PoisonError::into_inner)+ == Some(current)+ {return Ok(());}@@ -170,7 +174,9 @@ async fn ensure_routed(config: &Config, proxy: &Proxy) -> Result<(), String> {// Recorded only after the module accepted it, so a failed reconfiguration// is retried on the next call rather than remembered as done.- *last_route().lock().unwrap_or_else(std::sync::PoisonError::into_inner) = Some(current);+ *last_route()+ .lock()+ .unwrap_or_else(std::sync::PoisonError::into_inner) = Some(current);Ok(())}