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
feat(composio): add tool execution and connection status APIs
Steven Enamakel200451396848
diff --git a/app/src/lib/composio/composioApi.ts b/app/src/lib/composio/composioApi.tsindex 059316ab13..68b63d1d04 100644--- a/app/src/lib/composio/composioApi.ts+++ b/app/src/lib/composio/composioApi.ts@@ -162,17 +162,10 @@ export async function authorize(* Delete an existing Composio connection. Backend verifies ownership* before forwarding to Composio*/-export async function deleteConnection(- connectionId: string,- options?: { clearMemory?: boolean }-): Promise<ComposioDeleteResponse> {- const params: { connection_id: string; clear_memory?: boolean } = { connection_id: connectionId };- if (options?.clearMemory) {- params.clear_memory = true;- }+export async function deleteConnection(connectionId: string): Promise<ComposioDeleteResponse> {const raw = await callCoreRpc<unknown>({method: 'openhuman.composio_delete_connection',- params,+ params: { connection_id: connectionId },});return unwrapCliEnvelope<ComposioDeleteResponse>(raw);}@@ -255,44 +248,6 @@ export async function listGithubRepos(connectionId?: string): Promise<ComposioGireturn unwrapCliEnvelope<ComposioGithubReposResponse>(raw);}-/**- * Run a sync pass for a Composio connection by dispatching to the- * toolkit's native provider implementation (Gmail, Slack, Notion, …).- * Persists the fetched items into the memory layer — chunks land in- * `mem_tree_chunks` and the source-tree pipeline picks them up on the- * next flush. Wraps `openhuman.composio_sync`.- *- * `reason` defaults to `"manual"` server-side when omitted.- */-export async function syncConnection(- connectionId: string,- reason: 'manual' | 'periodic' | 'connection_created' = 'manual'-): Promise<unknown> {- console.debug(- '[composio][sync] → openhuman.composio_sync conn=%s reason=%s',- connectionId,- reason- );- const raw = await callCoreRpc<unknown>({- method: 'openhuman.composio_sync',- params: { connection_id: connectionId, reason },- });- const outcome = unwrapCliEnvelope<unknown>(raw);- // Avoid logging the raw outcome — provider sync responses can carry- // message-level PII (subjects, sender addresses, body excerpts).- // Surface a sanitised shape (top-level keys + payload type) instead.- const outcomeShape =- outcome && typeof outcome === 'object'- ? { keys: Object.keys(outcome as Record<string, unknown>).slice(0, 10) }- : { type: typeof outcome };- console.debug(- '[composio][sync] ← openhuman.composio_sync conn=%s outcome_shape=%o',- connectionId,- outcomeShape- );- return outcome;-}-// ── Trigger management ────────────────────────────────────────────/**diff --git a/app/src/lib/composio/types.ts b/app/src/lib/composio/types.tsindex c84f95483d..efde210ed9 100644--- a/app/src/lib/composio/types.ts+++ b/app/src/lib/composio/types.ts@@ -82,7 +82,6 @@ export interface ComposioAuthorizeResponse {export interface ComposioDeleteResponse {deleted: boolean;- memory_chunks_deleted?: number;}export interface ComposioToolFunction {