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
fix(connected-accounts): handle REVOKED in waitForConnection + CLI list filter
Zen Agent22dc98a28639
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 69b3086b1..3d6c970e2 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@@ -33,6 +33,7 @@ const status = Options.choice('status', ['FAILED','EXPIRED','INACTIVE',+ 'REVOKED',] as const).pipe(Options.withDescription('Filter by connection status'), Options.optional);const limit = Options.integer('limit').pipe(@@ -77,7 +78,18 @@ export const connectedAccountsCmd$List = Command.make(client.connectedAccounts.list({toolkit_slugs: toolkitSlugs,user_ids: Option.isSome(userId) ? [userId.value] : undefined,- statuses: Option.isSome(status) ? [status.value] : undefined,+ // Cast bypasses the stale Stainless `statuses` union (still+ // missing 'REVOKED') so the CLI flag stays in sync with the+ // Apollo enum until @composio/client is regenerated.+ statuses: Option.isSome(status)+ ? ([status.value] as Parameters<+ typeof client.connectedAccounts.list+ >[0] extends infer P+ ? P extends { statuses?: infer S }+ ? S+ : never+ : never)+ : undefined,limit: clampLimit(limit),}))