@devries-cameron20 / composio-1 / commits / c595e0cc6
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

feat(cli): move py and ts under generate command (#2938)

## Summary Moves the `py` and `ts` code generation commands from top-level (`composio ts generate`, `composio py generate`) to subcommands under `generate` (`composio generate ts`, `composio generate py`). This makes the command hierarchy more intuitive — `generate` is the verb, and the language is the target. ## Changes - Created `generate/generate-py.cmd.ts` and `generate/generate-ts.cmd.ts` as thin wrappers that reuse the existing generation logic from `py.generate.cmd.ts` and `ts.generate.cmd.ts` - Moved `generate.cmd.ts` into `generate/generate.cmd.ts` directory and registered `py`/`ts` as subcommands via `Command.withSubcommands` - Removed top-level `pyCmd` and `tsCmd` imports from `index.ts` — these commands are now only accessible via `composio generate ts` and `composio generate py` - `composio generate` (no subcommand) still auto-detects project language and delegates, preserving backward compatibility for the most common usage ## Type of change - [x] Refactor/Chore ## How Has This Been Tested? - Tested `composio generate` auto-detection flow - Tested `composio generate ts` and `composio generate py` explicit subcommands - Verified all generation options (`--output-dir`, `--type-tools`, `--compact`, `--transpiled`, `--toolkits`) pass through correctly ## Checklist - [x] I have read the Code of Conduct and this PR adheres to it - [x] I ran linters/tests locally and they passed - [x] I updated documentation as needed - [x] I added tests or explain why not applicable - [x] I added a changeset if this change affects published packages

Alberto Schiabel committed Mar 18, 2026 at 22:24 UTC c595e0cc6e4873f3471cee70b3f30f082c4e8fcb

No changes.