Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 22:15 UTC
refactor(cli): extract decodeConnectedAccountListWithFallback helper
Three commands (`connected-accounts.list`, `connections.list`, `connections.remove`) carried verbatim copies of the same 13-line `Effect.catchTag('ParseError', ...)` forward-compat guard. Future changes to the warning message or fallback semantics would have to touch all three sites in lockstep. Lift the guard into `src/effects/decode-connected-account-list.ts` so each call site collapses to a single `yield*`. The helper carries the WHY (forward-compat with Apollo enum additions) and the safety justification for the cast in one place. Surfaced by Cursor Bugbot on commit afb33deef.