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
docs(cli): annotate why the schema-bypass cast is safe at degrade points
The `as ConnectedAccountListResponse` cast in the `catchTag` fallback of three commands (`connected-accounts.list.cmd.ts`, `connections.list.cmd.ts`, `connections.remove.cmd.ts`) lies about the schema brand to render a payload that just failed `decodeUnknown`. The existing comment block explained _why we degrade_, but not _why the cast is safe enough_. Add a one-line per-site note recording that downstream renderers / selectors only read whitelisted, non-credential-bearing fields (`id`, `alias`, `word_id`, `toolkit.slug`, `status`, ...) — `state` and `data` are never indexed, so an unvalidated raw payload cannot leak tokens through this path. Surfaced by kieran-typescript review of PR #3344 (P3#3).