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
refactor(composio): import provider surface from contract module
Steven Enamakel7da2fefa032d
diff --git a/crates/openhuman-core/src/agent/prompts/connected_identities.rs b/crates/openhuman-core/src/agent/prompts/connected_identities.rsindex fb44534c66..d89308697a 100644--- a/crates/openhuman-core/src/agent/prompts/connected_identities.rs+++ b/crates/openhuman-core/src/agent/prompts/connected_identities.rs@@ -19,7 +19,7 @@/// empty section rather than panicking or blocking a prompt on a memory read.pub fn render_connected_identities() -> String {let identities = fetch_identities_blocking();- crate::integrations::composio::providers::render_connected_identities_section(&identities)+ crate::integrations::composio::contract::render_connected_identities_section(&identities)}fn fetch_identities_blocking() -> Vec<crate::integrations::composio::contract::ConnectedIdentity> {diff --git a/crates/openhuman-core/src/agent/registry/mod.rs b/crates/openhuman-core/src/agent/registry/mod.rsindex 30ab345732..5fdaa491c7 100644--- a/crates/openhuman-core/src/agent/registry/mod.rs+++ b/crates/openhuman-core/src/agent/registry/mod.rs@@ -10,7 +10,6 @@ mod defaults;mod ops;mod rpc;mod schemas;-pub mod tools;pub mod types;pub use defaults::{default_agents, definition_from_registry_entry};diff --git a/crates/openhuman-core/src/agent/registry/tools.rs b/crates/openhuman-core/src/agent/registry/tools.rsdeleted file mode 100644index 0ea570a210..0000000000--- a/crates/openhuman-core/src/agent/registry/tools.rs+++ /dev/null@@ -1,4 +0,0 @@-//! Backwards-compatible re-exports for tools now owned by-//! [`crate::agent::orchestration`].--pub use crate::agent::orchestration::tools::*;diff --git a/crates/openhuman-core/src/agent/todos/mod.rs b/crates/openhuman-core/src/agent/todos/mod.rsindex 226f98a7eb..7d3d7fe314 100644--- a/crates/openhuman-core/src/agent/todos/mod.rs+++ b/crates/openhuman-core/src/agent/todos/mod.rs@@ -10,4 +10,3 @@//! the agent transcript.pub mod ops;-pub mod types;diff --git a/crates/openhuman-core/src/agent/todos/ops.rs b/crates/openhuman-core/src/agent/todos/ops.rsindex bb3457cb1b..1c9bab15dd 100644--- a/crates/openhuman-core/src/agent/todos/ops.rs+++ b/crates/openhuman-core/src/agent/todos/ops.rs@@ -13,7 +13,7 @@ use tinyagents_graph::todos::store as todos;use tinyagents_harness::store::Store;use crate::agent::tinyagents::todos::{session_todos_store, SCRATCH_SESSION_ID};-pub use crate::agent::todos::types::{TodoItem, TodoStatus};+pub use tinyagents_graph::todos::{TodoItem, TodoStatus};pub use tinyagents_graph::todos::TodosSnapshot;#[derive(Debug, Clone, PartialEq, Eq)]diff --git a/crates/openhuman-core/src/agent/todos/types.rs b/crates/openhuman-core/src/agent/todos/types.rsdeleted file mode 100644index 766bfa46b9..0000000000--- a/crates/openhuman-core/src/agent/todos/types.rs+++ /dev/null@@ -1,3 +0,0 @@-//! TinyAgents todo types, re-exported for OpenHuman callers.--pub use tinyagents_graph::todos::{TodoItem, TodoStatus};diff --git a/crates/openhuman-core/src/channels/bus.rs b/crates/openhuman-core/src/channels/bus.rsindex 2a02e1c0b5..bdbd2b62ee 100644--- a/crates/openhuman-core/src/channels/bus.rs+++ b/crates/openhuman-core/src/channels/bus.rs@@ -6,11 +6,10 @@mod delivery;mod subscriber;-mod thread_id;pub use subscriber::ChannelInboundSubscriber;-pub(crate) use thread_id::derive_inbound_thread_id;+pub(crate) use tinychannels::channel::derive_inbound_thread_id;#[cfg(test)]#[path = "bus_inbound_thread_id_tests_tests.rs"]diff --git a/crates/openhuman-core/src/channels/bus/subscriber.rs b/crates/openhuman-core/src/channels/bus/subscriber.rsindex 307e15bf19..babcabb282 100644--- a/crates/openhuman-core/src/channels/bus/subscriber.rs+++ b/crates/openhuman-core/src/channels/bus/subscriber.rs@@ -7,7 +7,7 @@//! [`BackendProgressiveSender`].use super::delivery::BackendProgressiveSender;-use super::thread_id::{derive_inbound_client_id, derive_inbound_thread_id};+use tinychannels::channel::{derive_inbound_client_id, derive_inbound_thread_id};use crate::core::events::DomainEvent;use async_trait::async_trait;use std::sync::Arc;diff --git a/crates/openhuman-core/src/channels/bus/thread_id.rs b/crates/openhuman-core/src/channels/bus/thread_id.rsdeleted file mode 100644index 8e0e7f58a2..0000000000--- a/crates/openhuman-core/src/channels/bus/thread_id.rs+++ /dev/null@@ -1,3 +0,0 @@-//! Compatibility re-exports for the TinyChannels inbound identity contract.--pub(crate) use tinychannels::channel::{derive_inbound_client_id, derive_inbound_thread_id};diff --git a/crates/openhuman-core/src/channels/controllers/definitions.rs b/crates/openhuman-core/src/channels/controllers/definitions.rsdeleted file mode 100644index 0757c1dea3..0000000000--- a/crates/openhuman-core/src/channels/controllers/definitions.rs+++ /dev/null@@ -1,4 +0,0 @@-pub use tinychannels_bus::controllers::{- all_channel_definitions, find_channel_definition, AuthModeSpec, ChannelAuthMode,- ChannelCapability, ChannelDefinition, FieldRequirement,-};diff --git a/crates/openhuman-core/src/channels/controllers/mod.rs b/crates/openhuman-core/src/channels/controllers/mod.rsindex 63ef974091..ae26899b10 100644--- a/crates/openhuman-core/src/channels/controllers/mod.rs+++ b/crates/openhuman-core/src/channels/controllers/mod.rs@@ -1,13 +1,12 @@//! Channel definitions, connection management, and RPC controllers.mod backend;-mod definitions;mod ops;mod schemas;pub use backend::OpenHumanChannelBackend;-pub use definitions::{+pub use tinychannels_bus::controllers::{all_channel_definitions, find_channel_definition, AuthModeSpec, ChannelAuthMode,ChannelCapability, ChannelDefinition, FieldRequirement,};diff --git a/crates/openhuman-core/src/channels/controllers/ops/connect/connect_channel.rs b/crates/openhuman-core/src/channels/controllers/ops/connect/connect_channel.rsindex 2c960f7a62..1930dbdce9 100644--- a/crates/openhuman-core/src/channels/controllers/ops/connect/connect_channel.rs+++ b/crates/openhuman-core/src/channels/controllers/ops/connect/connect_channel.rs@@ -1,6 +1,6 @@//! Module-owned connection preparation, followed by host credential custody//! and configuration persistence.-use super::super::types::ChannelConnectionResult;+use tinychannels_bus::controllers::ChannelConnectionResult;use super::shared::credential_provider;use crate::config::Config;use crate::core::Outcome;diff --git a/crates/openhuman-core/src/channels/controllers/ops/connect/disconnect.rs b/crates/openhuman-core/src/channels/controllers/ops/connect/disconnect.rsindex 38ffb62f0f..1107f1ecea 100644--- a/crates/openhuman-core/src/channels/controllers/ops/connect/disconnect.rs+++ b/crates/openhuman-core/src/channels/controllers/ops/connect/disconnect.rs@@ -7,7 +7,7 @@ use crate::config::Config;use crate::core::Outcome;use crate::security::credentials;-use super::super::super::definitions::{find_channel_definition, ChannelAuthMode};+use tinychannels_bus::controllers::{find_channel_definition, ChannelAuthMode};use super::memory::clear_channel_memory;use super::shared::credential_provider;diff --git a/crates/openhuman-core/src/channels/controllers/ops/connect/status.rs b/crates/openhuman-core/src/channels/controllers/ops/connect/status.rsindex c8b7cb09df..19db5dcd7d 100644--- a/crates/openhuman-core/src/channels/controllers/ops/connect/status.rs+++ b/crates/openhuman-core/src/channels/controllers/ops/connect/status.rs@@ -7,8 +7,8 @@ use crate::config::Config;use crate::core::Outcome;use crate::security::credentials;-use super::super::super::definitions::{all_channel_definitions, find_channel_definition};-use super::super::types::ChannelStatusEntry;+use tinychannels_bus::controllers::{all_channel_definitions, find_channel_definition};+use tinychannels_bus::controllers::ChannelStatusEntry;use super::shared::{channel_config_connected, credential_provider, merge_listener_health};/// Get connection status for one or all channels.diff --git a/crates/openhuman-core/src/channels/controllers/ops/connect/test_channel.rs b/crates/openhuman-core/src/channels/controllers/ops/connect/test_channel.rsindex ad53fc831e..f8bf1ba375 100644--- a/crates/openhuman-core/src/channels/controllers/ops/connect/test_channel.rs+++ b/crates/openhuman-core/src/channels/controllers/ops/connect/test_channel.rs@@ -7,8 +7,8 @@ use crate::config::Config;use crate::core::Outcome;use crate::modules::client::{ModuleCallError, ModuleClient};-use super::super::super::definitions::ChannelAuthMode;-use super::super::types::ChannelTestResult;+use tinychannels_bus::controllers::ChannelAuthMode;+use tinychannels_bus::controllers::ChannelTestResult;/// Validate credentials inside TinyChannels, including native IMAP verification/// for email. No credentials or configuration are persisted.diff --git a/crates/openhuman-core/src/channels/controllers/ops/discord.rs b/crates/openhuman-core/src/channels/controllers/ops/discord.rsindex 9c14c40705..beaa1b6e4e 100644--- a/crates/openhuman-core/src/channels/controllers/ops/discord.rs+++ b/crates/openhuman-core/src/channels/controllers/ops/discord.rs@@ -15,7 +15,7 @@ use tinychannels_bus::{ChannelControllerRequest,};-use super::super::definitions::ChannelAuthMode;+use tinychannels_bus::controllers::ChannelAuthMode;use super::connect::shared::credential_provider;// ---------------------------------------------------------------------------diff --git a/crates/openhuman-core/src/channels/controllers/ops/mod.rs b/crates/openhuman-core/src/channels/controllers/ops/mod.rsindex 7e86c66711..3d5b5e35b9 100644--- a/crates/openhuman-core/src/channels/controllers/ops/mod.rs+++ b/crates/openhuman-core/src/channels/controllers/ops/mod.rs@@ -3,7 +3,6 @@mod connect;mod discord;mod messaging;-mod types;// Re-export types needed by tests.#[cfg(test)]diff --git a/crates/openhuman-core/src/channels/controllers/ops/types.rs b/crates/openhuman-core/src/channels/controllers/ops/types.rsdeleted file mode 100644index f36b6ed07d..0000000000--- a/crates/openhuman-core/src/channels/controllers/ops/types.rs+++ /dev/null@@ -1,10 +0,0 @@-#![allow(unused_imports)]--pub use tinychannels_bus::controllers::{- ChannelAccountSnapshot, ChannelAccountState, ChannelConnectionResult, ChannelLastDisconnect,- ChannelReactionResult, ChannelSendMessageResult, ChannelStatusEntry, ChannelTestResult,- ChannelThreadEntry, ChannelThreadListResult, ChannelThreadResult, DiscordChannelEntry,- DiscordChannelListResult, DiscordGuildEntry, DiscordGuildListResult, DiscordLinkCheckResult,- DiscordLinkStartResult, DiscordPermissionCheckResult, TelegramLoginCheckResult,- TelegramLoginStartResult,-};diff --git a/crates/openhuman-core/src/channels/controllers/ops_tests.rs b/crates/openhuman-core/src/channels/controllers/ops_tests.rsindex 19701c9a93..17dcb4dfb2 100644--- a/crates/openhuman-core/src/channels/controllers/ops_tests.rs+++ b/crates/openhuman-core/src/channels/controllers/ops_tests.rs@@ -1,4 +1,4 @@-use super::types::ChannelConnectionResult;+use tinychannels_bus::controllers::ChannelConnectionResult;use super::*;use crate::config::schema::{DiscordConfig, IMessageConfig};use crate::core::Outcome;diff --git a/crates/openhuman-core/src/channels/controllers/schemas.rs b/crates/openhuman-core/src/channels/controllers/schemas.rsindex 8aa4996805..76077351ee 100644--- a/crates/openhuman-core/src/channels/controllers/schemas.rs+++ b/crates/openhuman-core/src/channels/controllers/schemas.rs@@ -11,7 +11,7 @@ use crate::core::ControllerSchema;use crate::core::Outcome;use super::backend::OpenHumanChannelBackend;-use super::definitions::ChannelAuthMode;+use tinychannels_bus::controllers::ChannelAuthMode;use crate::channels::contract_schema::from_channel_controller_schema;use crate::security::credentials::channel_credential_provider;use tinychannels::{ChannelManager, ChannelsConfig};diff --git a/crates/openhuman-core/src/flows/ops/connections.rs b/crates/openhuman-core/src/flows/ops/connections.rsindex c4ce5ef73c..6bd0e95856 100644--- a/crates/openhuman-core/src/flows/ops/connections.rs+++ b/crates/openhuman-core/src/flows/ops/connections.rs@@ -117,7 +117,7 @@ pub async fn flows_list_connections(pub(super) fn build_flow_connections(composio: Vec<crate::integrations::composio::ComposioConnection>,http: Vec<crate::security::credentials::HttpCredentialSummary>,- identities: &[crate::integrations::composio::providers::ConnectedIdentity],+ identities: &[crate::integrations::composio::contract::ConnectedIdentity],) -> Vec<FlowConnection> {use crate::integrations::composio::contract::normalize_connection_identifier;diff --git a/crates/openhuman-core/src/flows/ops/tool_contract_gate.rs b/crates/openhuman-core/src/flows/ops/tool_contract_gate.rsindex 316c354e38..a1c798bfdb 100644--- a/crates/openhuman-core/src/flows/ops/tool_contract_gate.rs+++ b/crates/openhuman-core/src/flows/ops/tool_contract_gate.rs@@ -53,7 +53,7 @@ pub(crate) fn toolkit_has_curated_catalog(toolkit: &str) -> bool {// to `catalog_for_toolkit(toolkit)` for every toolkit that had one, and// tinymemory v1.13.4 deleted the registry outright, so the hop is gone// rather than merely unnecessary.- use crate::integrations::composio::providers::catalog_for_toolkit;+ use crate::integrations::composio::contract::catalog_for_toolkit;catalog_for_toolkit(toolkit).is_some()}diff --git a/crates/openhuman-core/src/flows/ops_validate_warnings_and_connections_tests.rs b/crates/openhuman-core/src/flows/ops_validate_warnings_and_connections_tests.rsindex af75c34b5a..4c8de3580d 100644--- a/crates/openhuman-core/src/flows/ops_validate_warnings_and_connections_tests.rs+++ b/crates/openhuman-core/src/flows/ops_validate_warnings_and_connections_tests.rs@@ -418,7 +418,7 @@ fn build_flow_connections_never_carries_secret_fields() {#[test]fn build_flow_connections_attaches_platform_user_id_from_a_seeded_identity() {- use crate::integrations::composio::providers::ConnectedIdentity;+ use crate::integrations::composio::contract::ConnectedIdentity;let composio = vec![composio_conn("ca_slack1", "slack", "ACTIVE", None)];let identities = vec![ConnectedIdentity {@@ -435,7 +435,7 @@ fn build_flow_connections_attaches_platform_user_id_from_a_seeded_identity() {#[test]fn build_flow_connections_platform_user_id_is_none_without_a_matching_identity() {- use crate::integrations::composio::providers::ConnectedIdentity;+ use crate::integrations::composio::contract::ConnectedIdentity;// No identities at all.let composio = vec![composio_conn("ca_slack1", "slack", "ACTIVE", None)];diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs b/crates/openhuman-core/src/flows/tinyflows/caps/ops.rsindex 9e57be3247..1f6479fd0b 100644--- a/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs+++ b/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs@@ -145,7 +145,7 @@ async fn flow_tool_allowed(connected_toolkits: Option<&[String]>,) -> bool {use crate::integrations::composio::ops::load_user_scope_pref;- use crate::integrations::composio::providers::{+ use crate::integrations::composio::contract::{catalog_for_toolkit, classify_unknown, find_curated, toolkit_from_slug,};@@ -214,7 +214,7 @@ async fn flow_tool_allowed(/// offline (a registry lookup) so the common cataloged-toolkit path never pays/// for a connected-set fetch.fn slug_needs_connected_set(slug: &str) -> bool {- use crate::integrations::composio::providers::{catalog_for_toolkit, toolkit_from_slug};+ use crate::integrations::composio::contract::{catalog_for_toolkit, toolkit_from_slug};match toolkit_from_slug(slug) {Some(toolkit) => catalog_for_toolkit(&toolkit).is_none(),None => false,@@ -264,7 +264,7 @@ async fn connected_toolkit_slugs(config: &Config) -> Option<Vec<String>> {/// [`CommandClass`] the autonomy-tier gate ([`enforce_node_tier_gate`])/// evaluates it under.///-/// Reuses [`curated_scope_for`](crate::integrations::composio::providers::curated_scope_for),+/// Reuses [`curated_scope_for`](crate::integrations::composio::contract::curated_scope_for),/// the same catalog walk `composio::ops`'s `gated_tools` hints use — a/// registered native provider's `curated_tools()` first, then the static/// `catalog_for_toolkit` fallback. **Fail-safe by construction:** only a@@ -277,7 +277,7 @@ async fn connected_toolkit_slugs(config: &Config) -> Option<Vec<String>> {/// (prompts under Supervised/Full, blocks under ReadOnly).////// Deliberately does **not** fall back to-/// [`classify_unknown`](crate::integrations::composio::providers::classify_unknown)+/// [`classify_unknown`](crate::integrations::composio::contract::classify_unknown)/// for uncurated slugs: that heuristic is tuned for the *curation*/// allowlist (`flow_tool_allowed`'s Path B — "is this slug even visible to/// the agent"), not for deciding whether a real side-effecting call skips@@ -288,7 +288,7 @@ async fn connected_toolkit_slugs(config: &Config) -> Option<Vec<String>> {/// from what actually gates (a parallel re-implementation would list/// permissions that never prompt, or miss ones that do).pub(crate) async fn classify_composio_action_for_tier(slug: &str) -> CommandClass {- use crate::integrations::composio::providers::{curated_scope_for, ToolScope};+ use crate::integrations::composio::contract::{curated_scope_for, ToolScope};match curated_scope_for(slug) {Some(ToolScope::Read) => CommandClass::Read,@@ -508,7 +508,7 @@ pub(crate) fn reject_unsuccessful_composio_response(/// rather than a false "Completed".pub(crate) fn reject_failed_native_tool_result(slug: &str,- result: &crate::skills::types::ToolResult,+ result: &tinytools::ToolResult,) -> Result<()> {if !result.is_error {return Ok(());@@ -542,8 +542,8 @@ pub(crate) fn reject_failed_native_tool_result(/// binds with the same `=nodes.<id>.item.json.<field>` shape used everywhere/// else. Anything else (plain text, or mixed/multiple blocks) collapses to/// `{ "text": <output()> }` so there is always a predictable field to bind.-pub(crate) fn native_tool_payload(result: &crate::skills::types::ToolResult) -> Value {- use crate::skills::types::ToolContent;+pub(crate) fn native_tool_payload(result: &tinytools::ToolResult) -> Value {+ use tinytools::ToolContent;match result.content.as_slice() {[ToolContent::Json { data }] => data.clone(),_ => json!({ "text": result.output() }),diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/ops_tests.rs b/crates/openhuman-core/src/flows/tinyflows/caps/ops_tests.rsindex d3e7fe801b..90e861f9a7 100644--- a/crates/openhuman-core/src/flows/tinyflows/caps/ops_tests.rs+++ b/crates/openhuman-core/src/flows/tinyflows/caps/ops_tests.rs@@ -1,7 +1,7 @@use super::*;use crate::agent::prompts::types::IntegrationConnection;use crate::integrations::composio::{ComposioExecuteResponse, ConnectedIntegration};-use crate::skills::types::{ToolContent, ToolResult};+use tinytools::{ToolContent, ToolResult};fn integration(toolkit: &str,diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/ops_tool_results_and_credentials_tests.rs b/crates/openhuman-core/src/flows/tinyflows/caps/ops_tool_results_and_credentials_tests.rsindex bff050cfe5..5959e44b82 100644--- a/crates/openhuman-core/src/flows/tinyflows/caps/ops_tool_results_and_credentials_tests.rs+++ b/crates/openhuman-core/src/flows/tinyflows/caps/ops_tool_results_and_credentials_tests.rs@@ -156,7 +156,7 @@ fn connection_ref_resolves_to_the_chosen_account() {/// but simply doesn't contain it.#[tokio::test]async fn unknown_toolkit_still_rejects() {- use crate::integrations::composio::providers::catalog_for_toolkit;+ use crate::integrations::composio::contract::catalog_for_toolkit;let config = Config::default();// Precondition: `flowstestkit` is genuinely uncatalogued, so the decision// flows through the connected-set path (not the static curated path).@@ -184,7 +184,7 @@ async fn unknown_toolkit_still_rejects() {/// The exact same slug rejects above without a connection.#[tokio::test]async fn connected_uncatalogued_toolkit_now_passes() {- use crate::integrations::composio::providers::catalog_for_toolkit;+ use crate::integrations::composio::contract::catalog_for_toolkit;assert!(catalog_for_toolkit("flowstestkit").is_none());let config = Config::default();@@ -233,7 +233,7 @@ async fn connected_uncatalogued_toolkit_now_passes() {/// which passes.#[tokio::test]async fn expired_live_catalog_entry_is_treated_as_a_cache_miss() {- use crate::integrations::composio::providers::catalog_for_toolkit;+ use crate::integrations::composio::contract::catalog_for_toolkit;assert!(catalog_for_toolkit("flowsexpiredkit").is_none());let config = Config::default();@@ -270,7 +270,7 @@ async fn expired_live_catalog_entry_is_treated_as_a_cache_miss() {/// sufficient, the slug itself must be real.#[tokio::test]async fn connected_uncatalogued_toolkit_rejects_a_hallucinated_slug() {- use crate::integrations::composio::providers::catalog_for_toolkit;+ use crate::integrations::composio::contract::catalog_for_toolkit;assert!(catalog_for_toolkit("flowstestkit").is_none());let config = Config::default();diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/tools/composio.rs b/crates/openhuman-core/src/flows/tinyflows/caps/tools/composio.rsindex 1f648df25d..df8a90f492 100644--- a/crates/openhuman-core/src/flows/tinyflows/caps/tools/composio.rs+++ b/crates/openhuman-core/src/flows/tinyflows/caps/tools/composio.rs@@ -101,7 +101,7 @@ impl ToolBackend for ComposioToolBackend {})?;// Autonomy-tier gate (Phase 2, made effect-aware): the node's// [`CommandClass`] is derived from the action's curated- // [`ToolScope`](crate::integrations::composio::providers::ToolScope)+ // [`ToolScope`](crate::integrations::composio::contract::ToolScope)// via [`classify_composio_action_for_tier`] — a curated Read action// (e.g. `TWITTER_RECENT_SEARCH`) is `CommandClass::Read`, which every// tier `Allow`s; a curated Write/Admin action, or anything notdiff --git a/crates/openhuman-core/src/integrations/composio/bus/connection_created_subscriber.rs b/crates/openhuman-core/src/integrations/composio/bus/connection_created_subscriber.rsindex 6613314484..2006539051 100644--- a/crates/openhuman-core/src/integrations/composio/bus/connection_created_subscriber.rs+++ b/crates/openhuman-core/src/integrations/composio/bus/connection_created_subscriber.rs@@ -173,7 +173,7 @@ async fn on_connection_created(toolkit: String, connection_id: String) {);return;}- if !crate::integrations::composio::providers::has_native_provider(&toolkit) {+ if !crate::integrations::composio::contract::has_native_provider(&toolkit) {tracing::debug!(toolkit = %toolkit,"[composio:bus] no native identity provider for toolkit; skipping profile fetch"diff --git a/crates/openhuman-core/src/integrations/composio/catalog/contract.rs b/crates/openhuman-core/src/integrations/composio/catalog/contract.rsindex 24abdbee0f..607d5ca0dc 100644--- a/crates/openhuman-core/src/integrations/composio/catalog/contract.rs+++ b/crates/openhuman-core/src/integrations/composio/catalog/contract.rs@@ -272,7 +272,7 @@ pub(crate) async fn fetch_live_toolkit_catalog(config: &Config,toolkit: &str,) -> Option<Vec<ToolContract>> {- use crate::integrations::composio::providers::{catalog_for_toolkit, find_curated};+ use crate::integrations::composio::contract::{catalog_for_toolkit, find_curated};let key = toolkit.trim().to_ascii_lowercase();if key.is_empty() {diff --git a/crates/openhuman-core/src/integrations/composio/catalog/lookups.rs b/crates/openhuman-core/src/integrations/composio/catalog/lookups.rsindex 8bffd9d9dd..3c9962a9fa 100644--- a/crates/openhuman-core/src/integrations/composio/catalog/lookups.rs+++ b/crates/openhuman-core/src/integrations/composio/catalog/lookups.rs@@ -16,7 +16,7 @@ use crate::config::Config;/// in the toolkit's live catalog — so callers can skip the preflight rather/// than block execution on a catalog hiccup.pub(crate) async fn composio_required_args(config: &Config, slug: &str) -> Option<Vec<String>> {- let toolkit = crate::integrations::composio::providers::toolkit_from_slug(slug)?;+ let toolkit = crate::integrations::composio::contract::toolkit_from_slug(slug)?;let contracts = fetch_live_toolkit_catalog(config, &toolkit).await?;contracts.iter()@@ -37,7 +37,7 @@ pub(crate) async fn composio_required_args(config: &Config, slug: &str) -> Optio/// unknown" rather than blocking or guessing. `Some(vec![])` means the/// schema was found but names no top-level properties.pub(crate) async fn composio_response_fields(config: &Config, slug: &str) -> Option<Vec<String>> {- let toolkit = crate::integrations::composio::providers::toolkit_from_slug(slug)?;+ let toolkit = crate::integrations::composio::contract::toolkit_from_slug(slug)?;let contracts = fetch_live_toolkit_catalog(config, &toolkit).await?;let contract = contracts.iter()diff --git a/crates/openhuman-core/src/integrations/composio/catalog/probe.rs b/crates/openhuman-core/src/integrations/composio/catalog/probe.rsindex 2ed437dd0c..d7d5e28de9 100644--- a/crates/openhuman-core/src/integrations/composio/catalog/probe.rs+++ b/crates/openhuman-core/src/integrations/composio/catalog/probe.rs@@ -201,8 +201,8 @@ pub(crate) fn apply_probe_override(mut contract: ToolContract) -> ToolContract {/// "assume Read".pub(super) fn resolve_composio_action_scope(slug: &str,-) -> Option<crate::integrations::composio::providers::ToolScope> {- use crate::integrations::composio::providers::{+) -> Option<crate::integrations::composio::contract::ToolScope> {+ use crate::integrations::composio::contract::{catalog_for_toolkit, classify_unknown, find_curated, toolkit_from_slug,};@@ -246,7 +246,7 @@ pub(crate) async fn probe_tool_output_sample(}match resolve_composio_action_scope(slug) {- Some(crate::integrations::composio::providers::ToolScope::Read) => {}+ Some(crate::integrations::composio::contract::ToolScope::Read) => {}Some(other) => {tracing::warn!(target: "flows",@@ -281,7 +281,7 @@ 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::contract::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>'."diff --git a/crates/openhuman-core/src/integrations/composio/catalog_tests.rs b/crates/openhuman-core/src/integrations/composio/catalog_tests.rsindex 7c91c6105c..6e0c1fc76b 100644--- a/crates/openhuman-core/src/integrations/composio/catalog_tests.rs+++ b/crates/openhuman-core/src/integrations/composio/catalog_tests.rs@@ -256,7 +256,7 @@ fn cache_probe_result_redacts_the_raw_sample_before_caching() {#[test]fn resolve_composio_action_scope_uses_the_curated_catalog_when_available() {- use crate::integrations::composio::providers::ToolScope;+ use crate::integrations::composio::contract::ToolScope;// GITHUB_LIST_REPOSITORY_ISSUES is curated as Read (github/tools.rs).assert_eq!(resolve_composio_action_scope("GITHUB_LIST_REPOSITORY_ISSUES"),@@ -286,7 +286,7 @@ fn resolve_composio_action_scope_rejects_an_uncurated_slug_on_a_cataloged_toolki#[test]fn resolve_composio_action_scope_falls_back_to_the_verb_heuristic_only_without_a_static_catalog() {- use crate::integrations::composio::providers::ToolScope;+ use crate::integrations::composio::contract::ToolScope;assert_eq!(resolve_composio_action_scope("MADEUPTOOLKIT_LIST_THINGS"),Some(ToolScope::Read)diff --git a/crates/openhuman-core/src/integrations/composio/connected_integrations/fetch.rs b/crates/openhuman-core/src/integrations/composio/connected_integrations/fetch.rsindex bf8d417678..705ddb15f1 100644--- a/crates/openhuman-core/src/integrations/composio/connected_integrations/fetch.rs+++ b/crates/openhuman-core/src/integrations/composio/connected_integrations/fetch.rs@@ -189,6 +189,6 @@ pub(crate) fn resolve_toolkit_description(slug: &str,) -> String {catalog_descriptions.get(slug).cloned().unwrap_or_else(|| {- crate::integrations::composio::providers::toolkit_description(slug).to_string()+ crate::integrations::composio::contract::toolkit_description(slug).to_string()})}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 387a8c4f4b..bff5c87250 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@@ -405,7 +405,7 @@ async fn fetch_connected_integrations_uncached_inner(.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::contract::is_action_visible_with_pref(&t.function.name, &pref){visible.push(ConnectedIntegrationTool {name: t.function.name.clone(),@@ -413,7 +413,7 @@ async fn fetch_connected_integrations_uncached_inner(parameters: t.function.parameters.clone(),});} else if let Some(required_scope) =- super::super::providers::curated_scope_for(&t.function.name)+ super::super::contract::curated_scope_for(&t.function.name){// Only surface CURATED actions as `gated` — uncurated// tools (which fall through to `classify_unknown` anddiff --git a/crates/openhuman-core/src/integrations/composio/connected_integrations_catalog_description_tests_tests.rs b/crates/openhuman-core/src/integrations/composio/connected_integrations_catalog_description_tests_tests.rsindex 2b85f5d19a..efdcdf3802 100644--- a/crates/openhuman-core/src/integrations/composio/connected_integrations_catalog_description_tests_tests.rs+++ b/crates/openhuman-core/src/integrations/composio/connected_integrations_catalog_description_tests_tests.rs@@ -21,7 +21,7 @@ fn falls_back_to_hardcoded_table_when_catalog_omits_toolkit() {let got = resolve_toolkit_description(&catalog, "gmail");assert_eq!(got,- crate::integrations::composio::providers::toolkit_description("gmail")+ crate::integrations::composio::contract::toolkit_description("gmail"));assert!(!got.is_empty());}@@ -34,6 +34,6 @@ fn falls_back_when_a_different_toolkit_is_catalogued() {catalog.insert("notion".to_string(), "Notion from catalog".to_string());assert_eq!(resolve_toolkit_description(&catalog, "gmail"),- crate::integrations::composio::providers::toolkit_description("gmail")+ crate::integrations::composio::contract::toolkit_description("gmail"));}diff --git a/crates/openhuman-core/src/integrations/composio/contract_gate.rs b/crates/openhuman-core/src/integrations/composio/contract_gate.rsindex 6222156f68..d50b8a9665 100644--- a/crates/openhuman-core/src/integrations/composio/contract_gate.rs+++ b/crates/openhuman-core/src/integrations/composio/contract_gate.rs@@ -29,7 +29,7 @@ use std::sync::OnceLock;use crate::config::Config;use crate::integrations::composio::catalog::{fetch_live_toolkit_catalog, ToolContract};-use crate::integrations::composio::providers::toolkit_from_slug;+use crate::integrations::composio::contract::toolkit_from_slug;/// Record of which action contracts have already been surfaced to the model,/// so the gate blocks a given action at most once per gate instance.diff --git a/crates/openhuman-core/src/integrations/composio/mod.rs b/crates/openhuman-core/src/integrations/composio/mod.rsindex 755a3f82ad..b000a853f0 100644--- a/crates/openhuman-core/src/integrations/composio/mod.rs+++ b/crates/openhuman-core/src/integrations/composio/mod.rs@@ -54,14 +54,13 @@ pub mod identity_store;pub mod module_client;pub mod ops;pub(crate) mod processing;-pub mod providers;pub mod schemas;pub mod tools;pub(crate) mod trigger_history;pub mod types;pub use crate::agent::prompts::types::ConnectedIntegration;-pub use crate::integrations::composio::providers::ProviderUserProfile;+pub use crate::integrations::composio::contract::ProviderUserProfile;pub use action_tool::ComposioActionTool;pub use bus::{register_composio_trigger_subscriber, ComposioConfigChangedSubscriber,diff --git a/crates/openhuman-core/src/integrations/composio/ops/providers_ops.rs b/crates/openhuman-core/src/integrations/composio/ops/providers_ops.rsindex c66da38f86..b41184976a 100644--- a/crates/openhuman-core/src/integrations/composio/ops/providers_ops.rs+++ b/crates/openhuman-core/src/integrations/composio/ops/providers_ops.rs@@ -9,7 +9,7 @@ use crate::config::Config;use crate::core::Outcome;use super::super::module_client::{self as connectors, methods};-use super::super::providers::ProviderUserProfile;+use super::super::contract::ProviderUserProfile;use super::super::types::{reencode, ComposioRefreshIdentitiesResponse, ComposioUserProfile, ComposioUserProfileRequest,};@@ -101,7 +101,7 @@ pub async fn composio_refresh_all_identities(// A toolkit the module read but this build has no facet schema for is// not a failure — it is the same "no native provider" case the loop// used to skip before fetching, now discovered one step later.- if !super::super::providers::has_native_provider(toolkit) {+ if !super::super::contract::has_native_provider(toolkit) {report.skipped_no_provider += 1;messages.push(format!("{toolkit}/{connection_id}: skipped (no native provider)"diff --git a/crates/openhuman-core/src/integrations/composio/ops/toolkits.rs b/crates/openhuman-core/src/integrations/composio/ops/toolkits.rsindex a7a5fc060c..c0d4fda21f 100644--- a/crates/openhuman-core/src/integrations/composio/ops/toolkits.rs+++ b/crates/openhuman-core/src/integrations/composio/ops/toolkits.rs@@ -4,7 +4,7 @@ use super::super::module_client::{self as connectors, methods};use crate::config::Config;use crate::core::Outcome;-use super::super::providers::agent_ready_toolkits;+use super::super::contract::agent_ready_toolkits;use super::super::types::{ComposioCapabilitiesResponse, ComposioToolkitsResponse};use super::error_utils::{report_composio_op_error, OpResult};diff --git a/crates/openhuman-core/src/integrations/composio/ops/user_scopes.rs b/crates/openhuman-core/src/integrations/composio/ops/user_scopes.rsindex a293a73b36..1a635bf116 100644--- a/crates/openhuman-core/src/integrations/composio/ops/user_scopes.rs+++ b/crates/openhuman-core/src/integrations/composio/ops/user_scopes.rs@@ -13,7 +13,7 @@ use crate::integrations::composio::file_store::{self, USER_SCOPES_FILE};/// The stored type: the contract's scope pref, which is also the wire shape of/// both handlers' replies.-pub(crate) use crate::integrations::composio::providers::UserScopePref;+pub(crate) use crate::integrations::composio::contract::UserScopePref;/// The stored map: normalised toolkit slug → pref.type ScopeFile = BTreeMap<String, UserScopePref>;diff --git a/crates/openhuman-core/src/integrations/composio/providers/mod.rs b/crates/openhuman-core/src/integrations/composio/providers/mod.rsdeleted file mode 100644index 26eaf099ba..0000000000--- a/crates/openhuman-core/src/integrations/composio/providers/mod.rs+++ /dev/null@@ -1,22 +0,0 @@-//! The Composio provider surface: curated catalogs, scope verdicts, the-//! identity vocabulary and the task types, all from-//! [`crate::integrations::composio::contract`]. They are `&'static str`-//! tables, pure functions and inert payload types. Reading a connected-//! account goes through the connector module ([`super::module_client`]):-//! profile fetch and action execution.--// ── The contract half ───────────────────────────────────────────────────────-pub use crate::integrations::composio::contract::catalogs::{- catalog_for_toolkit, curated_scope_for, has_native_provider, is_action_visible_with_pref,- toolkit_description,-};-pub use crate::integrations::composio::contract::scopes::{- agent_ready_toolkits, classify_unknown, find_curated, toolkit_from_slug, CuratedTool,- ToolScope, UserScopePref,-};-pub use crate::integrations::composio::contract::tasks::{- GithubFetchMode, NormalizedTask, TaskContainer, TaskFetchFilter, TaskKind,-};-pub use crate::integrations::composio::contract::{- render_connected_identities_section, ConnectedIdentity, ProviderUserProfile,-};diff --git a/crates/openhuman-core/src/integrations/composio/tools/execute.rs b/crates/openhuman-core/src/integrations/composio/tools/execute.rsindex d8784b3e9c..f5fe60fbcc 100644--- a/crates/openhuman-core/src/integrations/composio/tools/execute.rs+++ b/crates/openhuman-core/src/integrations/composio/tools/execute.rs@@ -16,7 +16,7 @@ use crate::config::Config;use tinytools::{PermissionLevel, Tool, ToolCategory, ToolResult};use super::super::ops::load_user_scope_pref;-use super::super::providers::{toolkit_from_slug, ToolScope};+use super::super::contract::{toolkit_from_slug, ToolScope};use super::visibility::{action_mutates_external_state, evaluate_tool_visibility, resolve_action_scope,scope_error_message, ToolDecision,diff --git a/crates/openhuman-core/src/integrations/composio/tools/visibility.rs b/crates/openhuman-core/src/integrations/composio/tools/visibility.rsindex 785960db5b..be784d95c7 100644--- a/crates/openhuman-core/src/integrations/composio/tools/visibility.rs+++ b/crates/openhuman-core/src/integrations/composio/tools/visibility.rs@@ -12,7 +12,7 @@ use serde_json::Value;use crate::config::Config;use super::super::ops::load_user_scope_pref;-use super::super::providers::{+use super::super::contract::{catalog_for_toolkit, classify_unknown, find_curated, toolkit_from_slug, ToolScope,UserScopePref,};diff --git a/crates/openhuman-core/src/integrations/task_sources/filter.rs b/crates/openhuman-core/src/integrations/task_sources/filter.rsindex 0cd3aa0996..67dc0b984f 100644--- a/crates/openhuman-core/src/integrations/task_sources/filter.rs+++ b/crates/openhuman-core/src/integrations/task_sources/filter.rs@@ -6,7 +6,7 @@//! `FilterSpec` variant into the shared filter envelope and stamps the//! per-fetch cap.-use crate::integrations::composio::providers::TaskFetchFilter;+use crate::integrations::composio::contract::TaskFetchFilter;use super::types::FilterSpec;diff --git a/crates/openhuman-core/src/integrations/task_sources/mod.rs b/crates/openhuman-core/src/integrations/task_sources/mod.rsindex fc16132eb0..08cc1ec252 100644--- a/crates/openhuman-core/src/integrations/task_sources/mod.rs+++ b/crates/openhuman-core/src/integrations/task_sources/mod.rs@@ -13,7 +13,7 @@//! logic lives in the sibling modules, persistence is SQLite in//! `store.rs`, and the RPC surface is wired through `schemas.rs`.//!-//! [`fetch_tasks`]: crate::integrations::composio::providers::ComposioProvider::fetch_tasks+//! [`fetch_tasks`]: crate::integrations::composio::contract::ComposioProvider::fetch_taskspub mod bus;pub mod enrich;@@ -28,7 +28,7 @@ mod store_documents;pub mod tools;pub mod types;-pub use crate::integrations::composio::providers::{+pub use crate::integrations::composio::contract::{NormalizedTask, TaskContainer, TaskFetchFilter, TaskKind,};pub use periodic::start_periodic_poll;diff --git a/crates/openhuman-core/src/integrations/task_sources/ops.rs b/crates/openhuman-core/src/integrations/task_sources/ops.rsindex f615adad3b..a11a8d611c 100644--- a/crates/openhuman-core/src/integrations/task_sources/ops.rs+++ b/crates/openhuman-core/src/integrations/task_sources/ops.rs@@ -9,7 +9,7 @@ use serde_json::{json, Value};use crate::config::Config;use crate::core::Outcome;-use crate::integrations::composio::providers::{NormalizedTask, TaskContainer};+use crate::integrations::composio::contract::{NormalizedTask, TaskContainer};use super::types::{FetchReason, FilterSpec, ProviderSlug, SourceTarget, TaskSource, TaskSourcePatch,diff --git a/crates/openhuman-core/src/integrations/task_sources/store.rs b/crates/openhuman-core/src/integrations/task_sources/store.rsindex d0557be340..3625b5ef09 100644--- a/crates/openhuman-core/src/integrations/task_sources/store.rs+++ b/crates/openhuman-core/src/integrations/task_sources/store.rs@@ -24,7 +24,7 @@ use sha2::{Digest, Sha256};use uuid::Uuid;use crate::config::Config;-use crate::integrations::composio::providers::NormalizedTask;+use crate::integrations::composio::contract::NormalizedTask;use super::types::{FetchReason, FilterSpec, ProviderSlug, SourceTarget, TaskSource, TaskSourcePatch,diff --git a/crates/openhuman-core/src/integrations/task_sources/store_documents.rs b/crates/openhuman-core/src/integrations/task_sources/store_documents.rsindex ff70c8e180..5f23be7eb6 100644--- a/crates/openhuman-core/src/integrations/task_sources/store_documents.rs+++ b/crates/openhuman-core/src/integrations/task_sources/store_documents.rs@@ -27,7 +27,7 @@ use super::types::{FetchReason, FilterSpec, ProviderSlug, SourceTarget, TaskSource, TaskSourcePatch,};use crate::config::Config;-use crate::integrations::composio::providers::NormalizedTask;+use crate::integrations::composio::contract::NormalizedTask;use crate::storage::documents::{compare_and_swap, text, Repo};use crate::storage::local::{self, ImportPlan};use crate::storage::{DocumentStoreExt, StorageError};diff --git a/crates/openhuman-core/src/integrations/task_sources/store_import_tests.rs b/crates/openhuman-core/src/integrations/task_sources/store_import_tests.rsindex b03a8ce4e1..175253a795 100644--- a/crates/openhuman-core/src/integrations/task_sources/store_import_tests.rs+++ b/crates/openhuman-core/src/integrations/task_sources/store_import_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::integrations::composio::providers::NormalizedTask;+use crate::integrations::composio::contract::NormalizedTask;use crate::integrations::task_sources::store as live;use crate::integrations::task_sources::types::{FilterSpec, ProviderSlug, SourceTarget};use crate::storage::local::{forget, table_names};diff --git a/crates/openhuman-core/src/integrations/task_sources/types.rs b/crates/openhuman-core/src/integrations/task_sources/types.rsindex d9fc914054..cae6741536 100644--- a/crates/openhuman-core/src/integrations/task_sources/types.rs+++ b/crates/openhuman-core/src/integrations/task_sources/types.rs@@ -88,7 +88,7 @@ pub enum FilterSpec {/// How to fetch: Composio connection, local `gh`/REST, or `auto`/// (Composio-first with local fallback). Defaults to `auto`.#[serde(default)]- fetch_mode: crate::integrations::composio::providers::GithubFetchMode,+ fetch_mode: crate::integrations::composio::contract::GithubFetchMode,#[serde(default)]extra: Value,},diff --git a/crates/openhuman-core/src/security/mod.rs b/crates/openhuman-core/src/security/mod.rsindex f9f3ec53a6..ae9073cb85 100644--- a/crates/openhuman-core/src/security/mod.rs+++ b/crates/openhuman-core/src/security/mod.rs@@ -22,7 +22,6 @@ pub mod policy;pub mod prompt_injection;pub mod scrub;pub mod secret_storage;-pub mod secrets;#[allow(unused_imports)]pub use self::secret_storage::SecretStore;diff --git a/crates/openhuman-core/src/security/secrets.rs b/crates/openhuman-core/src/security/secrets.rsdeleted file mode 100644index 8413e4dc30..0000000000--- a/crates/openhuman-core/src/security/secrets.rs+++ /dev/null@@ -1 +0,0 @@-pub use crate::security::secret_storage::encrypted_store::*;diff --git a/crates/openhuman-core/src/skills/mod.rs b/crates/openhuman-core/src/skills/mod.rsindex 80a7df2019..6dfb31a5e2 100644--- a/crates/openhuman-core/src/skills/mod.rs+++ b/crates/openhuman-core/src/skills/mod.rs@@ -36,7 +36,6 @@// Type carve-out: always compiled, both feature directions. See module docs.pub mod ops_types;-pub mod types;// Facade children — the `pub mod` line stays UNGATED because each child is// itself a facade+stub for the same `skills` feature and its stub must resolve@@ -60,8 +59,6 @@ pub mod ops_discover;#[cfg(feature = "skills")]pub mod ops_install;#[cfg(feature = "skills")]-pub mod ops_parse;-#[cfg(feature = "skills")]pub mod preflight;#[cfg(feature = "skills")]pub mod registry;diff --git a/crates/openhuman-core/src/skills/ops.rs b/crates/openhuman-core/src/skills/ops.rsindex 4ffdb3b97b..9a4f11da6d 100644--- a/crates/openhuman-core/src/skills/ops.rs+++ b/crates/openhuman-core/src/skills/ops.rs@@ -41,7 +41,7 @@ pub use super::ops_install::{UninstallWorkflowParams, DEFAULT_INSTALL_TIMEOUT_SECS, MAX_INSTALL_TIMEOUT_SECS,MAX_INSTALL_URL_LEN, MAX_WORKFLOW_MD_BYTES,};-pub use super::ops_parse::inventory_resources;+pub use tinyskills::inventory_resources;pub use super::ops_types::{Workflow, WorkflowFrontmatter, WorkflowScope, MAX_WORKFLOW_RESOURCE_BYTES,};diff --git a/crates/openhuman-core/src/skills/ops_parse.rs b/crates/openhuman-core/src/skills/ops_parse.rsdeleted file mode 100644index ae1c10d37d..0000000000--- a/crates/openhuman-core/src/skills/ops_parse.rs+++ /dev/null@@ -1,3 +0,0 @@-//! Compatibility facade over the portable `tinyskills` document parser.--pub use tinyskills::inventory_resources;diff --git a/crates/openhuman-core/src/skills/types.rs b/crates/openhuman-core/src/skills/types.rsdeleted file mode 100644index 4b22dff8d7..0000000000--- a/crates/openhuman-core/src/skills/types.rs+++ /dev/null@@ -1,7 +0,0 @@-//! Shared tool result types used by the tool and node runtime surfaces.-//!-//! The definitions live in [`tinytools`]; this module is the stable host import-//! path for the ~14 call sites that already name it. The MCP-result conversion-//! is `tinymcp::tools::tool_result`.--pub use tinytools::{ToolContent, ToolResult};diff --git a/crates/openhuman-core/src/tools/impl/document/document_tests.rs b/crates/openhuman-core/src/tools/impl/document/document_tests.rsindex db52a327b3..8494458192 100644--- a/crates/openhuman-core/src/tools/impl/document/document_tests.rs+++ b/crates/openhuman-core/src/tools/impl/document/document_tests.rs@@ -55,7 +55,7 @@ fn minimal_input_json() -> serde_json::Value {/// Pull the JSON payload out of a tool result.fn payload_of(result: &ToolResult) -> serde_json::Value {match result.content.first().expect("a content block") {- crate::skills::types::ToolContent::Json { data } => data.clone(),+ tinytools::ToolContent::Json { data } => data.clone(),other => panic!("expected Json content block, got {other:?}"),}}diff --git a/crates/openhuman-core/src/tools/impl/presentation/presentation_tests.rs b/crates/openhuman-core/src/tools/impl/presentation/presentation_tests.rsindex 218e9f5773..e231ad411a 100644--- a/crates/openhuman-core/src/tools/impl/presentation/presentation_tests.rs+++ b/crates/openhuman-core/src/tools/impl/presentation/presentation_tests.rs@@ -181,7 +181,7 @@ async fn execute_happy_path_returns_artifact_metadata() {);let payload = match result.content.first().expect("at least one content block") {- crate::skills::types::ToolContent::Json { data } => data.clone(),+ tinytools::ToolContent::Json { data } => data.clone(),other => panic!("expected Json content block, got {other:?}"),};assert_eq!(payload["slide_count"].as_u64(), Some(1));@@ -224,7 +224,7 @@ fn png_1x1() -> Vec<u8> {/// Pull the JSON payload out of a tool result.fn payload_of(result: &ToolResult) -> serde_json::Value {match result.content.first().expect("a content block") {- crate::skills::types::ToolContent::Json { data } => data.clone(),+ tinytools::ToolContent::Json { data } => data.clone(),other => panic!("expected Json content block, got {other:?}"),}}diff --git a/crates/openhuman-core/src/tools/native_ops_types.rs b/crates/openhuman-core/src/tools/native_ops_types.rsindex 1fd001b4d2..c5fe8a9f21 100644--- a/crates/openhuman-core/src/tools/native_ops_types.rs+++ b/crates/openhuman-core/src/tools/native_ops_types.rs@@ -1,6 +1,6 @@use serde::Serialize;-use crate::skills::types::ToolResult;+use tinytools::ToolResult;/// Agent-callable tool metadata exposed through `javascript.list_tools`.#[derive(Debug, Clone, Serialize)]diff --git a/crates/openhuman-core/src/tools/ops_tests.rs b/crates/openhuman-core/src/tools/ops_tests.rsindex c82911cf09..ae7bcb3193 100644--- a/crates/openhuman-core/src/tools/ops_tests.rs+++ b/crates/openhuman-core/src/tools/ops_tests.rs@@ -2,7 +2,7 @@ use super::*;use crate::config::{BrowserConfig, Config};use crate::security::credentials::{AuthService, APP_SESSION_PROVIDER, DEFAULT_AUTH_PROFILE_NAME};use crate::security::AuditLogger;-use crate::skills::types::ToolContent;+use tinytools::ToolContent;use crate::tools::ops::{all_tools, tool_group};use std::collections::HashMap;use tempfile::TempDir;diff --git a/crates/openhuman-core/src/voice/cli.rs b/crates/openhuman-core/src/voice/cli.rsindex 7dcd6d2e9d..a4fbace42e 100644--- a/crates/openhuman-core/src/voice/cli.rs+++ b/crates/openhuman-core/src/voice/cli.rs@@ -9,7 +9,7 @@use anyhow::{anyhow, Result};use crate::core::logging::{init_for_cli_run, CliLogDefault};-use crate::voice::hotkey::ActivationMode;+use tinyvoice_bus::hotkey::ActivationMode;use crate::voice::server::{run_standalone, VoiceServerConfig};/// Parse and execute the `openhuman voice` / `openhuman dictate` subcommand.diff --git a/crates/openhuman-core/src/voice/dictation_listener.rs b/crates/openhuman-core/src/voice/dictation_listener.rsindex d967a2c801..04ca290eb5 100644--- a/crates/openhuman-core/src/voice/dictation_listener.rs+++ b/crates/openhuman-core/src/voice/dictation_listener.rs@@ -17,7 +17,7 @@ use crate::config::Config;// macOS keeps the Tauri-owned global shortcut. Other platforms use TinyVoice's// module-owned native listener through the same adapter as the voice server.#[cfg(not(target_os = "macos"))]-use super::hotkey::{ActivationMode, HotkeyEvent};+use tinyvoice_bus::hotkey::{ActivationMode, HotkeyEvent};const LOG_PREFIX: &str = "[dictation_listener]";diff --git a/crates/openhuman-core/src/voice/hotkey.rs b/crates/openhuman-core/src/voice/hotkey.rsdeleted file mode 100644index 85fea6c913..0000000000--- a/crates/openhuman-core/src/voice/hotkey.rs+++ /dev/null@@ -1,7 +0,0 @@-//! Global hotkey listener.-//!-//! `ActivationMode` and `HotkeyEvent` are shared wire vocabulary from the-//! TinyVoice bus contract. Native listeners and key parsing live inside the-//! loaded TinyVoice module.--pub use tinyvoice_bus::hotkey::*;diff --git a/crates/openhuman-core/src/voice/mod.rs b/crates/openhuman-core/src/voice/mod.rsindex 61242822e3..a2e0b23bb2 100644--- a/crates/openhuman-core/src/voice/mod.rs+++ b/crates/openhuman-core/src/voice/mod.rs@@ -47,7 +47,6 @@ pub mod dictation_listener;#[cfg(feature = "voice")]pub mod factory;#[cfg(feature = "voice")]-pub mod hotkey;#[cfg(feature = "voice")]pub mod live;#[cfg(feature = "voice")]diff --git a/crates/openhuman-core/src/voice/schemas/handlers/provider_server.rs b/crates/openhuman-core/src/voice/schemas/handlers/provider_server.rsindex 191cceb8e8..4744f62afb 100644--- a/crates/openhuman-core/src/voice/schemas/handlers/provider_server.rs+++ b/crates/openhuman-core/src/voice/schemas/handlers/provider_server.rs@@ -415,7 +415,7 @@ pub(crate) fn handle_voice_test_provider(params: Map<String, Value>) -> Controllpub(crate) fn handle_voice_server_start(params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {- use crate::voice::hotkey::ActivationMode;+ use tinyvoice_bus::hotkey::ActivationMode;use crate::voice::server::{global_server, VoiceServerConfig};let config = config_rpc::load_config_with_timeout().await?;@@ -511,7 +511,7 @@ pub(crate) fn handle_voice_server_stop(_params: Map<String, Value>) -> Controllelet status = crate::voice::server::VoiceServerStatus {state: crate::voice::server::ServerState::Stopped,hotkey: String::new(),- activation_mode: crate::voice::hotkey::ActivationMode::Push,+ activation_mode: tinyvoice_bus::hotkey::ActivationMode::Push,transcription_count: 0,last_error: None,};@@ -529,7 +529,7 @@ pub(crate) fn handle_voice_server_status(_params: Map<String, Value>) -> Controllet status = crate::voice::server::VoiceServerStatus {state: crate::voice::server::ServerState::Stopped,hotkey: String::new(),- activation_mode: crate::voice::hotkey::ActivationMode::Push,+ activation_mode: tinyvoice_bus::hotkey::ActivationMode::Push,transcription_count: 0,last_error: None,};diff --git a/crates/openhuman-core/src/voice/server.rs b/crates/openhuman-core/src/voice/server.rsindex 91dc3812f5..2fe1df0355 100644--- a/crates/openhuman-core/src/voice/server.rs+++ b/crates/openhuman-core/src/voice/server.rs@@ -29,7 +29,7 @@ use crate::config::Config;#[cfg(test)]use crate::voice::audio_capture::RecordingHandle;#[cfg(test)]-use crate::voice::hotkey::ActivationMode;+use tinyvoice_bus::hotkey::ActivationMode;#[cfg(test)]use pipeline::{build_initial_prompt, capture_expected_app_name, process_recording_bg, push_recent_transcript,diff --git a/crates/openhuman-core/src/voice/server/hotkey_listener.rs b/crates/openhuman-core/src/voice/server/hotkey_listener.rsindex 8452692d85..417d017e8c 100644--- a/crates/openhuman-core/src/voice/server/hotkey_listener.rs+++ b/crates/openhuman-core/src/voice/server/hotkey_listener.rs@@ -8,7 +8,7 @@ use std::time::Duration;use log::warn;use tokio_util::sync::CancellationToken;-use crate::voice::hotkey;+use tinyvoice_bus::hotkey;use super::LOG_PREFIX;diff --git a/crates/openhuman-core/src/voice/server/runtime.rs b/crates/openhuman-core/src/voice/server/runtime.rsindex bd0e9f4162..af97dba3e9 100644--- a/crates/openhuman-core/src/voice/server/runtime.rs+++ b/crates/openhuman-core/src/voice/server/runtime.rs@@ -13,7 +13,7 @@ use uuid::Uuid;use crate::config::Config;use crate::voice::audio_capture::{self, RecordingHandle};-use crate::voice::hotkey::{ActivationMode, HotkeyEvent};+use tinyvoice_bus::hotkey::{ActivationMode, HotkeyEvent};use super::hotkey_listener::start_hotkey_listener;use super::pipeline::{capture_expected_app_name, process_recording_bg};diff --git a/crates/openhuman-core/src/voice/server/singleton.rs b/crates/openhuman-core/src/voice/server/singleton.rsindex 7695a7275b..6128ee742e 100644--- a/crates/openhuman-core/src/voice/server/singleton.rs+++ b/crates/openhuman-core/src/voice/server/singleton.rs@@ -6,7 +6,7 @@ use std::sync::Arc;use log::{info, warn};use crate::config::Config;-use crate::voice::hotkey::ActivationMode;+use tinyvoice_bus::hotkey::ActivationMode;use super::runtime::VoiceServer;use super::types::{ServerState, VoiceServerConfig};diff --git a/crates/openhuman-core/src/voice/server/types.rs b/crates/openhuman-core/src/voice/server/types.rsindex 2507b3eead..09a1e2ab7d 100644--- a/crates/openhuman-core/src/voice/server/types.rs+++ b/crates/openhuman-core/src/voice/server/types.rs@@ -1,7 +1,7 @@//! Wire and config types for the voice server: run state, status snapshot,//! and the tunables that shape a recording → transcription pass.-use crate::voice::hotkey::ActivationMode;+use tinyvoice_bus::hotkey::ActivationMode;/// Running state of the voice server.#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]diff --git a/tests/json_rpc_e2e.rs b/tests/json_rpc_e2e.rsindex 8c18e03f56..55a6898817 100644--- a/tests/json_rpc_e2e.rs+++ b/tests/json_rpc_e2e.rs@@ -10072,7 +10072,7 @@ async fn json_rpc_task_sources_crud_and_status() {////// This test used to register a stub `ComposioProvider` (deleted by/// tinymemory v1.13.4 with the whole in-process provider registry — see-/// `crate::integrations::composio::providers`'s module docs) and+/// `crate::integrations::composio::contract`'s module docs) and/// exercise the full fetch → enrich → route → ingest pipeline against it./// `task_sources::pipeline::fetch_tasks_unavailable` documents why that/// capability was not ported forward: tinyconnectors' `Sync` member returnsdiff --git a/tests/storage_domains_e2e.rs b/tests/storage_domains_e2e.rsindex 2e0c5d526d..eeb0c16a4c 100644--- a/tests/storage_domains_e2e.rs+++ b/tests/storage_domains_e2e.rs@@ -9,7 +9,7 @@ use chrono::Utc;use openhuman_core::config::Config;use openhuman_core::desktop::notifications::store as notifications;use openhuman_core::desktop::notifications::types::{IntegrationNotification, NotificationStatus};-use openhuman_core::integrations::composio::providers::NormalizedTask;+use openhuman_core::integrations::composio::contract::NormalizedTask;use openhuman_core::integrations::task_sources::store as task_sources;use openhuman_core::integrations::task_sources::types::{FilterSpec, ProviderSlug, SourceTarget};use openhuman_core::security::devices::store as devices;diff --git a/tests/x402_twit_sh_live.rs b/tests/x402_twit_sh_live.rsindex 2acefdc4ff..87e10809a6 100644--- a/tests/x402_twit_sh_live.rs+++ b/tests/x402_twit_sh_live.rs@@ -37,7 +37,7 @@ async fn x402_pay_twit_sh_for_hal_finney_tweet() {println!("=== x402 tool result ===");for content in &result.content {- if let openhuman_core::skills::types::ToolContent::Text { text } = content {+ if let tinytools::ToolContent::Text { text } = content {println!("{text}");}}