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
chore: add changesets for v3.1 customs and connectedAccounts coercion (#3358)
## Summary Adds missing changesets for #3350 and updates `connectedAccounts` to accept both `string` and `string[]` (non-breaking). ### Changesets (`@composio/core` minor) 1. **`v31-customs-use-attach`** — `composio.use()` with custom tools via v3.1 `/attach` 2. **`v31-connected-accounts-array`** — `connectedAccounts` accepts `string | string[]`, coerced to array ### connectedAccounts coercion - TS: Zod schema accepts `string | string[]` per toolkit, `.transform()` normalizes to `string[]` - Python: type is `Union[str, List[str]]`, coerced to list before passing to the API - Existing callers passing `{ gmail: "ca_xxx" }` continue to work without changes - Only one account per toolkit is allowed when multi-account mode is disabled ## Test plan - [x] TS: 109/109 `toolRouter.test.ts` pass (tests both string and array forms) - [x] Python: 65/65 `test_custom_tools.py` pass - [x] `tsc --noEmit` clean - [x] `ruff` clean 🤖 Generated with [Claude Code](https://claude.com/claude-code)
No changes.