Skip to content

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

refactor(composio): import tool scope types from contract module

Steven Enamakel34e7a67e1879
diff --git a/crates/openhuman-core/src/integrations/composio/action_tool.rs b/crates/openhuman-core/src/integrations/composio/action_tool.rs
index 1c4a9ead13..eaf755afa8 100644
--- a/crates/openhuman-core/src/integrations/composio/action_tool.rs
+++ b/crates/openhuman-core/src/integrations/composio/action_tool.rs
@@ -33,7 +33,7 @@ use std::sync::Arc;
use async_trait::async_trait;
use serde_json::Value;
-use super::providers::ToolScope;
+use super::contract::ToolScope;
use super::tools::resolve_action_scope;
use crate::agent::harness::current_sandbox_mode;
use crate::agent::harness::definition::SandboxMode;
diff --git a/crates/openhuman-core/src/integrations/composio/schemas/handlers_identity.rs b/crates/openhuman-core/src/integrations/composio/schemas/handlers_identity.rs
index 59dfde5ae8..b106663892 100644
--- a/crates/openhuman-core/src/integrations/composio/schemas/handlers_identity.rs
+++ b/crates/openhuman-core/src/integrations/composio/schemas/handlers_identity.rs
@@ -6,7 +6,7 @@ use serde_json::{Map, Value};
use crate::config::rpc as config_rpc;
use crate::core::all::ControllerFuture;
-use crate::integrations::composio::{ops, providers};
+use crate::integrations::composio::{contract, ops};
use super::util::{read_required, read_required_non_empty, to_json};
@@ -62,7 +62,7 @@ pub(super) fn handle_get_user_scopes(params: Map<String, Value>) -> ControllerFu
%error,
"[composio:scopes] config load failed, using default pref (read+write)"
);
- providers::UserScopePref::default()
+ contract::UserScopePref::default()
}
};
tracing::debug!(
@@ -93,7 +93,7 @@ pub(super) fn handle_set_user_scopes(params: Map<String, Value>) -> ControllerFu
let read: bool = read_required(&params, "read")?;
let write: bool = read_required(&params, "write")?;
let admin: bool = read_required(&params, "admin")?;
- let pref = providers::UserScopePref { read, write, admin };
+ let pref = contract::UserScopePref { read, write, admin };
tracing::debug!(
method = "composio.set_user_scopes",
toolkit = %toolkit,