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(composio): remove legacy curated catalog tables
Steven Enamakel1af931a06d29
diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs b/crates/openhuman-core/src/flows/tinyflows/caps/ops.rsindex e1bbe80d2b..2ab18503ed 100644--- a/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs+++ b/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs@@ -155,7 +155,7 @@ async fn flow_tool_allowed(// Path A: a toolkit OpenHuman ships a static curated catalog for keeps its// strict curated-action + per-user scope gating (unchanged from B2).if let Some(catalog) = catalog_for_toolkit(&toolkit) {- let Some(curated) = find_curated(catalog, slug) else {+ let Some(curated) = find_curated(&catalog, slug) else {tracing::debug!(target: "flows", %slug, %toolkit, "[flows] tool_call curation: reject — slug is not a curated action of this toolkit");return false;};diff --git a/crates/openhuman-core/src/integrations/composio/catalog/contract.rs b/crates/openhuman-core/src/integrations/composio/catalog/contract.rsindex 88c33b6df0..9f83030803 100644--- a/crates/openhuman-core/src/integrations/composio/catalog/contract.rs+++ b/crates/openhuman-core/src/integrations/composio/catalog/contract.rs@@ -330,7 +330,7 @@ pub(crate) async fn fetch_live_toolkit_catalog(response_fields_from_schema(tool.function.output_parameters.as_ref());let primary_array_path =compute_composio_array_path(tool.function.output_parameters.as_ref());- let is_curated = curated_catalog.is_some_and(|cat| find_curated(cat, &slug).is_some());+ let is_curated = curated_catalog.as_ref().is_some_and(|cat| find_curated(&cat, &slug).is_some());ToolContract {slug,toolkit: key.clone(),diff --git a/crates/openhuman-core/src/integrations/composio/catalog/probe.rs b/crates/openhuman-core/src/integrations/composio/catalog/probe.rsindex d7d5e28de9..698f34a484 100644--- a/crates/openhuman-core/src/integrations/composio/catalog/probe.rs+++ b/crates/openhuman-core/src/integrations/composio/catalog/probe.rs@@ -211,7 +211,7 @@ pub(super) fn resolve_composio_action_scope(// A static catalog exists for this toolkit — only a genuinely// curated entry's scope is trustworthy; an uncurated slug fails// closed rather than being guessed via the verb heuristic.- Some(catalog) => find_curated(catalog, slug).map(|curated| curated.scope),+ Some(catalog) => find_curated(&catalog, slug).map(|curated| curated.scope),// No static catalog anywhere for this toolkit — the heuristic is// the only available signal (still gated by the connected-toolkit// check below in `probe_tool_output_sample`).diff --git a/crates/openhuman-core/src/integrations/composio/contract/catalogs/README.md b/crates/openhuman-core/src/integrations/composio/contract/catalogs/README.mddeleted file mode 100644index fea746077e..0000000000--- a/crates/openhuman-core/src/integrations/composio/contract/catalogs/README.md+++ /dev/null@@ -1,21 +0,0 @@-# `integrations::composio::contract::catalogs`--Curated per-toolkit Composio action catalogs: which actions an agent may see,-how each is scoped (read / write / admin), the toolkit descriptions shown to-the model, and the per-toolkit sync-interval defaults for toolkits that have a-native provider.--These tables used to live in TinyMemory's v1 bus contract. They are host data-about Composio, not memory, so they moved here with memory v2.--Entry points (re-exported from `contract::mod`): `catalog_for_toolkit`,-`curated_scope_for`, `has_native_provider`, `is_action_visible_with_pref`,-`native_provider_sync_interval_secs`, `parse_sync_interval_override`,-`sync_interval_env_var`, `toolkit_description`, `toolkit_has_scope`,-`toolkit_result_notes`, `CAPABILITY_TOOLKITS`, `NATIVE_PROVIDERS`.--## Further reading--- [Parent module README](../../README.md)-- [Third-party integrations](../../../../../../../gitbooks/features/integrations/README.md)-- [tinyconnectors](../../../../../../../vendor/tinyconnectors/README.md)diff --git a/crates/openhuman-core/src/integrations/composio/contract/catalogs/business.rs b/crates/openhuman-core/src/integrations/composio/contract/catalogs/business.rsdeleted file mode 100644index 0a9b2a26bf..0000000000--- a/crates/openhuman-core/src/integrations/composio/contract/catalogs/business.rs+++ /dev/null@@ -1,530 +0,0 @@-//! Curated catalogs — business toolkits: Shopify, Stripe, `HubSpot`,-//! Salesforce, Airtable, Figma.--use crate::integrations::composio::contract::scopes::{CuratedTool, ToolScope};--// ── shopify ─────────────────────────────────────────────────────────-/// The curated action catalog for the `shopify` toolkit.-pub const SHOPIFY_CURATED: &[CuratedTool] = &[- CuratedTool {- slug: "SHOPIFY_BULK_QUERY_OPERATION",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SHOPIFY_COUNT_PRODUCTS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SHOPIFY_COUNT_ORDERS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SHOPIFY_COUNT_FULFILLMENTS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SHOPIFY_COUNT_CUSTOMERS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SHOPIFY_CREATE_ORDER",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SHOPIFY_CREATE_PRODUCT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SHOPIFY_CREATE_DRAFT_ORDER",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SHOPIFY_CREATE_FULFILLMENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SHOPIFY_CREATE_CUSTOMER",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SHOPIFY_CREATE_PRICE_RULE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SHOPIFY_ADJUST_INVENTORY_LEVEL",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SHOPIFY_CREATE_DISCOUNT_CODE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SHOPIFY_UPDATE_PRODUCT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SHOPIFY_CREATE_CUSTOM_COLLECTION",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SHOPIFY_CANCEL_ORDER",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "SHOPIFY_CANCEL_FULFILLMENT",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "SHOPIFY_DELETE_PRODUCT",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "SHOPIFY_BULK_DELETE_CUSTOMER_ADDRESSES",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "SHOPIFY_BULK_DELETE_METAFIELDS",- scope: ToolScope::Admin,- },-];--// ── stripe ──────────────────────────────────────────────────────────-/// The curated action catalog for the `stripe` toolkit.-pub const STRIPE_CURATED: &[CuratedTool] = &[- CuratedTool {- slug: "STRIPE_GET_PAYMENT_INTENT",- scope: ToolScope::Read,- },- CuratedTool {- slug: "STRIPE_LIST_INVOICES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "STRIPE_GET_CUSTOMER",- scope: ToolScope::Read,- },- CuratedTool {- slug: "STRIPE_LIST_CHARGES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "STRIPE_GET_SUBSCRIPTION",- scope: ToolScope::Read,- },- CuratedTool {- slug: "STRIPE_CREATE_PAYMENT_INTENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "STRIPE_CREATE_INVOICE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "STRIPE_CREATE_CUSTOMER",- scope: ToolScope::Write,- },- CuratedTool {- slug: "STRIPE_CREATE_CUSTOMER_SUBSCRIPTION",- scope: ToolScope::Write,- },- CuratedTool {- slug: "STRIPE_CREATE_CHECKOUT_SESSION",- scope: ToolScope::Write,- },- CuratedTool {- slug: "STRIPE_CONFIRM_PAYMENT_INTENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "STRIPE_CAPTURE_PAYMENT_INTENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "STRIPE_ATTACH_PAYMENT_METHOD",- scope: ToolScope::Write,- },- CuratedTool {- slug: "STRIPE_CANCEL_SUBSCRIPTION",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "STRIPE_CANCEL_PAYMENT_INTENT",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "STRIPE_CREATE_CHARGE_REFUND",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "STRIPE_CLOSE_DISPUTE",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "STRIPE_CANCEL_SETUP_INTENT",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "STRIPE_ARCHIVE_BILLING_ALERT",- scope: ToolScope::Admin,- },-];--// ── hubspot ─────────────────────────────────────────────────────────-/// The curated action catalog for the `hubspot` toolkit.-pub const HUBSPOT_CURATED: &[CuratedTool] = &[- CuratedTool {- slug: "HUBSPOT_GET_CONTACTS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "HUBSPOT_SEARCH_CONTACTS_BY_CRITERIA",- scope: ToolScope::Read,- },- CuratedTool {- slug: "HUBSPOT_LIST_CONTACTS_PAGE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "HUBSPOT_GET_COMPANIES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "HUBSPOT_GET_DEALS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "HUBSPOT_GET_CRM_OBJECT_BY_ID",- scope: ToolScope::Read,- },- CuratedTool {- slug: "HUBSPOT_BATCH_READ_COMPANIES_BY_PROPERTIES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "HUBSPOT_CREATE_CONTACT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "HUBSPOT_CREATE_COMPANY",- scope: ToolScope::Write,- },- CuratedTool {- slug: "HUBSPOT_CREATE_DEAL",- scope: ToolScope::Write,- },- CuratedTool {- slug: "HUBSPOT_CREATE_CONTACTS",- scope: ToolScope::Write,- },- CuratedTool {- slug: "HUBSPOT_UPDATE_CONTACT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "HUBSPOT_UPDATE_COMPANY",- scope: ToolScope::Write,- },- CuratedTool {- slug: "HUBSPOT_CREATE_OBJECT_ASSOCIATION",- scope: ToolScope::Write,- },- CuratedTool {- slug: "HUBSPOT_CREATE_A_NEW_MARKETING_EMAIL",- scope: ToolScope::Write,- },- CuratedTool {- slug: "HUBSPOT_CREATE_BATCH_OF_OBJECTS",- scope: ToolScope::Write,- },- CuratedTool {- slug: "HUBSPOT_BATCH_UPDATE_QUOTES",- scope: ToolScope::Write,- },- CuratedTool {- slug: "HUBSPOT_ARCHIVE_CONTACT",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "HUBSPOT_ARCHIVE_COMPANY",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "HUBSPOT_ARCHIVE_DEAL",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "HUBSPOT_ARCHIVE_CONTACTS",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "HUBSPOT_ARCHIVE_COMPANIES",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "HUBSPOT_ARCHIVE_DEALS",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "HUBSPOT_ARCHIVE_CRM_OBJECT_BY_ID",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "HUBSPOT_ARCHIVE_PROPERTY_BY_OBJECT_TYPE_AND_NAME",- scope: ToolScope::Admin,- },-];--// ── salesforce ──────────────────────────────────────────────────────-/// The curated action catalog for the `salesforce` toolkit.-pub const SALESFORCE_CURATED: &[CuratedTool] = &[- CuratedTool {- slug: "SALESFORCE_RUN_SOQL_QUERY",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SALESFORCE_EXECUTE_SOSL_SEARCH",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SALESFORCE_GET_ACCOUNT",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SALESFORCE_GET_CAMPAIGN",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SALESFORCE_GET_ALL_FIELDS_FOR_OBJECT",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SALESFORCE_GET_ALL_CUSTOM_OBJECTS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SALESFORCE_CREATE_ACCOUNT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SALESFORCE_CREATE_CONTACT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SALESFORCE_CREATE_LEAD",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SALESFORCE_CREATE_OPPORTUNITY",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SALESFORCE_CREATE_CAMPAIGN",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SALESFORCE_CREATE_TASK",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SALESFORCE_UPDATE_ACCOUNT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SALESFORCE_UPDATE_CONTACT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SALESFORCE_UPDATE_OPPORTUNITY",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SALESFORCE_ADD_OPPORTUNITY_LINE_ITEM",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SALESFORCE_ADD_CONTACT_TO_CAMPAIGN",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SALESFORCE_ADD_LEAD_TO_CAMPAIGN",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SALESFORCE_ASSOCIATE_CONTACT_TO_ACCOUNT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SALESFORCE_CLONE_OPPORTUNITY_WITH_PRODUCTS",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SALESFORCE_DELETE_ACCOUNT",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "SALESFORCE_DELETE_CONTACT",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "SALESFORCE_DELETE_LEAD",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "SALESFORCE_DELETE_OPPORTUNITY",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "SALESFORCE_DELETE_CAMPAIGN",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "SALESFORCE_DELETE_SOBJECT",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "SALESFORCE_DELETE_SOBJECT_COLLECTIONS",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "SALESFORCE_CREATE_CUSTOM_FIELD",- scope: ToolScope::Admin,- },-];--// ── airtable ────────────────────────────────────────────────────────-/// The curated action catalog for the `airtable` toolkit.-pub const AIRTABLE_CURATED: &[CuratedTool] = &[- CuratedTool {- slug: "AIRTABLE_LIST_RECORDS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "AIRTABLE_GET_RECORD",- scope: ToolScope::Read,- },- CuratedTool {- slug: "AIRTABLE_GET_BASE_SCHEMA",- scope: ToolScope::Read,- },- CuratedTool {- slug: "AIRTABLE_LIST_BASES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "AIRTABLE_LIST_COMMENTS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "AIRTABLE_CREATE_RECORDS",- scope: ToolScope::Write,- },- CuratedTool {- slug: "AIRTABLE_UPDATE_RECORD",- scope: ToolScope::Write,- },- CuratedTool {- slug: "AIRTABLE_UPDATE_MULTIPLE_RECORDS",- scope: ToolScope::Write,- },- CuratedTool {- slug: "AIRTABLE_CREATE_FIELD",- scope: ToolScope::Write,- },- CuratedTool {- slug: "AIRTABLE_CREATE_TABLE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "AIRTABLE_CREATE_COMMENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "AIRTABLE_UPLOAD_ATTACHMENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "AIRTABLE_UPDATE_FIELD",- scope: ToolScope::Write,- },- CuratedTool {- slug: "AIRTABLE_UPDATE_TABLE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "AIRTABLE_DELETE_RECORD",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "AIRTABLE_DELETE_MULTIPLE_RECORDS",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "AIRTABLE_DELETE_COMMENT",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "AIRTABLE_CREATE_BASE",- scope: ToolScope::Admin,- },-];--// ── figma ───────────────────────────────────────────────────────────-/// The curated action catalog for the `figma` toolkit.-pub const FIGMA_CURATED: &[CuratedTool] = &[- CuratedTool {- slug: "FIGMA_GET_FILE_JSON",- scope: ToolScope::Read,- },- CuratedTool {- slug: "FIGMA_GET_FILE_NODES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "FIGMA_GET_COMMENTS_IN_A_FILE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "FIGMA_GET_CURRENT_USER",- scope: ToolScope::Read,- },- CuratedTool {- slug: "FIGMA_DISCOVER_FIGMA_RESOURCES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "FIGMA_GET_FILE_COMPONENTS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "FIGMA_GET_LOCAL_VARIABLES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "FIGMA_EXTRACT_DESIGN_TOKENS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "FIGMA_ADD_A_COMMENT_TO_A_FILE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "FIGMA_CREATE_DEV_RESOURCES",- scope: ToolScope::Write,- },- CuratedTool {- slug: "FIGMA_CREATE_MODIFY_DELETE_VARIABLES",- scope: ToolScope::Write,- },- CuratedTool {- slug: "FIGMA_DELETE_A_COMMENT",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "FIGMA_DELETE_A_WEBHOOK",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "FIGMA_DELETE_DEV_RESOURCE",- scope: ToolScope::Admin,- },-];diff --git a/crates/openhuman-core/src/integrations/composio/contract/catalogs/clickup.rs b/crates/openhuman-core/src/integrations/composio/contract/catalogs/clickup.rsdeleted file mode 100644index 4e8d1e65dd..0000000000--- a/crates/openhuman-core/src/integrations/composio/contract/catalogs/clickup.rs+++ /dev/null@@ -1,125 +0,0 @@-//! Curated catalog of ClickUp Composio actions exposed to the agent.-//!-//! Slugs match Composio's naming convention (`<TOOLKIT>_<ACTION>`) for-//! the ClickUp REST surface. See <https://composio.dev/docs/toolkits/clickup>-//! for the canonical action list; the entries here are the read-oriented-//! subset the memory document sync relies on, plus the most common-//! task-write surface the agent already uses through generic tool-calling.--use crate::integrations::composio::contract::scopes::{CuratedTool, ToolScope};--/// The curated action catalog for the `clickup` toolkit.-pub const CLICKUP_CURATED: &[CuratedTool] = &[- // ── Read: identity ─────────────────────────────────────────────- CuratedTool {- slug: "CLICKUP_GET_AUTHORIZED_USER",- scope: ToolScope::Read,- },- CuratedTool {- slug: "CLICKUP_GET_AUTHORIZED_TEAMS_WORKSPACES",- scope: ToolScope::Read,- },- // ── Read: structure (workspace → space → folder → list) ──────- CuratedTool {- slug: "CLICKUP_GET_SPACES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "CLICKUP_GET_FOLDERS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "CLICKUP_GET_LISTS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "CLICKUP_GET_FOLDERLESS_LISTS",- scope: ToolScope::Read,- },- // ── Read: tasks (the main memory ingest surface) ──────────────- CuratedTool {- slug: "CLICKUP_GET_FILTERED_TEAM_TASKS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "CLICKUP_GET_TASKS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "CLICKUP_GET_TASK",- scope: ToolScope::Read,- },- CuratedTool {- slug: "CLICKUP_GET_TASK_COMMENTS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "CLICKUP_GET_LIST_COMMENTS",- scope: ToolScope::Read,- },- // ── Read: docs / views / time tracking ────────────────────────- CuratedTool {- slug: "CLICKUP_SEARCH_DOCS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "CLICKUP_GET_DOC_PAGES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "CLICKUP_GET_VIEW_TASKS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "CLICKUP_GET_TIME_ENTRIES_WITHIN_A_DATE_RANGE",- scope: ToolScope::Read,- },- // ── Read: members ─────────────────────────────────────────────- CuratedTool {- slug: "CLICKUP_GET_WORKSPACE_MEMBERS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "CLICKUP_GET_TASK_MEMBERS",- scope: ToolScope::Read,- },- // ── Write: create / update tasks ──────────────────────────────- CuratedTool {- slug: "CLICKUP_CREATE_TASK",- scope: ToolScope::Write,- },- CuratedTool {- slug: "CLICKUP_UPDATE_TASK",- scope: ToolScope::Write,- },- CuratedTool {- slug: "CLICKUP_CREATE_TASK_COMMENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "CLICKUP_UPDATE_COMMENT",- scope: ToolScope::Write,- },- // ── Write: structure ──────────────────────────────────────────- CuratedTool {- slug: "CLICKUP_CREATE_LIST",- scope: ToolScope::Write,- },- CuratedTool {- slug: "CLICKUP_UPDATE_LIST",- scope: ToolScope::Write,- },- // ── Admin: destructive ────────────────────────────────────────- CuratedTool {- slug: "CLICKUP_DELETE_TASK",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "CLICKUP_DELETE_COMMENT",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "CLICKUP_DELETE_LIST",- scope: ToolScope::Admin,- },-];diff --git a/crates/openhuman-core/src/integrations/composio/contract/catalogs/descriptions.rs b/crates/openhuman-core/src/integrations/composio/contract/catalogs/descriptions.rsdeleted file mode 100644index a4ffe73978..0000000000--- a/crates/openhuman-core/src/integrations/composio/contract/catalogs/descriptions.rs+++ /dev/null@@ -1,66 +0,0 @@-//! Human-readable capability summaries for Composio toolkit slugs, plus what-//! the toolkit's actions hand back.--/// Human-readable capability summary for a Composio toolkit slug.-///-/// Used by the prompt renderer to tell the orchestrator what each connected-/// integration can do. Covers the most common toolkits; unknown slugs get-/// a generic fallback so newly connected services still appear.-pub fn toolkit_description(slug: &str) -> &'static str {- match slug {- "gmail" => {- "Send, read, draft, reply, forward, and search emails; manage labels and threads"- }- "notion" => "Create, read, update, and search notion pages and notion databases",- "github" => {- "Manage repositories, issues, and pull requests on GitHub; can be \- synced into memory as a document source"- }- "slack" => "Send messages, read channels, manage threads, and post updates in Slack",- "discord" => "Send messages, manage channels, and interact with Discord servers",- "google_calendar" | "googlecalendar" => {- "Create, update, and query calendar events; check availability"- }- "google_drive" | "googledrive" => {- "Upload, download, search, and share files in Google Drive"- }- "google_docs" | "googledocs" => "Create, read, and edit Google Docs documents",- "google_sheets" | "googlesheets" => "Read, write, and manage Google Sheets spreadsheets",- "outlook" => "Send, read, and manage emails in Microsoft Outlook",- "microsoft" | "microsoft_teams" => "Send messages and manage channels in Microsoft Teams",- "larksuite" => {- "Connect Lark / Feishu workspace chat, docs, wiki, and meetings via Composio"- }- "linear" => {- "Create, read, and manage issues, projects, and cycles in Linear; can be \- synced into memory as a document source"- }- "jira" => "Create and manage issues, projects, and sprints in Jira",- "trello" => "Create and manage cards, lists, and boards in Trello",- "asana" => "Create and manage tasks, projects, and sections in Asana",- "clickup" => {- "Create, read, and manage tasks, lists, and docs in ClickUp; can be \- synced into memory as a document source"- }- "dropbox" => "Upload, download, and share files in Dropbox",- "twitter" => "Post tweets, read timelines, and manage Twitter interactions",- "spotify" => "Control playback, search music, and manage playlists on Spotify",- "telegram" => "Send and receive messages via Telegram",- "whatsapp" => "Send and receive messages via WhatsApp",- "twilio" => "Send SMS, make calls, and manage communications via Twilio",- "shopify" => "Manage products, orders, and customers in Shopify",- "stripe" => "Manage payments, subscriptions, and customers in Stripe",- "hubspot" => "Manage contacts, deals, and marketing in HubSpot",- "salesforce" => "Manage contacts, leads, and opportunities in Salesforce",- "airtable" => "Read and write records in Airtable bases",- "figma" => "Access and manage Figma design files and components",- "youtube" => "Search videos, manage playlists, and interact with YouTube",- "calendar" => "Create, update, and query calendar events",- "one_drive" | "onedrive" | "one" => {- "Upload, download, search, and share files in Microsoft OneDrive"- }- "excel" => "Read, write, and manage workbooks, worksheets, and tables in Microsoft Excel",- "todoist" => "Create and manage tasks, projects, sections, and labels in Todoist",- _ => "Interact with this connected service via its available actions",- }-}diff --git a/crates/openhuman-core/src/integrations/composio/contract/catalogs/github.rs b/crates/openhuman-core/src/integrations/composio/contract/catalogs/github.rsdeleted file mode 100644index 5fd13a85cb..0000000000--- a/crates/openhuman-core/src/integrations/composio/contract/catalogs/github.rs+++ /dev/null@@ -1,178 +0,0 @@-//! Curated catalog of GitHub Composio actions exposed to the agent.-//!-//! Composio publishes hundreds of GitHub actions; this hand-tuned slice-//! covers the day-to-day operations an AI assistant actually performs-//! (browsing repos, reading/writing issues + PRs, code search, basic-//! workflow control) and hides the long tail of admin endpoints.--use crate::integrations::composio::contract::scopes::{CuratedTool, ToolScope};--/// The curated action catalog for the `github` toolkit.-pub const GITHUB_CURATED: &[CuratedTool] = &[- // ── Read: user / repos ──────────────────────────────────────────- CuratedTool {- slug: "GITHUB_GET_THE_AUTHENTICATED_USER",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GITHUB_LIST_REPOSITORIES_FOR_THE_AUTHENTICATED_USER",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GITHUB_GET_A_REPOSITORY",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GITHUB_LIST_REPOSITORY_COLLABORATORS",- scope: ToolScope::Read,- },- // ── Read: search ────────────────────────────────────────────────- CuratedTool {- slug: "GITHUB_SEARCH_REPOSITORIES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GITHUB_SEARCH_CODE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GITHUB_SEARCH_ISSUES_AND_PULL_REQUESTS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GITHUB_SEARCH_USERS",- scope: ToolScope::Read,- },- // ── Read: issues ────────────────────────────────────────────────- CuratedTool {- slug: "GITHUB_LIST_REPOSITORY_ISSUES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GITHUB_GET_AN_ISSUE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GITHUB_LIST_ISSUE_COMMENTS",- scope: ToolScope::Read,- },- // ── Read: pull requests ─────────────────────────────────────────- CuratedTool {- slug: "GITHUB_LIST_PULL_REQUESTS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GITHUB_GET_A_PULL_REQUEST",- scope: ToolScope::Read,- },- // ── Read: branches / commits ────────────────────────────────────- CuratedTool {- slug: "GITHUB_LIST_BRANCHES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GITHUB_GET_A_BRANCH",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GITHUB_LIST_COMMITS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GITHUB_GET_A_COMMIT",- scope: ToolScope::Read,- },- // ── Write: repos / contents ─────────────────────────────────────- CuratedTool {- slug: "GITHUB_CREATE_A_REPOSITORY_FOR_THE_AUTHENTICATED_USER",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GITHUB_CREATE_OR_UPDATE_FILE_CONTENTS",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GITHUB_CREATE_A_COMMIT",- scope: ToolScope::Write,- },- // GITHUB_COMMIT_MULTIPLE_FILES removed from Composio catalog- CuratedTool {- slug: "GITHUB_CREATE_A_COMMIT_COMMENT",- scope: ToolScope::Write,- },- // ── Write: issues ───────────────────────────────────────────────- CuratedTool {- slug: "GITHUB_CREATE_AN_ISSUE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GITHUB_UPDATE_AN_ISSUE",- scope: ToolScope::Write,- },- // GITHUB_CLOSE_AN_ISSUE — removed: no dedicated Composio slug.- // Use GITHUB_UPDATE_AN_ISSUE with state:"closed" instead.- CuratedTool {- slug: "GITHUB_CREATE_AN_ISSUE_COMMENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GITHUB_ADD_LABELS_TO_AN_ISSUE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GITHUB_ADD_ASSIGNEES_TO_AN_ISSUE",- scope: ToolScope::Write,- },- // ── Write: pull requests ────────────────────────────────────────- CuratedTool {- slug: "GITHUB_CREATE_A_PULL_REQUEST",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GITHUB_UPDATE_A_PULL_REQUEST",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GITHUB_MERGE_A_PULL_REQUEST",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GITHUB_CREATE_A_REVIEW_FOR_A_PULL_REQUEST",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GITHUB_CREATE_A_REVIEW_COMMENT_FOR_A_PULL_REQUEST",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GITHUB_CREATE_A_GIST",- scope: ToolScope::Write,- },- // ── Admin: destructive / permission-changing ────────────────────- CuratedTool {- slug: "GITHUB_DELETE_A_REPOSITORY",- scope: ToolScope::Admin,- },- // DELETE_A_REFERENCE maps to DELETE /repos/{owner}/{repo}/git/refs/{ref}.- // The ref must be a full path (e.g. `refs/heads/branch-name` or- // `refs/tags/v1.0`) — passing a bare branch name deletes nothing (404).- // This replaces the old GITHUB_DELETE_A_BRANCH slug (Composio v3 rename);- // it is broader — it can delete tags too — so agents should always specify- // a `refs/heads/` prefix when the intent is branch deletion.- CuratedTool {- slug: "GITHUB_DELETE_A_REFERENCE",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GITHUB_DELETE_A_FILE",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GITHUB_ADD_A_REPOSITORY_COLLABORATOR",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GITHUB_CANCEL_A_WORKFLOW_RUN",- scope: ToolScope::Admin,- },-];diff --git a/crates/openhuman-core/src/integrations/composio/contract/catalogs/gmail.rs b/crates/openhuman-core/src/integrations/composio/contract/catalogs/gmail.rsdeleted file mode 100644index 36da1e2eab..0000000000--- a/crates/openhuman-core/src/integrations/composio/contract/catalogs/gmail.rs+++ /dev/null@@ -1,135 +0,0 @@-//! Curated catalog of Gmail Composio actions exposed to the agent.-//!-//! Composio publishes 60+ Gmail actions; this hand-tuned slice covers-//! the cases the agent actually plans for (read, compose, manage) and-//! hides the long tail of edge-case admin endpoints.--use crate::integrations::composio::contract::scopes::{CuratedTool, ToolScope};--/// The curated action catalog for the `gmail` toolkit.-pub const GMAIL_CURATED: &[CuratedTool] = &[- // ── Read: messages & threads ────────────────────────────────────- CuratedTool {- slug: "GMAIL_FETCH_EMAILS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GMAIL_LIST_MESSAGES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GMAIL_FETCH_MESSAGE_BY_MESSAGE_ID",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GMAIL_FETCH_MESSAGE_BY_THREAD_ID",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GMAIL_LIST_THREADS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GMAIL_GET_ATTACHMENT",- scope: ToolScope::Read,- },- // ── Read: profile & settings ────────────────────────────────────- CuratedTool {- slug: "GMAIL_GET_PROFILE",- scope: ToolScope::Read,- },- // ── Read: contacts & people ─────────────────────────────────────- CuratedTool {- slug: "GMAIL_GET_CONTACTS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GMAIL_GET_PEOPLE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GMAIL_SEARCH_PEOPLE",- scope: ToolScope::Read,- },- // ── Read: drafts & labels ───────────────────────────────────────- CuratedTool {- slug: "GMAIL_LIST_DRAFTS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GMAIL_GET_DRAFT",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GMAIL_LIST_LABELS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GMAIL_GET_LABEL",- scope: ToolScope::Read,- },- // ── Write: send & compose ───────────────────────────────────────- CuratedTool {- slug: "GMAIL_SEND_EMAIL",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GMAIL_REPLY_TO_THREAD",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GMAIL_FORWARD_MESSAGE",- scope: ToolScope::Write,- },- // ── Write: drafts ───────────────────────────────────────────────- CuratedTool {- slug: "GMAIL_CREATE_EMAIL_DRAFT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GMAIL_UPDATE_DRAFT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GMAIL_SEND_DRAFT",- scope: ToolScope::Write,- },- // ── Write: labels (create/update on user labels) ────────────────- CuratedTool {- slug: "GMAIL_ADD_LABEL_TO_EMAIL",- scope: ToolScope::Write,- },- // ── Admin: destructive & permission-changing ────────────────────- CuratedTool {- slug: "GMAIL_DELETE_MESSAGE",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GMAIL_BATCH_DELETE_MESSAGES",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GMAIL_MOVE_TO_TRASH",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GMAIL_DELETE_THREAD",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GMAIL_MOVE_THREAD_TO_TRASH",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GMAIL_UNTRASH_THREAD",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GMAIL_DELETE_DRAFT",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GMAIL_DELETE_LABEL",- scope: ToolScope::Admin,- },-];diff --git a/crates/openhuman-core/src/integrations/composio/contract/catalogs/google.rs b/crates/openhuman-core/src/integrations/composio/contract/catalogs/google.rsdeleted file mode 100644index a0b5e6ff01..0000000000--- a/crates/openhuman-core/src/integrations/composio/contract/catalogs/google.rs+++ /dev/null@@ -1,364 +0,0 @@-//! Curated catalogs — Google toolkits: `GoogleCalendar`, `GoogleDrive`,-//! `GoogleDocs`, `GoogleSheets`.--use crate::integrations::composio::contract::scopes::{CuratedTool, ToolScope};--// ── googlecalendar ──────────────────────────────────────────────────-/// The curated action catalog for the `googlecalendar` toolkit.-pub const GOOGLECALENDAR_CURATED: &[CuratedTool] = &[- CuratedTool {- slug: "GOOGLECALENDAR_EVENTS_LIST",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GOOGLECALENDAR_FIND_EVENT",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GOOGLECALENDAR_LIST_CALENDARS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GOOGLECALENDAR_EVENTS_GET",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GOOGLECALENDAR_FIND_FREE_SLOTS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GOOGLECALENDAR_GET_CALENDAR",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GOOGLECALENDAR_EVENTS_LIST_ALL_CALENDARS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GOOGLECALENDAR_CREATE_EVENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLECALENDAR_UPDATE_EVENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLECALENDAR_PATCH_EVENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLECALENDAR_QUICK_ADD",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLECALENDAR_EVENTS_MOVE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLECALENDAR_REMOVE_ATTENDEE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLECALENDAR_EVENTS_IMPORT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLECALENDAR_DELETE_EVENT",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GOOGLECALENDAR_CLEAR_CALENDAR",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GOOGLECALENDAR_CALENDARS_DELETE",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GOOGLECALENDAR_DUPLICATE_CALENDAR",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GOOGLECALENDAR_PATCH_CALENDAR",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GOOGLECALENDAR_ACL_INSERT",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GOOGLECALENDAR_ACL_DELETE",- scope: ToolScope::Admin,- },-];--// ── googledrive ─────────────────────────────────────────────────────-/// The curated action catalog for the `googledrive` toolkit.-pub const GOOGLEDRIVE_CURATED: &[CuratedTool] = &[- CuratedTool {- slug: "GOOGLEDRIVE_FIND_FILE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GOOGLEDRIVE_LIST_FILES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GOOGLEDRIVE_GET_FILE_METADATA",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GOOGLEDRIVE_DOWNLOAD_FILE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GOOGLEDRIVE_LIST_PERMISSIONS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GOOGLEDRIVE_FIND_FOLDER",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GOOGLEDRIVE_GET_ABOUT",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GOOGLEDRIVE_CREATE_FILE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLEDRIVE_CREATE_FOLDER",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLEDRIVE_UPLOAD_FILE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLEDRIVE_CREATE_FILE_FROM_TEXT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLEDRIVE_COPY_FILE_ADVANCED",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLEDRIVE_MOVE_FILE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLEDRIVE_EDIT_FILE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLEDRIVE_RENAME_FILE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLEDRIVE_CREATE_PERMISSION",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GOOGLEDRIVE_DELETE_PERMISSION",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GOOGLEDRIVE_UPDATE_PERMISSION",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GOOGLEDRIVE_DELETE_FILE",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GOOGLEDRIVE_GOOGLE_DRIVE_DELETE_FOLDER_OR_FILE_ACTION",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GOOGLEDRIVE_EMPTY_TRASH",- scope: ToolScope::Admin,- },-];--// ── googledocs ──────────────────────────────────────────────────────-/// The curated action catalog for the `googledocs` toolkit.-pub const GOOGLEDOCS_CURATED: &[CuratedTool] = &[- CuratedTool {- slug: "GOOGLEDOCS_GET_DOCUMENT_BY_ID",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GOOGLEDOCS_GET_DOCUMENT_PLAINTEXT",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GOOGLEDOCS_SEARCH_DOCUMENTS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GOOGLEDOCS_CREATE_DOCUMENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLEDOCS_CREATE_DOCUMENT_MARKDOWN",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLEDOCS_INSERT_TEXT_ACTION",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLEDOCS_INSERT_TABLE_ACTION",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLEDOCS_INSERT_INLINE_IMAGE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLEDOCS_UPDATE_EXISTING_DOCUMENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLEDOCS_UPDATE_DOCUMENT_MARKDOWN",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLEDOCS_UPDATE_DOCUMENT_SECTION_MARKDOWN",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLEDOCS_REPLACE_ALL_TEXT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLEDOCS_COPY_DOCUMENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLEDOCS_CREATE_HEADER",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLEDOCS_CREATE_FOOTER",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLEDOCS_DELETE_CONTENT_RANGE",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GOOGLEDOCS_DELETE_HEADER",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GOOGLEDOCS_DELETE_FOOTER",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GOOGLEDOCS_DELETE_NAMED_RANGE",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GOOGLEDOCS_DELETE_TABLE_ROW",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GOOGLEDOCS_DELETE_TABLE_COLUMN",- scope: ToolScope::Admin,- },-];--// ── googlesheets ────────────────────────────────────────────────────-/// The curated action catalog for the `googlesheets` toolkit.-pub const GOOGLESHEETS_CURATED: &[CuratedTool] = &[- CuratedTool {- slug: "GOOGLESHEETS_BATCH_GET",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GOOGLESHEETS_VALUES_GET",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GOOGLESHEETS_LOOKUP_SPREADSHEET_ROW",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GOOGLESHEETS_GET_SPREADSHEET_INFO",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GOOGLESHEETS_GET_SHEET_NAMES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GOOGLESHEETS_SEARCH_SPREADSHEETS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "GOOGLESHEETS_VALUES_UPDATE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLESHEETS_UPDATE_VALUES_BATCH",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLESHEETS_SPREADSHEETS_VALUES_APPEND",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLESHEETS_UPSERT_ROWS",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLESHEETS_CREATE_GOOGLE_SHEET1",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLESHEETS_ADD_SHEET",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLESHEETS_CREATE_SPREADSHEET_ROW",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLESHEETS_CREATE_SPREADSHEET_COLUMN",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLESHEETS_FIND_REPLACE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLESHEETS_FORMAT_CELL",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLESHEETS_SET_DATA_VALIDATION_RULE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "GOOGLESHEETS_SPREADSHEETS_VALUES_BATCH_CLEAR",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GOOGLESHEETS_DELETE_SHEET",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GOOGLESHEETS_DELETE_DIMENSION",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GOOGLESHEETS_UPDATE_SHEET_PROPERTIES",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "GOOGLESHEETS_UPDATE_SPREADSHEET_PROPERTIES",- scope: ToolScope::Admin,- },-];diff --git a/crates/openhuman-core/src/integrations/composio/contract/catalogs/linear.rs b/crates/openhuman-core/src/integrations/composio/contract/catalogs/linear.rsdeleted file mode 100644index 0e96ea5267..0000000000--- a/crates/openhuman-core/src/integrations/composio/contract/catalogs/linear.rs+++ /dev/null@@ -1,91 +0,0 @@-//! Curated catalog of Linear Composio actions.--use crate::integrations::composio::contract::scopes::{CuratedTool, ToolScope};--/// The curated action catalog for the `linear` toolkit.-pub const LINEAR_CURATED: &[CuratedTool] = &[- CuratedTool {- slug: "LINEAR_LIST_LINEAR_USERS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "LINEAR_LIST_LINEAR_ISSUES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "LINEAR_GET_LINEAR_ISSUE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "LINEAR_SEARCH_ISSUES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "LINEAR_LIST_LINEAR_TEAMS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "LINEAR_LIST_LINEAR_PROJECTS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "LINEAR_GET_LINEAR_PROJECT",- scope: ToolScope::Read,- },- CuratedTool {- slug: "LINEAR_LIST_LINEAR_STATES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "LINEAR_GET_CYCLES_BY_TEAM_ID",- scope: ToolScope::Read,- },- CuratedTool {- slug: "LINEAR_LIST_LINEAR_LABELS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "LINEAR_CREATE_LINEAR_ISSUE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "LINEAR_UPDATE_ISSUE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "LINEAR_CREATE_LINEAR_COMMENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "LINEAR_UPDATE_LINEAR_COMMENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "LINEAR_CREATE_ATTACHMENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "LINEAR_CREATE_ISSUE_RELATION",- scope: ToolScope::Write,- },- CuratedTool {- slug: "LINEAR_CREATE_LINEAR_PROJECT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "LINEAR_UPDATE_LINEAR_PROJECT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "LINEAR_CREATE_LINEAR_LABEL",- scope: ToolScope::Write,- },- CuratedTool {- slug: "LINEAR_DELETE_LINEAR_ISSUE",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "LINEAR_REMOVE_ISSUE_LABEL",- scope: ToolScope::Admin,- },-];diff --git a/crates/openhuman-core/src/integrations/composio/contract/catalogs/messaging.rs b/crates/openhuman-core/src/integrations/composio/contract/catalogs/messaging.rsdeleted file mode 100644index e5f34220ef..0000000000--- a/crates/openhuman-core/src/integrations/composio/contract/catalogs/messaging.rs+++ /dev/null@@ -1,391 +0,0 @@-//! Curated catalogs — messaging toolkits: Slack, Discord, Telegram,-//! WhatsApp, Microsoft Teams.--use crate::integrations::composio::contract::scopes::{CuratedTool, ToolScope};--// ── slack ───────────────────────────────────────────────────────────-/// The curated action catalog for the `slack` toolkit.-pub const SLACK_CURATED: &[CuratedTool] = &[- CuratedTool {- slug: "SLACK_FIND_CHANNELS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SLACK_FIND_USERS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SLACK_FETCH_CONVERSATION_HISTORY",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SLACK_FETCH_MESSAGE_THREAD_FROM_A_CONVERSATION",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SLACK_LIST_ALL_CHANNELS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SLACK_LIST_ALL_USERS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SLACK_LIST_CONVERSATIONS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SLACK_FETCH_TEAM_INFO",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SLACK_GET_USER_PRESENCE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SLACK_ASSISTANT_SEARCH_CONTEXT",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SLACK_SEND_MESSAGE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SLACK_POST_MESSAGE_TO_CHANNEL",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SLACK_SEND_MESSAGE_TO_CHANNEL",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SLACK_CREATE_CHANNEL",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SLACK_INVITE_USERS_TO_A_SLACK_CHANNEL",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SLACK_ADD_REACTION_TO_AN_ITEM",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SLACK_UPLOAD_FILE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SLACK_CREATE_A_REMINDER",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SLACK_CREATE_USER_GROUP",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SLACK_DELETE_CHANNEL",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "SLACK_ARCHIVE_CONVERSATION",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "SLACK_DELETE_FILE",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "SLACK_DELETES_A_MESSAGE_FROM_A_CHAT",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "SLACK_DELETE_REMINDER",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "SLACK_LEAVE_CONVERSATION",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "SLACK_INVITE_USER_TO_WORKSPACE",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "SLACK_CONVERT_CHANNEL_TO_PRIVATE",- scope: ToolScope::Admin,- },-];--// ── discord ─────────────────────────────────────────────────────────-/// The curated action catalog for the `discord` toolkit.-pub const DISCORD_CURATED: &[CuratedTool] = &[- CuratedTool {- slug: "DISCORD_GET_MY_USER",- scope: ToolScope::Read,- },- CuratedTool {- slug: "DISCORD_GET_USER",- scope: ToolScope::Read,- },- CuratedTool {- slug: "DISCORD_LIST_MY_GUILDS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "DISCORD_GET_MY_GUILD_MEMBER",- scope: ToolScope::Read,- },- CuratedTool {- slug: "DISCORD_INVITE_RESOLVE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "DISCORD_GET_GUILD_WIDGET",- scope: ToolScope::Read,- },- CuratedTool {- slug: "DISCORD_LIST_MY_CONNECTIONS",- scope: ToolScope::Read,- },- // NOTE: guild-channel and channel-message actions are intentionally NOT- // listed here. Composio's `discord` toolkit is OAuth2 / user-scoped and does- // not expose them (its full action set is user/account-scoped: my user, my- // guilds, my member, invites, …). `DISCORD_LIST_GUILD_CHANNELS`,- // `DISCORD_GET_CHANNEL`, `DISCORD_SEND_MESSAGE`, and `DISCORD_CREATE_MESSAGE`- // were whitelisted here (#3085/#3144) but no such slugs exist on this- // toolkit, so Composio never returned them — the whitelist entries were- // inert and misleadingly implied channel access was possible over OAuth.- // Guild-channel / message reads live in Composio's SEPARATE `discordbot`- // toolkit (bot-token auth, `DISCORDBOT_*` slugs, e.g.- // `DISCORDBOT_FETCH_MESSAGES_FROM_CHANNEL`). Those pass the visibility- // filter via `classify_unknown` once a `discordbot` connection exists; do- // NOT hand-list `DISCORDBOT_*` slugs here from guesses — a wrong slug makes- // `find_curated` drop the real tool (worse than the pass-through default).-];--// ── telegram ────────────────────────────────────────────────────────-/// The curated action catalog for the `telegram` toolkit.-pub const TELEGRAM_CURATED: &[CuratedTool] = &[- CuratedTool {- slug: "TELEGRAM_GET_UPDATES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "TELEGRAM_GET_CHAT",- scope: ToolScope::Read,- },- CuratedTool {- slug: "TELEGRAM_GET_CHAT_HISTORY",- scope: ToolScope::Read,- },- CuratedTool {- slug: "TELEGRAM_GET_CHAT_MEMBER",- scope: ToolScope::Read,- },- CuratedTool {- slug: "TELEGRAM_GET_CHAT_MEMBERS_COUNT",- scope: ToolScope::Read,- },- CuratedTool {- slug: "TELEGRAM_GET_CHAT_ADMINISTRATORS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "TELEGRAM_GET_ME",- scope: ToolScope::Read,- },- CuratedTool {- slug: "TELEGRAM_SEND_MESSAGE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TELEGRAM_SEND_PHOTO",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TELEGRAM_SEND_DOCUMENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TELEGRAM_SEND_LOCATION",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TELEGRAM_SEND_POLL",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TELEGRAM_FORWARD_MESSAGE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TELEGRAM_EDIT_MESSAGE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TELEGRAM_ANSWER_CALLBACK_QUERY",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TELEGRAM_DELETE_MESSAGE",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "TELEGRAM_CREATE_CHAT_INVITE_LINK",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "TELEGRAM_SET_MY_COMMANDS",- scope: ToolScope::Admin,- },-];--// ── whatsapp ────────────────────────────────────────────────────────-/// The curated action catalog for the `whatsapp` toolkit.-pub const WHATSAPP_CURATED: &[CuratedTool] = &[- CuratedTool {- slug: "WHATSAPP_GET_PHONE_NUMBERS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "WHATSAPP_GET_MESSAGE_TEMPLATES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "WHATSAPP_GET_PHONE_NUMBER",- scope: ToolScope::Read,- },- CuratedTool {- slug: "WHATSAPP_GET_BUSINESS_PROFILE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "WHATSAPP_GET_TEMPLATE_STATUS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "WHATSAPP_GET_MEDIA_INFO",- scope: ToolScope::Read,- },- CuratedTool {- slug: "WHATSAPP_SEND_MESSAGE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "WHATSAPP_SEND_TEMPLATE_MESSAGE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "WHATSAPP_SEND_MEDIA",- scope: ToolScope::Write,- },- CuratedTool {- slug: "WHATSAPP_SEND_MEDIA_BY_ID",- scope: ToolScope::Write,- },- CuratedTool {- slug: "WHATSAPP_SEND_INTERACTIVE_BUTTONS",- scope: ToolScope::Write,- },- CuratedTool {- slug: "WHATSAPP_SEND_INTERACTIVE_LIST",- scope: ToolScope::Write,- },- CuratedTool {- slug: "WHATSAPP_UPLOAD_MEDIA",- scope: ToolScope::Write,- },- CuratedTool {- slug: "WHATSAPP_CREATE_MESSAGE_TEMPLATE",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "WHATSAPP_DELETE_MESSAGE_TEMPLATE",- scope: ToolScope::Admin,- },-];--// ── microsoft_teams ─────────────────────────────────────────────────-/// The curated action catalog for the `microsoft_teams` toolkit.-pub const MICROSOFT_TEAMS_CURATED: &[CuratedTool] = &[- CuratedTool {- slug: "MICROSOFT_TEAMS_GET_CHAT",- scope: ToolScope::Read,- },- CuratedTool {- slug: "MICROSOFT_TEAMS_GET_CHANNEL",- scope: ToolScope::Read,- },- CuratedTool {- slug: "MICROSOFT_TEAMS_GET_TEAM_FROM_GROUP",- scope: ToolScope::Read,- },- CuratedTool {- slug: "MICROSOFT_TEAMS_CHATS_GET_ALL_CHATS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "MICROSOFT_TEAMS_GET_PRESENCE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "MICROSOFT_TEAMS_GET_ONLINE_MEETING",- scope: ToolScope::Read,- },- CuratedTool {- slug: "MICROSOFT_TEAMS_GET_SCHEDULE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "MICROSOFT_TEAMS_CREATE_CHANNEL",- scope: ToolScope::Write,- },- CuratedTool {- slug: "MICROSOFT_TEAMS_CREATE_TEAM",- scope: ToolScope::Write,- },- CuratedTool {- slug: "MICROSOFT_TEAMS_CREATE_MEETING",- scope: ToolScope::Write,- },- CuratedTool {- slug: "MICROSOFT_TEAMS_ADD_TEAM_MEMBER",- scope: ToolScope::Write,- },- CuratedTool {- slug: "MICROSOFT_TEAMS_ADD_CHAT_MEMBER",- scope: ToolScope::Write,- },- CuratedTool {- slug: "MICROSOFT_TEAMS_CREATE_SHIFT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "MICROSOFT_TEAMS_CREATE_TIME_OFF_REQUEST",- scope: ToolScope::Write,- },- CuratedTool {- slug: "MICROSOFT_TEAMS_DELETE_TEAM",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "MICROSOFT_TEAMS_DELETE_CHANNEL",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "MICROSOFT_TEAMS_ARCHIVE_TEAM",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "MICROSOFT_TEAMS_ARCHIVE_CHANNEL",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "MICROSOFT_TEAMS_DELETE_TAB",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "MICROSOFT_TEAMS_DELETE_TIME_OFF",- scope: ToolScope::Admin,- },-];diff --git a/crates/openhuman-core/src/integrations/composio/contract/catalogs/microsoft.rs b/crates/openhuman-core/src/integrations/composio/contract/catalogs/microsoft.rsdeleted file mode 100644index 1e8242434b..0000000000--- a/crates/openhuman-core/src/integrations/composio/contract/catalogs/microsoft.rs+++ /dev/null@@ -1,166 +0,0 @@-//! Curated catalogs — Microsoft personal-productivity toolkits:-//! `OneDrive` (files) and Excel (spreadsheets).-//!-//! These toolkits are catalog-only: they don't ship a native-//! `ComposioProvider` implementation, so they have no-//! user-profile fetch, no initial/periodic sync, no trigger webhooks,-//! and no memory ingestion. Connecting them via the UI lets the agent-//! invoke the listed actions through Composio's API, but their data-//! is not pre-ingested into OpenHuman's memory.-//!-//! Action slugs are sourced best-effort from-//! `https://docs.composio.dev/toolkits/<id>.md`. Slugs that don't-//! exist on the backend simply never appear in `composio_list_tools`,-//! so over-shooting is harmless.--use crate::integrations::composio::contract::scopes::{CuratedTool, ToolScope};--// ── onedrive ────────────────────────────────────────────────────────-/// The curated action catalog for the `one_drive` toolkit.-pub const ONE_DRIVE_CURATED: &[CuratedTool] = &[- CuratedTool {- slug: "ONE_DRIVE_GET_FILE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "ONE_DRIVE_GET_FILE_METADATA",- scope: ToolScope::Read,- },- CuratedTool {- slug: "ONE_DRIVE_LIST_FILES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "ONE_DRIVE_LIST_CHILDREN",- scope: ToolScope::Read,- },- CuratedTool {- slug: "ONE_DRIVE_SEARCH_FILES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "ONE_DRIVE_DOWNLOAD_FILE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "ONE_DRIVE_GET_DRIVE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "ONE_DRIVE_UPLOAD_FILE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "ONE_DRIVE_CREATE_FOLDER",- scope: ToolScope::Write,- },- CuratedTool {- slug: "ONE_DRIVE_COPY_FILE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "ONE_DRIVE_MOVE_FILE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "ONE_DRIVE_UPDATE_FILE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "ONE_DRIVE_CREATE_SHARE_LINK",- scope: ToolScope::Write,- },- CuratedTool {- slug: "ONE_DRIVE_DELETE_FILE",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "ONE_DRIVE_DELETE_FOLDER",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "ONE_DRIVE_RESTORE_FILE",- scope: ToolScope::Admin,- },-];--// ── excel ───────────────────────────────────────────────────────────-/// The curated action catalog for the `excel` toolkit.-pub const EXCEL_CURATED: &[CuratedTool] = &[- CuratedTool {- slug: "EXCEL_GET_WORKBOOK",- scope: ToolScope::Read,- },- CuratedTool {- slug: "EXCEL_LIST_WORKSHEETS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "EXCEL_GET_WORKSHEET",- scope: ToolScope::Read,- },- CuratedTool {- slug: "EXCEL_GET_RANGE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "EXCEL_GET_USED_RANGE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "EXCEL_LIST_TABLES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "EXCEL_GET_TABLE_ROWS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "EXCEL_CREATE_WORKSHEET",- scope: ToolScope::Write,- },- CuratedTool {- slug: "EXCEL_UPDATE_RANGE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "EXCEL_APPEND_ROWS",- scope: ToolScope::Write,- },- CuratedTool {- slug: "EXCEL_INSERT_TABLE_ROW",- scope: ToolScope::Write,- },- CuratedTool {- slug: "EXCEL_UPDATE_TABLE_ROW",- scope: ToolScope::Write,- },- CuratedTool {- slug: "EXCEL_CREATE_TABLE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "EXCEL_FORMAT_RANGE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "EXCEL_DELETE_WORKSHEET",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "EXCEL_DELETE_TABLE",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "EXCEL_DELETE_TABLE_ROW",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "EXCEL_CLEAR_RANGE",- scope: ToolScope::Admin,- },-];--#[cfg(test)]-#[path = "microsoft_tests.rs"]-mod tests;diff --git a/crates/openhuman-core/src/integrations/composio/contract/catalogs/microsoft_tests.rs b/crates/openhuman-core/src/integrations/composio/contract/catalogs/microsoft_tests.rsdeleted file mode 100644index d636b92950..0000000000--- a/crates/openhuman-core/src/integrations/composio/contract/catalogs/microsoft_tests.rs+++ /dev/null@@ -1,45 +0,0 @@-//! Tests for the surrounding module.--use super::*;--#[test]-fn one_drive_catalog_is_non_empty_and_unique() {- assert!(!ONE_DRIVE_CURATED.is_empty());- let mut slugs: Vec<&'static str> = ONE_DRIVE_CURATED.iter().map(|t| t.slug).collect();- slugs.sort_unstable();- slugs.dedup();- assert_eq!(slugs.len(), ONE_DRIVE_CURATED.len());- for tool in ONE_DRIVE_CURATED {- assert!(tool.slug.starts_with("ONE_DRIVE_"));- }-}--#[test]-fn excel_catalog_is_non_empty_and_unique() {- assert!(!EXCEL_CURATED.is_empty());- let mut slugs: Vec<&'static str> = EXCEL_CURATED.iter().map(|t| t.slug).collect();- slugs.sort_unstable();- slugs.dedup();- assert_eq!(slugs.len(), EXCEL_CURATED.len());- for tool in EXCEL_CURATED {- assert!(tool.slug.starts_with("EXCEL_"));- }-}--#[test]-fn one_drive_catalog_covers_all_three_scopes() {- assert!(ONE_DRIVE_CURATED.iter().any(|t| t.scope == ToolScope::Read));- assert!(ONE_DRIVE_CURATED- .iter()- .any(|t| t.scope == ToolScope::Write));- assert!(ONE_DRIVE_CURATED- .iter()- .any(|t| t.scope == ToolScope::Admin));-}--#[test]-fn excel_catalog_covers_all_three_scopes() {- assert!(EXCEL_CURATED.iter().any(|t| t.scope == ToolScope::Read));- assert!(EXCEL_CURATED.iter().any(|t| t.scope == ToolScope::Write));- assert!(EXCEL_CURATED.iter().any(|t| t.scope == ToolScope::Admin));-}diff --git a/crates/openhuman-core/src/integrations/composio/contract/catalogs/mod.rs b/crates/openhuman-core/src/integrations/composio/contract/catalogs/mod.rsdeleted file mode 100644index aa5898fae3..0000000000--- a/crates/openhuman-core/src/integrations/composio/contract/catalogs/mod.rs+++ /dev/null@@ -1,131 +0,0 @@-//! The curated Composio tool catalogs, and the lookups over them.-//!-//! Composio publishes 60+ actions per toolkit; most are noise for an agent's-//! planning loop. Each toolkit gets a hand-curated `&'static [CuratedTool]`-//! slice that pares the surface down to a useful subset and tags every action-//! with a [`ToolScope`], so per-user scope preferences can gate execution.-//!-//! The host is their only reader: it filters the agent's visible tool list,-//! renders the `gated_tools` unlock hints, and decides which connected-//! toolkits get the "agent-ready" badge.--pub mod business;-pub mod clickup;-pub mod descriptions;-pub mod github;-pub mod gmail;-pub mod google;-pub mod linear;-pub mod messaging;-pub mod microsoft;-pub mod notion;-pub mod productivity;-pub mod social_media;--use super::scopes::{- classify_unknown, find_curated, toolkit_from_slug, CuratedTool, ToolScope, UserScopePref,-};--pub use descriptions::toolkit_description;--/// Toolkits with a native identity provider (profile facets).-pub const NATIVE_PROVIDERS: &[&str] = &["gmail", "notion", "slack", "clickup", "github", "linear"];--/// Does `toolkit` have a native identity provider?-#[must_use]-pub fn has_native_provider(toolkit: &str) -> bool {- NATIVE_PROVIDERS.contains(&toolkit)-}--/// Static toolkit → curated catalog map.-///-/// The lookup key is the lowercased prefix [`toolkit_from_slug`] returns for an-/// action slug — `GOOGLECALENDAR_CREATE_EVENT` → `"googlecalendar"`.-/// Multi-segment prefixes like `MICROSOFT_TEAMS_*` return their known toolkit-/// slug.-#[must_use]-pub fn catalog_for_toolkit(toolkit: &str) -> Option<&'static [CuratedTool]> {- match toolkit.trim().to_ascii_lowercase().as_str() {- // Toolkits with a native provider. Each provider's `curated_tools()`- // returns this same slice.- "gmail" => Some(gmail::GMAIL_CURATED),- "notion" => Some(notion::NOTION_CURATED),- "github" => Some(github::GITHUB_CURATED),- "linear" => Some(linear::LINEAR_CURATED),- "clickup" => Some(clickup::CLICKUP_CURATED),- "slack" => Some(messaging::SLACK_CURATED),- // Catalog-only toolkits.- "discord" => Some(messaging::DISCORD_CURATED),- "googlecalendar" | "google_calendar" => Some(google::GOOGLECALENDAR_CURATED),- "googledrive" | "google_drive" => Some(google::GOOGLEDRIVE_CURATED),- "googledocs" | "google_docs" => Some(google::GOOGLEDOCS_CURATED),- "googlesheets" | "google_sheets" => Some(google::GOOGLESHEETS_CURATED),- "outlook" => Some(productivity::OUTLOOK_CURATED),- // The legacy "microsoft" alias stays while `toolkit_from_slug` returns- // the precise "microsoft_teams" slug for Teams actions.- "microsoft" | "microsoft_teams" => Some(messaging::MICROSOFT_TEAMS_CURATED),- "jira" => Some(productivity::JIRA_CURATED),- "trello" => Some(productivity::TRELLO_CURATED),- "asana" => Some(productivity::ASANA_CURATED),- "dropbox" => Some(productivity::DROPBOX_CURATED),- "twitter" => Some(social_media::TWITTER_CURATED),- "spotify" => Some(social_media::SPOTIFY_CURATED),- "telegram" => Some(messaging::TELEGRAM_CURATED),- "whatsapp" => Some(messaging::WHATSAPP_CURATED),- "shopify" => Some(business::SHOPIFY_CURATED),- "stripe" => Some(business::STRIPE_CURATED),- "hubspot" => Some(business::HUBSPOT_CURATED),- "salesforce" => Some(business::SALESFORCE_CURATED),- "airtable" => Some(business::AIRTABLE_CURATED),- "figma" => Some(business::FIGMA_CURATED),- "youtube" => Some(social_media::YOUTUBE_CURATED),- // `ONE_DRIVE_*` slugs extract to "one" via `toolkit_from_slug`; alias- // both the prefix and the canonical UI/backend slugs.- "one" | "one_drive" | "onedrive" => Some(microsoft::ONE_DRIVE_CURATED),- "excel" => Some(microsoft::EXCEL_CURATED),- "todoist" => Some(productivity::TODOIST_CURATED),- _ => None,- }-}--/// Should this action slug appear in the agent's tool surface, given an-/// already-loaded user scope preference?-///-/// `true` when the action is in its toolkit's curated whitelist (or the toolkit-/// has no curation) **and** the preference allows its classification. Falls-/// back to [`classify_unknown`] for uncurated toolkits.-///-/// Takes a pre-loaded preference because the typical caller loops over-/// toolkits, where awaiting once per toolkit is cheaper than once per action.-#[must_use]-pub fn is_action_visible_with_pref(slug: &str, pref: &UserScopePref) -> bool {- let Some(toolkit) = toolkit_from_slug(slug) else {- return true;- };- match catalog_for_toolkit(&toolkit) {- Some(catalog) => match find_curated(catalog, slug) {- Some(curated) => pref.allows(curated.scope),- None => false,- },- None => pref.allows(classify_unknown(slug)),- }-}--/// The curated scope `slug` requires, if it appears in any catalog.-///-/// `None` for a genuinely uncurated slug — a caller wanting a defensible-/// heuristic for those should reach for [`classify_unknown`] explicitly.-///-/// Sibling of [`is_action_visible_with_pref`]: that one answers "visible?",-/// this one answers "what scope is required?", so a caller can render an unlock-/// hint without redoing the catalog walk.-#[must_use]-pub fn curated_scope_for(slug: &str) -> Option<ToolScope> {- let toolkit = toolkit_from_slug(slug)?;- let catalog = catalog_for_toolkit(&toolkit)?;- find_curated(catalog, slug).map(|c| c.scope)-}--#[cfg(test)]-#[path = "mod_tests.rs"]-mod tests;diff --git a/crates/openhuman-core/src/integrations/composio/contract/catalogs/mod_tests.rs b/crates/openhuman-core/src/integrations/composio/contract/catalogs/mod_tests.rsdeleted file mode 100644index b5b5dc19e4..0000000000--- a/crates/openhuman-core/src/integrations/composio/contract/catalogs/mod_tests.rs+++ /dev/null@@ -1,190 +0,0 @@-//! Tests for the surrounding module.-#![allow(clippy::expect_used, clippy::unwrap_used, clippy::panic)]--use super::*;--/// Every toolkit with a curated catalog, in display order.-const CAPABILITY_TOOLKITS: &[&str] = &[- "gmail",- "notion",- "slack",- "clickup",- "github",- "discord",- "googlecalendar",- "googledrive",- "googledocs",- "googlesheets",- "outlook",- "microsoft_teams",- "linear",- "jira",- "trello",- "asana",- "dropbox",- "twitter",- "spotify",- "telegram",- "whatsapp",- "shopify",- "stripe",- "hubspot",- "salesforce",- "airtable",- "figma",- "youtube",- "one_drive",- "excel",- "todoist",-];--#[test]-fn catalog_for_toolkit_resolves_every_capability_toolkit() {- // Every toolkit the capability surface reports on must have a catalog —- // that is what `curated_tools: true` in the matrix claims about it.- for toolkit in CAPABILITY_TOOLKITS {- assert!(- catalog_for_toolkit(toolkit).is_some(),- "no curated catalog for advertised toolkit {toolkit}"- );- }-}--#[test]-fn catalog_for_toolkit_honours_slug_aliases() {- // `toolkit_from_slug` extracts "one" from `ONE_DRIVE_*`, while the UI and- // the backend both spell it "one_drive" / "onedrive".- for alias in ["one", "one_drive", "onedrive", "OneDrive"] {- assert!(- catalog_for_toolkit(alias).is_some(),- "OneDrive alias {alias} did not resolve"- );- }- // The legacy "microsoft" alias still reaches the Teams catalog.- assert_eq!(- catalog_for_toolkit("microsoft").map(<[CuratedTool]>::len),- catalog_for_toolkit("microsoft_teams").map(<[CuratedTool]>::len)- );- for alias in ["google_calendar", "googlecalendar", "GOOGLECALENDAR"] {- assert!(- catalog_for_toolkit(alias).is_some(),- "{alias} did not resolve"- );- }- assert!(- catalog_for_toolkit(" gmail ").is_some(),- "slug is not trimmed"- );- assert!(catalog_for_toolkit("nonexistent-toolkit").is_none());-}--#[test]-fn every_native_provider_has_a_catalog() {- for slug in NATIVE_PROVIDERS {- assert!(- catalog_for_toolkit(slug).is_some(),- "native provider {slug} has no curated catalog"- );- assert!(has_native_provider(slug));- assert!(- CAPABILITY_TOOLKITS.contains(slug),- "native provider {slug} is missing from the capability list"- );- }- assert!(!has_native_provider("jira"));- assert!(!has_native_provider("nonexistent-toolkit"));-}--#[test]-fn curated_scope_for_reads_the_catalogs_entry_not_the_heuristic() {- // Pick a real curated read action and assert the catalog's own verdict.- let catalog = catalog_for_toolkit("gmail").expect("gmail catalog");- let read_action = catalog- .iter()- .find(|t| t.scope == ToolScope::Read)- .expect("gmail has a curated read action");- assert_eq!(curated_scope_for(read_action.slug), Some(ToolScope::Read));-- // An uncurated slug on a curated toolkit is `None` — deliberately not the- // `classify_unknown` heuristic, which callers opt into explicitly.- assert_eq!(curated_scope_for("GMAIL_NO_SUCH_ACTION_EXISTS"), None);- // A slug with no toolkit prefix at all.- assert_eq!(curated_scope_for("nonsense"), None);-}--#[test]-fn is_action_visible_gates_on_the_curated_scope() {- let catalog = catalog_for_toolkit("gmail").expect("gmail catalog");- let read_action = catalog- .iter()- .find(|t| t.scope == ToolScope::Read)- .expect("gmail has a curated read action");- let admin_action = catalog- .iter()- .find(|t| t.scope == ToolScope::Admin)- .expect("gmail has a curated admin action");-- let read_only = UserScopePref {- read: true,- write: false,- admin: false,- };- assert!(is_action_visible_with_pref(read_action.slug, &read_only));- assert!(!is_action_visible_with_pref(admin_action.slug, &read_only));-- let all = UserScopePref {- read: true,- write: true,- admin: true,- };- assert!(is_action_visible_with_pref(admin_action.slug, &all));-- // Uncurated action on a curated toolkit is hidden regardless of pref —- // curation is a whitelist, so absence means "not surfaced", never- // "fall back to the heuristic".- assert!(!is_action_visible_with_pref("GMAIL_NO_SUCH_ACTION", &all));-- // A slug with no toolkit prefix is not ours to gate.- assert!(is_action_visible_with_pref("nonsense", &read_only));-}--#[test]-fn toolkit_description_is_populated_for_every_capability_toolkit() {- let generic = toolkit_description("definitely-not-a-real-toolkit");- for toolkit in CAPABILITY_TOOLKITS {- let d = toolkit_description(toolkit);- assert!(!d.trim().is_empty(), "{toolkit} has an empty description");- assert_ne!(- d, generic,- "{toolkit} falls through to the generic description"- );- }-}--#[test]-fn toolkit_description_recognizes_the_legacy_microsoft_alias() {- // `catalog_for_toolkit` resolves both "microsoft" and "microsoft_teams" to- // the same Teams catalog; the description must not diverge for the alias.- assert_eq!(- toolkit_description("microsoft"),- toolkit_description("microsoft_teams")- );- assert_ne!(- toolkit_description("microsoft"),- toolkit_description("definitely-not-a-real-toolkit")- );-}--#[test]-fn curated_catalogs_carry_no_duplicate_slugs() {- // `find_curated` returns the first match, so a duplicate with a different- // scope would make the gate's answer depend on table order.- for toolkit in CAPABILITY_TOOLKITS {- let catalog = catalog_for_toolkit(toolkit).expect("catalog");- let mut seen: Vec<&str> = catalog.iter().map(|t| t.slug).collect();- seen.sort_unstable();- let before = seen.len();- seen.dedup();- assert_eq!(before, seen.len(), "{toolkit} catalog has duplicate slugs");- }-}diff --git a/crates/openhuman-core/src/integrations/composio/contract/catalogs/notion.rs b/crates/openhuman-core/src/integrations/composio/contract/catalogs/notion.rsdeleted file mode 100644index ad9bb4c3e2..0000000000--- a/crates/openhuman-core/src/integrations/composio/contract/catalogs/notion.rs+++ /dev/null@@ -1,197 +0,0 @@-//! Curated catalog of Notion Composio actions exposed to the agent.--use crate::integrations::composio::contract::scopes::{CuratedTool, ToolScope};--/// The curated action catalog for the `notion` toolkit.-pub const NOTION_CURATED: &[CuratedTool] = &[- // ── Read: search & fetch ────────────────────────────────────────- CuratedTool {- slug: "NOTION_SEARCH_NOTION_PAGE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "NOTION_FETCH_DATA",- scope: ToolScope::Read,- },- CuratedTool {- slug: "NOTION_FETCH_DATABASE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "NOTION_FETCH_ROW",- scope: ToolScope::Read,- },- CuratedTool {- slug: "NOTION_FETCH_BLOCK_METADATA",- scope: ToolScope::Read,- },- CuratedTool {- slug: "NOTION_FETCH_BLOCK_CONTENTS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "NOTION_FETCH_ALL_BLOCK_CONTENTS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "NOTION_FETCH_COMMENTS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "NOTION_GET_PAGE_MARKDOWN",- scope: ToolScope::Read,- },- CuratedTool {- slug: "NOTION_GET_PAGE_PROPERTY_ACTION",- scope: ToolScope::Read,- },- // ── Read: query & retrieve ──────────────────────────────────────- CuratedTool {- slug: "NOTION_QUERY_DATABASE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "NOTION_QUERY_DATABASE_WITH_FILTER",- scope: ToolScope::Read,- },- CuratedTool {- slug: "NOTION_QUERY_DATA_SOURCE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "NOTION_RETRIEVE_PAGE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "NOTION_RETRIEVE_COMMENT",- scope: ToolScope::Read,- },- CuratedTool {- slug: "NOTION_RETRIEVE_DATABASE_PROPERTY",- scope: ToolScope::Read,- },- // ── Read: profile / users / files ───────────────────────────────- CuratedTool {- slug: "NOTION_LIST_USERS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "NOTION_GET_ABOUT_USER",- scope: ToolScope::Read,- },- CuratedTool {- slug: "NOTION_GET_ABOUT_ME",- scope: ToolScope::Read,- },- CuratedTool {- slug: "NOTION_LIST_FILE_UPLOADS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "NOTION_RETRIEVE_FILE_UPLOAD",- scope: ToolScope::Read,- },- CuratedTool {- slug: "NOTION_LIST_DATA_SOURCE_TEMPLATES",- scope: ToolScope::Read,- },- // ── Write: create ───────────────────────────────────────────────- CuratedTool {- slug: "NOTION_CREATE_NOTION_PAGE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "NOTION_CREATE_DATABASE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "NOTION_CREATE_COMMENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "NOTION_CREATE_FILE_UPLOAD",- scope: ToolScope::Write,- },- CuratedTool {- slug: "NOTION_SEND_FILE_UPLOAD",- scope: ToolScope::Write,- },- // ── Write: update / append ──────────────────────────────────────- CuratedTool {- slug: "NOTION_UPDATE_PAGE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "NOTION_UPDATE_BLOCK",- scope: ToolScope::Write,- },- CuratedTool {- slug: "NOTION_UPDATE_ROW_DATABASE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "NOTION_INSERT_ROW_DATABASE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "NOTION_INSERT_ROW_FROM_NL",- scope: ToolScope::Write,- },- CuratedTool {- slug: "NOTION_REPLACE_PAGE_CONTENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "NOTION_ADD_PAGE_CONTENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "NOTION_ADD_MULTIPLE_PAGE_CONTENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "NOTION_APPEND_BLOCK_CHILDREN",- scope: ToolScope::Write,- },- CuratedTool {- slug: "NOTION_APPEND_TEXT_BLOCKS",- scope: ToolScope::Write,- },- CuratedTool {- slug: "NOTION_APPEND_TASK_BLOCKS",- scope: ToolScope::Write,- },- CuratedTool {- slug: "NOTION_APPEND_CODE_BLOCKS",- scope: ToolScope::Write,- },- CuratedTool {- slug: "NOTION_APPEND_MEDIA_BLOCKS",- scope: ToolScope::Write,- },- CuratedTool {- slug: "NOTION_APPEND_LAYOUT_BLOCKS",- scope: ToolScope::Write,- },- CuratedTool {- slug: "NOTION_APPEND_TABLE_BLOCKS",- scope: ToolScope::Write,- },- CuratedTool {- slug: "NOTION_DUPLICATE_PAGE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "NOTION_MOVE_PAGE",- scope: ToolScope::Write,- },- // ── Admin: destructive ──────────────────────────────────────────- CuratedTool {- slug: "NOTION_DELETE_BLOCK",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "NOTION_ARCHIVE_NOTION_PAGE",- scope: ToolScope::Admin,- },-];diff --git a/crates/openhuman-core/src/integrations/composio/contract/catalogs/productivity.rs b/crates/openhuman-core/src/integrations/composio/contract/catalogs/productivity.rsdeleted file mode 100644index 6d2b726b78..0000000000--- a/crates/openhuman-core/src/integrations/composio/contract/catalogs/productivity.rs+++ /dev/null@@ -1,586 +0,0 @@-//! Curated catalogs — productivity toolkits: Outlook, Linear, Jira,-//! Trello, Asana, Dropbox, Todoist.-//!-//! Catalog-only toolkits (Linear, Jira, Trello, Asana, Dropbox,-//! Todoist) don't ship a native `ComposioProvider` — they-//! have no user-profile fetch, no initial/periodic sync, no trigger-//! webhooks, and no memory ingestion. The agent invokes their actions-//! through Composio's API, but their data is not pre-ingested into-//! OpenHuman's memory.--use crate::integrations::composio::contract::scopes::{CuratedTool, ToolScope};--// ── outlook ─────────────────────────────────────────────────────────-/// The curated action catalog for the `outlook` toolkit.-pub const OUTLOOK_CURATED: &[CuratedTool] = &[- CuratedTool {- slug: "OUTLOOK_GET_MESSAGE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "OUTLOOK_LIST_MESSAGES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "OUTLOOK_SEARCH_MESSAGES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "OUTLOOK_LIST_CALENDARS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "OUTLOOK_LIST_CALENDAR_EVENTS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "OUTLOOK_GET_CALENDAR_EVENT",- scope: ToolScope::Read,- },- CuratedTool {- slug: "OUTLOOK_LIST_CONTACTS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "OUTLOOK_LIST_MAIL_FOLDERS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "OUTLOOK_SEND_EMAIL",- scope: ToolScope::Write,- },- CuratedTool {- slug: "OUTLOOK_CREATE_DRAFT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "OUTLOOK_SEND_DRAFT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "OUTLOOK_CREATE_DRAFT_REPLY",- scope: ToolScope::Write,- },- CuratedTool {- slug: "OUTLOOK_CREATE_ME_FORWARD_DRAFT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "OUTLOOK_CALENDAR_CREATE_EVENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "OUTLOOK_CREATE_CONTACT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "OUTLOOK_CREATE_MAIL_FOLDER",- scope: ToolScope::Write,- },- CuratedTool {- slug: "OUTLOOK_DELETE_MESSAGE",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "OUTLOOK_BATCH_MOVE_MESSAGES",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "OUTLOOK_BATCH_UPDATE_MESSAGES",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "OUTLOOK_ACCEPT_EVENT",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "OUTLOOK_CANCEL_EVENT",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "OUTLOOK_CREATE_ME_CALENDAR_PERMISSION",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "OUTLOOK_CREATE_EMAIL_RULE",- scope: ToolScope::Admin,- },-];--// ── linear ──────────────────────────────────────────────────────────-//-// `LINEAR_CURATED` lives in `super::linear::tools` alongside the native-// `LinearProvider` impl (per-issue #2400). `catalog_for_toolkit("linear")`-// in `super::mod` routes through that constant directly. Removing the-// catalog-only declaration here keeps a single source of truth and-// matches how `gmail` / `notion` / `clickup` are wired.--// ── jira ────────────────────────────────────────────────────────────-/// The curated action catalog for the `jira` toolkit.-pub const JIRA_CURATED: &[CuratedTool] = &[- CuratedTool {- slug: "JIRA_GET_ISSUE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "JIRA_GET_ALL_PROJECTS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "JIRA_FETCH_BULK_ISSUES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "JIRA_GET_ISSUE_TYPES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "JIRA_GET_PROJECT_ROLES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "JIRA_FIND_USERS2",- scope: ToolScope::Read,- },- CuratedTool {- slug: "JIRA_GET_FIELDS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "JIRA_GET_ISSUE_EDIT_METADATA",- scope: ToolScope::Read,- },- CuratedTool {- slug: "JIRA_GET_PROJECT_VERSIONS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "JIRA_CREATE_ISSUE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "JIRA_BULK_CREATE_ISSUE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "JIRA_EDIT_ISSUE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "JIRA_ADD_COMMENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "JIRA_ASSIGN_ISSUE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "JIRA_ADD_ATTACHMENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "JIRA_CREATE_ISSUE_LINK",- scope: ToolScope::Write,- },- CuratedTool {- slug: "JIRA_ADD_WORKLOG",- scope: ToolScope::Write,- },- CuratedTool {- slug: "JIRA_TRANSITION_ISSUE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "JIRA_DELETE_ISSUE",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "JIRA_DELETE_COMMENT",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "JIRA_DELETE_VERSION",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "JIRA_DELETE_WORKLOG",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "JIRA_CREATE_PROJECT",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "JIRA_ADD_USERS_TO_PROJECT_ROLE",- scope: ToolScope::Admin,- },-];--// ── trello ──────────────────────────────────────────────────────────-/// The curated action catalog for the `trello` toolkit.-pub const TRELLO_CURATED: &[CuratedTool] = &[- CuratedTool {- slug: "TRELLO_GET_BOARDS_BY_ID_BOARD",- scope: ToolScope::Read,- },- CuratedTool {- slug: "TRELLO_GET_ACTIONS_BY_ID_ACTION",- scope: ToolScope::Read,- },- CuratedTool {- slug: "TRELLO_GET_BATCH",- scope: ToolScope::Read,- },- CuratedTool {- slug: "TRELLO_GET_BOARDS_ACTIONS_BY_ID_BOARD",- scope: ToolScope::Read,- },- CuratedTool {- slug: "TRELLO_GET_MEMBERS_BOARDS_BY_ID_MEMBER",- scope: ToolScope::Read,- },- CuratedTool {- slug: "TRELLO_ADD_CARDS",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TRELLO_ADD_BOARDS",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TRELLO_ADD_LISTS",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TRELLO_ADD_CARDS_ACTIONS_COMMENTS_BY_ID_CARD",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TRELLO_ADD_MEMBER_TO_CARD",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TRELLO_CREATE_CARD_LABEL",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TRELLO_ADD_CARDS_ATTACHMENTS_BY_ID_CARD",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TRELLO_ADD_CARDS_CHECKLISTS_BY_ID_CARD",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TRELLO_CREATE_WEBHOOK",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TRELLO_DELETE_CARDS_BY_ID_CARD",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "TRELLO_DELETE_BOARD",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "TRELLO_DELETE_CHECKLISTS_BY_ID_CHECKLIST",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "TRELLO_ARCHIVE_ALL_LIST_CARDS",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "TRELLO_DELETE_CARD_COMMENT",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "TRELLO_DELETE_LABELS_BY_ID_LABEL",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "TRELLO_DELETE_ORGANIZATIONS_BY_ID_ORG",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "TRELLO_DELETE_WEBHOOKS_BY_ID_WEBHOOK",- scope: ToolScope::Admin,- },-];--// ── asana ───────────────────────────────────────────────────────────-/// The curated action catalog for the `asana` toolkit.-pub const ASANA_CURATED: &[CuratedTool] = &[- CuratedTool {- slug: "ASANA_GET_A_TASK",- scope: ToolScope::Read,- },- CuratedTool {- slug: "ASANA_GET_A_PROJECT",- scope: ToolScope::Read,- },- CuratedTool {- slug: "ASANA_GET_MULTIPLE_TASKS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "ASANA_GET_MULTIPLE_PROJECTS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "ASANA_GET_CURRENT_USER",- scope: ToolScope::Read,- },- CuratedTool {- slug: "ASANA_GET_MULTIPLE_WORKSPACES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "ASANA_GET_PORTFOLIO",- scope: ToolScope::Read,- },- CuratedTool {- slug: "ASANA_GET_GOALS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "ASANA_GET_CUSTOM_FIELDS_FOR_WORKSPACE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "ASANA_CREATE_A_TASK",- scope: ToolScope::Write,- },- CuratedTool {- slug: "ASANA_CREATE_A_PROJECT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "ASANA_CREATE_SUBTASK",- scope: ToolScope::Write,- },- CuratedTool {- slug: "ASANA_CREATE_TASK_COMMENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "ASANA_UPDATE_A_TASK",- scope: ToolScope::Write,- },- CuratedTool {- slug: "ASANA_ADD_FOLLOWERS_TO_TASK",- scope: ToolScope::Write,- },- CuratedTool {- slug: "ASANA_ADD_TAG_TO_TASK",- scope: ToolScope::Write,- },- CuratedTool {- slug: "ASANA_ADD_PROJECT_FOR_TASK",- scope: ToolScope::Write,- },- CuratedTool {- slug: "ASANA_ADD_TASK_DEPENDENCIES",- scope: ToolScope::Write,- },- CuratedTool {- slug: "ASANA_CREATE_ATTACHMENT_FOR_TASK",- scope: ToolScope::Write,- },- CuratedTool {- slug: "ASANA_DELETE_TASK",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "ASANA_DELETE_PROJECT",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "ASANA_DELETE_SECTION",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "ASANA_DELETE_TAG",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "ASANA_DELETE_CUSTOM_FIELD",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "ASANA_DELETE_MEMBERSHIP",- scope: ToolScope::Admin,- },-];--// ── dropbox ─────────────────────────────────────────────────────────-/// The curated action catalog for the `dropbox` toolkit.-pub const DROPBOX_CURATED: &[CuratedTool] = &[- CuratedTool {- slug: "DROPBOX_GET_METADATA",- scope: ToolScope::Read,- },- CuratedTool {- slug: "DROPBOX_FILES_SEARCH",- scope: ToolScope::Read,- },- CuratedTool {- slug: "DROPBOX_LIST_FILE_MEMBERS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "DROPBOX_GET_SHARED_LINK_METADATA",- scope: ToolScope::Read,- },- CuratedTool {- slug: "DROPBOX_GET_ABOUT_ME",- scope: ToolScope::Read,- },- CuratedTool {- slug: "DROPBOX_GET_SPACE_USAGE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "DROPBOX_ALPHA_UPLOAD_FILE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "DROPBOX_CREATE_FOLDER",- scope: ToolScope::Write,- },- CuratedTool {- slug: "DROPBOX_COPY_FILE_OR_FOLDER",- scope: ToolScope::Write,- },- CuratedTool {- slug: "DROPBOX_CREATE_SHARED_LINK",- scope: ToolScope::Write,- },- CuratedTool {- slug: "DROPBOX_ADD_FILE_MEMBER",- scope: ToolScope::Write,- },- CuratedTool {- slug: "DROPBOX_DELETE_FILE",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "DROPBOX_DELETE_BATCH",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "DROPBOX_ADD_TEAM_MEMBERS",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "DROPBOX_CREATE_TEAM_FOLDER",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "DROPBOX_ARCHIVE_TEAM_FOLDER",- scope: ToolScope::Admin,- },-];--// ── todoist ─────────────────────────────────────────────────────────-/// The curated action catalog for the `todoist` toolkit.-pub const TODOIST_CURATED: &[CuratedTool] = &[- CuratedTool {- slug: "TODOIST_GET_TASK",- scope: ToolScope::Read,- },- CuratedTool {- // Composio's catalog has no `TODOIST_GET_ACTIVE_TASKS`; the real- // incomplete-tasks slug is `TODOIST_GET_ALL_TASKS` (docs.composio.dev/- // toolkits/todoist). The old slug was rejected as an unknown action.- slug: "TODOIST_GET_ALL_TASKS",- scope: ToolScope::Read,- },- CuratedTool {- // Real completed-tasks slug; `TODOIST_GET_COMPLETED_TASKS` does not- // exist in Composio's catalog.- slug: "TODOIST_LIST_COMPLETED_TASKS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "TODOIST_GET_PROJECTS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "TODOIST_GET_PROJECT",- scope: ToolScope::Read,- },- CuratedTool {- slug: "TODOIST_GET_SECTIONS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "TODOIST_GET_LABELS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "TODOIST_GET_COMMENTS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "TODOIST_CREATE_TASK",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TODOIST_UPDATE_TASK",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TODOIST_CLOSE_TASK",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TODOIST_REOPEN_TASK",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TODOIST_CREATE_PROJECT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TODOIST_UPDATE_PROJECT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TODOIST_CREATE_SECTION",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TODOIST_CREATE_LABEL",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TODOIST_CREATE_COMMENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TODOIST_DELETE_TASK",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "TODOIST_DELETE_PROJECT",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "TODOIST_DELETE_SECTION",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "TODOIST_DELETE_LABEL",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "TODOIST_DELETE_COMMENT",- scope: ToolScope::Admin,- },-];--#[cfg(test)]-#[path = "productivity_tests.rs"]-mod tests;diff --git a/crates/openhuman-core/src/integrations/composio/contract/catalogs/productivity_tests.rs b/crates/openhuman-core/src/integrations/composio/contract/catalogs/productivity_tests.rsdeleted file mode 100644index 47e5bc7cd8..0000000000--- a/crates/openhuman-core/src/integrations/composio/contract/catalogs/productivity_tests.rs+++ /dev/null@@ -1,22 +0,0 @@-//! Tests for the surrounding module.--use super::*;--#[test]-fn todoist_catalog_is_non_empty_and_unique() {- assert!(!TODOIST_CURATED.is_empty());- let mut slugs: Vec<&'static str> = TODOIST_CURATED.iter().map(|t| t.slug).collect();- slugs.sort_unstable();- slugs.dedup();- assert_eq!(slugs.len(), TODOIST_CURATED.len());- for tool in TODOIST_CURATED {- assert!(tool.slug.starts_with("TODOIST_"));- }-}--#[test]-fn todoist_catalog_covers_all_three_scopes() {- assert!(TODOIST_CURATED.iter().any(|t| t.scope == ToolScope::Read));- assert!(TODOIST_CURATED.iter().any(|t| t.scope == ToolScope::Write));- assert!(TODOIST_CURATED.iter().any(|t| t.scope == ToolScope::Admin));-}diff --git a/crates/openhuman-core/src/integrations/composio/contract/catalogs/social_media.rs b/crates/openhuman-core/src/integrations/composio/contract/catalogs/social_media.rsdeleted file mode 100644index c8633b3a36..0000000000--- a/crates/openhuman-core/src/integrations/composio/contract/catalogs/social_media.rs+++ /dev/null@@ -1,251 +0,0 @@-//! Curated catalogs — social media / entertainment toolkits: Twitter,-//! Spotify, `YouTube`.--use crate::integrations::composio::contract::scopes::{CuratedTool, ToolScope};--// ── twitter ─────────────────────────────────────────────────────────-/// The curated action catalog for the `twitter` toolkit.-pub const TWITTER_CURATED: &[CuratedTool] = &[- CuratedTool {- slug: "TWITTER_RECENT_SEARCH",- scope: ToolScope::Read,- },- CuratedTool {- slug: "TWITTER_GET_USER_BY_ID",- scope: ToolScope::Read,- },- CuratedTool {- slug: "TWITTER_POST_LOOKUP_BY_POST_ID",- scope: ToolScope::Read,- },- CuratedTool {- slug: "TWITTER_FOLLOWERS_BY_USER_ID",- scope: ToolScope::Read,- },- CuratedTool {- slug: "TWITTER_FOLLOWING_BY_USER_ID",- scope: ToolScope::Read,- },- CuratedTool {- slug: "TWITTER_BOOKMARKS_BY_USER",- scope: ToolScope::Read,- },- CuratedTool {- slug: "TWITTER_GET_LIST_MEMBERS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "TWITTER_FULL_ARCHIVE_SEARCH",- scope: ToolScope::Read,- },- CuratedTool {- slug: "TWITTER_CREATION_OF_A_POST",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TWITTER_RETWEET_POST",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TWITTER_ADD_POST_TO_BOOKMARKS",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TWITTER_FOLLOW_USER",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TWITTER_MUTE_USER",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TWITTER_CREATE_DM_CONVERSATION",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TWITTER_CREATE_LIST",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TWITTER_ADD_LIST_MEMBER",- scope: ToolScope::Write,- },- CuratedTool {- slug: "TWITTER_POST_DELETE_BY_POST_ID",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "TWITTER_DELETE_LIST",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "TWITTER_REMOVE_LIST_MEMBER",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "TWITTER_DELETE_DM",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "TWITTER_REMOVE_POST_FROM_BOOKMARKS",- scope: ToolScope::Admin,- },-];--// ── spotify ─────────────────────────────────────────────────────────-/// The curated action catalog for the `spotify` toolkit.-pub const SPOTIFY_CURATED: &[CuratedTool] = &[- CuratedTool {- slug: "SPOTIFY_GET_CURRENT_USER_S_PROFILE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SPOTIFY_GET_USER_S_TOP_TRACKS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SPOTIFY_GET_PLAYLIST",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SPOTIFY_GET_PLAYLIST_ITEMS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SPOTIFY_GET_RECENTLY_PLAYED_TRACKS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SPOTIFY_GET_USER_S_SAVED_TRACKS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SPOTIFY_SEARCH_FOR_ITEM",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SPOTIFY_GET_AVAILABLE_DEVICES",- scope: ToolScope::Read,- },- CuratedTool {- slug: "SPOTIFY_ADD_ITEMS_TO_PLAYLIST",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SPOTIFY_CREATE_PLAYLIST",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SPOTIFY_SAVE_TRACKS_FOR_CURRENT_USER",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SPOTIFY_PAUSE_PLAYBACK",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SPOTIFY_ADD_ITEM_TO_PLAYBACK_QUEUE",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SPOTIFY_CHANGE_PLAYLIST_DETAILS",- scope: ToolScope::Write,- },- CuratedTool {- slug: "SPOTIFY_REMOVE_PLAYLIST_ITEMS",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "SPOTIFY_REMOVE_USER_S_SAVED_TRACKS",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "SPOTIFY_UNFOLLOW_ARTISTS_OR_USERS",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "SPOTIFY_REMOVE_USER_S_SAVED_ALBUMS",- scope: ToolScope::Admin,- },-];--// ── youtube ─────────────────────────────────────────────────────────-/// The curated action catalog for the `youtube` toolkit.-pub const YOUTUBE_CURATED: &[CuratedTool] = &[- CuratedTool {- slug: "YOUTUBE_SEARCH_YOU_TUBE",- scope: ToolScope::Read,- },- CuratedTool {- slug: "YOUTUBE_LIST_CHANNEL_VIDEOS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "YOUTUBE_GET_CHANNEL_STATISTICS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "YOUTUBE_LIST_COMMENT_THREADS2",- scope: ToolScope::Read,- },- CuratedTool {- slug: "YOUTUBE_LIST_COMMENTS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "YOUTUBE_GET_VIDEO_DETAILS_BATCH",- scope: ToolScope::Read,- },- CuratedTool {- slug: "YOUTUBE_LIST_USER_PLAYLISTS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "YOUTUBE_LIST_PLAYLIST_ITEMS",- scope: ToolScope::Read,- },- CuratedTool {- slug: "YOUTUBE_UPLOAD_VIDEO",- scope: ToolScope::Write,- },- CuratedTool {- slug: "YOUTUBE_UPDATE_VIDEO",- scope: ToolScope::Write,- },- CuratedTool {- slug: "YOUTUBE_CREATE_PLAYLIST",- scope: ToolScope::Write,- },- CuratedTool {- slug: "YOUTUBE_ADD_VIDEO_TO_PLAYLIST",- scope: ToolScope::Write,- },- CuratedTool {- slug: "YOUTUBE_POST_COMMENT",- scope: ToolScope::Write,- },- CuratedTool {- slug: "YOUTUBE_RATE_VIDEO",- scope: ToolScope::Write,- },- CuratedTool {- slug: "YOUTUBE_UPDATE_PLAYLIST",- scope: ToolScope::Write,- },- CuratedTool {- slug: "YOUTUBE_DELETE_VIDEO",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "YOUTUBE_DELETE_PLAYLIST",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "YOUTUBE_DELETE_COMMENT",- scope: ToolScope::Admin,- },- CuratedTool {- slug: "YOUTUBE_DELETE_PLAYLIST_ITEM",- scope: ToolScope::Admin,- },-];diff --git a/crates/openhuman-core/src/integrations/composio/contract/mod.rs b/crates/openhuman-core/src/integrations/composio/contract/mod.rsindex 3da4eeb55f..5b480ec1e6 100644--- a/crates/openhuman-core/src/integrations/composio/contract/mod.rs+++ b/crates/openhuman-core/src/integrations/composio/contract/mod.rs@@ -1,12 +1,13 @@-//! The Composio vocabulary the host's integration code shares: toolkit-//! catalogs (curated action lists and descriptions), connected-identity+//! The Composio vocabulary the host's integration code shares: the toolkit+//! catalogs (curated action lists and descriptions, read from the connector+//! module), connected-identity//! profiles, per-toolkit user scope preferences and the//! normalised task shape.//!//! These shapes live beside the integration that produces and reads them.//! They are plain data and pure functions: no HTTP, no persistence.-pub mod catalogs;+pub mod curated;pub mod profile;pub mod scopes;pub mod tasks;@@ -21,7 +22,7 @@ pub use scopes::{};pub use tasks::{GithubFetchMode, NormalizedTask, TaskContainer, TaskFetchFilter, TaskKind};-pub use catalogs::{- catalog_for_toolkit, curated_scope_for, has_native_provider, is_action_visible_with_pref,- toolkit_description,+pub use curated::{+ catalog_for_toolkit, curated_scope_for, curated_toolkits, has_native_provider,+ is_action_visible_with_pref, toolkit_description,};diff --git a/crates/openhuman-core/src/integrations/composio/tools/visibility.rs b/crates/openhuman-core/src/integrations/composio/tools/visibility.rsindex 247db81819..7db4b97dd7 100644--- a/crates/openhuman-core/src/integrations/composio/tools/visibility.rs+++ b/crates/openhuman-core/src/integrations/composio/tools/visibility.rs@@ -51,7 +51,7 @@ fn resolve_action_scope_sync(slug: &str) -> ToolScope {};let catalog = catalog_for_toolkit(&toolkit);if let Some(cat) = catalog {- if let Some(entry) = find_curated(cat, slug) {+ if let Some(entry) = find_curated(&cat, slug) {return entry.scope;}}@@ -81,7 +81,7 @@ pub(super) async fn evaluate_tool_visibility(config: &Config, slug: &str) -> Too// for every toolkit that had a native provider.let catalog = catalog_for_toolkit(&toolkit);match catalog {- Some(catalog) => match find_curated(catalog, slug) {+ Some(catalog) => match find_curated(&catalog, slug) {Some(curated) if pref.allows(curated.scope) => ToolDecision::Allow,Some(curated) => ToolDecision::BlockedByScope {scope: curated.scope,