Skip to content

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

chore: update import paths for moved modules across multiple files

Steven Enamakel96dcff4d5113
diff --git a/crates/openhuman-core/src/agent/prompts/connected_identities.rs b/crates/openhuman-core/src/agent/prompts/connected_identities.rs
index ddd6d0c6ee..cc57fc7cc6 100644
--- a/crates/openhuman-core/src/agent/prompts/connected_identities.rs
+++ b/crates/openhuman-core/src/agent/prompts/connected_identities.rs
@@ -24,7 +24,7 @@ pub fn render_connected_identities() -> String {
crate::integrations::composio::providers::render_connected_identities_section(&identities)
}
-fn fetch_identities_blocking() -> Vec<tinymemory_api::composio::ConnectedIdentity> {
+fn fetch_identities_blocking() -> Vec<crate::integrations::composio::contract::ConnectedIdentity> {
let Ok(handle) = tokio::runtime::Handle::try_current() else {
return Vec::new();
};
diff --git a/crates/openhuman-core/src/flows/builder_tools/catalog_search.rs b/crates/openhuman-core/src/flows/builder_tools/catalog_search.rs
index 2d789c1747..b5990770c4 100644
--- a/crates/openhuman-core/src/flows/builder_tools/catalog_search.rs
+++ b/crates/openhuman-core/src/flows/builder_tools/catalog_search.rs
@@ -46,7 +46,7 @@ const MAX_CATALOG_RESULTS: usize = 40;
/// in `query` (case-insensitive AND). When `toolkit` is set, only that
/// toolkit is scanned — this is how the builder can search ANY named app
/// (connected or not) rather than only the toolkits already
-/// `tinymemory_api::composio::agent_ready_toolkits`;
+/// `crate::integrations::composio::contract::agent_ready_toolkits`;
/// with no `toolkit` filter, the search is scoped to that agent-ready set (a
/// bare keyword query with no app named would otherwise have to fan out to
/// every toolkit Composio knows about).
@@ -134,7 +134,7 @@ pub(crate) async fn search_catalog(
use crate::flows::tinyflows::caps::fetch_live_toolkit_catalog;
// Contract crate — same item the `memory::sync::composio::providers` shim
// re-exported; see `ListConnectableToolkitsTool::execute` for why (#5560).
- use tinymemory_api::composio::agent_ready_toolkits;
+ use crate::integrations::composio::contract::agent_ready_toolkits;
let terms: Vec<String> = query
.split_whitespace()
diff --git a/crates/openhuman-core/src/flows/builder_tools/connection_reads.rs b/crates/openhuman-core/src/flows/builder_tools/connection_reads.rs
index 16f23dcd7d..1f25959de5 100644
--- a/crates/openhuman-core/src/flows/builder_tools/connection_reads.rs
+++ b/crates/openhuman-core/src/flows/builder_tools/connection_reads.rs
@@ -51,12 +51,12 @@ impl Tool for ListConnectableToolkitsTool {
// The contract crate, not `memory::sync::composio::providers` (#5560).
// That host shim is `pub use tinymemory_core::sync::composio::providers::*`
// and the engine's `providers` module in turn re-exports this function
- // verbatim from `tinymemory_api::composio::scopes` — so the two paths
+ // verbatim from `crate::integrations::composio::contract::scopes` — so the two paths
// name the SAME item and this is a path change with no behaviour delta.
// Naming the contract directly is what lets the shim's caller list
// shrink to the sites that genuinely need the engine's registry and
// curated catalogs.
- use tinymemory_api::composio::agent_ready_toolkits;
+ use crate::integrations::composio::contract::agent_ready_toolkits;
tracing::debug!(target: "flows", "[flows] list_connectable_toolkits: listing toolkits + connected state (read-only) via the memory contract");
let connected = ops::connected_toolkits(&self.config).await;
let toolkits: Vec<Value> = agent_ready_toolkits()
diff --git a/crates/openhuman-core/src/flows/ops/catalog.rs b/crates/openhuman-core/src/flows/ops/catalog.rs
index a735385ca7..e8194b98c2 100644
--- a/crates/openhuman-core/src/flows/ops/catalog.rs
+++ b/crates/openhuman-core/src/flows/ops/catalog.rs
@@ -25,7 +25,7 @@ pub async fn flows_search_tool_catalog(
/// Resolves the toolkit for a *single action* slug, rejecting anything that is
/// not shaped `<TOOLKIT>_<ACTION>`.
///
-/// [`tinymemory_api::composio::toolkit_from_slug`] falls back to the whole
+/// [`crate::integrations::composio::contract::toolkit_from_slug`] falls back to the whole
/// string when there is no `_`, so it answers `Some` for every non-empty input
/// — `toolkit_from_slug("nodashhere") == Some("nodashhere")`. That permissive
/// fall-back is load-bearing for `compute_required_connections`, which maps
@@ -46,7 +46,7 @@ pub(crate) fn toolkit_for_contract_slug(slug: &str) -> Option<String> {
if toolkit_segment.is_empty() || action_segment.is_empty() {
return None;
}
- tinymemory_api::composio::toolkit_from_slug(trimmed)
+ crate::integrations::composio::contract::toolkit_from_slug(trimmed)
}
/// Fetches one Composio action's full contract (secret-free) — the RPC the
diff --git a/crates/openhuman-core/src/flows/ops/connection_ref_gate.rs b/crates/openhuman-core/src/flows/ops/connection_ref_gate.rs
index cd35150ffc..b79099e74c 100644
--- a/crates/openhuman-core/src/flows/ops/connection_ref_gate.rs
+++ b/crates/openhuman-core/src/flows/ops/connection_ref_gate.rs
@@ -91,7 +91,7 @@ pub(super) fn validate_connection_refs_against(
graph: &WorkflowGraph,
connections: Option<&[FlowConnection]>,
) -> Vec<String> {
- use tinymemory_api::composio::toolkit_from_slug;
+ use crate::integrations::composio::contract::toolkit_from_slug;
let mut errors = Vec::new();
for node in &graph.nodes {
diff --git a/crates/openhuman-core/src/flows/ops/connections.rs b/crates/openhuman-core/src/flows/ops/connections.rs
index 9785d90f92..c4ce5ef73c 100644
--- a/crates/openhuman-core/src/flows/ops/connections.rs
+++ b/crates/openhuman-core/src/flows/ops/connections.rs
@@ -119,7 +119,7 @@ pub(super) fn build_flow_connections(
http: Vec<crate::security::credentials::HttpCredentialSummary>,
identities: &[crate::integrations::composio::providers::ConnectedIdentity],
) -> Vec<FlowConnection> {
- use tinymemory_api::composio::normalize_connection_identifier;
+ use crate::integrations::composio::contract::normalize_connection_identifier;
let identity_lookup: std::collections::HashMap<(String, String), &_> = identities
.iter()
@@ -260,7 +260,7 @@ pub(crate) async fn connected_toolkits(config: &Config) -> std::collections::Has
/// `oh:` tools and `http_request` nodes need no Composio connection and are
/// skipped.
pub async fn compute_required_connections(config: &Config, graph: &WorkflowGraph) -> Vec<Value> {
- use tinymemory_api::composio::toolkit_from_slug;
+ use crate::integrations::composio::contract::toolkit_from_slug;
// Collect required toolkits (deduped, order-preserving).
let mut required: Vec<String> = Vec::new();
diff --git a/crates/openhuman-core/src/flows/ops/tool_contract_gate.rs b/crates/openhuman-core/src/flows/ops/tool_contract_gate.rs
index 53d11f5e1f..e7bc745657 100644
--- a/crates/openhuman-core/src/flows/ops/tool_contract_gate.rs
+++ b/crates/openhuman-core/src/flows/ops/tool_contract_gate.rs
@@ -60,7 +60,7 @@ pub(crate) fn toolkit_has_curated_catalog(toolkit: &str) -> bool {
pub(crate) async fn validate_tool_contracts(config: &Config, graph: &WorkflowGraph) -> Vec<String> {
use crate::flows::tinyflows::caps::fetch_live_toolkit_catalog;
use tinyagents_harness::tool::{missing_required_args, unsupported_arg_names};
- use tinymemory_api::composio::toolkit_from_slug;
+ use crate::integrations::composio::contract::toolkit_from_slug;
let mut errors = Vec::new();
for node in &graph.nodes {
diff --git a/crates/openhuman-core/src/flows/ops/wiring_warnings.rs b/crates/openhuman-core/src/flows/ops/wiring_warnings.rs
index e1765cf8d1..aecb87f9da 100644
--- a/crates/openhuman-core/src/flows/ops/wiring_warnings.rs
+++ b/crates/openhuman-core/src/flows/ops/wiring_warnings.rs
@@ -97,7 +97,7 @@ pub(super) async fn graph_output_field_warnings(
// Reading a graph's `=`-bindings is the engine's grammar, not this host's:
// both helpers were a private copy here until the gates moved upstream.
use tinyflows::bindings::{collect_expressions, parse_node_binding};
- use tinymemory_api::composio::toolkit_from_slug;
+ use crate::integrations::composio::contract::toolkit_from_slug;
let mut warnings = Vec::new();
for node in &graph.nodes {
@@ -275,7 +275,7 @@ fn schema_says_path_is_non_array(output_schema: &Value, configured_path: &str) -
/// check against).
async fn graph_split_out_path_warnings(config: &Config, graph: &WorkflowGraph) -> Vec<String> {
use crate::flows::tinyflows::caps::{apply_probe_override, fetch_live_toolkit_catalog};
- use tinymemory_api::composio::toolkit_from_slug;
+ use crate::integrations::composio::contract::toolkit_from_slug;
let mut warnings = Vec::new();
for node in &graph.nodes {
diff --git a/crates/openhuman-core/src/flows/ops_approval_manifest_and_catalog_tests.rs b/crates/openhuman-core/src/flows/ops_approval_manifest_and_catalog_tests.rs
index 12d6bb50de..2df5cb5284 100644
--- a/crates/openhuman-core/src/flows/ops_approval_manifest_and_catalog_tests.rs
+++ b/crates/openhuman-core/src/flows/ops_approval_manifest_and_catalog_tests.rs
@@ -610,7 +610,7 @@ fn toolkit_for_contract_slug_accepts_real_action_slugs() {
// The shared helper stays permissive for its other callers — this stricter
// rule is this controller's, not `toolkit_from_slug`'s.
assert_eq!(
- tinymemory_api::composio::toolkit_from_slug("nodashhere").as_deref(),
+ crate::integrations::composio::contract::toolkit_from_slug("nodashhere").as_deref(),
Some("nodashhere")
);
assert_eq!(toolkit_for_contract_slug("nodashhere"), None);
diff --git a/crates/openhuman-core/src/integrations/composio/identity_store.rs b/crates/openhuman-core/src/integrations/composio/identity_store.rs
index a927091f73..70f2f39ce8 100644
--- a/crates/openhuman-core/src/integrations/composio/identity_store.rs
+++ b/crates/openhuman-core/src/integrations/composio/identity_store.rs
@@ -22,7 +22,7 @@
use crate::config::Config;
use crate::memory::api::provider::FacetType;
-use tinymemory_api::composio::{
+use crate::integrations::composio::contract::{
canonicalize, normalize_connection_identifier, ConnectedIdentity, IdentityKind,
ProviderUserProfile,
};
diff --git a/crates/openhuman-core/src/integrations/composio/ops/connections.rs b/crates/openhuman-core/src/integrations/composio/ops/connections.rs
index 6e346be940..68885e0eea 100644
--- a/crates/openhuman-core/src/integrations/composio/ops/connections.rs
+++ b/crates/openhuman-core/src/integrations/composio/ops/connections.rs
@@ -21,7 +21,7 @@ use super::error_utils::{
COMPOSIO_NO_SESSION,
};
use super::memory_cleanup::composio_memory_targets_for_connection;
-use tinymemory_api::composio::normalize_connection_identifier;
+use crate::integrations::composio::contract::normalize_connection_identifier;
pub async fn composio_list_connections(
config: &Config,
diff --git a/crates/openhuman-core/src/integrations/composio/ops/memory_cleanup.rs b/crates/openhuman-core/src/integrations/composio/ops/memory_cleanup.rs
index 15c2ef3be0..7aa82b5d93 100644
--- a/crates/openhuman-core/src/integrations/composio/ops/memory_cleanup.rs
+++ b/crates/openhuman-core/src/integrations/composio/ops/memory_cleanup.rs
@@ -20,7 +20,7 @@ use tinymemory_api::provider::ForgetSelector;
/// field, in the same order, under the same `#[serde(default)]`s. Naming the
/// contract's is what makes "the shape this reads is the shape that was
/// written" a fact about the build rather than about two files agreeing.
-use tinymemory_api::composio::{SyncState, STATE_NAMESPACE as SYNC_STATE_NAMESPACE};
+use crate::integrations::composio::contract::{SyncState, STATE_NAMESPACE as SYNC_STATE_NAMESPACE};
/// One thing a connection delete has to remove from memory.
///
diff --git a/crates/openhuman-core/src/integrations/composio/ops_direct_mode_and_error_classification_tests.rs b/crates/openhuman-core/src/integrations/composio/ops_direct_mode_and_error_classification_tests.rs
index f8c825de2a..7ea5bd71f7 100644
--- a/crates/openhuman-core/src/integrations/composio/ops_direct_mode_and_error_classification_tests.rs
+++ b/crates/openhuman-core/src/integrations/composio/ops_direct_mode_and_error_classification_tests.rs
@@ -491,7 +491,7 @@ async fn enrich_leaves_unmatched_connection_unchanged() {
// Connection whose id has no cached profile row is returned with all
// identity fields as None — the UI falls back to "toolkit · connection_id".
use crate::integrations::composio::identity_store::persist_provider_profile;
- use tinymemory_api::composio::ProviderUserProfile;
+ use crate::integrations::composio::contract::ProviderUserProfile;
let tmp = tempfile::tempdir().unwrap();
let config = test_config(&tmp);
diff --git a/crates/openhuman-core/src/integrations/composio/profile_md.rs b/crates/openhuman-core/src/integrations/composio/profile_md.rs
index 904fb31e7c..dfbde21ba5 100644
--- a/crates/openhuman-core/src/integrations/composio/profile_md.rs
+++ b/crates/openhuman-core/src/integrations/composio/profile_md.rs
@@ -8,7 +8,7 @@
//! v1.13.4 removed it along with the rest of the in-process Composio
//! pipeline). Nothing here ever depended on that pipeline — it is pure text
//! manipulation over a host-owned file and [`ProviderUserProfile`], which is
-//! contract vocabulary (`tinymemory_api::composio`) rather than engine state
+//! contract vocabulary (`crate::integrations::composio::contract`) rather than engine state
//! — so it moves to host code unchanged rather than needing a redesign.
//!
//! ## Block convention
diff --git a/crates/openhuman-core/src/integrations/composio/providers/mod.rs b/crates/openhuman-core/src/integrations/composio/providers/mod.rs
index a54c583434..b4eb12cf56 100644
--- a/crates/openhuman-core/src/integrations/composio/providers/mod.rs
+++ b/crates/openhuman-core/src/integrations/composio/providers/mod.rs
@@ -33,19 +33,19 @@
//! an engine provider.
// ── The contract half ───────────────────────────────────────────────────────
-pub use tinymemory_api::composio::catalogs::{
+pub use crate::integrations::composio::contract::catalogs::{
catalog_for_toolkit, curated_scope_for, has_native_provider, is_action_visible_with_pref,
native_provider_sync_interval_secs, sync_interval_env_var, toolkit_description,
toolkit_has_scope, CAPABILITY_TOOLKITS, NATIVE_PROVIDERS,
};
-pub use tinymemory_api::composio::scopes::{
+pub use crate::integrations::composio::contract::scopes::{
agent_ready_toolkits, classify_unknown, find_curated, toolkit_from_slug, CuratedTool,
ToolScope, UserScopePref,
};
-pub use tinymemory_api::composio::tasks::{
+pub use crate::integrations::composio::contract::tasks::{
GithubFetchMode, NormalizedTask, TaskContainer, TaskFetchFilter, TaskKind,
};
-pub use tinymemory_api::composio::{
+pub use crate::integrations::composio::contract::{
render_connected_identities_section, ConnectedIdentity, ProviderUserProfile, SyncOutcome,
SyncReason,
};
diff --git a/crates/openhuman-core/src/integrations/task_sources/pipeline.rs b/crates/openhuman-core/src/integrations/task_sources/pipeline.rs
index c829db9887..565aaa128b 100644
--- a/crates/openhuman-core/src/integrations/task_sources/pipeline.rs
+++ b/crates/openhuman-core/src/integrations/task_sources/pipeline.rs
@@ -112,8 +112,8 @@ pub async fn run_source_once(
/// tasks.
fn fetch_tasks_unavailable(
source: &TaskSource,
- _filter: &tinymemory_api::composio::TaskFetchFilter,
-) -> Result<Vec<tinymemory_api::composio::NormalizedTask>, String> {
+ _filter: &crate::integrations::composio::contract::TaskFetchFilter,
+) -> Result<Vec<crate::integrations::composio::contract::NormalizedTask>, String> {
Err(format!(
"task_sources fetch for toolkit '{}' is unavailable: tinymemory v1.13.4 deleted \
ComposioProvider::fetch_tasks with no replacement, and the tinyconnectors module \
diff --git a/crates/openhuman-core/src/memory/read_rpc/admin.rs b/crates/openhuman-core/src/memory/read_rpc/admin.rs
index c996f5ab14..c2cb4655ae 100644
--- a/crates/openhuman-core/src/memory/read_rpc/admin.rs
+++ b/crates/openhuman-core/src/memory/read_rpc/admin.rs
@@ -14,7 +14,7 @@ use crate::memory::api::provider::ForgetSelector;
// constant rather than copying the literal is what keeps that impossible —
// and it is the same constant the driver writing those rows reads.
use tinymemory_api::chunks::SourceKind;
-use tinymemory_api::composio::KV_NAMESPACE;
+use crate::integrations::composio::contract::KV_NAMESPACE;
use tinymemory_api::provider::types::BackfillTreesRequest;
use super::types::{