Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
docs(cli): annotate why the schema-bypass cast is safe at degrade points
jkomyno1db88b00e814
diff --git a/ts/packages/cli/src/commands/connected-accounts/commands/connected-accounts.list.cmd.ts b/ts/packages/cli/src/commands/connected-accounts/commands/connected-accounts.list.cmd.tsindex 2ce182f56..8756ca80a 100644--- a/ts/packages/cli/src/commands/connected-accounts/commands/connected-accounts.list.cmd.ts+++ b/ts/packages/cli/src/commands/connected-accounts/commands/connected-accounts.list.cmd.ts@@ -104,6 +104,11 @@ export const connectedAccountsCmd$List = Command.make(`the latest schema. Continuing with raw response.\n\n` +`Decode error: ${error.message}`);+ // Cast lies about the schema brand, but the downstream formatters+ // (`formatConnectedAccountsTable`, `formatConnectedAccountsJson`)+ // only read whitelisted fields — credential-bearing `state` /+ // `data` are never indexed, so the unvalidated raw payload is+ // safe to render as-is.return rawResult as ConnectedAccountListResponse;}))diff --git a/ts/packages/cli/src/commands/connections/commands/connections.list.cmd.ts b/ts/packages/cli/src/commands/connections/commands/connections.list.cmd.tsindex 50f41990d..09e1e7fcc 100644--- a/ts/packages/cli/src/commands/connections/commands/connections.list.cmd.ts+++ b/ts/packages/cli/src/commands/connections/commands/connections.list.cmd.ts@@ -85,6 +85,9 @@ export const connectionsCmd$List = Command.make('list', { toolkit }, ({ toolkit`the latest schema. Continuing with raw response.\n\n` +`Decode error: ${error.message}`);+ // Cast lies about the schema brand, but `formatConnectionsJson`+ // only reads `status`, `alias`, `word_id`, `toolkit.slug` — the+ // unvalidated raw payload is safe to render as-is.return rawResult as ConnectedAccountListResponse;}))diff --git a/ts/packages/cli/src/commands/connections/commands/connections.remove.cmd.ts b/ts/packages/cli/src/commands/connections/commands/connections.remove.cmd.tsindex aa5a96c70..e86d4d842 100644--- a/ts/packages/cli/src/commands/connections/commands/connections.remove.cmd.ts+++ b/ts/packages/cli/src/commands/connections/commands/connections.remove.cmd.ts@@ -121,6 +121,10 @@ export const connectionsCmd$Remove = Command.make('remove', { account }, ({ acco`the latest schema. Continuing with raw response.\n\n` +`Decode error: ${error.message}`);+ // Cast lies about the schema brand, but `resolveAccount` and+ // `formatAccountSummary` only read `id`, `alias`, `word_id`,+ // `toolkit.slug`, `status` — credential-bearing `state` / `data`+ // are never indexed, so the unvalidated raw payload is safe.return rawResult as ConnectedAccountListResponse;}))