Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(composio): replace internal module paths with tinyconnectors crate

Steven Enamakela82bc572b2b9
diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs b/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs
index d0945daee3..aad58e0cff 100644
--- a/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs
+++ b/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs
@@ -424,7 +424,7 @@ pub(crate) async fn preflight_composio_args(
// (1) Static rules — the same validation the Composio dispatch runs, hoisted
// ahead of it. Only the `Err` matters here; the normalized arguments it
// returns are recomputed (and used) at dispatch.
- if let Err(e) = crate::integrations::composio::execute_prepare::prepare_execute_arguments(
+ if let Err(e) = tinyconnectors::execute::prepare_execute_arguments(
slug,
Some(args.clone()),
) {
diff --git a/crates/openhuman-core/src/integrations/composio/action_tool.rs b/crates/openhuman-core/src/integrations/composio/action_tool.rs
index 28c28715c6..73152b78b0 100644
--- a/crates/openhuman-core/src/integrations/composio/action_tool.rs
+++ b/crates/openhuman-core/src/integrations/composio/action_tool.rs
@@ -347,7 +347,7 @@ impl ComposioActionTool {
iana = %iana,
"[composio][per-action] applying calendar query defaults pre-dispatch"
);
- let args = super::googlecalendar_args::apply_calendar_query_defaults(
+ let args = tinyconnectors::execute::apply_calendar_query_defaults(
&self.action_name,
Some(args),
&iana,
diff --git a/crates/openhuman-core/src/integrations/composio/tools/execute.rs b/crates/openhuman-core/src/integrations/composio/tools/execute.rs
index 2c7d360844..f40d27aec4 100644
--- a/crates/openhuman-core/src/integrations/composio/tools/execute.rs
+++ b/crates/openhuman-core/src/integrations/composio/tools/execute.rs
@@ -236,7 +236,7 @@ impl ComposioExecuteTool {
iana = %iana,
"[composio][dispatcher] applying calendar query defaults pre-dispatch"
);
- let arguments = super::super::googlecalendar_args::apply_calendar_query_defaults(
+ let arguments = tinyconnectors::execute::apply_calendar_query_defaults(
&tool, arguments, &iana,
);
@@ -250,7 +250,7 @@ impl ComposioExecuteTool {
- chrono::Duration::from_std(w).unwrap_or_else(|_| chrono::Duration::zero())
});
let arguments = match task_window_since {
- Some(since) => super::super::task_window::apply_window_args(&tool, arguments, since),
+ Some(since) => tinyconnectors::execute::apply_window_args(&tool, arguments, since),
None => arguments,
};
@@ -290,7 +290,7 @@ impl ComposioExecuteTool {
// slug is a curated task-fetch action. Runs before the
// markdown/JSON body decision so the agent reads filtered data.
let resp = match task_window_since {
- Some(since) => super::super::task_window::filter_response(&tool, resp, since),
+ Some(since) => tinyconnectors::execute::filter_response(&tool, resp, since),
None => resp,
};
tracing::info!(
diff --git a/crates/openhuman-core/src/memory/sync/composio/bus/trigger_subscriber.rs b/crates/openhuman-core/src/memory/sync/composio/bus/trigger_subscriber.rs
index 0bdcfc452a..7e44ae9022 100644
--- a/crates/openhuman-core/src/memory/sync/composio/bus/trigger_subscriber.rs
+++ b/crates/openhuman-core/src/memory/sync/composio/bus/trigger_subscriber.rs
@@ -103,7 +103,7 @@ impl EventHandler<DomainEvent> for ComposioTriggerSubscriber {
let payload_owned = payload.clone();
match tokio::task::spawn_blocking(move || {
- store.record_trigger(
+ store.record(
&toolkit_owned,
&trigger_owned,
&metadata_id_owned,