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, 08:30 UTC
refactor(cli): move `debug` into the directory shape (#4974)
This PR: - turns the unlisted `debug.cmd.ts` into the group entry `debug/debug.cmd.ts` and gives each diagnostic its own directory: `debug/generate-graph/`, `debug/api-info/` (cmd, handler, format), and `debug/who-is-my-master/`. All three stay `Command.unlisted` - keeps `api-info`'s behavior: the confirmation defaults to no, a missing key and a declined prompt are `CommandInputError`s for `debug` with the same messages, and only `missing_org` / `missing_developer_project` project failures fall back to `consumerUserId: null`. `consumerUserIdOf` is now an `Option` pipeline - adds one `.cmd.test.ts` per subcommand (graph JSON, detected master, declined / logged-out / confirmed `api-info`) and handler tests for `consumerUserIdOf` and the Codex/Claude/user detection table - removes `debug.cmd.ts` from `COMMAND_TEST_EXEMPTIONS` (15 to 14) Part of U9 of the CLI command-layout series. No user-visible change, so no CHANGELOG entry. Verified locally on the branch tip: | Check | Result | | --- | --- | | `pnpm --filter @composio/cli typecheck` | passes | | `pnpm --filter @composio/cli test` (skills, boundaries, command tests, Vitest) | 165 files, 1911 passed, 1 skipped | | `validate:command-tests` | 14 exemptions (was 15) | | `lint:effect` | 0 diagnostics | | `oxlint`, prettier on touched files | clean | | Binary smoke | `--help` of `debug` and each subcommand, `debug generate-graph`, `debug who-is-my-master`, headless `debug api-info` (aborts, exit 1), root `--help`: identical to an `origin/next` (231122de1) binary |