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, 16:00 UTC
fix(cli): nest custom credentials under auth_config.credentials in auth-configs create (#4063)
## Summary The `composio dev auth-configs create` command fails when custom OAuth credentials are spread at the top level of `auth_config`. The API expects those values under `auth_config.credentials`. Fixes #4058 ## Changes - Nests custom credentials under `auth_config.credentials`. - Merges parsed `--scopes` into the same credentials object. - Preserves `credentials: undefined` when neither credentials nor scopes are supplied. - Captures the typed repository request in the CLI test layer and asserts the exact custom OAuth payload. - Records the user-visible fix in the CLI changelog. - Merges the current `next` branch without conflicts. ## Verification - Reproduced on the old implementation: 1 of 8 focused tests failed because `client_id` remained at `auth_config.client_id`. - Verified the fix: 8 of 8 focused auth-config create tests passed. - Full CLI package suite: 120 test files passed; 1,188 tests passed; 1 skipped. - `pnpm typecheck`: 14 tasks passed across the 19 TypeScript packages in scope. - `pnpm run lint:packages`: passed with existing warnings only. - Prettier check on all four changed files: passed. The fresh-worktree CLI suite currently needs a temporary local Vitest alias for the pre-existing `#ssrf_guard` resolver drift. That alias was used only to run the suite and is not part of this PR. ## Release notes `@composio/cli` is excluded from Changesets, so this PR updates `ts/packages/cli/CHANGELOG.md` directly. --------- Co-authored-by: jkomyno <alberto@composio.dev>