@devries-cameron20 / composio Mirror · read-only / commits / 3415a4a15
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.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 03:15 UTC

feat(cli): add manage namespace for advanced commands (#2937)

## Summary Introduces a `composio manage` namespace that groups resource management commands (toolkits, tools, auth-configs, connected-accounts, triggers, logs, orgs, projects) under a single parent command. This declutters the top-level CLI help and creates a clearer separation between everyday commands (`init`, `login`, `generate`) and advanced resource management. ## Changes - Created `manage/manage.cmd.ts` with all resource subcommands registered under `composio manage` - Removed individual top-level imports (toolkits, tools, auth-configs, etc.) from `index.ts` and replaced with single `manageCmd` import - Updated alias mapping (`ALIAS_TO_PARENT`) to route through `manage` (e.g., `search` → `manage tools`, `link` → `manage connected-accounts`) - Updated `parseExecuteInputHelpSlug` to account for the new `manage` prefix in argv parsing - Consolidated the root help advanced commands section to show a single `manage` entry ## Type of change - [x] Refactor/Chore ## How Has This Been Tested? - Verified CLI help output displays correctly with the new `manage` namespace - Tested that aliases (`composio search`, `composio execute`, `composio link`, `composio listen`) still resolve correctly through the `manage` prefix ## 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 --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: jkomyno <12381818+jkomyno@users.noreply.github.com>

Rahul Tarak committed Mar 17, 2026 at 19:44 UTC 3415a4a15b8696bb56d497301764a8604ad9fc25
84 files changed +559 -473
.claude/skills/create-cli-e2e/SKILL.md
+3 -3
@@ -218,10 +218,10 @@ e2e(import.meta.url, {
218 let missingArgResult: E2ETestResult;
219
220 beforeAll(async () => {
221 - missingArgResult = await runCmd('composio tools info');
221 + missingArgResult = await runCmd('composio manage tools info');
222 }, TIMEOUTS.FIXTURE);
223
224 - describe('composio tools info (missing argument)', () => {
224 + describe('composio manage tools info (missing argument)', () => {
225 it('exits with non-zero code', () => {
226 expect(missingArgResult.exitCode).not.toBe(0);
227 });
@@ -344,7 +344,7 @@ Commands run inside `sh -c '...'` in a POSIX shell. Rules:
344
345 - Use double quotes for flag values with spaces or special chars:
346 ```typescript
347 - runCmd('composio tools info "GMAIL_SEND_EMAIL"')
347 + runCmd('composio manage tools info "GMAIL_SEND_EMAIL"')
348 ```
349 - Use single quotes inside double-quoted contexts for literal strings.
350 - **No bash-isms**: no `[[`, no `$()`, no arrays.
.claude/skills/implement-cli-command/SKILL.md
+3 -3
@@ -170,7 +170,7 @@ Most commands only use services already provided. The `ComposioToolkitsRepositor
170
171 ## Creating a Subcommand Group
172
173 -For commands like `composio toolkits list`, `composio toolkits info`:
173 +For commands like `composio manage toolkits list`, `composio manage toolkits info`:
174
175 ### Step 1: Create the Directory Structure
176
@@ -178,8 +178,8 @@ For commands like `composio toolkits list`, `composio toolkits info`:
178 src/commands/toolkits/
179 ├── toolkits.cmd.ts # Parent command group
180 └── commands/
181 - ├── toolkits.list.cmd.ts # composio toolkits list
182 - └── toolkits.info.cmd.ts # composio toolkits info
181 + ├── toolkits.list.cmd.ts # composio manage toolkits list
182 + └── toolkits.info.cmd.ts # composio manage toolkits info
183 ```
184
185 ### Step 2: Create the Parent Command
ts/e2e-tests/cli/toolkits/info/README.md
+2 -2
@@ -1,6 +1,6 @@
1 -# CLI `composio toolkits info` Test
1 +# CLI `composio manage toolkits info` Test
2
3 -Verifies that `composio toolkits info <slug>` returns detailed toolkit JSON in piped mode, handles invalid slugs gracefully, and supports stdout redirection.
3 +Verifies that `composio manage toolkits info <slug>` returns detailed toolkit JSON in piped mode, handles invalid slugs gracefully, and supports stdout redirection.
4
5 ## What It Tests
6
ts/e2e-tests/cli/toolkits/info/e2e.test.ts
+9 -9
@@ -1,5 +1,5 @@
1 /**
2 - * CLI `composio toolkits info` e2e test
2 + * CLI `composio manage toolkits info` e2e test
3 *
4 * Verifies that the info subcommand returns detailed toolkit JSON in piped mode,
5 * handles invalid slugs gracefully, and supports stdout redirection.
@@ -35,16 +35,16 @@ e2e(import.meta.url, {
35 let missingSlugResult: E2ETestResult;
36
37 beforeAll(async () => {
38 - validResult = await runCmd('composio toolkits info gmail');
38 + validResult = await runCmd('composio manage toolkits info gmail');
39 redirectResult = await runCmd({
40 - command: 'composio toolkits info gmail > out.json',
40 + command: 'composio manage toolkits info gmail > out.json',
41 files: ['out.json'],
42 });
43 - invalidResult = await runCmd('composio toolkits info nonexistent_toolkit_xyz12345');
44 - missingSlugResult = await runCmd('composio toolkits info');
43 + invalidResult = await runCmd('composio manage toolkits info nonexistent_toolkit_xyz12345');
44 + missingSlugResult = await runCmd('composio manage toolkits info');
45 }, TIMEOUTS.FIXTURE);
46
47 - describe('composio toolkits info gmail (valid slug)', () => {
47 + describe('composio manage toolkits info gmail (valid slug)', () => {
48 it('exits successfully', () => {
49 expect(validResult.exitCode).toBe(0);
50 });
@@ -89,7 +89,7 @@ e2e(import.meta.url, {
89 });
90 });
91
92 - describe('composio toolkits info gmail > out.json (stdout redirection)', () => {
92 + describe('composio manage toolkits info gmail > out.json (stdout redirection)', () => {
93 it('exits successfully', () => {
94 expect(redirectResult.exitCode).toBe(0);
95 });
@@ -109,7 +109,7 @@ e2e(import.meta.url, {
109 });
110 });
111
112 - describe('composio toolkits info nonexistent_toolkit_xyz12345 (invalid slug)', () => {
112 + describe('composio manage toolkits info nonexistent_toolkit_xyz12345 (invalid slug)', () => {
113 it('exits successfully (graceful error handling)', () => {
114 expect(invalidResult.exitCode).toBe(0);
115 });
@@ -123,7 +123,7 @@ e2e(import.meta.url, {
123 });
124 });
125
126 - describe('composio toolkits info (missing slug)', () => {
126 + describe('composio manage toolkits info (missing slug)', () => {
127 it('exits successfully (optional arg, handler guards)', () => {
128 expect(missingSlugResult.exitCode).toBe(0);
129 });
ts/e2e-tests/cli/toolkits/list/README.md
+2 -2
@@ -1,6 +1,6 @@
1 -# CLI `composio toolkits list` Test
1 +# CLI `composio manage toolkits list` Test
2
3 -Verifies that `composio toolkits list` returns toolkits as JSON in piped mode with correct `--query` filtering behavior.
3 +Verifies that `composio manage toolkits list` returns toolkits as JSON in piped mode with correct `--query` filtering behavior.
4
5 ## What It Tests
6
ts/e2e-tests/cli/toolkits/list/e2e.test.ts
+7 -7
@@ -1,5 +1,5 @@
1 /**
2 - * CLI `composio toolkits list` e2e test
2 + * CLI `composio manage toolkits list` e2e test
3 *
4 * Verifies that the list subcommand returns toolkits as JSON in piped mode,
5 * supports --query filtering (exact, prefix, no fuzzy), and respects --limit.
@@ -28,12 +28,12 @@ e2e(import.meta.url, {
28 let noFuzzyResult: E2ETestResult;
29
30 beforeAll(async () => {
31 - exactResult = await runCmd('composio toolkits list --query gmail --limit 1');
32 - prefixResult = await runCmd('composio toolkits list --query gmai --limit 1');
33 - noFuzzyResult = await runCmd('composio toolkits list --query gmal --limit 1');
31 + exactResult = await runCmd('composio manage toolkits list --query gmail --limit 1');
32 + prefixResult = await runCmd('composio manage toolkits list --query gmai --limit 1');
33 + noFuzzyResult = await runCmd('composio manage toolkits list --query gmal --limit 1');
34 }, TIMEOUTS.FIXTURE);
35
36 - describe('composio toolkits list --query gmail --limit 1 (exact slug)', () => {
36 + describe('composio manage toolkits list --query gmail --limit 1 (exact slug)', () => {
37 it('exits successfully', () => {
38 expect(exactResult.exitCode).toBe(0);
39 });
@@ -67,7 +67,7 @@ e2e(import.meta.url, {
67 });
68 });
69
70 - describe('composio toolkits list --query gmai --limit 1 (prefix search)', () => {
70 + describe('composio manage toolkits list --query gmai --limit 1 (prefix search)', () => {
71 it('exits successfully', () => {
72 expect(prefixResult.exitCode).toBe(0);
73 });
@@ -88,7 +88,7 @@ e2e(import.meta.url, {
88 });
89 });
90
91 - describe('composio toolkits list --query gmal --limit 1 (no fuzzy search)', () => {
91 + describe('composio manage toolkits list --query gmal --limit 1 (no fuzzy search)', () => {
92 it('exits successfully', () => {
93 expect(noFuzzyResult.exitCode).toBe(0);
94 });
ts/e2e-tests/cli/toolkits/search/README.md
+2 -2
@@ -1,6 +1,6 @@
1 -# CLI `composio toolkits search` Test
1 +# CLI `composio manage toolkits search` Test
2
3 -Verifies that `composio toolkits search <query>` returns matching toolkits as JSON in piped mode, respects `--limit`, supports stdout redirection, and handles queries with no results.
3 +Verifies that `composio manage toolkits search <query>` returns matching toolkits as JSON in piped mode, respects `--limit`, supports stdout redirection, and handles queries with no results.
4
5 ## What It Tests
6
ts/e2e-tests/cli/toolkits/search/e2e.test.ts
+9 -9
@@ -1,5 +1,5 @@
1 /**
2 - * CLI `composio toolkits search` e2e test
2 + * CLI `composio manage toolkits search` e2e test
3 *
4 * Verifies that the search subcommand returns matching toolkits as JSON in piped mode,
5 * respects --limit, supports stdout redirection, and handles no-result queries.
@@ -35,16 +35,16 @@ e2e(import.meta.url, {
35 let noResultsResult: E2ETestResult;
36
37 beforeAll(async () => {
38 - validResult = await runCmd('composio toolkits search gmail');
39 - limitResult = await runCmd('composio toolkits search gmail --limit 1');
38 + validResult = await runCmd('composio manage toolkits search gmail');
39 + limitResult = await runCmd('composio manage toolkits search gmail --limit 1');
40 redirectResult = await runCmd({
41 - command: 'composio toolkits search gmail --limit 1 > out.json',
41 + command: 'composio manage toolkits search gmail --limit 1 > out.json',
42 files: ['out.json'],
43 });
44 - noResultsResult = await runCmd('composio toolkits search xyznonexistent_abc_12345');
44 + noResultsResult = await runCmd('composio manage toolkits search xyznonexistent_abc_12345');
45 }, TIMEOUTS.FIXTURE);
46
47 - describe('composio toolkits search gmail (known query)', () => {
47 + describe('composio manage toolkits search gmail (known query)', () => {
48 it('exits successfully', () => {
49 expect(validResult.exitCode).toBe(0);
50 });
@@ -76,7 +76,7 @@ e2e(import.meta.url, {
76 });
77 });
78
79 - describe('composio toolkits search gmail --limit 1 (with limit)', () => {
79 + describe('composio manage toolkits search gmail --limit 1 (with limit)', () => {
80 it('exits successfully', () => {
81 expect(limitResult.exitCode).toBe(0);
82 });
@@ -97,7 +97,7 @@ e2e(import.meta.url, {
97 });
98 });
99
100 - describe('composio toolkits search gmail --limit 1 > out.json (stdout redirection)', () => {
100 + describe('composio manage toolkits search gmail --limit 1 > out.json (stdout redirection)', () => {
101 it('exits successfully', () => {
102 expect(redirectResult.exitCode).toBe(0);
103 });
@@ -118,7 +118,7 @@ e2e(import.meta.url, {
118 });
119 });
120
121 - describe('composio toolkits search xyznonexistent_abc_12345 (no results)', () => {
121 + describe('composio manage toolkits search xyznonexistent_abc_12345 (no results)', () => {
122 it('exits successfully', () => {
123 expect(noResultsResult.exitCode).toBe(0);
124 });
ts/packages/cli/AGENTS.md
+11 -10
@@ -27,16 +27,17 @@ Errors are captured via the custom `effect-errors/` module, which provides sourc
27
28 Each command is declared with `@effect/cli`'s `Command.make()` pattern:
29
30 -| Command | Description |
31 -| -------------------------------------------------------- | ---------------------------------------------------------- |
32 -| `composio version` | Display CLI version |
33 -| `composio whoami` | Show logged-in user's API key |
34 -| `composio login [--no-browser] [--no-wait] [--key text]` | Login with browser redirect |
35 -| `composio logout` | Clear stored API key |
36 -| `composio upgrade` | Self-update binary from GitHub releases |
37 -| `composio generate` | Auto-detect project language, delegate to `ts` or `py` |
38 -| `composio ts generate` | Generate TypeScript type stubs for toolkits/tools/triggers |
39 -| `composio py generate` | Generate Python type stubs |
30 +| Command | Description |
31 +| -------------------------------------------------------- | ----------------------------------------------------------- |
32 +| `composio version` | Display CLI version |
33 +| `composio whoami` | Show logged-in user's API key |
34 +| `composio login [--no-browser] [--no-wait] [--key text]` | Login with browser redirect |
35 +| `composio logout` | Clear stored API key |
36 +| `composio upgrade` | Self-update binary from GitHub releases |
37 +| `composio generate` | Auto-detect project language, delegate to `ts` or `py` |
38 +| `composio ts generate` | Generate TypeScript type stubs for toolkits/tools/triggers |
39 +| `composio py generate` | Generate Python type stubs |
40 +| `composio manage <subcommand>` | Manage Composio resources (toolkits, tools, accounts, etc.) |
41
42 Options use `Options.text()`, `Options.boolean()`, `Options.choice()`, `Options.directory()` with Effect Schema validation.
43
ts/packages/cli/recordings/recordings.yaml
+45 -45
@@ -51,92 +51,92 @@ recordings:
51 toolkits:
52 - name: help
53 description: Show toolkits subcommand help
54 - command: "composio toolkits --help"
54 + command: "composio manage toolkits --help"
55 height: dynamic
56
57 - name: search-google
58 description: Search toolkits by name
59 - command: "composio toolkits search google"
59 + command: "composio manage toolkits search google"
60 height: dynamic
61
62 - name: search-google-limit-1
63 description: Search with --limit flag
64 - command: "composio toolkits search google --limit 1"
64 + command: "composio manage toolkits search google --limit 1"
65
66 - name: search-gmail
67 description: Search for a specific toolkit
68 - command: "composio toolkits search gmail"
68 + command: "composio manage toolkits search gmail"
69 height: dynamic
70
71 - name: search-gma
72 description: Search with partial match
73 - command: "composio toolkits search gma"
73 + command: "composio manage toolkits search gma"
74 height: dynamic
75
76 - name: search-gmax
77 description: Search with no results
78 - command: "composio toolkits search gmax"
78 + command: "composio manage toolkits search gmax"
79
80 - name: search-gmail-pipe
81 description: Pipe output to JSON
82 - command: "composio toolkits search gmail | jq 'first'"
82 + command: "composio manage toolkits search gmail | jq 'first'"
83 height: dynamic
84
85 - name: info
86 description: Show info without arguments
87 - command: "composio toolkits info"
87 + command: "composio manage toolkits info"
88
89 - name: info-gmail
90 description: Show toolkit details
91 - command: "composio toolkits info gmail"
91 + command: "composio manage toolkits info gmail"
92 height: dynamic
93
94 - name: info-gmai
95 description: Info with partial match
96 - command: "composio toolkits info gmai"
96 + command: "composio manage toolkits info gmai"
97 height: dynamic
98
99 - name: info-gmax
100 description: Info with no results
101 - command: "composio toolkits info gmax"
101 + command: "composio manage toolkits info gmax"
102
103 - name: list
104 description: List all toolkits
105 - command: "composio toolkits list"
105 + command: "composio manage toolkits list"
106 height: dynamic
107
108 - name: list-limit-1
109 description: List with --limit flag
110 - command: "composio toolkits list --limit 1"
110 + command: "composio manage toolkits list --limit 1"
111
112 - name: list-query-gmail
113 description: List with --query filter
114 - command: "composio toolkits list --query 'gmail'"
114 + command: "composio manage toolkits list --query 'gmail'"
115 height: dynamic
116
117 - name: list-query-gmail-limit-1
118 description: Combine --query and --limit
119 - command: "composio toolkits list --query 'gmail' --limit 1"
119 + command: "composio manage toolkits list --query 'gmail' --limit 1"
120
121 - name: list-query-gmaxx
122 description: List with no results
123 - command: "composio toolkits list --query 'gmaxx'"
123 + command: "composio manage toolkits list --query 'gmaxx'"
124
125 tools:
126 - name: help
127 description: Show tools subcommand help
128 - command: "composio tools --help"
128 + command: "composio manage tools --help"
129 height: dynamic
130
131 - name: execute-help
132 description: Show execute subcommand help
133 - command: "composio tools execute --help"
133 + command: "composio manage tools execute --help"
134 height: dynamic
135
136 - name: execute-explicit
137 description: Execute a tool, with explicit user ID and toolkit version
138 command: |-
139 - composio tools execute GMAIL_CREATE_EMAIL_DRAFT \
139 + composio manage tools execute GMAIL_CREATE_EMAIL_DRAFT \
140 -d '{"recipient_email":"to@example.com","subject":"Draft","body":"Draft body"}' \
141 --user-id jkomyno \
142 --toolkit-version 20250909_00
@@ -144,7 +144,7 @@ recordings:
144 - name: execute-failure-no-connected-account
145 description: Execeute a tool, with no connected account associated
146 command: |-
147 - composio tools execute GMAIL_CREATE_EMAIL_DRAFT \
147 + composio manage tools execute GMAIL_CREATE_EMAIL_DRAFT \
148 -d '{"recipient":"to@example.com","subject":"Draft","body":"Draft body"}' \
149 --user-id default
150
@@ -152,115 +152,115 @@ recordings:
152 description: Execute a tool, with piped input
153 command: |-
154 echo '{"recipient_email":"to@example.com","subject":"Hello","body":"From stdin"}' \
155 - | composio tools execute GMAIL_SEND_EMAIL \
155 + | composio manage tools execute GMAIL_SEND_EMAIL \
156 --user-id jkomyno \
157 | jq
158
159 - name: list-toolkit-gmail
160 description: List tools in a toolkit
161 - command: "composio tools list --toolkits gmail"
161 + command: "composio manage tools list --toolkits gmail"
162 height: dynamic
163
164 - name: list-toolkit-gmail-limit-3
165 description: List with --limit flag
166 - command: "composio tools list --toolkits gmail --limit 3"
166 + command: "composio manage tools list --toolkits gmail --limit 3"
167
168 - name: list-query-send-email
169 description: List with --query filter
170 - command: "composio tools list --query 'send email'"
170 + command: "composio manage tools list --query 'send email'"
171 height: dynamic
172
173 - name: list-search-no-results
174 description: List with no results
175 - command: "composio tools list --toolkits 'nonexistent'"
175 + command: "composio manage tools list --toolkits 'nonexistent'"
176
177 - name: search-send-email
178 description: Search tools by use case
179 - command: "composio tools search 'send email'"
179 + command: "composio manage tools search 'send email'"
180 height: dynamic
181
182 - name: search-no-results
183 description: Search with no results
184 - command: "composio tools search 'xyznonexistent'"
184 + command: "composio manage tools search 'xyznonexistent'"
185
186 - name: info
187 description: Show info without arguments
188 - command: "composio tools info"
188 + command: "composio manage tools info"
189
190 - name: info-gmail-send-email
191 description: Show tool details
192 - command: "composio tools info GMAIL_SEND_EMAIL"
192 + command: "composio manage tools info GMAIL_SEND_EMAIL"
193 height: dynamic
194
195 - name: info-nonexistent
196 description: Info with nonexistent tool
197 - command: "composio tools info NONEXISTENT_TOOL"
197 + command: "composio manage tools info NONEXISTENT_TOOL"
198 height: dynamic
199
200 auth-configs:
201 - name: help
202 description: Show auth-configs subcommand help
203 - command: "composio auth-configs --help"
203 + command: "composio manage auth-configs --help"
204 height: dynamic
205
206 - name: list
207 description: List all auth configs
208 - command: "composio auth-configs list"
208 + command: "composio manage auth-configs list"
209 height: dynamic
210
211 - name: list-toolkits-gmail
212 description: List filtered by toolkit
213 - command: "composio auth-configs list --toolkits gmail"
213 + command: "composio manage auth-configs list --toolkits gmail"
214 height: dynamic
215
216 - name: list-limit-1
217 description: List with --limit flag
218 - command: "composio auth-configs list --limit 1"
218 + command: "composio manage auth-configs list --limit 1"
219
220 - name: info
221 description: Show info without arguments
222 - command: "composio auth-configs info"
222 + command: "composio manage auth-configs info"
223
224 - name: info-nonexistent
225 description: Info with nonexistent ID
226 - command: "composio auth-configs info nonexistent_id"
226 + command: "composio manage auth-configs info nonexistent_id"
227
228 - name: delete
229 description: Delete without arguments
230 - command: "composio auth-configs delete"
230 + command: "composio manage auth-configs delete"
231
232 connected-accounts:
233 - name: help
234 description: Show connected-accounts subcommand help
235 - command: "composio connected-accounts --help"
235 + command: "composio manage connected-accounts --help"
236 height: dynamic
237
238 - name: list
239 description: List all connected accounts
240 - command: "composio connected-accounts list"
240 + command: "composio manage connected-accounts list"
241 height: dynamic
242
243 - name: list-toolkits-gmail
244 description: List filtered by toolkit
245 - command: "composio connected-accounts list --toolkits gmail"
245 + command: "composio manage connected-accounts list --toolkits gmail"
246 height: dynamic
247
248 - name: list-limit-1
249 description: List with --limit flag
250 - command: "composio connected-accounts list --limit 1"
250 + command: "composio manage connected-accounts list --limit 1"
251
252 - name: info
253 description: Show info without arguments
254 - command: "composio connected-accounts info"
254 + command: "composio manage connected-accounts info"
255
256 - name: info-nonexistent
257 description: Info with nonexistent ID
258 - command: "composio connected-accounts info nonexistent_id"
258 + command: "composio manage connected-accounts info nonexistent_id"
259
260 - name: delete
261 description: Delete without arguments
262 - command: "composio connected-accounts delete"
262 + command: "composio manage connected-accounts delete"
263
264 - name: link-no-args
265 description: Link without arguments
266 - command: "composio connected-accounts link"
266 + command: "composio manage connected-accounts link"
ts/packages/cli/src/commands/auth-configs/auth-configs.cmd.ts
+1 -1
@@ -9,7 +9,7 @@ import { authConfigsCmd$Delete } from './commands/auth-configs.delete.cmd';
9 *
10 * @example
11 * ```bash
12 - * composio auth-configs <command>
12 + * composio manage auth-configs <command>
13 * ```
14 */
15 export const authConfigsCmd = Command.make('auth-configs').pipe(
ts/packages/cli/src/commands/auth-configs/commands/auth-configs.create.cmd.ts
+6 -6
@@ -40,13 +40,13 @@ const customCredentials = Options.text('custom-credentials').pipe(
40 * @example
41 * ```bash
42 * # Composio-managed defaults
43 - * composio auth-configs create "my-gmail-config" --toolkit "gmail"
43 + * composio manage auth-configs create "my-gmail-config" --toolkit "gmail"
44 *
45 * # Custom auth with specific scheme
46 - * composio auth-configs create "custom-gmail" --toolkit "gmail" --auth-scheme "OAUTH2" --scopes "send_email"
46 + * composio manage auth-configs create "custom-gmail" --toolkit "gmail" --auth-scheme "OAUTH2" --scopes "send_email"
47 *
48 * # White-labeling with custom credentials
49 - * composio auth-configs create "custom-gmail" --toolkit "gmail" --auth-scheme "OAUTH2" --custom-credentials '{"client_id":"...","client_secret":"..."}'
49 + * composio manage auth-configs create "custom-gmail" --toolkit "gmail" --auth-scheme "OAUTH2" --custom-credentials '{"client_id":"...","client_secret":"..."}'
50 * ```
51 */
52 export const authConfigsCmd$Create = Command.make(
@@ -67,7 +67,7 @@ export const authConfigsCmd$Create = Command.make(
67 } catch {
68 yield* ui.log.error('Invalid JSON in --custom-credentials. Please provide valid JSON.');
69 yield* ui.log.step(
70 - 'Example:\n> composio auth-configs create "name" --toolkit "gmail" --custom-credentials \'{"client_id":"...","client_secret":"..."}\''
70 + 'Example:\n> composio manage auth-configs create "name" --toolkit "gmail" --custom-credentials \'{"client_id":"...","client_secret":"..."}\''
71 );
72 return;
73 }
@@ -117,7 +117,7 @@ export const authConfigsCmd$Create = Command.make(
117 'services/HttpServerError',
118 handleHttpServerError(ui, {
119 fallbackMessage: 'Failed to create auth config.',
120 - hint: `Check available auth schemes for "${toolkit}":\n> composio toolkits info "${toolkit}"`,
120 + hint: `Check available auth schemes for "${toolkit}":\n> composio manage toolkits info "${toolkit}"`,
121 fallbackValue: Option.none(),
122 })
123 )
@@ -135,7 +135,7 @@ export const authConfigsCmd$Create = Command.make(
135 const redactedId = redact({ value: result.auth_config.id, prefix: 'ac_' });
136
137 // Next step hint
138 - yield* ui.log.step(`To view details:\n> composio auth-configs info "${redactedId}"`);
138 + yield* ui.log.step(`To view details:\n> composio manage auth-configs info "${redactedId}"`);
139
140 yield* ui.output(JSON.stringify(result, null, 2));
141 })
ts/packages/cli/src/commands/auth-configs/commands/auth-configs.delete.cmd.ts
+4 -4
@@ -24,8 +24,8 @@ const yes = Options.boolean('yes').pipe(
24 *
25 * @example
26 * ```bash
27 - * composio auth-configs delete "ac_1232323"
28 - * composio auth-configs delete "ac_1232323" --yes
27 + * composio manage auth-configs delete "ac_1232323"
28 + * composio manage auth-configs delete "ac_1232323" --yes
29 * ```
30 */
31 export const authConfigsCmd$Delete = Command.make('delete', { id, yes }, ({ id, yes }) =>
@@ -39,7 +39,7 @@ export const authConfigsCmd$Delete = Command.make('delete', { id, yes }, ({ id,
39 if (Option.isNone(id)) {
40 yield* ui.log.warn('Missing required argument: <id>');
41 yield* ui.log.step(
42 - 'Try specifying an auth config ID, e.g.:\n> composio auth-configs delete "ac_1232323"\n\nTo find auth config IDs:\n> composio auth-configs list'
42 + 'Try specifying an auth config ID, e.g.:\n> composio manage auth-configs delete "ac_1232323"\n\nTo find auth config IDs:\n> composio manage auth-configs list'
43 );
44 return;
45 }
@@ -66,7 +66,7 @@ export const authConfigsCmd$Delete = Command.make('delete', { id, yes }, ({ id,
66 'services/HttpServerError',
67 handleHttpServerError(ui, {
68 fallbackMessage: `Failed to delete auth config "${idValue}".`,
69 - hint: 'Browse available auth configs:\n> composio auth-configs list',
69 + hint: 'Browse available auth configs:\n> composio manage auth-configs list',
70 fallbackValue: false,
71 })
72 )
ts/packages/cli/src/commands/auth-configs/commands/auth-configs.info.cmd.ts
+4 -4
@@ -17,7 +17,7 @@ const id = Args.text({ name: 'id' }).pipe(
17 *
18 * @example
19 * ```bash
20 - * composio auth-configs info "ac_1232323"
20 + * composio manage auth-configs info "ac_1232323"
21 * ```
22 */
23 export const authConfigsCmd$Info = Command.make('info', { id }, ({ id }) =>
@@ -31,7 +31,7 @@ export const authConfigsCmd$Info = Command.make('info', { id }, ({ id }) =>
31 if (Option.isNone(id)) {
32 yield* ui.log.warn('Missing required argument: <id>');
33 yield* ui.log.step(
34 - 'Try specifying an auth config ID, e.g.:\n> composio auth-configs info "ac_1232323"\n\nTo find auth config IDs:\n> composio auth-configs list'
34 + 'Try specifying an auth config ID, e.g.:\n> composio manage auth-configs info "ac_1232323"\n\nTo find auth config IDs:\n> composio manage auth-configs list'
35 );
36 return;
37 }
@@ -47,7 +47,7 @@ export const authConfigsCmd$Info = Command.make('info', { id }, ({ id }) =>
47 'services/HttpServerError',
48 handleHttpServerError(ui, {
49 fallbackMessage: `Failed to fetch auth config "${idValue}".`,
50 - hint: 'Browse available auth configs:\n> composio auth-configs list',
50 + hint: 'Browse available auth configs:\n> composio manage auth-configs list',
51 fallbackValue: Option.none(),
52 })
53 )
@@ -65,7 +65,7 @@ export const authConfigsCmd$Info = Command.make('info', { id }, ({ id }) =>
65
66 // Next step hint
67 yield* ui.log.step(
68 - `To delete this auth config:\n> composio auth-configs delete "${redactedId}"`
68 + `To delete this auth config:\n> composio manage auth-configs delete "${redactedId}"`
69 );
70
71 yield* ui.output(JSON.stringify(item, null, 2));
ts/packages/cli/src/commands/auth-configs/commands/auth-configs.list.cmd.ts
+5 -5
@@ -29,9 +29,9 @@ const limit = Options.integer('limit').pipe(
29 *
30 * @example
31 * ```bash
32 - * composio auth-configs list
33 - * composio auth-configs list --toolkits "gmail"
34 - * composio auth-configs list --query "my config" --limit 10
32 + * composio manage auth-configs list
33 + * composio manage auth-configs list --toolkits "gmail"
34 + * composio manage auth-configs list --query "my config" --limit 10
35 * ```
36 */
37 export const authConfigsCmd$List = Command.make(
@@ -55,7 +55,7 @@ export const authConfigsCmd$List = Command.make(
55
56 if (result.items.length === 0) {
57 const hint = Option.isSome(toolkits)
58 - ? `No auth configs found for toolkit "${toolkits.value}". Verify the toolkit slug with:\n> composio toolkits list`
58 + ? `No auth configs found for toolkit "${toolkits.value}". Verify the toolkit slug with:\n> composio manage toolkits list`
59 : 'No auth configs found. Try broadening your search.';
60 yield* ui.log.warn(hint);
61 return;
@@ -74,7 +74,7 @@ export const authConfigsCmd$List = Command.make(
74
75 if (firstId) {
76 yield* ui.log.step(
77 - `To view details of an auth config:\n> composio auth-configs info "${redactedId}"`
77 + `To view details of an auth config:\n> composio manage auth-configs info "${redactedId}"`
78 );
79 }
80
ts/packages/cli/src/commands/connected-accounts/commands/connected-accounts.delete.cmd.ts
+4 -4
@@ -24,8 +24,8 @@ const yes = Options.boolean('yes').pipe(
24 *
25 * @example
26 * ```bash
27 - * composio connected-accounts delete "con_1a2b3c4d5e6f"
28 - * composio connected-accounts delete "con_1a2b3c4d5e6f" --yes
27 + * composio manage connected-accounts delete "con_1a2b3c4d5e6f"
28 + * composio manage connected-accounts delete "con_1a2b3c4d5e6f" --yes
29 * ```
30 */
31 export const connectedAccountsCmd$Delete = Command.make('delete', { id, yes }, ({ id, yes }) =>
@@ -39,7 +39,7 @@ export const connectedAccountsCmd$Delete = Command.make('delete', { id, yes }, (
39 if (Option.isNone(id)) {
40 yield* ui.log.warn('Missing required argument: <id>');
41 yield* ui.log.step(
42 - 'Try specifying a connected account ID, e.g.:\n> composio connected-accounts delete "con_1a2b3c4d5e6f"\n\nTo find connected account IDs:\n> composio connected-accounts list'
42 + 'Try specifying a connected account ID, e.g.:\n> composio manage connected-accounts delete "con_1a2b3c4d5e6f"\n\nTo find connected account IDs:\n> composio manage connected-accounts list'
43 );
44 return;
45 }
@@ -69,7 +69,7 @@ export const connectedAccountsCmd$Delete = Command.make('delete', { id, yes }, (
69 'services/HttpServerError',
70 handleHttpServerError(ui, {
71 fallbackMessage: `Failed to delete connected account "${idValue}".`,
72 - hint: 'Browse available connected accounts:\n> composio connected-accounts list',
72 + hint: 'Browse available connected accounts:\n> composio manage connected-accounts list',
73 fallbackValue: false,
74 })
75 )
ts/packages/cli/src/commands/connected-accounts/commands/connected-accounts.info.cmd.ts
+4 -4
@@ -17,7 +17,7 @@ const id = Args.text({ name: 'id' }).pipe(
17 *
18 * @example
19 * ```bash
20 - * composio connected-accounts info "con_1a2b3c4d5e6f"
20 + * composio manage connected-accounts info "con_1a2b3c4d5e6f"
21 * ```
22 */
23 export const connectedAccountsCmd$Info = Command.make('info', { id }, ({ id }) =>
@@ -31,7 +31,7 @@ export const connectedAccountsCmd$Info = Command.make('info', { id }, ({ id }) =
31 if (Option.isNone(id)) {
32 yield* ui.log.warn('Missing required argument: <id>');
33 yield* ui.log.step(
34 - 'Try specifying a connected account ID, e.g.:\n> composio connected-accounts info "con_1a2b3c4d5e6f"\n\nTo find connected account IDs:\n> composio connected-accounts list'
34 + 'Try specifying a connected account ID, e.g.:\n> composio manage connected-accounts info "con_1a2b3c4d5e6f"\n\nTo find connected account IDs:\n> composio manage connected-accounts list'
35 );
36 return;
37 }
@@ -46,7 +46,7 @@ export const connectedAccountsCmd$Info = Command.make('info', { id }, ({ id }) =
46 'services/HttpServerError',
47 handleHttpServerError(ui, {
48 fallbackMessage: `Failed to fetch connected account "${idValue}".`,
49 - hint: 'Browse available connected accounts:\n> composio connected-accounts list',
49 + hint: 'Browse available connected accounts:\n> composio manage connected-accounts list',
50 fallbackValue: Option.none(),
51 })
52 )
@@ -64,7 +64,7 @@ export const connectedAccountsCmd$Info = Command.make('info', { id }, ({ id }) =
64
65 // Next step hint
66 yield* ui.log.step(
67 - `To delete this connected account:\n> composio connected-accounts delete "${redactedId}"`
67 + `To delete this connected account:\n> composio manage connected-accounts delete "${redactedId}"`
68 );
69
70 yield* ui.output(JSON.stringify(item, null, 2));
ts/packages/cli/src/commands/connected-accounts/commands/connected-accounts.link.cmd.ts
+11 -11
@@ -125,14 +125,14 @@ const waitForActiveConnection = (
125 * Link an external account via OAuth redirect.
126 *
127 * Two modes:
128 - * - **Tool Router** (default): `composio connected-accounts link <toolkit>`
129 - * - **Legacy**: `composio connected-accounts link --auth-config <id>`
128 + * - **Tool Router** (default): `composio manage connected-accounts link <toolkit>`
129 + * - **Legacy**: `composio manage connected-accounts link --auth-config <id>`
130 *
131 * @example
132 * ```bash
133 - * composio connected-accounts link github
134 - * composio connected-accounts link gmail --user-id "alice"
135 - * composio connected-accounts link --auth-config "ac_..." --user-id "default"
133 + * composio manage connected-accounts link github
134 + * composio manage connected-accounts link gmail --user-id "alice"
135 + * composio manage connected-accounts link --auth-config "ac_..." --user-id "default"
136 * ```
137 */
138 export const connectedAccountsCmd$Link = Command.make(
@@ -168,8 +168,8 @@ export const connectedAccountsCmd$Link = Command.make(
168 if (Option.isSome(toolkit) && Option.isSome(authConfig)) {
169 yield* ui.log.error(
170 'Cannot use both <toolkit> and --auth-config. Choose one:\n' +
171 - ' Tool Router: composio connected-accounts link <toolkit>\n' +
172 - ' Legacy: composio connected-accounts link --auth-config <id>'
171 + ' Tool Router: composio manage connected-accounts link <toolkit>\n' +
172 + ' Legacy: composio manage connected-accounts link --auth-config <id>'
173 );
174 return;
175 }
@@ -177,8 +177,8 @@ export const connectedAccountsCmd$Link = Command.make(
177 if (Option.isNone(toolkit) && Option.isNone(authConfig)) {
178 yield* ui.log.error(
179 'Missing argument. Provide a toolkit slug or --auth-config:\n' +
180 - ' composio connected-accounts link github\n' +
181 - ' composio connected-accounts link --auth-config "ac_..."'
180 + ' composio manage connected-accounts link github\n' +
181 + ' composio manage connected-accounts link --auth-config "ac_..."'
182 );
183 return;
184 }
@@ -199,7 +199,7 @@ export const connectedAccountsCmd$Link = Command.make(
199 'services/HttpServerError',
200 handleHttpServerError(ui, {
201 fallbackMessage: `Failed to create link for auth config "${authConfig.value}".`,
202 - hint: 'Browse available auth configs:\n> composio auth-configs list',
202 + hint: 'Browse available auth configs:\n> composio manage auth-configs list',
203 fallbackValue: Option.none(),
204 })
205 )
@@ -252,7 +252,7 @@ export const connectedAccountsCmd$Link = Command.make(
252 extractMessage(error) ?? `Failed to create link for toolkit "${toolkitSlug}".`;
253 yield* ui.log.error(message);
254 yield* Effect.logDebug('Link error:', error);
255 - yield* ui.log.step('Browse available toolkits:\n> composio toolkits list');
255 + yield* ui.log.step('Browse available toolkits:\n> composio manage toolkits list');
256 return Option.none();
257 })
258 )
ts/packages/cli/src/commands/connected-accounts/commands/connected-accounts.list.cmd.ts
+5 -5
@@ -38,9 +38,9 @@ const limit = Options.integer('limit').pipe(
38 *
39 * @example
40 * ```bash
41 - * composio connected-accounts list
42 - * composio connected-accounts list --toolkits "gmail"
43 - * composio connected-accounts list --user-id "default" --status ACTIVE
41 + * composio manage connected-accounts list
42 + * composio manage connected-accounts list --toolkits "gmail"
43 + * composio manage connected-accounts list --user-id "default" --status ACTIVE
44 * ```
45 */
46 export const connectedAccountsCmd$List = Command.make(
@@ -70,7 +70,7 @@ export const connectedAccountsCmd$List = Command.make(
70 if (result.items.length === 0) {
71 let hint: string;
72 if (Option.isSome(toolkits)) {
73 - hint = `No connected accounts found for toolkit "${toolkits.value}". Verify the toolkit slug with:\n> composio toolkits list`;
73 + hint = `No connected accounts found for toolkit "${toolkits.value}". Verify the toolkit slug with:\n> composio manage toolkits list`;
74 } else if (Option.isSome(userId)) {
75 hint = `No connected accounts found for user "${userId.value}".`;
76 } else if (Option.isSome(status)) {
@@ -95,7 +95,7 @@ export const connectedAccountsCmd$List = Command.make(
95
96 if (firstId) {
97 yield* ui.log.step(
98 - `To view details of a connected account:\n> composio connected-accounts info "${redactedId}"`
98 + `To view details of a connected account:\n> composio manage connected-accounts info "${redactedId}"`
99 );
100 }
101
ts/packages/cli/src/commands/connected-accounts/commands/connected-accounts.whoami.cmd.ts
+3 -3
@@ -20,7 +20,7 @@ const id = Args.text({ name: 'id' }).pipe(
20 *
21 * @example
22 * ```bash
23 - * composio connected-accounts whoami "con_1a2b3c4d5e6f"
23 + * composio manage connected-accounts whoami "con_1a2b3c4d5e6f"
24 * ```
25 */
26 export const connectedAccountsCmd$Whoami = Command.make('whoami', { id }, ({ id }) =>
@@ -34,7 +34,7 @@ export const connectedAccountsCmd$Whoami = Command.make('whoami', { id }, ({ id
34 if (Option.isNone(id)) {
35 yield* ui.log.warn('Missing required argument: <id>');
36 yield* ui.log.step(
37 - 'Try specifying a connected account ID, e.g.:\n> composio connected-accounts whoami "con_1a2b3c4d5e6f"\n\nTo find connected account IDs:\n> composio connected-accounts list'
37 + 'Try specifying a connected account ID, e.g.:\n> composio manage connected-accounts whoami "con_1a2b3c4d5e6f"\n\nTo find connected account IDs:\n> composio manage connected-accounts list'
38 );
39 return;
40 }
@@ -49,7 +49,7 @@ export const connectedAccountsCmd$Whoami = Command.make('whoami', { id }, ({ id
49 'services/HttpServerError',
50 handleHttpServerError(ui, {
51 fallbackMessage: `Failed to fetch connected account "${idValue}".`,
52 - hint: 'Browse available connected accounts:\n> composio connected-accounts list',
52 + hint: 'Browse available connected accounts:\n> composio manage connected-accounts list',
53 fallbackValue: Option.none(),
54 })
55 )
ts/packages/cli/src/commands/connected-accounts/connected-accounts.cmd.ts
+1 -1
@@ -10,7 +10,7 @@ import { connectedAccountsCmd$Link } from './commands/connected-accounts.link.cm
10 *
11 * @example
12 * ```bash
13 - * composio connected-accounts <command>
13 + * composio manage connected-accounts <command>
14 * ```
15 */
16 export const connectedAccountsCmd = Command.make('connected-accounts').pipe(
ts/packages/cli/src/commands/index.ts
+13 -27
@@ -13,14 +13,7 @@ import { initCmd } from './init.cmd';
13 import { pyCmd } from './py/py.cmd';
14 import { tsCmd } from './ts/ts.cmd';
15 import { generateCmd } from './generate.cmd';
16 -import { toolkitsCmd } from './toolkits/toolkits.cmd';
17 -import { toolsCmd } from './tools/tools.cmd';
18 -import { authConfigsCmd } from './auth-configs/auth-configs.cmd';
19 -import { connectedAccountsCmd } from './connected-accounts/connected-accounts.cmd';
20 -import { triggersCmd } from './triggers/triggers.cmd';
21 -import { logsCmd } from './logs-cmd/logs.cmd';
22 -import { orgsCmd } from './orgs/orgs.cmd';
23 -import { projectsCmd } from './projects/projects.cmd';
16 +import { manageCmd } from './manage/manage.cmd';
17 import { showToolsExecuteInputHelp } from './tools/commands/tools.execute.cmd';
18 import { printRootHelp } from './root-help';
19
@@ -36,14 +29,7 @@ const $cmd = $defaultCmd.pipe(
29 generateCmd,
30 pyCmd,
31 tsCmd,
39 - toolkitsCmd,
40 - toolsCmd,
41 - authConfigsCmd,
42 - connectedAccountsCmd,
43 - triggersCmd,
44 - logsCmd,
45 - orgsCmd,
46 - projectsCmd,
32 + manageCmd,
33 ])
34 );
35
@@ -51,13 +37,13 @@ export const rootCommand = $cmd;
37
38 const parseExecuteInputHelpSlug = (argv: ReadonlyArray<string>): string | undefined => {
39 const args = argv.slice(2);
54 - if (args.length < 3) return undefined;
55 - if (args[0] !== 'tools' || args[1] !== 'execute') return undefined;
40 + if (args.length < 4) return undefined;
41 + if (args[0] !== 'manage' || args[1] !== 'tools' || args[2] !== 'execute') return undefined;
42
43 const hasHelp = args.includes('--help') || args.includes('-h');
44 if (!hasHelp) return undefined;
45
60 - const tail = args.slice(2);
46 + const tail = args.slice(3);
47 for (let i = 0; i < tail.length; i += 1) {
48 const token = tail[i];
49 if (!token) continue;
@@ -102,20 +88,20 @@ const normalizeVersionShortFlag = (argv: ReadonlyArray<string>): ReadonlyArray<s
88 return argv;
89 };
90
105 -const ALIAS_TO_PARENT: Record<string, string> = {
106 - search: 'tools',
107 - execute: 'tools',
108 - link: 'connected-accounts',
109 - listen: 'triggers',
91 +const ALIAS_TO_PARENT: Record<string, ReadonlyArray<string>> = {
92 + search: ['manage', 'tools'],
93 + execute: ['manage', 'tools'],
94 + link: ['manage', 'connected-accounts'],
95 + listen: ['manage', 'triggers'],
96 };
97
98 const normalizeAliases = (argv: ReadonlyArray<string>): ReadonlyArray<string> => {
99 const args = argv.slice(2);
100 if (args.length === 0) return argv;
101 const first = args[0];
116 - const parent = first && ALIAS_TO_PARENT[first];
117 - if (!parent) return argv;
118 - return [...argv.slice(0, 2), parent, ...args];
102 + const parents = first && ALIAS_TO_PARENT[first];
103 + if (!parents) return argv;
104 + return [...argv.slice(0, 2), ...parents, ...args];
105 };
106
107 const isRootHelp = (argv: ReadonlyArray<string>): boolean => {
ts/packages/cli/src/commands/init.cmd.ts
+1 -1
@@ -348,7 +348,7 @@ const initInteractiveFlow = (params: { composioDir: string; noBrowser: boolean;
348
349 yield* ui.log.success(`Project initialized in ${composioDir}/`);
350 yield* ui.log.info(
351 - 'To switch your default global org/project later, run `composio orgs switch`.'
351 + 'To switch your default global org/project later, run `composio manage orgs switch`.'
352 );
353 yield* ui.output(makeOutputJson(selected, composioDir));
354 yield* ui.outro('');
ts/packages/cli/src/commands/login.cmd.ts
+3 -3
@@ -119,7 +119,7 @@ const storeCredentials = (params: {
119 'Run `composio init` in your project directory to set up project context.'
120 );
121 yield* ui.log.info(
122 - 'To switch your default global org/project later, run `composio orgs switch`.'
122 + 'To switch your default global org/project later, run `composio manage orgs switch`.'
123 );
124 }
125
@@ -261,7 +261,7 @@ const loginWithKey = (params: { key: string; noWait: boolean; skipOrgProjectPick
261 'Run `composio init` in your project directory to set up project context.'
262 );
263 yield* ui.log.info(
264 - 'To switch your default global org/project later, run `composio orgs switch`.'
264 + 'To switch your default global org/project later, run `composio manage orgs switch`.'
265 );
266 yield* ui.outro("You're all set!");
267 }
@@ -430,7 +430,7 @@ export const browserLogin = (params: {
430 'Run `composio init` in your project directory to set up project context.'
431 );
432 yield* ui.log.info(
433 - 'To switch your default global org/project later, run `composio orgs switch`.'
433 + 'To switch your default global org/project later, run `composio manage orgs switch`.'
434 );
435 yield* ui.outro("You're all set!");
436 }
ts/packages/cli/src/commands/logs-cmd/commands/logs.tools.cmd.ts
+7 -7
@@ -117,12 +117,12 @@ const logId = Args.text({ name: 'log_id' }).pipe(
117 *
118 * @example
119 * ```bash
120 - * composio logs tools --limit 50
121 - * composio logs tools <log_id>
122 - * composio logs tools --toolkit gmail --tool GMAIL_SEND_EMAIL
123 - * composio logs tools --connected-account-id con_123 --user-id user_123
124 - * composio logs tools --status success --auth-config-id ac_123
125 - * composio logs tools --from 1735689600000 --to 1735776000000
120 + * composio manage logs tools --limit 50
121 + * composio manage logs tools <log_id>
122 + * composio manage logs tools --toolkit gmail --tool GMAIL_SEND_EMAIL
123 + * composio manage logs tools --connected-account-id con_123 --user-id user_123
124 + * composio manage logs tools --status success --auth-config-id ac_123
125 + * composio manage logs tools --from 1735689600000 --to 1735776000000
126 * ```
127 */
128 export const logsCmd$Tools = Command.make(
@@ -223,7 +223,7 @@ export const logsCmd$Tools = Command.make(
223 const firstLogId = logs[0]?.id;
224 if (firstLogId) {
225 yield* ui.log.step(
226 - `To view full details for a log:\n> composio logs tools "${firstLogId}"`
226 + `To view full details for a log:\n> composio manage logs tools "${firstLogId}"`
227 );
228 }
229
ts/packages/cli/src/commands/logs-cmd/commands/logs.triggers.cmd.ts
+6 -6
@@ -78,11 +78,11 @@ const includePayload = Options.boolean('include-payload').pipe(
78 *
79 * @example
80 * ```bash
81 - * composio logs triggers <log_id>
82 - * composio logs triggers --trigger GMAIL_NEW_GMAIL_MESSAGE
83 - * composio logs triggers --trigger-id 77ac1dbf-6db0-4039-8dbe-e903b3f2057e
84 - * composio logs triggers --connected-account-id ca_123 --user-id user_123
85 - * composio logs triggers --log-id log_123
81 + * composio manage logs triggers <log_id>
82 + * composio manage logs triggers --trigger GMAIL_NEW_GMAIL_MESSAGE
83 + * composio manage logs triggers --trigger-id 77ac1dbf-6db0-4039-8dbe-e903b3f2057e
84 + * composio manage logs triggers --connected-account-id ca_123 --user-id user_123
85 + * composio manage logs triggers --log-id log_123
86 * ```
87 */
88 export const logsCmd$Triggers = Command.make(
@@ -193,7 +193,7 @@ export const logsCmd$Triggers = Command.make(
193 const firstLogId = logs[0]?.id;
194 if (firstLogId) {
195 yield* ui.log.step(
196 - `To view full details for a log:\n> composio logs triggers "${firstLogId}"`
196 + `To view full details for a log:\n> composio manage logs triggers "${firstLogId}"`
197 );
198 }
199
ts/packages/cli/src/commands/logs-cmd/logs.cmd.ts
+1 -1
@@ -7,7 +7,7 @@ import { logsCmd$Triggers } from './commands/logs.triggers.cmd';
7 *
8 * @example
9 * ```bash
10 - * composio logs <command>
10 + * composio manage logs <command>
11 * ```
12 */
13 export const logsCmd = Command.make('logs').pipe(
ts/packages/cli/src/commands/manage/manage.cmd.ts new
+36
@@ -0,0 +1,36 @@
1 +import { Command } from '@effect/cli';
2 +import { toolkitsCmd } from '../toolkits/toolkits.cmd';
3 +import { toolsCmd } from '../tools/tools.cmd';
4 +import { authConfigsCmd } from '../auth-configs/auth-configs.cmd';
5 +import { connectedAccountsCmd } from '../connected-accounts/connected-accounts.cmd';
6 +import { triggersCmd } from '../triggers/triggers.cmd';
7 +import { logsCmd } from '../logs-cmd/logs.cmd';
8 +import { orgsCmd } from '../orgs/orgs.cmd';
9 +import { projectsCmd } from '../projects/projects.cmd';
10 +
11 +/**
12 + * CLI entry point for management commands.
13 + *
14 + * Groups toolkits, tools, auth-configs, connected-accounts, triggers, logs, orgs, and projects
15 + * under a single `composio manage` namespace.
16 + *
17 + * @example
18 + * ```bash
19 + * composio manage <command>
20 + * composio manage toolkits list
21 + * composio manage tools search "send email"
22 + * ```
23 + */
24 +export const manageCmd = Command.make('manage').pipe(
25 + Command.withDescription('Manage Composio resources — toolkits, tools, accounts, triggers, logs, orgs, and projects.'),
26 + Command.withSubcommands([
27 + toolkitsCmd,
28 + toolsCmd,
29 + authConfigsCmd,
30 + connectedAccountsCmd,
31 + triggersCmd,
32 + logsCmd,
33 + orgsCmd,
34 + projectsCmd,
35 + ])
36 +);
ts/packages/cli/src/commands/orgs/commands/orgs.list.cmd.ts
+4 -2
@@ -26,7 +26,7 @@ export const orgsCmd$List = Command.make('list', { limit }, ({ limit }) =>
26 const clampedLimit = clampLimit(limit);
27 const defaultOrgId = Option.getOrUndefined(ctx.data.orgId);
28
29 - yield* ui.intro(`composio orgs list`);
29 + yield* ui.intro(`composio manage orgs list`);
30
31 const organizations = yield* ui.withSpinner(
32 'Loading organizations...',
@@ -51,7 +51,9 @@ export const orgsCmd$List = Command.make('list', { limit }, ({ limit }) =>
51 return `${isSelected ? '✓' : ' '} ${org.name} (${org.id})`;
52 });
53 yield* ui.log.info(lines.join('\n'));
54 - yield* ui.outro('Hint: run `composio orgs switch` to switch the default global org/project.');
54 + yield* ui.outro(
55 + 'Hint: run `composio manage orgs switch` to switch the default global org/project.'
56 + );
57
58 yield* ui.output(
59 JSON.stringify(
ts/packages/cli/src/commands/orgs/commands/orgs.switch.cmd.ts
+1 -1
@@ -29,7 +29,7 @@ export const orgsCmd$Switch = Command.make(
29
30 const ui = yield* TerminalUI;
31 const ctx = yield* ComposioUserContext;
32 - yield* ui.intro('composio orgs switch');
32 + yield* ui.intro('composio manage orgs switch');
33
34 const apiKey = Option.getOrUndefined(ctx.data.apiKey);
35 if (!apiKey) {
ts/packages/cli/src/commands/projects/commands/projects.list.cmd.ts
+5 -5
@@ -22,7 +22,7 @@ export const projectsCmd$List = Command.make('list', { orgId, limit }, ({ orgId,
22
23 const ui = yield* TerminalUI;
24 const ctx = yield* ComposioUserContext;
25 - yield* ui.intro('composio projects list');
25 + yield* ui.intro('composio manage projects list');
26 const apiKey = Option.getOrUndefined(ctx.data.apiKey);
27 if (!apiKey) {
28 yield* ui.log.warn('No user API key found. Run `composio login` first.');
@@ -32,7 +32,7 @@ export const projectsCmd$List = Command.make('list', { orgId, limit }, ({ orgId,
32 const resolvedOrgId = Option.getOrUndefined(orgId) ?? Option.getOrUndefined(ctx.data.orgId);
33 if (!resolvedOrgId) {
34 yield* ui.log.warn('No default org is configured.');
35 - yield* ui.outro('Hint: run `composio orgs switch` first, or pass `--org-id`.');
35 + yield* ui.outro('Hint: run `composio manage orgs switch` first, or pass `--org-id`.');
36 return;
37 }
38
@@ -56,7 +56,7 @@ export const projectsCmd$List = Command.make('list', { orgId, limit }, ({ orgId,
56
57 if (projects.data.length === 0) {
58 yield* ui.log.warn('No projects found.');
59 - yield* ui.outro('Hint: run `composio orgs switch` to switch org/project defaults.');
59 + yield* ui.outro('Hint: run `composio manage orgs switch` to switch org/project defaults.');
60 return;
61 }
62
@@ -67,8 +67,8 @@ export const projectsCmd$List = Command.make('list', { orgId, limit }, ({ orgId,
67 yield* ui.log.step(lines.join('\n'));
68 yield* ui.outro(
69 [
70 - 'Hint: run `composio projects switch` to switch the default global project.',
71 - 'Run `composio orgs switch` to switch org and project together.',
70 + 'Hint: run `composio manage projects switch` to switch the default global project.',
71 + 'Run `composio manage orgs switch` to switch org and project together.',
72 ].join('\n')
73 );
74
ts/packages/cli/src/commands/projects/commands/projects.switch.cmd.ts
+5 -5
@@ -58,7 +58,7 @@ export const projectsCmd$Switch = Command.make(
58
59 const ui = yield* TerminalUI;
60 const ctx = yield* ComposioUserContext;
61 - yield* ui.intro('composio projects switch');
61 + yield* ui.intro('composio manage projects switch');
62
63 const apiKey = Option.getOrUndefined(ctx.data.apiKey);
64 if (!apiKey) {
@@ -70,7 +70,7 @@ export const projectsCmd$Switch = Command.make(
70 const resolvedOrgId = Option.getOrUndefined(orgId) ?? Option.getOrUndefined(ctx.data.orgId);
71 if (!resolvedOrgId) {
72 yield* ui.log.warn('No default org is configured.');
73 - yield* ui.log.info('Run `composio orgs switch` to select org and project globally.');
73 + yield* ui.log.info('Run `composio manage orgs switch` to select org and project globally.');
74 yield* ui.outro('');
75 return;
76 }
@@ -79,7 +79,7 @@ export const projectsCmd$Switch = Command.make(
79 const explicitProjectId = Option.getOrUndefined(projectId);
80
81 yield* ui.note(
82 - 'This updates your default global project context. To switch organization, use `composio orgs switch`.',
82 + 'This updates your default global project context. To switch organization, use `composio manage orgs switch`.',
83 'Global defaults'
84 );
85 yield* ui.log.info(`Using organization: ${resolvedOrgId}`);
@@ -94,7 +94,7 @@ export const projectsCmd$Switch = Command.make(
94
95 if (projects.data.length === 0) {
96 yield* ui.log.warn('No projects found for the selected org.');
97 - yield* ui.log.info('Use `composio orgs switch` to switch to another organization.');
97 + yield* ui.log.info('Use `composio manage orgs switch` to switch to another organization.');
98 yield* ui.outro('No projects available.');
99 return;
100 }
@@ -119,7 +119,7 @@ export const projectsCmd$Switch = Command.make(
119 );
120
121 yield* ui.log.success(`Updated global default project to "${selectedProject.name}".`);
122 - yield* ui.log.info('To switch organization as well, run `composio orgs switch`.');
122 + yield* ui.log.info('To switch organization as well, run `composio manage orgs switch`.');
123 yield* ui.output(
124 JSON.stringify({
125 scope: 'global',
ts/packages/cli/src/commands/root-help.ts
+5 -10
@@ -114,16 +114,11 @@ const ADVANCED_COMMANDS: ReadonlyArray<{ name: string; description: string }> =
114 description:
115 'Generate type stubs for toolkits, tools, and triggers, auto-detecting project language (TypeScript | Python)',
116 },
117 - { name: 'py', description: 'Handle Python projects.' },
118 - { name: 'ts', description: 'Handle TypeScript projects.' },
119 - { name: 'toolkits', description: 'Discover and inspect Composio toolkits.' },
120 - { name: 'tools', description: 'Discover and inspect Composio tools.' },
121 - { name: 'auth-configs', description: 'View and manage Composio auth configs.' },
122 - { name: 'connected-accounts', description: 'View and manage Composio connected accounts.' },
123 - { name: 'triggers', description: 'Inspect and subscribe to trigger events.' },
124 - { name: 'logs', description: 'Inspect trigger and tool execution logs.' },
125 - { name: 'orgs', description: 'Manage default global organization/project context.' },
126 - { name: 'projects', description: 'Manage default global project context.' },
117 + {
118 + name: 'manage',
119 + description:
120 + 'Manage Composio resources — toolkits, tools, accounts, triggers, logs, orgs, and projects.',
121 + },
122 ];
123
124 /**
ts/packages/cli/src/commands/toolkits/commands/toolkits.info.cmd.ts
+7 -7
@@ -32,8 +32,8 @@ const allDetails = Options.boolean('all').pipe(
32 *
33 * @example
34 * ```bash
35 - * composio toolkits info "gmail"
36 - * composio toolkits info "github" --user-id "alice"
35 + * composio manage toolkits info "gmail"
36 + * composio manage toolkits info "github" --user-id "alice"
37 * ```
38 */
39 export const toolkitsCmd$Info = Command.make(
@@ -51,7 +51,7 @@ export const toolkitsCmd$Info = Command.make(
51 if (Option.isNone(slug)) {
52 yield* ui.log.warn('Missing required argument: <slug>');
53 yield* ui.log.step(
54 - 'Try specifying a toolkit slug, e.g.:\n> composio toolkits info "gmail"'
54 + 'Try specifying a toolkit slug, e.g.:\n> composio manage toolkits info "gmail"'
55 );
56 return;
57 }
@@ -117,7 +117,7 @@ export const toolkitsCmd$Info = Command.make(
117 const message = extractMessage(error) ?? `Failed to fetch toolkit "${slugValue}".`;
118 yield* ui.log.error(message);
119 yield* Effect.logDebug('Toolkit info error:', error);
120 - yield* ui.log.step('Browse available toolkits:\n> composio toolkits list');
120 + yield* ui.log.step('Browse available toolkits:\n> composio manage toolkits list');
121 return Option.none();
122 })
123 )
@@ -139,7 +139,7 @@ export const toolkitsCmd$Info = Command.make(
139 Effect.map(r =>
140 r.items.map(s => ({
141 label: `${s.slug} — ${s.meta.description}`,
142 - command: `> composio toolkits info "${s.slug}"`,
142 + command: `> composio manage toolkits info "${s.slug}"`,
143 }))
144 ),
145 Effect.catchAll(() => Effect.succeed([] as { label: string; command: string }[]))
@@ -150,7 +150,7 @@ export const toolkitsCmd$Info = Command.make(
150 const lines = suggestions.map(s => ` ${s.label}`).join('\n');
151 yield* ui.log.step(`Did you mean?\n${lines}\n\n${first.command}`);
152 } else {
153 - yield* ui.log.step('Browse available toolkits:\n> composio toolkits list');
153 + yield* ui.log.step('Browse available toolkits:\n> composio manage toolkits list');
154 }
155 return;
156 }
@@ -161,7 +161,7 @@ export const toolkitsCmd$Info = Command.make(
161
162 // Next step hint
163 yield* ui.log.step(
164 - `To list tools in this toolkit:\n> composio tools list --toolkits "${toolkit.slug}"`
164 + `To list tools in this toolkit:\n> composio manage tools list --toolkits "${toolkit.slug}"`
165 );
166
167 yield* ui.output(formatToolkitInfoJson(toolkit, detailedToolkit, allDetails));
ts/packages/cli/src/commands/toolkits/commands/toolkits.list.cmd.ts
+5 -5
@@ -42,10 +42,10 @@ const userId = Options.text('user-id').pipe(
42 *
43 * @example
44 * ```bash
45 - * composio toolkits list
46 - * composio toolkits list --query "email"
47 - * composio toolkits list --connected
48 - * composio toolkits list --user-id "alice"
45 + * composio manage toolkits list
46 + * composio manage toolkits list --query "email"
47 + * composio manage toolkits list --connected
48 + * composio manage toolkits list --user-id "alice"
49 * ```
50 */
51 export const toolkitsCmd$List = Command.make(
@@ -174,7 +174,7 @@ export const toolkitsCmd$List = Command.make(
174 const firstSlug = unified[0]?.slug;
175 if (firstSlug) {
176 yield* ui.log.step(
177 - `To view details of a toolkit:\n> composio toolkits info "${firstSlug}"`
177 + `To view details of a toolkit:\n> composio manage toolkits info "${firstSlug}"`
178 );
179 }
180 yield* ui.output(formatToolkitsJson(unified));
ts/packages/cli/src/commands/toolkits/commands/toolkits.search.cmd.ts
+3 -3
@@ -25,8 +25,8 @@ const limit = Options.integer('limit').pipe(
25 *
26 * @example
27 * ```bash
28 - * composio toolkits search "send emails"
29 - * composio toolkits search "messaging" --limit 5
28 + * composio manage toolkits search "send emails"
29 + * composio manage toolkits search "messaging" --limit 5
30 * ```
31 */
32 export const toolkitsCmd$Search = Command.make('search', { query, limit }, ({ query, limit }) =>
@@ -59,7 +59,7 @@ export const toolkitsCmd$Search = Command.make('search', { query, limit }, ({ qu
59 // Next step hint
60 const firstSlug = unified[0]?.slug;
61 if (firstSlug) {
62 - yield* ui.log.step(`To view details:\n> composio toolkits info "${firstSlug}"`);
62 + yield* ui.log.step(`To view details:\n> composio manage toolkits info "${firstSlug}"`);
63 }
64
65 yield* ui.output(formatToolkitsJson(unified));
ts/packages/cli/src/commands/toolkits/commands/toolkits.version.cmd.ts
+1 -1
@@ -38,7 +38,7 @@ export const toolkitsCmd$Version = Command.make('version', { slug }, ({ slug })
38 extractMessage(error) ?? `Failed to fetch version info for toolkit "${slug}".`;
39 yield* ui.log.error(message);
40 yield* Effect.logDebug('Toolkit version error:', error);
41 - yield* ui.log.step('Browse available toolkits:\n> composio toolkits list');
41 + yield* ui.log.step('Browse available toolkits:\n> composio manage toolkits list');
42 return Option.none();
43 })
44 )
ts/packages/cli/src/commands/toolkits/format.ts
+1 -1
@@ -234,7 +234,7 @@ export function formatToolkitInfo(
234 } else if (!toolkit.is_no_auth) {
235 lines.push(`${bold('Connection Status:')} ${dim('Not connected')}`);
236 lines.push(
237 - `${bold('Tip:')} Link this toolkit:\n> composio connected-accounts link "${toolkit.slug}"`
237 + `${bold('Tip:')} Link this toolkit:\n> composio manage connected-accounts link "${toolkit.slug}"`
238 );
239 }
240
ts/packages/cli/src/commands/toolkits/toolkits.cmd.ts
+1 -1
@@ -9,7 +9,7 @@ import { toolkitsCmd$Version } from './commands/toolkits.version.cmd';
9 *
10 * @example
11 * ```bash
12 - * composio toolkits <command>
12 + * composio manage toolkits <command>
13 * ```
14 */
15 export const toolkitsCmd = Command.make('toolkits').pipe(
ts/packages/cli/src/commands/tools/commands/tools.execute.cmd.ts
+8 -8
@@ -103,11 +103,11 @@ const toolkitFromToolSlug = (toolSlug: string): string | undefined => {
103 const connectionTips = (toolSlug: string, userId: string) => {
104 const toolkit = toolkitFromToolSlug(toolSlug);
105 if (!toolkit) {
106 - return `Retry: ${bold(`composio tools execute ${toolSlug} ...`)}`;
106 + return `Retry: ${bold(`composio manage tools execute ${toolSlug} ...`)}`;
107 }
108 return [
109 - `Link the toolkit first: ${bold(`composio connected-accounts link ${toolkit} --user-id ${userId}`)}`,
110 - `Then retry: ${bold(`composio tools execute ${toolSlug} ...`)}`,
109 + `Link the toolkit first: ${bold(`composio manage connected-accounts link ${toolkit} --user-id ${userId}`)}`,
110 + `Then retry: ${bold(`composio manage tools execute ${toolSlug} ...`)}`,
111 ].join('\n');
112 };
113
@@ -192,14 +192,14 @@ export const showToolsExecuteInputHelp = (toolSlug: string) =>
192 'services/HttpServerError',
193 handleHttpServerError(ui, {
194 fallbackMessage: `Tool "${toolSlug}" not found.`,
195 - hint: 'Browse available tools:\n> composio tools list',
195 + hint: 'Browse available tools:\n> composio manage tools list',
196 fallbackValue: Option.none(),
197 searchForSuggestions: () =>
198 repo.searchTools({ search: toolSlug, limit: 3 }).pipe(
199 Effect.map(r =>
200 r.items.map(s => ({
201 label: `${s.slug} — ${s.description}`,
202 - command: `> composio tools execute "${s.slug}" --help`,
202 + command: `> composio manage tools execute "${s.slug}" --help`,
203 }))
204 )
205 ),
@@ -212,7 +212,7 @@ export const showToolsExecuteInputHelp = (toolSlug: string) =>
212
213 yield* ui.note(formatToolInputParameters(tool), `Execute Help: ${tool.slug}`);
214 yield* ui.log.step(
215 - `Run:\n> composio tools execute "${tool.slug}" --user-id "<user-id>" -d '{"key":"value"}'`
215 + `Run:\n> composio manage tools execute "${tool.slug}" --user-id "<user-id>" -d '{"key":"value"}'`
216 );
217 yield* ui.output(
218 JSON.stringify({ slug: tool.slug, input_parameters: tool.input_parameters }, null, 2)
@@ -281,8 +281,8 @@ class ToolExecutionError {
281 *
282 * @example
283 * ```bash
284 - * composio tools execute GITHUB_GET_REPOS -d '{"owner":"composio"}'
285 - * echo '{"owner":"composio"}' | composio tools execute GITHUB_GET_REPOS
284 + * composio manage tools execute GITHUB_GET_REPOS -d '{"owner":"composio"}'
285 + * echo '{"owner":"composio"}' | composio manage tools execute GITHUB_GET_REPOS
286 * ```
287 */
288 export const toolsCmd$Execute = Command.make(
ts/packages/cli/src/commands/tools/commands/tools.info.cmd.ts
+5 -5
@@ -16,7 +16,7 @@ const slug = Args.text({ name: 'slug' }).pipe(
16 *
17 * @example
18 * ```bash
19 - * composio tools info "GMAIL_SEND_EMAIL"
19 + * composio manage tools info "GMAIL_SEND_EMAIL"
20 * ```
21 */
22 export const toolsCmd$Info = Command.make('info', { slug }, ({ slug }) =>
@@ -30,7 +30,7 @@ export const toolsCmd$Info = Command.make('info', { slug }, ({ slug }) =>
30 if (Option.isNone(slug)) {
31 yield* ui.log.warn('Missing required argument: <slug>');
32 yield* ui.log.step(
33 - 'Try specifying a tool slug, e.g.:\n> composio tools info "GMAIL_SEND_EMAIL"'
33 + 'Try specifying a tool slug, e.g.:\n> composio manage tools info "GMAIL_SEND_EMAIL"'
34 );
35 return;
36 }
@@ -45,14 +45,14 @@ export const toolsCmd$Info = Command.make('info', { slug }, ({ slug }) =>
45 'services/HttpServerError',
46 handleHttpServerError(ui, {
47 fallbackMessage: `Tool "${slugValue}" not found.`,
48 - hint: 'Browse available tools:\n> composio tools list',
48 + hint: 'Browse available tools:\n> composio manage tools list',
49 fallbackValue: Option.none(),
50 searchForSuggestions: () =>
51 repo.searchTools({ search: slugValue, limit: 3 }).pipe(
52 Effect.map(r =>
53 r.items.map(s => ({
54 label: `${s.slug} — ${s.description}`,
55 - command: `> composio tools info "${s.slug}"`,
55 + command: `> composio manage tools info "${s.slug}"`,
56 }))
57 )
58 ),
@@ -72,7 +72,7 @@ export const toolsCmd$Info = Command.make('info', { slug }, ({ slug }) =>
72 const toolkitSlug = tool.toolkit.slug;
73 if (toolkitSlug) {
74 yield* ui.log.step(
75 - `To list more tools in this toolkit:\n> composio tools list --toolkits "${toolkitSlug}"`
75 + `To list more tools in this toolkit:\n> composio manage tools list --toolkits "${toolkitSlug}"`
76 );
77 }
78
ts/packages/cli/src/commands/tools/commands/tools.list.cmd.ts
+7 -5
@@ -33,9 +33,9 @@ const limit = Options.integer('limit').pipe(
33 *
34 * @example
35 * ```bash
36 - * composio tools list --toolkits "gmail"
37 - * composio tools list --query "send email" --toolkits "gmail"
38 - * composio tools list --tags "important" --limit 10
36 + * composio manage tools list --toolkits "gmail"
37 + * composio manage tools list --query "send email" --toolkits "gmail"
38 + * composio manage tools list --tags "important" --limit 10
39 * ```
40 */
41 export const toolsCmd$List = Command.make(
@@ -62,7 +62,7 @@ export const toolsCmd$List = Command.make(
62
63 if (result.items.length === 0) {
64 const hint = Option.isSome(toolkits)
65 - ? `No tools found in toolkit "${toolkits.value}". Verify the toolkit slug with:\n> composio toolkits list`
65 + ? `No tools found in toolkit "${toolkits.value}". Verify the toolkit slug with:\n> composio manage toolkits list`
66 : 'No tools found. Try broadening your search.';
67 yield* ui.log.warn(hint);
68 return;
@@ -80,7 +80,9 @@ export const toolsCmd$List = Command.make(
80 // Next step hint
81 const firstSlug = result.items[0]?.slug;
82 if (firstSlug) {
83 - yield* ui.log.step(`To view details of a tool:\n> composio tools info "${firstSlug}"`);
83 + yield* ui.log.step(
84 + `To view details of a tool:\n> composio manage tools info "${firstSlug}"`
85 + );
86 }
87
88 yield* ui.output(formatToolsJson(result.items));
ts/packages/cli/src/commands/tools/commands/tools.search.cmd.ts
+5 -5
@@ -40,9 +40,9 @@ const limit = Options.integer('limit').pipe(
40 *
41 * @example
42 * ```bash
43 - * composio tools search "send emails"
44 - * composio tools search "send emails" --toolkits "gmail,outlook"
45 - * composio tools search "messaging" --limit 5
43 + * composio manage tools search "send emails"
44 + * composio manage tools search "send emails" --toolkits "gmail,outlook"
45 + * composio manage tools search "messaging" --limit 5
46 * ```
47 */
48 export const toolsCmd$Search = Command.make(
@@ -162,8 +162,8 @@ export const toolsCmd$Search = Command.make(
162 yield* ui.log.step(
163 [
164 'Hints:',
165 - `> composio tools info "${firstSlug}"`,
166 - `> composio tools execute "${firstSlug}" --user-id "<user-id>" --arguments '{}'`,
165 + `> composio manage tools info "${firstSlug}"`,
166 + `> composio manage tools execute "${firstSlug}" --user-id "<user-id>" --arguments '{}'`,
167 ].join('\n')
168 );
169 }
ts/packages/cli/src/commands/tools/tools.cmd.ts
+1 -1
@@ -9,7 +9,7 @@ import { toolsCmd$Execute } from './commands/tools.execute.cmd';
9 *
10 * @example
11 * ```bash
12 - * composio tools <command>
12 + * composio manage tools <command>
13 * ```
14 */
15 export const toolsCmd = Command.make('tools').pipe(
ts/packages/cli/src/commands/triggers/commands/triggers.create.cmd.ts
+4 -4
@@ -36,7 +36,7 @@ export const triggersCmd$Create = Command.make(
36 if (Option.isNone(triggerName)) {
37 yield* ui.log.warn('Missing required argument: <trigger-name>');
38 yield* ui.log.step(
39 - 'Try specifying a trigger slug, e.g.:\n> composio triggers create "GMAIL_NEW_GMAIL_MESSAGE" --connected-account-id "con_123"'
39 + 'Try specifying a trigger slug, e.g.:\n> composio manage triggers create "GMAIL_NEW_GMAIL_MESSAGE" --connected-account-id "con_123"'
40 );
41 return;
42 }
@@ -55,7 +55,7 @@ export const triggersCmd$Create = Command.make(
55 } catch {
56 yield* ui.log.error('Invalid JSON in --trigger-config. Please provide valid JSON.');
57 yield* ui.log.step(
58 - 'Example:\n> composio triggers create "GMAIL_NEW_GMAIL_MESSAGE" --trigger-config \'{"label":"inbox"}\''
58 + 'Example:\n> composio manage triggers create "GMAIL_NEW_GMAIL_MESSAGE" --trigger-config \'{"label":"inbox"}\''
59 );
60 return;
61 }
@@ -75,7 +75,7 @@ export const triggersCmd$Create = Command.make(
75 'services/HttpServerError',
76 handleHttpServerError(ui, {
77 fallbackMessage: `Failed to create trigger "${triggerName.value}".`,
78 - hint: 'List available trigger types with:\n> composio triggers list',
78 + hint: 'List available trigger types with:\n> composio manage triggers list',
79 fallbackValue: Option.none(),
80 })
81 )
@@ -88,7 +88,7 @@ export const triggersCmd$Create = Command.make(
88 const created = createdOpt.value;
89 yield* ui.log.success(`Trigger created: ${created.trigger_id}`);
90 yield* ui.log.step(
91 - `To check status:\n> composio triggers status --trigger-ids "${created.trigger_id}"`
91 + `To check status:\n> composio manage triggers status --trigger-ids "${created.trigger_id}"`
92 );
93 yield* ui.output(JSON.stringify(created, null, 2));
94 })
ts/packages/cli/src/commands/triggers/commands/triggers.delete.cmd.ts
+2 -2
@@ -29,7 +29,7 @@ export const triggersCmd$Delete = Command.make('delete', { id, yes }, ({ id, yes
29 if (Option.isNone(id)) {
30 yield* ui.log.warn('Missing required argument: <id>');
31 yield* ui.log.step(
32 - 'Try specifying a trigger ID, e.g.:\n> composio triggers delete "trg_123" --yes\n\nTo find trigger IDs:\n> composio triggers status --show-disabled'
32 + 'Try specifying a trigger ID, e.g.:\n> composio manage triggers delete "trg_123" --yes\n\nTo find trigger IDs:\n> composio manage triggers status --show-disabled'
33 );
34 return;
35 }
@@ -54,7 +54,7 @@ export const triggersCmd$Delete = Command.make('delete', { id, yes }, ({ id, yes
54 'services/HttpServerError',
55 handleHttpServerError(ui, {
56 fallbackMessage: `Failed to delete trigger "${idValue}".`,
57 - hint: 'Browse available triggers:\n> composio triggers status --show-disabled',
57 + hint: 'Browse available triggers:\n> composio manage triggers status --show-disabled',
58 fallbackValue: false,
59 })
60 )
ts/packages/cli/src/commands/triggers/commands/triggers.disable.cmd.ts
+2 -2
@@ -23,7 +23,7 @@ export const triggersCmd$Disable = Command.make('disable', { id }, ({ id }) =>
23 if (Option.isNone(id)) {
24 yield* ui.log.warn('Missing required argument: <id>');
25 yield* ui.log.step(
26 - 'Try specifying a trigger ID, e.g.:\n> composio triggers disable "trg_123"\n\nTo find trigger IDs:\n> composio triggers status'
26 + 'Try specifying a trigger ID, e.g.:\n> composio manage triggers disable "trg_123"\n\nTo find trigger IDs:\n> composio manage triggers status'
27 );
28 return;
29 }
@@ -37,7 +37,7 @@ export const triggersCmd$Disable = Command.make('disable', { id }, ({ id }) =>
37 'services/HttpServerError',
38 handleHttpServerError(ui, {
39 fallbackMessage: `Failed to disable trigger "${idValue}".`,
40 - hint: 'Browse available triggers:\n> composio triggers status',
40 + hint: 'Browse available triggers:\n> composio manage triggers status',
41 fallbackValue: false,
42 })
43 )
ts/packages/cli/src/commands/triggers/commands/triggers.enable.cmd.ts
+2 -2
@@ -23,7 +23,7 @@ export const triggersCmd$Enable = Command.make('enable', { id }, ({ id }) =>
23 if (Option.isNone(id)) {
24 yield* ui.log.warn('Missing required argument: <id>');
25 yield* ui.log.step(
26 - 'Try specifying a trigger ID, e.g.:\n> composio triggers enable "trg_123"\n\nTo find trigger IDs:\n> composio triggers status --show-disabled'
26 + 'Try specifying a trigger ID, e.g.:\n> composio manage triggers enable "trg_123"\n\nTo find trigger IDs:\n> composio manage triggers status --show-disabled'
27 );
28 return;
29 }
@@ -37,7 +37,7 @@ export const triggersCmd$Enable = Command.make('enable', { id }, ({ id }) =>
37 'services/HttpServerError',
38 handleHttpServerError(ui, {
39 fallbackMessage: `Failed to enable trigger "${idValue}".`,
40 - hint: 'Browse available triggers:\n> composio triggers status --show-disabled',
40 + hint: 'Browse available triggers:\n> composio manage triggers status --show-disabled',
41 fallbackValue: false,
42 })
43 )
ts/packages/cli/src/commands/triggers/commands/triggers.info.cmd.ts
+4 -4
@@ -16,7 +16,7 @@ const slug = Args.text({ name: 'slug' }).pipe(
16 *
17 * @example
18 * ```bash
19 - * composio triggers info "GMAIL_NEW_GMAIL_MESSAGE"
19 + * composio manage triggers info "GMAIL_NEW_GMAIL_MESSAGE"
20 * ```
21 */
22 export const triggersCmd$Info = Command.make('info', { slug }, ({ slug }) =>
@@ -29,7 +29,7 @@ export const triggersCmd$Info = Command.make('info', { slug }, ({ slug }) =>
29 if (Option.isNone(slug)) {
30 yield* ui.log.warn('Missing required argument: <slug>');
31 yield* ui.log.step(
32 - 'Try specifying a trigger slug, e.g.:\n> composio triggers info "GMAIL_NEW_GMAIL_MESSAGE"'
32 + 'Try specifying a trigger slug, e.g.:\n> composio manage triggers info "GMAIL_NEW_GMAIL_MESSAGE"'
33 );
34 return;
35 }
@@ -44,7 +44,7 @@ export const triggersCmd$Info = Command.make('info', { slug }, ({ slug }) =>
44 'services/HttpServerError',
45 handleHttpServerError(ui, {
46 fallbackMessage: `Trigger "${slugValue}" not found.`,
47 - hint: 'Browse available trigger types:\n> composio triggers list',
47 + hint: 'Browse available trigger types:\n> composio manage triggers list',
48 fallbackValue: Option.none(),
49 })
50 )
@@ -59,7 +59,7 @@ export const triggersCmd$Info = Command.make('info', { slug }, ({ slug }) =>
59 const toolkitSlug = triggerType.toolkit?.slug?.toLowerCase();
60 if (toolkitSlug) {
61 yield* ui.log.step(
62 - `To list more trigger types in this toolkit:\n> composio triggers list --toolkits "${toolkitSlug}"`
62 + `To list more trigger types in this toolkit:\n> composio manage triggers list --toolkits "${toolkitSlug}"`
63 );
64 }
65
ts/packages/cli/src/commands/triggers/commands/triggers.list.cmd.ts
+5 -5
@@ -24,9 +24,9 @@ const limit = Options.integer('limit').pipe(
24 *
25 * @example
26 * ```bash
27 - * composio triggers list
28 - * composio triggers list --toolkits "gmail"
29 - * composio triggers list --toolkits "gmail,slack"
27 + * composio manage triggers list
28 + * composio manage triggers list --toolkits "gmail"
29 + * composio manage triggers list --toolkits "gmail,slack"
30 * ```
31 */
32 export const triggersCmd$List = Command.make('list', { toolkits, limit }, ({ toolkits, limit }) =>
@@ -46,7 +46,7 @@ export const triggersCmd$List = Command.make('list', { toolkits, limit }, ({ too
46
47 if (triggerTypes.length === 0) {
48 const hint = Option.isSome(toolkits)
49 - ? `No trigger types found in toolkit "${toolkits.value}". Verify the toolkit slug with:\n> composio toolkits list`
49 + ? `No trigger types found in toolkit "${toolkits.value}". Verify the toolkit slug with:\n> composio manage toolkits list`
50 : 'No trigger types found.';
51 yield* ui.log.warn(hint);
52 return;
@@ -60,7 +60,7 @@ export const triggersCmd$List = Command.make('list', { toolkits, limit }, ({ too
60 const firstSlug = triggerTypes[0]?.slug;
61 if (firstSlug) {
62 yield* ui.log.step(
63 - `To view details of a trigger type:\n> composio triggers info "${firstSlug}"`
63 + `To view details of a trigger type:\n> composio manage triggers info "${firstSlug}"`
64 );
65 }
66
ts/packages/cli/src/commands/triggers/commands/triggers.listen.cmd.ts
+4 -4
@@ -137,9 +137,9 @@ const emitTableLine = (line: string, ui: TerminalUI): Effect.Effect<void> =>
137 *
138 * @example
139 * ```bash
140 - * composio triggers listen --toolkits gmail --table
141 - * composio triggers listen --trigger-slug GMAIL_NEW_GMAIL_MESSAGE --json --max-events 5
142 - * composio triggers listen --forward "http://localhost:8080/webhook" --out events.jsonl
140 + * composio manage triggers listen --toolkits gmail --table
141 + * composio manage triggers listen --trigger-slug GMAIL_NEW_GMAIL_MESSAGE --json --max-events 5
142 + * composio manage triggers listen --forward "http://localhost:8080/webhook" --out events.jsonl
143 * ```
144 */
145 export const triggersCmd$Listen = Command.make(
@@ -201,7 +201,7 @@ export const triggersCmd$Listen = Command.make(
201 let matchingEvents = 0;
202 let tableHeaderPrinted = false;
203
204 - yield* ui.intro('composio triggers listen');
204 + yield* ui.intro('composio manage triggers listen');
205 if (forwardUrl) {
206 if (process.env.COMPOSIO_WEBHOOK_SECRET) {
207 yield* ui.note(
ts/packages/cli/src/commands/triggers/commands/triggers.status.cmd.ts
+1 -1
@@ -97,7 +97,7 @@ export const triggersCmd$Status = Command.make(
97 'services/HttpServerError',
98 handleHttpServerError(ui, {
99 fallbackMessage: 'Failed to fetch trigger status.',
100 - hint: 'Retry with:\n> composio triggers status --show-disabled',
100 + hint: 'Retry with:\n> composio manage triggers status --show-disabled',
101 fallbackValue: Option.none(),
102 })
103 )
ts/packages/cli/src/commands/triggers/triggers.cmd.ts
+1 -1
@@ -13,7 +13,7 @@ import { triggersCmd$Delete } from './commands/triggers.delete.cmd';
13 *
14 * @example
15 * ```bash
16 - * composio triggers <command>
16 + * composio manage triggers <command>
17 * ```
18 */
19 export const triggersCmd = Command.make('triggers').pipe(
ts/packages/cli/src/commands/whoami.cmd.ts
+1 -1
@@ -38,7 +38,7 @@ export const whoamiCmd = Command.make('whoami', {}).pipe(
38 );
39 yield* ui.log.step(
40 [
41 - 'To switch orgs:\n> composio orgs switch',
41 + 'To switch orgs:\n> composio manage orgs switch',
42 'To get API keys:\n> composio init (in your project)',
43 ].join('\n\n')
44 );
ts/packages/cli/src/effects/handle-http-error.ts
+1 -1
@@ -25,7 +25,7 @@ const noSuggestions: ReadonlyArray<Suggestion> = [];
25 * Effect.catchTag('services/HttpServerError',
26 * handleHttpServerError(ui, {
27 * fallbackMessage: `Failed to fetch auth config "${id}".`,
28 - * hint: 'Browse available auth configs:\n> composio auth-configs list',
28 + * hint: 'Browse available auth configs:\n> composio manage auth-configs list',
29 * fallbackValue: Option.none(),
30 * })
31 * )
ts/packages/cli/src/effects/select-org-project.ts
+1 -1
@@ -46,7 +46,7 @@ const selectProject = (
46 * Runs the org/project selection flow: lists orgs, prompts for org (or auto-selects if 1),
47 * lists projects, prompts for project (or auto-selects if 1).
48 *
49 - * Reused by `composio orgs switch` and `composio login -y`.
49 + * Reused by `composio manage orgs switch` and `composio login -y`.
50 *
51 * @param params.apiKey - User API key for API calls
52 * @param params.baseURL - API base URL
ts/packages/cli/test/src/commands/$default.cmd.test.ts
+1 -1
@@ -15,7 +15,7 @@ describe('CLI: composio', () => {
15 expect(result).toEqual(
16 ValidationError.commandMismatch(
17 HelpDoc.p(
18 - "Invalid subcommand for composio - use one of 'version', 'upgrade', 'whoami', 'login', 'logout', 'install', 'init', 'generate', 'py', 'ts', 'toolkits', 'tools', 'auth-configs', 'connected-accounts', 'triggers', 'logs', 'orgs', 'projects'"
18 + "Invalid subcommand for composio - use one of 'version', 'upgrade', 'whoami', 'login', 'logout', 'install', 'init', 'generate', 'py', 'ts', 'manage'"
19 )
20 )
21 );
ts/packages/cli/test/src/commands/__snapshots__/$default.cmd.test.ts.snap
+2 -11
@@ -80,17 +80,8 @@ BASIC COMMANDS
80 --table Show compact table rows
81
82 ADVANCED COMMANDS
83 - generate Generate type stubs for toolkits, tools, and triggers, auto-detecting project language (TypeScript | Python)
84 - py Handle Python projects.
85 - ts Handle TypeScript projects.
86 - toolkits Discover and inspect Composio toolkits.
87 - tools Discover and inspect Composio tools.
88 - auth-configs View and manage Composio auth configs.
89 - connected-accounts View and manage Composio connected accounts.
90 - triggers Inspect and subscribe to trigger events.
91 - logs Inspect trigger and tool execution logs.
92 - orgs Manage default global organization/project context.
93 - projects Manage default global project context.
83 + generate Generate type stubs for toolkits, tools, and triggers, auto-detecting project language (TypeScript | Python)
84 + manage Manage Composio resources — toolkits, tools, accounts, triggers, logs, orgs, and projects.
85
86 FLAGS
87 -h, --help Show help for command
ts/packages/cli/test/src/commands/auth-configs/auth-configs.create.cmd.test.ts
+17 -8
@@ -8,13 +8,13 @@ const testConfigProvider = ConfigProvider.fromMap(
8 new Map([['COMPOSIO_USER_API_KEY', 'test_api_key']])
9 ).pipe(extendConfigProvider);
10
11 -describe('CLI: composio auth-configs create', () => {
11 +describe('CLI: composio manage auth-configs create', () => {
12 layer(TestLive({ baseConfigProvider: testConfigProvider }))(
13 '[Given] --toolkit "gmail" [Then] creates with Composio managed auth',
14 it => {
15 it.scoped('creates successfully', () =>
16 Effect.gen(function* () {
17 - yield* cli(['auth-configs', 'create', '--toolkit', 'gmail']);
17 + yield* cli(['manage', 'auth-configs', 'create', '--toolkit', 'gmail']);
18 const lines = yield* MockConsole.getLines({ stripAnsi: true });
19 const output = lines.join('\n');
20
@@ -31,7 +31,7 @@ describe('CLI: composio auth-configs create', () => {
31 it => {
32 it.scoped('creates with name successfully', () =>
33 Effect.gen(function* () {
34 - yield* cli(['auth-configs', 'create', 'my-config', '--toolkit', 'gmail']);
34 + yield* cli(['manage', 'auth-configs', 'create', 'my-config', '--toolkit', 'gmail']);
35 const lines = yield* MockConsole.getLines({ stripAnsi: true });
36 const output = lines.join('\n');
37
@@ -47,7 +47,15 @@ describe('CLI: composio auth-configs create', () => {
47 it => {
48 it.scoped('creates with custom auth scheme', () =>
49 Effect.gen(function* () {
50 - yield* cli(['auth-configs', 'create', '--toolkit', 'gmail', '--auth-scheme', 'OAUTH2']);
50 + yield* cli([
51 + 'manage',
52 + 'auth-configs',
53 + 'create',
54 + '--toolkit',
55 + 'gmail',
56 + '--auth-scheme',
57 + 'OAUTH2',
58 + ]);
59 const lines = yield* MockConsole.getLines({ stripAnsi: true });
60 const output = lines.join('\n');
61
@@ -70,7 +78,7 @@ describe('CLI: composio auth-configs create', () => {
78 )('[Given] custom create response [Then] shows correct details', it => {
79 it.scoped('shows custom response data', () =>
80 Effect.gen(function* () {
73 - yield* cli(['auth-configs', 'create', '--toolkit', 'slack']);
81 + yield* cli(['manage', 'auth-configs', 'create', '--toolkit', 'slack']);
82 const lines = yield* MockConsole.getLines({ stripAnsi: true });
83 const output = lines.join('\n');
84
@@ -87,6 +95,7 @@ describe('CLI: composio auth-configs create', () => {
95 it.scoped('shows JSON parse error', () =>
96 Effect.gen(function* () {
97 yield* cli([
98 + 'manage',
99 'auth-configs',
100 'create',
101 '--toolkit',
@@ -108,7 +117,7 @@ describe('CLI: composio auth-configs create', () => {
117 layer(TestLive())('[Given] no API key [Then] warns user to login', it => {
118 it.scoped('warns user to login', () =>
119 Effect.gen(function* () {
111 - yield* cli(['auth-configs', 'create', '--toolkit', 'gmail']);
120 + yield* cli(['manage', 'auth-configs', 'create', '--toolkit', 'gmail']);
121 const lines = yield* MockConsole.getLines({ stripAnsi: true });
122 const output = lines.join('\n');
123
@@ -122,11 +131,11 @@ describe('CLI: composio auth-configs create', () => {
131 it => {
132 it.scoped('shows next step hint', () =>
133 Effect.gen(function* () {
125 - yield* cli(['auth-configs', 'create', '--toolkit', 'gmail']);
134 + yield* cli(['manage', 'auth-configs', 'create', '--toolkit', 'gmail']);
135 const lines = yield* MockConsole.getLines({ stripAnsi: true });
136 const output = lines.join('\n');
137
129 - expect(output).toContain('composio auth-configs info');
138 + expect(output).toContain('composio manage auth-configs info');
139 })
140 );
141 }
ts/packages/cli/test/src/commands/auth-configs/auth-configs.delete.cmd.test.ts
+6 -6
@@ -29,13 +29,13 @@ const testConfigProvider = ConfigProvider.fromMap(
29 new Map([['COMPOSIO_USER_API_KEY', 'test_api_key']])
30 ).pipe(extendConfigProvider);
31
32 -describe('CLI: composio auth-configs delete', () => {
32 +describe('CLI: composio manage auth-configs delete', () => {
33 layer(TestLive({ baseConfigProvider: testConfigProvider, authConfigsData }))(
34 '[Given] valid ID with --yes [Then] deletes successfully',
35 it => {
36 it.scoped('shows success message', () =>
37 Effect.gen(function* () {
38 - yield* cli(['auth-configs', 'delete', 'ac_gmail_default', '--yes']);
38 + yield* cli(['manage', 'auth-configs', 'delete', 'ac_gmail_default', '--yes']);
39 const lines = yield* MockConsole.getLines({ stripAnsi: true });
40 const output = lines.join('\n');
41
@@ -51,7 +51,7 @@ describe('CLI: composio auth-configs delete', () => {
51 it => {
52 it.scoped('shows missing argument warning', () =>
53 Effect.gen(function* () {
54 - yield* cli(['auth-configs', 'delete']);
54 + yield* cli(['manage', 'auth-configs', 'delete']);
55 const lines = yield* MockConsole.getLines({ stripAnsi: true });
56 const output = lines.join('\n');
57
@@ -66,12 +66,12 @@ describe('CLI: composio auth-configs delete', () => {
66 it => {
67 it.scoped('shows not found error', () =>
68 Effect.gen(function* () {
69 - yield* cli(['auth-configs', 'delete', 'ac_nonexistent', '--yes']);
69 + yield* cli(['manage', 'auth-configs', 'delete', 'ac_nonexistent', '--yes']);
70 const lines = yield* MockConsole.getLines({ stripAnsi: true });
71 const output = lines.join('\n');
72
73 expect(output).toContain('not found');
74 - expect(output).toContain('composio auth-configs list');
74 + expect(output).toContain('composio manage auth-configs list');
75 })
76 );
77 }
@@ -80,7 +80,7 @@ describe('CLI: composio auth-configs delete', () => {
80 layer(TestLive())('[Given] no API key [Then] warns user to login', it => {
81 it.scoped('warns user to login', () =>
82 Effect.gen(function* () {
83 - yield* cli(['auth-configs', 'delete', 'ac_gmail_default', '--yes']);
83 + yield* cli(['manage', 'auth-configs', 'delete', 'ac_gmail_default', '--yes']);
84 const lines = yield* MockConsole.getLines({ stripAnsi: true });
85 const output = lines.join('\n');
86
ts/packages/cli/test/src/commands/auth-configs/auth-configs.info.cmd.test.ts
+7 -7
@@ -29,13 +29,13 @@ const testConfigProvider = ConfigProvider.fromMap(
29 new Map([['COMPOSIO_USER_API_KEY', 'test_api_key']])
30 ).pipe(extendConfigProvider);
31
32 -describe('CLI: composio auth-configs info', () => {
32 +describe('CLI: composio manage auth-configs info', () => {
33 layer(TestLive({ baseConfigProvider: testConfigProvider, authConfigsData }))(
34 '[Given] valid ID [Then] displays auth config details',
35 it => {
36 it.scoped('shows auth config details', () =>
37 Effect.gen(function* () {
38 - yield* cli(['auth-configs', 'info', 'ac_gmail_default']);
38 + yield* cli(['manage', 'auth-configs', 'info', 'ac_gmail_default']);
39 const lines = yield* MockConsole.getLines({ stripAnsi: true });
40 const output = lines.join('\n');
41
@@ -46,7 +46,7 @@ describe('CLI: composio auth-configs info', () => {
46 expect(output).toContain('ENABLED');
47 expect(output).toContain('Yes'); // is_composio_managed
48 // Next step hint
49 - expect(output).toContain('composio auth-configs delete');
49 + expect(output).toContain('composio manage auth-configs delete');
50 })
51 );
52 }
@@ -57,7 +57,7 @@ describe('CLI: composio auth-configs info', () => {
57 it => {
58 it.scoped('shows missing argument warning', () =>
59 Effect.gen(function* () {
60 - yield* cli(['auth-configs', 'info']);
60 + yield* cli(['manage', 'auth-configs', 'info']);
61 const lines = yield* MockConsole.getLines({ stripAnsi: true });
62 const output = lines.join('\n');
63
@@ -72,12 +72,12 @@ describe('CLI: composio auth-configs info', () => {
72 it => {
73 it.scoped('shows not found error', () =>
74 Effect.gen(function* () {
75 - yield* cli(['auth-configs', 'info', 'ac_nonexistent']);
75 + yield* cli(['manage', 'auth-configs', 'info', 'ac_nonexistent']);
76 const lines = yield* MockConsole.getLines({ stripAnsi: true });
77 const output = lines.join('\n');
78
79 expect(output).toContain('not found');
80 - expect(output).toContain('composio auth-configs list');
80 + expect(output).toContain('composio manage auth-configs list');
81 })
82 );
83 }
@@ -86,7 +86,7 @@ describe('CLI: composio auth-configs info', () => {
86 layer(TestLive())('[Given] no API key [Then] warns user to login', it => {
87 it.scoped('warns user to login', () =>
88 Effect.gen(function* () {
89 - yield* cli(['auth-configs', 'info', 'ac_gmail_default']);
89 + yield* cli(['manage', 'auth-configs', 'info', 'ac_gmail_default']);
90 const lines = yield* MockConsole.getLines({ stripAnsi: true });
91 const output = lines.join('\n');
92
ts/packages/cli/test/src/commands/auth-configs/auth-configs.list.cmd.test.ts
+9 -9
@@ -55,13 +55,13 @@ const testConfigProvider = ConfigProvider.fromMap(
55 new Map([['COMPOSIO_USER_API_KEY', 'test_api_key']])
56 ).pipe(extendConfigProvider);
57
58 -describe('CLI: composio auth-configs list', () => {
58 +describe('CLI: composio manage auth-configs list', () => {
59 layer(TestLive({ baseConfigProvider: testConfigProvider, authConfigsData }))(
60 '[Given] no flags [Then] lists all auth configs',
61 it => {
62 it.scoped('lists all auth configs with table', () =>
63 Effect.gen(function* () {
64 - yield* cli(['auth-configs', 'list']);
64 + yield* cli(['manage', 'auth-configs', 'list']);
65 const lines = yield* MockConsole.getLines({ stripAnsi: true });
66 const output = lines.join('\n');
67
@@ -79,7 +79,7 @@ describe('CLI: composio auth-configs list', () => {
79 it => {
80 it.scoped('filters by toolkit', () =>
81 Effect.gen(function* () {
82 - yield* cli(['auth-configs', 'list', '--toolkits', 'gmail']);
82 + yield* cli(['manage', 'auth-configs', 'list', '--toolkits', 'gmail']);
83 const lines = yield* MockConsole.getLines({ stripAnsi: true });
84 const output = lines.join('\n');
85
@@ -97,7 +97,7 @@ describe('CLI: composio auth-configs list', () => {
97 it => {
98 it.scoped('filters by name search', () =>
99 Effect.gen(function* () {
100 - yield* cli(['auth-configs', 'list', '--query', 'Custom']);
100 + yield* cli(['manage', 'auth-configs', 'list', '--query', 'Custom']);
101 const lines = yield* MockConsole.getLines({ stripAnsi: true });
102 const output = lines.join('\n');
103
@@ -113,7 +113,7 @@ describe('CLI: composio auth-configs list', () => {
113 it => {
114 it.scoped('respects limit', () =>
115 Effect.gen(function* () {
116 - yield* cli(['auth-configs', 'list', '--limit', '1']);
116 + yield* cli(['manage', 'auth-configs', 'list', '--limit', '1']);
117 const lines = yield* MockConsole.getLines({ stripAnsi: true });
118 const output = lines.join('\n');
119
@@ -126,7 +126,7 @@ describe('CLI: composio auth-configs list', () => {
126 layer(TestLive())('[Given] no API key [Then] warns user to login', it => {
127 it.scoped('warns user to login', () =>
128 Effect.gen(function* () {
129 - yield* cli(['auth-configs', 'list']);
129 + yield* cli(['manage', 'auth-configs', 'list']);
130 const lines = yield* MockConsole.getLines({ stripAnsi: true });
131 const output = lines.join('\n');
132
@@ -140,7 +140,7 @@ describe('CLI: composio auth-configs list', () => {
140 it => {
141 it.scoped('shows no auth configs found', () =>
142 Effect.gen(function* () {
143 - yield* cli(['auth-configs', 'list']);
143 + yield* cli(['manage', 'auth-configs', 'list']);
144 const lines = yield* MockConsole.getLines({ stripAnsi: true });
145 const output = lines.join('\n');
146
@@ -155,12 +155,12 @@ describe('CLI: composio auth-configs list', () => {
155 it => {
156 it.scoped('shows toolkit hint', () =>
157 Effect.gen(function* () {
158 - yield* cli(['auth-configs', 'list', '--toolkits', 'nonexistent']);
158 + yield* cli(['manage', 'auth-configs', 'list', '--toolkits', 'nonexistent']);
159 const lines = yield* MockConsole.getLines({ stripAnsi: true });
160 const output = lines.join('\n');
161
162 expect(output).toContain('No auth configs found');
163 - expect(output).toContain('composio toolkits list');
163 + expect(output).toContain('composio manage toolkits list');
164 })
165 );
166 }
ts/packages/cli/test/src/commands/connected-accounts/connected-accounts.delete.cmd.test.ts
+7 -7
@@ -33,13 +33,13 @@ const testConfigProvider = ConfigProvider.fromMap(
33 new Map([['COMPOSIO_USER_API_KEY', 'test_api_key']])
34 ).pipe(extendConfigProvider);
35
36 -describe('CLI: composio connected-accounts delete', () => {
36 +describe('CLI: composio manage connected-accounts delete', () => {
37 layer(TestLive({ baseConfigProvider: testConfigProvider, connectedAccountsData }))(
38 '[Given] valid ID with --yes [Then] deletes successfully',
39 it => {
40 it.scoped('deletes the connected account', () =>
41 Effect.gen(function* () {
42 - yield* cli(['connected-accounts', 'delete', 'con_gmail_active', '--yes']);
42 + yield* cli(['manage', 'connected-accounts', 'delete', 'con_gmail_active', '--yes']);
43 const lines = yield* MockConsole.getLines({ stripAnsi: true });
44 const output = lines.join('\n');
45
@@ -54,12 +54,12 @@ describe('CLI: composio connected-accounts delete', () => {
54 it => {
55 it.scoped('shows error for nonexistent account', () =>
56 Effect.gen(function* () {
57 - yield* cli(['connected-accounts', 'delete', 'con_nonexistent', '--yes']);
57 + yield* cli(['manage', 'connected-accounts', 'delete', 'con_nonexistent', '--yes']);
58 const lines = yield* MockConsole.getLines({ stripAnsi: true });
59 const output = lines.join('\n');
60
61 expect(output).toContain('not found');
62 - expect(output).toContain('composio connected-accounts list');
62 + expect(output).toContain('composio manage connected-accounts list');
63 })
64 );
65 }
@@ -70,12 +70,12 @@ describe('CLI: composio connected-accounts delete', () => {
70 it => {
71 it.scoped('warns about missing argument', () =>
72 Effect.gen(function* () {
73 - yield* cli(['connected-accounts', 'delete']);
73 + yield* cli(['manage', 'connected-accounts', 'delete']);
74 const lines = yield* MockConsole.getLines({ stripAnsi: true });
75 const output = lines.join('\n');
76
77 expect(output).toContain('Missing required argument');
78 - expect(output).toContain('composio connected-accounts delete');
78 + expect(output).toContain('composio manage connected-accounts delete');
79 })
80 );
81 }
@@ -84,7 +84,7 @@ describe('CLI: composio connected-accounts delete', () => {
84 layer(TestLive())('[Given] no API key [Then] warns user to login', it => {
85 it.scoped('warns user to login', () =>
86 Effect.gen(function* () {
87 - yield* cli(['connected-accounts', 'delete', 'con_gmail_active', '--yes']);
87 + yield* cli(['manage', 'connected-accounts', 'delete', 'con_gmail_active', '--yes']);
88 const lines = yield* MockConsole.getLines({ stripAnsi: true });
89 const output = lines.join('\n');
90
ts/packages/cli/test/src/commands/connected-accounts/connected-accounts.info.cmd.test.ts
+7 -7
@@ -33,13 +33,13 @@ const testConfigProvider = ConfigProvider.fromMap(
33 new Map([['COMPOSIO_USER_API_KEY', 'test_api_key']])
34 ).pipe(extendConfigProvider);
35
36 -describe('CLI: composio connected-accounts info', () => {
36 +describe('CLI: composio manage connected-accounts info', () => {
37 layer(TestLive({ baseConfigProvider: testConfigProvider, connectedAccountsData }))(
38 '[Given] valid ID [Then] shows connected account info',
39 it => {
40 it.scoped('displays info for existing account', () =>
41 Effect.gen(function* () {
42 - yield* cli(['connected-accounts', 'info', 'con_gmail_active']);
42 + yield* cli(['manage', 'connected-accounts', 'info', 'con_gmail_active']);
43 const lines = yield* MockConsole.getLines({ stripAnsi: true });
44 const output = lines.join('\n');
45
@@ -57,12 +57,12 @@ describe('CLI: composio connected-accounts info', () => {
57 it => {
58 it.scoped('shows error for nonexistent account', () =>
59 Effect.gen(function* () {
60 - yield* cli(['connected-accounts', 'info', 'con_nonexistent']);
60 + yield* cli(['manage', 'connected-accounts', 'info', 'con_nonexistent']);
61 const lines = yield* MockConsole.getLines({ stripAnsi: true });
62 const output = lines.join('\n');
63
64 expect(output).toContain('not found');
65 - expect(output).toContain('composio connected-accounts list');
65 + expect(output).toContain('composio manage connected-accounts list');
66 })
67 );
68 }
@@ -73,12 +73,12 @@ describe('CLI: composio connected-accounts info', () => {
73 it => {
74 it.scoped('warns about missing argument', () =>
75 Effect.gen(function* () {
76 - yield* cli(['connected-accounts', 'info']);
76 + yield* cli(['manage', 'connected-accounts', 'info']);
77 const lines = yield* MockConsole.getLines({ stripAnsi: true });
78 const output = lines.join('\n');
79
80 expect(output).toContain('Missing required argument');
81 - expect(output).toContain('composio connected-accounts info');
81 + expect(output).toContain('composio manage connected-accounts info');
82 })
83 );
84 }
@@ -87,7 +87,7 @@ describe('CLI: composio connected-accounts info', () => {
87 layer(TestLive())('[Given] no API key [Then] warns user to login', it => {
88 it.scoped('warns user to login', () =>
89 Effect.gen(function* () {
90 - yield* cli(['connected-accounts', 'info', 'con_gmail_active']);
90 + yield* cli(['manage', 'connected-accounts', 'info', 'con_gmail_active']);
91 const lines = yield* MockConsole.getLines({ stripAnsi: true });
92 const output = lines.join('\n');
93
ts/packages/cli/test/src/commands/connected-accounts/connected-accounts.link.cmd.test.ts
+15 -3
@@ -33,13 +33,14 @@ const testConfigProvider = ConfigProvider.fromMap(
33 new Map([['COMPOSIO_USER_API_KEY', 'test_api_key']])
34 ).pipe(extendConfigProvider);
35
36 -describe('CLI: composio connected-accounts link', () => {
36 +describe('CLI: composio manage connected-accounts link', () => {
37 layer(TestLive({ baseConfigProvider: testConfigProvider, connectedAccountsData }))(
38 '[Given] valid --auth-config and --user-id [Then] creates link and waits (default)',
39 it => {
40 it.scoped('creates link and waits for ACTIVE', () =>
41 Effect.gen(function* () {
42 yield* cli([
43 + 'manage',
44 'connected-accounts',
45 'link',
46 '--auth-config',
@@ -64,6 +65,7 @@ describe('CLI: composio connected-accounts link', () => {
65 it.scoped('uses explicit user-id', () =>
66 Effect.gen(function* () {
67 yield* cli([
68 + 'manage',
69 'connected-accounts',
70 'link',
71 '--auth-config',
@@ -93,6 +95,7 @@ describe('CLI: composio connected-accounts link', () => {
95 it.scoped('uses global test user id from user_data.json', () =>
96 Effect.gen(function* () {
97 yield* cli([
98 + 'manage',
99 'connected-accounts',
100 'link',
101 '--auth-config',
@@ -112,7 +115,14 @@ describe('CLI: composio connected-accounts link', () => {
115 layer(TestLive())('[Given] no API key [Then] warns user to login', it => {
116 it.scoped('warns user to login', () =>
117 Effect.gen(function* () {
115 - yield* cli(['connected-accounts', 'link', '--auth-config', 'ac_test', '--no-browser']);
118 + yield* cli([
119 + 'manage',
120 + 'connected-accounts',
121 + 'link',
122 + '--auth-config',
123 + 'ac_test',
124 + '--no-browser',
125 + ]);
126 const lines = yield* MockConsole.getLines({ stripAnsi: true });
127 const output = lines.join('\n');
128
@@ -122,7 +132,7 @@ describe('CLI: composio connected-accounts link', () => {
132 });
133
134 layer(TestLive({ baseConfigProvider: testConfigProvider, connectedAccountsData }))(
125 - '[Given] composio link alias [Then] works like composio connected-accounts link',
135 + '[Given] composio link alias [Then] works like composio manage connected-accounts link',
136 it => {
137 it.scoped('alias expands to connected-accounts link', () =>
138 Effect.gen(function* () {
@@ -150,6 +160,7 @@ describe('CLI: composio connected-accounts link', () => {
160 it.scoped('prints JSON with status pending, connected_account_id, redirect_url', () =>
161 Effect.gen(function* () {
162 yield* cli([
163 + 'manage',
164 'connected-accounts',
165 'link',
166 '--auth-config',
@@ -190,6 +201,7 @@ describe('CLI: composio connected-accounts link', () => {
201 () =>
202 Effect.gen(function* () {
203 yield* cli([
204 + 'manage',
205 'connected-accounts',
206 'link',
207 '--auth-config',
ts/packages/cli/test/src/commands/connected-accounts/connected-accounts.list.cmd.test.ts
+10 -10
@@ -67,13 +67,13 @@ const testConfigProvider = ConfigProvider.fromMap(
67 new Map([['COMPOSIO_USER_API_KEY', 'test_api_key']])
68 ).pipe(extendConfigProvider);
69
70 -describe('CLI: composio connected-accounts list', () => {
70 +describe('CLI: composio manage connected-accounts list', () => {
71 layer(TestLive({ baseConfigProvider: testConfigProvider, connectedAccountsData }))(
72 '[Given] no flags [Then] lists all connected accounts',
73 it => {
74 it.scoped('lists all connected accounts with table', () =>
75 Effect.gen(function* () {
76 - yield* cli(['connected-accounts', 'list']);
76 + yield* cli(['manage', 'connected-accounts', 'list']);
77 const lines = yield* MockConsole.getLines({ stripAnsi: true });
78 const output = lines.join('\n');
79
@@ -91,7 +91,7 @@ describe('CLI: composio connected-accounts list', () => {
91 it => {
92 it.scoped('filters by toolkit', () =>
93 Effect.gen(function* () {
94 - yield* cli(['connected-accounts', 'list', '--toolkits', 'gmail']);
94 + yield* cli(['manage', 'connected-accounts', 'list', '--toolkits', 'gmail']);
95 const lines = yield* MockConsole.getLines({ stripAnsi: true });
96 const output = lines.join('\n');
97
@@ -108,7 +108,7 @@ describe('CLI: composio connected-accounts list', () => {
108 it => {
109 it.scoped('filters by user ID', () =>
110 Effect.gen(function* () {
111 - yield* cli(['connected-accounts', 'list', '--user-id', 'default']);
111 + yield* cli(['manage', 'connected-accounts', 'list', '--user-id', 'default']);
112 const lines = yield* MockConsole.getLines({ stripAnsi: true });
113 const output = lines.join('\n');
114
@@ -126,7 +126,7 @@ describe('CLI: composio connected-accounts list', () => {
126 it => {
127 it.scoped('filters by status', () =>
128 Effect.gen(function* () {
129 - yield* cli(['connected-accounts', 'list', '--status', 'ACTIVE']);
129 + yield* cli(['manage', 'connected-accounts', 'list', '--status', 'ACTIVE']);
130 const lines = yield* MockConsole.getLines({ stripAnsi: true });
131 const output = lines.join('\n');
132
@@ -144,7 +144,7 @@ describe('CLI: composio connected-accounts list', () => {
144 it => {
145 it.scoped('respects limit', () =>
146 Effect.gen(function* () {
147 - yield* cli(['connected-accounts', 'list', '--limit', '1']);
147 + yield* cli(['manage', 'connected-accounts', 'list', '--limit', '1']);
148 const lines = yield* MockConsole.getLines({ stripAnsi: true });
149 const output = lines.join('\n');
150
@@ -157,7 +157,7 @@ describe('CLI: composio connected-accounts list', () => {
157 layer(TestLive())('[Given] no API key [Then] warns user to login', it => {
158 it.scoped('warns user to login', () =>
159 Effect.gen(function* () {
160 - yield* cli(['connected-accounts', 'list']);
160 + yield* cli(['manage', 'connected-accounts', 'list']);
161 const lines = yield* MockConsole.getLines({ stripAnsi: true });
162 const output = lines.join('\n');
163
@@ -171,7 +171,7 @@ describe('CLI: composio connected-accounts list', () => {
171 it => {
172 it.scoped('shows no connected accounts found', () =>
173 Effect.gen(function* () {
174 - yield* cli(['connected-accounts', 'list']);
174 + yield* cli(['manage', 'connected-accounts', 'list']);
175 const lines = yield* MockConsole.getLines({ stripAnsi: true });
176 const output = lines.join('\n');
177
@@ -186,12 +186,12 @@ describe('CLI: composio connected-accounts list', () => {
186 it => {
187 it.scoped('shows toolkit hint', () =>
188 Effect.gen(function* () {
189 - yield* cli(['connected-accounts', 'list', '--toolkits', 'nonexistent']);
189 + yield* cli(['manage', 'connected-accounts', 'list', '--toolkits', 'nonexistent']);
190 const lines = yield* MockConsole.getLines({ stripAnsi: true });
191 const output = lines.join('\n');
192
193 expect(output).toContain('No connected accounts found');
194 - expect(output).toContain('composio toolkits list');
194 + expect(output).toContain('composio manage toolkits list');
195 })
196 );
197 }
ts/packages/cli/test/src/commands/connected-accounts/connected-accounts.whoami.cmd.test.ts
+8 -8
@@ -50,13 +50,13 @@ const testConfigProvider = ConfigProvider.fromMap(
50 new Map([['COMPOSIO_USER_API_KEY', 'test_api_key']])
51 ).pipe(extendConfigProvider);
52
53 -describe('CLI: composio connected-accounts whoami', () => {
53 +describe('CLI: composio manage connected-accounts whoami', () => {
54 layer(TestLive({ baseConfigProvider: testConfigProvider, connectedAccountsData }))(
55 '[Given] active connection [Then] shows account details',
56 it => {
57 it.scoped('displays whoami for active connection', () =>
58 Effect.gen(function* () {
59 - yield* cli(['connected-accounts', 'whoami', 'con_gmail_active']);
59 + yield* cli(['manage', 'connected-accounts', 'whoami', 'con_gmail_active']);
60 const lines = yield* MockConsole.getLines({ stripAnsi: true });
61 const output = lines.join('\n');
62
@@ -74,7 +74,7 @@ describe('CLI: composio connected-accounts whoami', () => {
74 it => {
75 it.scoped('shows warning for non-ACTIVE connection', () =>
76 Effect.gen(function* () {
77 - yield* cli(['connected-accounts', 'whoami', 'con_github_expired']);
77 + yield* cli(['manage', 'connected-accounts', 'whoami', 'con_github_expired']);
78 const lines = yield* MockConsole.getLines({ stripAnsi: true });
79 const output = lines.join('\n');
80
@@ -91,12 +91,12 @@ describe('CLI: composio connected-accounts whoami', () => {
91 it => {
92 it.scoped('shows error for nonexistent account', () =>
93 Effect.gen(function* () {
94 - yield* cli(['connected-accounts', 'whoami', 'con_nonexistent']);
94 + yield* cli(['manage', 'connected-accounts', 'whoami', 'con_nonexistent']);
95 const lines = yield* MockConsole.getLines({ stripAnsi: true });
96 const output = lines.join('\n');
97
98 expect(output).toContain('not found');
99 - expect(output).toContain('composio connected-accounts list');
99 + expect(output).toContain('composio manage connected-accounts list');
100 })
101 );
102 }
@@ -107,12 +107,12 @@ describe('CLI: composio connected-accounts whoami', () => {
107 it => {
108 it.scoped('warns about missing argument', () =>
109 Effect.gen(function* () {
110 - yield* cli(['connected-accounts', 'whoami']);
110 + yield* cli(['manage', 'connected-accounts', 'whoami']);
111 const lines = yield* MockConsole.getLines({ stripAnsi: true });
112 const output = lines.join('\n');
113
114 expect(output).toContain('Missing required argument');
115 - expect(output).toContain('composio connected-accounts whoami');
115 + expect(output).toContain('composio manage connected-accounts whoami');
116 })
117 );
118 }
@@ -121,7 +121,7 @@ describe('CLI: composio connected-accounts whoami', () => {
121 layer(TestLive())('[Given] no API key [Then] warns user to login', it => {
122 it.scoped('warns user to login', () =>
123 Effect.gen(function* () {
124 - yield* cli(['connected-accounts', 'whoami', 'con_gmail_active']);
124 + yield* cli(['manage', 'connected-accounts', 'whoami', 'con_gmail_active']);
125 const lines = yield* MockConsole.getLines({ stripAnsi: true });
126 const output = lines.join('\n');
127
ts/packages/cli/test/src/commands/orgs/orgs.list.cmd.test.ts
+3 -3
@@ -9,7 +9,7 @@ const mockFetchResponse = (body: unknown, status = 200) =>
9 headers: { 'Content-Type': 'application/json' },
10 });
11
12 -describe('CLI: composio orgs list', () => {
12 +describe('CLI: composio manage orgs list', () => {
13 afterEach(() => {
14 vi.restoreAllMocks();
15 });
@@ -26,7 +26,7 @@ describe('CLI: composio orgs list', () => {
26 })
27 );
28
29 - yield* cli(['orgs', 'list']);
29 + yield* cli(['manage', 'orgs', 'list']);
30
31 expect(fetchSpy).toHaveBeenCalledTimes(1);
32 const [orgUrl, orgRequest] = fetchSpy.mock.calls[0]!;
@@ -40,7 +40,7 @@ describe('CLI: composio orgs list', () => {
40 expect(output).toContain('✓ Org One (org_1)');
41 expect(output).toContain(' Org Two (org_2)');
42 expect(output).toContain(
43 - 'Hint: run `composio orgs switch` to switch the default global org/project.'
43 + 'Hint: run `composio manage orgs switch` to switch the default global org/project.'
44 );
45 })
46 );
ts/packages/cli/test/src/commands/orgs/orgs.switch.cmd.test.ts
+3 -3
@@ -20,7 +20,7 @@ const mockFetchResponse = (body: unknown, status = 200) =>
20 headers: { 'Content-Type': 'application/json' },
21 });
22
23 -describe('CLI: composio orgs switch', () => {
23 +describe('CLI: composio manage orgs switch', () => {
24 afterEach(() => {
25 vi.restoreAllMocks();
26 });
@@ -41,7 +41,7 @@ describe('CLI: composio orgs switch', () => {
41 })
42 );
43
44 - yield* cli(['orgs', 'switch']);
44 + yield* cli(['manage', 'orgs', 'switch']);
45
46 expect(fetchSpy).toHaveBeenCalledTimes(2);
47 const [orgUrl, orgRequest] = fetchSpy.mock.calls[0]!;
@@ -83,7 +83,7 @@ describe('CLI: composio orgs switch', () => {
83 })
84 );
85
86 - yield* cli(['orgs', 'switch', '--org-id', 'org_manual']);
86 + yield* cli(['manage', 'orgs', 'switch', '--org-id', 'org_manual']);
87
88 expect(fetchSpy).toHaveBeenCalledTimes(1);
89 const [projectUrl, projectRequest] = fetchSpy.mock.calls[0]!;
ts/packages/cli/test/src/commands/projects/projects.list.cmd.test.ts
+6 -4
@@ -9,7 +9,7 @@ const mockFetchResponse = (body: unknown, status = 200) =>
9 headers: { 'Content-Type': 'application/json' },
10 });
11
12 -describe('CLI: composio projects list', () => {
12 +describe('CLI: composio manage projects list', () => {
13 afterEach(() => {
14 vi.restoreAllMocks();
15 });
@@ -26,7 +26,7 @@ describe('CLI: composio projects list', () => {
26 })
27 );
28
29 - yield* cli(['projects', 'list', '--org-id', 'org_1']);
29 + yield* cli(['manage', 'projects', 'list', '--org-id', 'org_1']);
30
31 expect(fetchSpy).toHaveBeenCalledTimes(1);
32 const [projectUrl, projectRequest] = fetchSpy.mock.calls[0]!;
@@ -41,9 +41,11 @@ describe('CLI: composio projects list', () => {
41 expect(output).toContain('✓ Project One (project_1)');
42 expect(output).toContain(' Project Two (project_2)');
43 expect(output).toContain(
44 - 'Hint: run `composio projects switch` to switch the default global project.'
44 + 'Hint: run `composio manage projects switch` to switch the default global project.'
45 + );
46 + expect(output).toContain(
47 + 'Run `composio manage orgs switch` to switch org and project together.'
48 );
46 - expect(output).toContain('Run `composio orgs switch` to switch org and project together.');
49 })
50 );
51 });
ts/packages/cli/test/src/commands/projects/projects.switch.cmd.test.ts
+5 -3
@@ -20,7 +20,7 @@ const mockFetchResponse = (body: unknown, status = 200) =>
20 headers: { 'Content-Type': 'application/json' },
21 });
22
23 -describe('CLI: composio projects switch', () => {
23 +describe('CLI: composio manage projects switch', () => {
24 afterEach(() => {
25 vi.restoreAllMocks();
26 });
@@ -39,7 +39,7 @@ describe('CLI: composio projects switch', () => {
39 })
40 );
41
42 - yield* cli(['projects', 'switch', '--org-id', 'org_manual']);
42 + yield* cli(['manage', 'projects', 'switch', '--org-id', 'org_manual']);
43
44 expect(fetchSpy).toHaveBeenCalledTimes(1);
45 const [projectUrl, projectRequest] = fetchSpy.mock.calls[0]!;
@@ -58,7 +58,9 @@ describe('CLI: composio projects switch', () => {
58 expect(userConfig.project_id).toBe('project_1');
59
60 const output = (yield* MockConsole.getLines({ stripAnsi: true })).join('\n');
61 - expect(output).toContain('To switch organization as well, run `composio orgs switch`.');
61 + expect(output).toContain(
62 + 'To switch organization as well, run `composio manage orgs switch`.'
63 + );
64 })
65 );
66 });
ts/packages/cli/test/src/commands/toolkits/toolkits.info.cmd.test.ts
+11 -11
@@ -129,13 +129,13 @@ const testConfigProvider = ConfigProvider.fromMap(
129 new Map([['COMPOSIO_USER_API_KEY', 'test_api_key']])
130 ).pipe(extendConfigProvider);
131
132 -describe('CLI: composio toolkits info', () => {
132 +describe('CLI: composio manage toolkits info', () => {
133 layer(TestLive({ baseConfigProvider: testConfigProvider, toolkitsData }))(
134 '[Given] valid slug "gmail"',
135 it => {
136 it.scoped('shows detailed info with connection status', () =>
137 Effect.gen(function* () {
138 - yield* cli(['toolkits', 'info', 'gmail']);
138 + yield* cli(['manage', 'toolkits', 'info', 'gmail']);
139 const lines = yield* MockConsole.getLines({ stripAnsi: true });
140 const output = lines.join('\n');
141
@@ -165,7 +165,7 @@ describe('CLI: composio toolkits info', () => {
165 it => {
166 it.scoped('uses global test user id for toolkit info', () =>
167 Effect.gen(function* () {
168 - yield* cli(['toolkits', 'info', 'gmail']);
168 + yield* cli(['manage', 'toolkits', 'info', 'gmail']);
169 const lines = yield* MockConsole.getLines({ stripAnsi: true });
170 const output = lines.join('\n');
171
@@ -181,7 +181,7 @@ describe('CLI: composio toolkits info', () => {
181 it => {
182 it.scoped('shows "no auth"', () =>
183 Effect.gen(function* () {
184 - yield* cli(['toolkits', 'info', 'codeinterpreter']);
184 + yield* cli(['manage', 'toolkits', 'info', 'codeinterpreter']);
185 const lines = yield* MockConsole.getLines({ stripAnsi: true });
186 const output = lines.join('\n');
187
@@ -199,7 +199,7 @@ describe('CLI: composio toolkits info', () => {
199 it => {
200 it.scoped('shows full auth config setup fields', () =>
201 Effect.gen(function* () {
202 - yield* cli(['toolkits', 'info', 'gmail', '--all']);
202 + yield* cli(['manage', 'toolkits', 'info', 'gmail', '--all']);
203 const lines = yield* MockConsole.getLines({ stripAnsi: true });
204 const output = lines.join('\n');
205
@@ -218,7 +218,7 @@ describe('CLI: composio toolkits info', () => {
218 it => {
219 it.scoped('shows error', () =>
220 Effect.gen(function* () {
221 - yield* cli(['toolkits', 'info', 'gmal']).pipe(Effect.either);
221 + yield* cli(['manage', 'toolkits', 'info', 'gmal']).pipe(Effect.either);
222 const lines = yield* MockConsole.getLines({ stripAnsi: true });
223 const output = lines.join('\n');
224
@@ -233,12 +233,12 @@ describe('CLI: composio toolkits info', () => {
233 it => {
234 it.scoped('shows error with hint', () =>
235 Effect.gen(function* () {
236 - yield* cli(['toolkits', 'info', 'gma']).pipe(Effect.either);
236 + yield* cli(['manage', 'toolkits', 'info', 'gma']).pipe(Effect.either);
237 const lines = yield* MockConsole.getLines({ stripAnsi: true });
238 const output = lines.join('\n');
239
240 expect(output).toContain('Toolkit "gma" not found');
241 - expect(output).toContain('composio toolkits info "gmail"');
241 + expect(output).toContain('composio manage toolkits info "gmail"');
242 })
243 );
244 }
@@ -249,12 +249,12 @@ describe('CLI: composio toolkits info', () => {
249 it => {
250 it.scoped('shows missing argument warning with tip', () =>
251 Effect.gen(function* () {
252 - yield* cli(['toolkits', 'info']);
252 + yield* cli(['manage', 'toolkits', 'info']);
253 const lines = yield* MockConsole.getLines({ stripAnsi: true });
254 const output = lines.join('\n');
255
256 expect(output).toContain('Missing required argument');
257 - expect(output).toContain('composio toolkits info "gmail"');
257 + expect(output).toContain('composio manage toolkits info "gmail"');
258 })
259 );
260 }
@@ -263,7 +263,7 @@ describe('CLI: composio toolkits info', () => {
263 layer(TestLive())('[Given] no API key', it => {
264 it.scoped('warns user to login', () =>
265 Effect.gen(function* () {
266 - yield* cli(['toolkits', 'info', 'gmail']);
266 + yield* cli(['manage', 'toolkits', 'info', 'gmail']);
267 const lines = yield* MockConsole.getLines({ stripAnsi: true });
268 const output = lines.join('\n');
269
ts/packages/cli/test/src/commands/toolkits/toolkits.list.cmd.test.ts
+8 -8
@@ -67,13 +67,13 @@ const testConfigProvider = ConfigProvider.fromMap(
67 new Map([['COMPOSIO_USER_API_KEY', 'test_api_key']])
68 ).pipe(extendConfigProvider);
69
70 -describe('CLI: composio toolkits list', () => {
70 +describe('CLI: composio manage toolkits list', () => {
71 layer(TestLive({ baseConfigProvider: testConfigProvider, toolkitsData }))(
72 '[Given] no flags [Then] lists all toolkits with unified table',
73 it => {
74 it.scoped('lists all toolkits with catalog and connection columns', () =>
75 Effect.gen(function* () {
76 - yield* cli(['toolkits', 'list']);
76 + yield* cli(['manage', 'toolkits', 'list']);
77 const lines = yield* MockConsole.getLines({ stripAnsi: true });
78 const output = lines.join('\n');
79
@@ -100,7 +100,7 @@ describe('CLI: composio toolkits list', () => {
100 it => {
101 it.scoped('shows connected column with global test user id', () =>
102 Effect.gen(function* () {
103 - yield* cli(['toolkits', 'list']);
103 + yield* cli(['manage', 'toolkits', 'list']);
104 const lines = yield* MockConsole.getLines({ stripAnsi: true });
105 const output = lines.join('\n');
106
@@ -116,7 +116,7 @@ describe('CLI: composio toolkits list', () => {
116 it => {
117 it.scoped('shows connected column with explicit user id', () =>
118 Effect.gen(function* () {
119 - yield* cli(['toolkits', 'list', '--user-id', 'default']);
119 + yield* cli(['manage', 'toolkits', 'list', '--user-id', 'default']);
120 const lines = yield* MockConsole.getLines({ stripAnsi: true });
121 const output = lines.join('\n');
122
@@ -132,7 +132,7 @@ describe('CLI: composio toolkits list', () => {
132 it => {
133 it.scoped('shows filtered results', () =>
134 Effect.gen(function* () {
135 - yield* cli(['toolkits', 'list', '--query', 'email']);
135 + yield* cli(['manage', 'toolkits', 'list', '--query', 'email']);
136 const lines = yield* MockConsole.getLines({ stripAnsi: true });
137 const output = lines.join('\n');
138
@@ -149,7 +149,7 @@ describe('CLI: composio toolkits list', () => {
149 it => {
150 it.scoped('respects limit', () =>
151 Effect.gen(function* () {
152 - yield* cli(['toolkits', 'list', '--limit', '2']);
152 + yield* cli(['manage', 'toolkits', 'list', '--limit', '2']);
153 const lines = yield* MockConsole.getLines({ stripAnsi: true });
154 const output = lines.join('\n');
155
@@ -162,7 +162,7 @@ describe('CLI: composio toolkits list', () => {
162 layer(TestLive())('[Given] no API key', it => {
163 it.scoped('warns user to login', () =>
164 Effect.gen(function* () {
165 - yield* cli(['toolkits', 'list']);
165 + yield* cli(['manage', 'toolkits', 'list']);
166 const lines = yield* MockConsole.getLines({ stripAnsi: true });
167 const output = lines.join('\n');
168
@@ -174,7 +174,7 @@ describe('CLI: composio toolkits list', () => {
174 layer(TestLive({ baseConfigProvider: testConfigProvider }))('[Given] empty results', it => {
175 it.scoped('shows no toolkits found', () =>
176 Effect.gen(function* () {
177 - yield* cli(['toolkits', 'list']);
177 + yield* cli(['manage', 'toolkits', 'list']);
178 const lines = yield* MockConsole.getLines({ stripAnsi: true });
179 const output = lines.join('\n');
180
ts/packages/cli/test/src/commands/toolkits/toolkits.search.cmd.test.ts
+5 -5
@@ -67,13 +67,13 @@ const testConfigProvider = ConfigProvider.fromMap(
67 new Map([['COMPOSIO_USER_API_KEY', 'test_api_key']])
68 ).pipe(extendConfigProvider);
69
70 -describe('CLI: composio toolkits search', () => {
70 +describe('CLI: composio manage toolkits search', () => {
71 layer(TestLive({ baseConfigProvider: testConfigProvider, toolkitsData }))(
72 '[Given] query "email"',
73 it => {
74 it.scoped('shows matching toolkits', () =>
75 Effect.gen(function* () {
76 - yield* cli(['toolkits', 'search', 'email']);
76 + yield* cli(['manage', 'toolkits', 'search', 'email']);
77 const lines = yield* MockConsole.getLines({ stripAnsi: true });
78 const output = lines.join('\n');
79
@@ -91,7 +91,7 @@ describe('CLI: composio toolkits search', () => {
91 it => {
92 it.scoped('shows "No toolkits found"', () =>
93 Effect.gen(function* () {
94 - yield* cli(['toolkits', 'search', 'xyzzy']);
94 + yield* cli(['manage', 'toolkits', 'search', 'xyzzy']);
95 const lines = yield* MockConsole.getLines({ stripAnsi: true });
96 const output = lines.join('\n');
97
@@ -106,7 +106,7 @@ describe('CLI: composio toolkits search', () => {
106 it => {
107 it.scoped('respects limit', () =>
108 Effect.gen(function* () {
109 - yield* cli(['toolkits', 'search', 'email', '--limit', '1']);
109 + yield* cli(['manage', 'toolkits', 'search', 'email', '--limit', '1']);
110 const lines = yield* MockConsole.getLines({ stripAnsi: true });
111 const output = lines.join('\n');
112
@@ -119,7 +119,7 @@ describe('CLI: composio toolkits search', () => {
119 layer(TestLive())('[Given] no API key', it => {
120 it.scoped('warns user to login', () =>
121 Effect.gen(function* () {
122 - yield* cli(['toolkits', 'search', 'email']);
122 + yield* cli(['manage', 'toolkits', 'search', 'email']);
123 const lines = yield* MockConsole.getLines({ stripAnsi: true });
124 const output = lines.join('\n');
125
ts/packages/cli/test/src/commands/toolkits/toolkits.version.cmd.test.ts
+5 -5
@@ -76,13 +76,13 @@ const parseLastJson = (lines: ReadonlyArray<string>) => {
76 throw new Error('Expected JSON output but none found');
77 };
78
79 -describe('CLI: composio toolkits version', () => {
79 +describe('CLI: composio manage toolkits version', () => {
80 layer(TestLive({ baseConfigProvider: testConfigProvider, toolkitsData }))(
81 '[Given] valid slug [Then] shows latest and last 20 versions',
82 it => {
83 it.scoped('prints latest version and truncates to last 20', () =>
84 Effect.gen(function* () {
85 - yield* cli(['toolkits', 'version', 'gmail']);
85 + yield* cli(['manage', 'toolkits', 'version', 'gmail']);
86 const lines = yield* MockConsole.getLines({ stripAnsi: true });
87 const output = lines.join('\n');
88 const json = parseLastJson(lines);
@@ -105,12 +105,12 @@ describe('CLI: composio toolkits version', () => {
105 it => {
106 it.scoped('prints fetch failure and browse hint', () =>
107 Effect.gen(function* () {
108 - yield* cli(['toolkits', 'version', 'unknown']).pipe(Effect.either);
108 + yield* cli(['manage', 'toolkits', 'version', 'unknown']).pipe(Effect.either);
109 const lines = yield* MockConsole.getLines({ stripAnsi: true });
110 const output = lines.join('\n');
111
112 expect(output).toContain('Toolkit "unknown" not found');
113 - expect(output).toContain('composio toolkits list');
113 + expect(output).toContain('composio manage toolkits list');
114 })
115 );
116 }
@@ -119,7 +119,7 @@ describe('CLI: composio toolkits version', () => {
119 layer(TestLive())('[Given] no API key [Then] warns user to login', it => {
120 it.scoped('warns user to login', () =>
121 Effect.gen(function* () {
122 - yield* cli(['toolkits', 'version', 'gmail']);
122 + yield* cli(['manage', 'toolkits', 'version', 'gmail']);
123 const lines = yield* MockConsole.getLines({ stripAnsi: true });
124 const output = lines.join('\n');
125
ts/packages/cli/test/src/commands/tools/tools.execute.cmd.test.ts
+30 -7
@@ -30,7 +30,7 @@ const parseLastJson = (lines: ReadonlyArray<string>) => {
30 throw new Error('Expected JSON output but none found');
31 };
32
33 -describe('CLI: composio tools execute', () => {
33 +describe('CLI: composio manage tools execute', () => {
34 // Disable CI redaction so tests see raw values.
35 // The explicit CI-redaction test overrides via vi.spyOn and is unaffected.
36 let savedCI: string | undefined;
@@ -51,6 +51,7 @@ describe('CLI: composio tools execute', () => {
51 it.scoped('executes via Tool Router with defaults', () =>
52 Effect.gen(function* () {
53 yield* cli([
54 + 'manage',
55 'tools',
56 'execute',
57 'GMAIL_SEND_EMAIL',
@@ -76,7 +77,7 @@ describe('CLI: composio tools execute', () => {
77 baseConfigProvider: testConfigProvider,
78 stdin: { isTTY: true, data: '' },
79 })
79 - )('[Given] composio execute alias [Then] works like composio tools execute', it => {
80 + )('[Given] composio execute alias [Then] works like composio manage tools execute', it => {
81 it.scoped('alias expands to tools execute', () =>
82 Effect.gen(function* () {
83 yield* cli([
@@ -108,7 +109,7 @@ describe('CLI: composio tools execute', () => {
109 it => {
110 it.scoped('uses global test user id from user_data.json', () =>
111 Effect.gen(function* () {
111 - yield* cli(['tools', 'execute', 'GMAIL_SEND_EMAIL', '-d', '{"recipient":"a"}']);
112 + yield* cli(['manage', 'tools', 'execute', 'GMAIL_SEND_EMAIL', '-d', '{"recipient":"a"}']);
113 const lines = yield* MockConsole.getLines({ stripAnsi: true });
114 const output = parseLastJson(lines);
115 const text = lines.join('\n');
@@ -199,7 +200,15 @@ describe('CLI: composio tools execute', () => {
200 )('[Given] execute-help with options before slug [Then] resolves correct slug', it => {
201 it.scoped('does not treat --user-id value as slug', () =>
202 Effect.gen(function* () {
202 - yield* cli(['tools', 'execute', '--user-id', 'default', 'GMAIL_SEND_EMAIL', '--help']);
203 + yield* cli([
204 + 'manage',
205 + 'tools',
206 + 'execute',
207 + '--user-id',
208 + 'default',
209 + 'GMAIL_SEND_EMAIL',
210 + '--help',
211 + ]);
212 const lines = yield* MockConsole.getLines({ stripAnsi: true });
213 const output = lines.join('\n');
214
@@ -219,7 +228,7 @@ describe('CLI: composio tools execute', () => {
228 )('[Given] stdin is piped [Then] reads input from stdin', it => {
229 it.scoped('reads stdin input', () =>
230 Effect.gen(function* () {
222 - yield* cli(['tools', 'execute', 'GITHUB_GET_REPOS', '--user-id', 'default']);
231 + yield* cli(['manage', 'tools', 'execute', 'GITHUB_GET_REPOS', '--user-id', 'default']);
232 const lines = yield* MockConsole.getLines({ stripAnsi: true });
233 const output = parseLastJson(lines);
234
@@ -245,6 +254,7 @@ describe('CLI: composio tools execute', () => {
254 it.scoped('prints connected account tips for legacy slug', () =>
255 Effect.gen(function* () {
256 yield* cli([
257 + 'manage',
258 'tools',
259 'execute',
260 'GMAIL_CREATE_EMAIL_DRAFT',
@@ -258,7 +268,7 @@ describe('CLI: composio tools execute', () => {
268
269 expect(output).toContain('No connected account found');
270 expect(output).toContain('Tips');
261 - expect(output).toContain('composio connected-accounts link');
271 + expect(output).toContain('composio manage connected-accounts link');
272 })
273 );
274 });
@@ -287,6 +297,7 @@ describe('CLI: composio tools execute', () => {
297 it.scoped('prints connection tips with toolkit name derived from tool slug', () =>
298 Effect.gen(function* () {
299 yield* cli([
300 + 'manage',
301 'tools',
302 'execute',
303 'GMAIL_CREATE_EMAIL_DRAFT',
@@ -300,7 +311,7 @@ describe('CLI: composio tools execute', () => {
311
312 expect(output).toContain('No active connection');
313 expect(output).toContain('Tips');
303 - expect(output).toContain('composio connected-accounts link gmail');
314 + expect(output).toContain('composio manage connected-accounts link gmail');
315 })
316 );
317 });
@@ -321,6 +332,7 @@ describe('CLI: composio tools execute', () => {
332 it.scoped('flows through real ToolsExecutorLive with custom mock', () =>
333 Effect.gen(function* () {
334 yield* cli([
335 + 'manage',
336 'tools',
337 'execute',
338 'GITHUB_STAR_REPO',
@@ -356,6 +368,7 @@ describe('CLI: composio tools execute', () => {
368 it.scoped('prints actionable error details', () =>
369 Effect.gen(function* () {
370 yield* cli([
371 + 'manage',
372 'tools',
373 'execute',
374 'GMAIL_CREATE_EMAIL_DRAFT',
@@ -384,6 +397,7 @@ describe('CLI: composio tools execute', () => {
397 it.scoped('prints object error message and details', () =>
398 Effect.gen(function* () {
399 yield* cli([
400 + 'manage',
401 'tools',
402 'execute',
403 'GMAIL_CREATE_EMAIL_DRAFT',
@@ -421,6 +435,7 @@ describe('CLI: composio tools execute', () => {
435 it.scoped('shows error and logId for soft failure', () =>
436 Effect.gen(function* () {
437 yield* cli([
438 + 'manage',
439 'tools',
440 'execute',
441 'GMAIL_CREATE_EMAIL_DRAFT',
@@ -459,6 +474,7 @@ describe('CLI: composio tools execute', () => {
474 it.scoped('shows error without logId for soft failure', () =>
475 Effect.gen(function* () {
476 yield* cli([
477 + 'manage',
478 'tools',
479 'execute',
480 'GMAIL_CREATE_EMAIL_DRAFT',
@@ -497,6 +513,7 @@ describe('CLI: composio tools execute', () => {
513 it.scoped('omits connection tips for meta tool slugs', () =>
514 Effect.gen(function* () {
515 yield* cli([
516 + 'manage',
517 'tools',
518 'execute',
519 'COMPOSIO_SEARCH_TOOLS',
@@ -526,6 +543,7 @@ describe('CLI: composio tools execute', () => {
543 it.scoped('fails with invalid JSON error', () =>
544 Effect.gen(function* () {
545 const result = yield* cli([
546 + 'manage',
547 'tools',
548 'execute',
549 'GMAIL_SEND_EMAIL',
@@ -552,6 +570,7 @@ describe('CLI: composio tools execute', () => {
570 it.scoped('fails with expected object error', () =>
571 Effect.gen(function* () {
572 const result = yield* cli([
573 + 'manage',
574 'tools',
575 'execute',
576 'GMAIL_SEND_EMAIL',
@@ -578,6 +597,7 @@ describe('CLI: composio tools execute', () => {
597 it.scoped('fails with expected object error for string', () =>
598 Effect.gen(function* () {
599 const result = yield* cli([
600 + 'manage',
601 'tools',
602 'execute',
603 'GMAIL_SEND_EMAIL',
@@ -604,6 +624,7 @@ describe('CLI: composio tools execute', () => {
624 it.scoped('fails with missing input error', () =>
625 Effect.gen(function* () {
626 const result = yield* cli([
627 + 'manage',
628 'tools',
629 'execute',
630 'GMAIL_SEND_EMAIL',
@@ -628,6 +649,7 @@ describe('CLI: composio tools execute', () => {
649 it.scoped('fails with error for empty stdin', () =>
650 Effect.gen(function* () {
651 const result = yield* cli([
652 + 'manage',
653 'tools',
654 'execute',
655 'GMAIL_SEND_EMAIL',
@@ -674,6 +696,7 @@ describe('CLI: composio tools execute', () => {
696
697 try {
698 yield* cli([
699 + 'manage',
700 'tools',
701 'execute',
702 'GMAIL_SEND_EMAIL',
ts/packages/cli/test/src/commands/tools/tools.info.cmd.test.ts
+6 -6
@@ -49,13 +49,13 @@ const testConfigProvider = ConfigProvider.fromMap(
49 new Map([['COMPOSIO_USER_API_KEY', 'test_api_key']])
50 ).pipe(extendConfigProvider);
51
52 -describe('CLI: composio tools info', () => {
52 +describe('CLI: composio manage tools info', () => {
53 layer(TestLive({ baseConfigProvider: testConfigProvider, toolkitsData }))(
54 '[Given] valid slug [Then] displays tool info',
55 it => {
56 it.scoped('shows tool details with input/output schemas', () =>
57 Effect.gen(function* () {
58 - yield* cli(['tools', 'info', 'GMAIL_SEND_EMAIL']);
58 + yield* cli(['manage', 'tools', 'info', 'GMAIL_SEND_EMAIL']);
59 const lines = yield* MockConsole.getLines({ stripAnsi: true });
60 const output = lines.join('\n');
61
@@ -67,7 +67,7 @@ describe('CLI: composio tools info', () => {
67 expect(output).toContain('Output Parameters');
68 expect(output).toContain('message_id');
69 // Verify next-step hint includes derived toolkit slug
70 - expect(output).toContain('composio tools list --toolkits "gmail"');
70 + expect(output).toContain('composio manage tools list --toolkits "gmail"');
71 })
72 );
73 }
@@ -78,7 +78,7 @@ describe('CLI: composio tools info', () => {
78 it => {
79 it.scoped('shows missing argument warning', () =>
80 Effect.gen(function* () {
81 - yield* cli(['tools', 'info']);
81 + yield* cli(['manage', 'tools', 'info']);
82 const lines = yield* MockConsole.getLines({ stripAnsi: true });
83 const output = lines.join('\n');
84
@@ -93,7 +93,7 @@ describe('CLI: composio tools info', () => {
93 it => {
94 it.scoped('shows not found with suggestions', () =>
95 Effect.gen(function* () {
96 - yield* cli(['tools', 'info', 'NONEXISTENT_TOOL']);
96 + yield* cli(['manage', 'tools', 'info', 'NONEXISTENT_TOOL']);
97 const lines = yield* MockConsole.getLines({ stripAnsi: true });
98 const output = lines.join('\n');
99
@@ -106,7 +106,7 @@ describe('CLI: composio tools info', () => {
106 layer(TestLive())('[Given] no API key [Then] warns user to login', it => {
107 it.scoped('warns user to login', () =>
108 Effect.gen(function* () {
109 - yield* cli(['tools', 'info', 'GMAIL_SEND_EMAIL']);
109 + yield* cli(['manage', 'tools', 'info', 'GMAIL_SEND_EMAIL']);
110 const lines = yield* MockConsole.getLines({ stripAnsi: true });
111 const output = lines.join('\n');
112
ts/packages/cli/test/src/commands/tools/tools.list.cmd.test.ts
+10 -10
@@ -55,13 +55,13 @@ const testConfigProvider = ConfigProvider.fromMap(
55 new Map([['COMPOSIO_USER_API_KEY', 'test_api_key']])
56 ).pipe(extendConfigProvider);
57
58 -describe('CLI: composio tools list', () => {
58 +describe('CLI: composio manage tools list', () => {
59 layer(TestLive({ baseConfigProvider: testConfigProvider, toolkitsData }))(
60 '[Given] no flags [Then] lists all tools',
61 it => {
62 it.scoped('lists all tools', () =>
63 Effect.gen(function* () {
64 - yield* cli(['tools', 'list']);
64 + yield* cli(['manage', 'tools', 'list']);
65 const lines = yield* MockConsole.getLines({ stripAnsi: true });
66 const output = lines.join('\n');
67
@@ -78,7 +78,7 @@ describe('CLI: composio tools list', () => {
78 it => {
79 it.scoped('filters by toolkit', () =>
80 Effect.gen(function* () {
81 - yield* cli(['tools', 'list', '--toolkits', 'gmail']);
81 + yield* cli(['manage', 'tools', 'list', '--toolkits', 'gmail']);
82 const lines = yield* MockConsole.getLines({ stripAnsi: true });
83 const output = lines.join('\n');
84
@@ -96,7 +96,7 @@ describe('CLI: composio tools list', () => {
96 it => {
97 it.scoped('filters by search query', () =>
98 Effect.gen(function* () {
99 - yield* cli(['tools', 'list', '--query', 'send']);
99 + yield* cli(['manage', 'tools', 'list', '--query', 'send']);
100 const lines = yield* MockConsole.getLines({ stripAnsi: true });
101 const output = lines.join('\n');
102
@@ -113,7 +113,7 @@ describe('CLI: composio tools list', () => {
113 it => {
114 it.scoped('respects limit', () =>
115 Effect.gen(function* () {
116 - yield* cli(['tools', 'list', '--limit', '2']);
116 + yield* cli(['manage', 'tools', 'list', '--limit', '2']);
117 const lines = yield* MockConsole.getLines({ stripAnsi: true });
118 const output = lines.join('\n');
119
@@ -126,7 +126,7 @@ describe('CLI: composio tools list', () => {
126 layer(TestLive())('[Given] no API key [Then] warns user to login', it => {
127 it.scoped('warns user to login', () =>
128 Effect.gen(function* () {
129 - yield* cli(['tools', 'list']);
129 + yield* cli(['manage', 'tools', 'list']);
130 const lines = yield* MockConsole.getLines({ stripAnsi: true });
131 const output = lines.join('\n');
132
@@ -140,7 +140,7 @@ describe('CLI: composio tools list', () => {
140 it => {
141 it.scoped('shows no tools found', () =>
142 Effect.gen(function* () {
143 - yield* cli(['tools', 'list']);
143 + yield* cli(['manage', 'tools', 'list']);
144 const lines = yield* MockConsole.getLines({ stripAnsi: true });
145 const output = lines.join('\n');
146
@@ -155,7 +155,7 @@ describe('CLI: composio tools list', () => {
155 it => {
156 it.scoped('filters by tag', () =>
157 Effect.gen(function* () {
158 - yield* cli(['tools', 'list', '--tags', 'email']);
158 + yield* cli(['manage', 'tools', 'list', '--tags', 'email']);
159 const lines = yield* MockConsole.getLines({ stripAnsi: true });
160 const output = lines.join('\n');
161
@@ -172,12 +172,12 @@ describe('CLI: composio tools list', () => {
172 it => {
173 it.scoped('shows hint about verifying toolkit slug', () =>
174 Effect.gen(function* () {
175 - yield* cli(['tools', 'list', '--toolkits', 'nonexistent']);
175 + yield* cli(['manage', 'tools', 'list', '--toolkits', 'nonexistent']);
176 const lines = yield* MockConsole.getLines({ stripAnsi: true });
177 const output = lines.join('\n');
178
179 expect(output).toContain('No tools found');
180 - expect(output).toContain('composio toolkits list');
180 + expect(output).toContain('composio manage toolkits list');
181 })
182 );
183 }
ts/packages/cli/test/src/commands/tools/tools.search.cmd.test.ts
+16 -14
@@ -53,11 +53,11 @@ const testLiveOptions = {
53 fixture: 'global-test-user-id' as const,
54 };
55
56 -describe('CLI: composio tools search', () => {
56 +describe('CLI: composio manage tools search', () => {
57 layer(TestLive(testLiveOptions))('[Given] query "send" [Then] returns matching tools', it => {
58 it.scoped('returns matching tools', () =>
59 Effect.gen(function* () {
60 - yield* cli(['tools', 'search', 'send']);
60 + yield* cli(['manage', 'tools', 'search', 'send']);
61 const lines = yield* MockConsole.getLines({ stripAnsi: true });
62 const output = lines.join('\n');
63
@@ -74,7 +74,7 @@ describe('CLI: composio tools search', () => {
74 it => {
75 it.scoped('shows not found message', () =>
76 Effect.gen(function* () {
77 - yield* cli(['tools', 'search', 'nonexistent_query']);
77 + yield* cli(['manage', 'tools', 'search', 'nonexistent_query']);
78 const lines = yield* MockConsole.getLines({ stripAnsi: true });
79 const output = lines.join('\n');
80
@@ -89,7 +89,7 @@ describe('CLI: composio tools search', () => {
89 it => {
90 it.scoped('scopes search to toolkit', () =>
91 Effect.gen(function* () {
92 - yield* cli(['tools', 'search', 'send', '--toolkits', 'gmail']);
92 + yield* cli(['manage', 'tools', 'search', 'send', '--toolkits', 'gmail']);
93 const lines = yield* MockConsole.getLines({ stripAnsi: true });
94 const output = lines.join('\n');
95 const humanOutput = output.split('\n{')[0] ?? output;
@@ -107,7 +107,7 @@ describe('CLI: composio tools search', () => {
107 it => {
108 it.scoped('prints full search response with CTA for jq', () =>
109 Effect.gen(function* () {
110 - yield* cli(['tools', 'search', 'send']);
110 + yield* cli(['manage', 'tools', 'search', 'send']);
111 const lines = yield* MockConsole.getLines({ stripAnsi: true });
112 const output = lines.join('\n');
113
@@ -157,7 +157,7 @@ describe('CLI: composio tools search', () => {
157 },
158 });
159
160 - yield* cli(['tools', 'search', 'send']).pipe(Effect.provide(live));
160 + yield* cli(['manage', 'tools', 'search', 'send']).pipe(Effect.provide(live));
161 const lines = yield* MockConsole.getLines({ stripAnsi: true });
162 const output = lines.join('\n');
163
@@ -249,7 +249,7 @@ describe('CLI: composio tools search', () => {
249 },
250 });
251
252 - yield* cli(['tools', 'search', 'send', '--toolkits', 'gmail,outlook']).pipe(
252 + yield* cli(['manage', 'tools', 'search', 'send', '--toolkits', 'gmail,outlook']).pipe(
253 Effect.provide(live)
254 );
255
@@ -316,16 +316,16 @@ describe('CLI: composio tools search', () => {
316 },
317 });
318
319 - yield* cli(['tools', 'search', 'send email']).pipe(Effect.provide(live));
319 + yield* cli(['manage', 'tools', 'search', 'send email']).pipe(Effect.provide(live));
320 const lines = yield* MockConsole.getLines({ stripAnsi: true });
321 const output = lines.join('\n');
322
323 expect(output).toContain('Plan:');
324 expect(output).toContain('1. Collect recipient details');
325 expect(output).toContain('Hints:');
326 - expect(output).toContain('composio tools info "GMAIL_SEND_EMAIL"');
326 + expect(output).toContain('composio manage tools info "GMAIL_SEND_EMAIL"');
327 expect(output).toContain(
328 - `composio tools execute "GMAIL_SEND_EMAIL" --user-id "<user-id>" --arguments '{}'`
328 + `composio manage tools execute "GMAIL_SEND_EMAIL" --user-id "<user-id>" --arguments '{}'`
329 );
330 })
331 );
@@ -335,7 +335,7 @@ describe('CLI: composio tools search', () => {
335 layer(TestLive())('[Given] no API key [Then] warns user to login', it => {
336 it.scoped('warns user to login', () =>
337 Effect.gen(function* () {
338 - yield* cli(['tools', 'search', 'send']);
338 + yield* cli(['manage', 'tools', 'search', 'send']);
339 const lines = yield* MockConsole.getLines({ stripAnsi: true });
340 const output = lines.join('\n');
341
@@ -365,7 +365,9 @@ describe('CLI: composio tools search', () => {
365 },
366 });
367
368 - yield* cli(['tools', 'search', 'send', '--user-id', 'alice']).pipe(Effect.provide(live));
368 + yield* cli(['manage', 'tools', 'search', 'send', '--user-id', 'alice']).pipe(
369 + Effect.provide(live)
370 + );
371
372 expect(createParams?.user_id).toBe('alice');
373 })
@@ -378,7 +380,7 @@ describe('CLI: composio tools search', () => {
380 it => {
381 it.scoped('fails when user id cannot be resolved', () =>
382 Effect.gen(function* () {
381 - const err = yield* cli(['tools', 'search', 'send']).pipe(Effect.flip);
383 + const err = yield* cli(['manage', 'tools', 'search', 'send']).pipe(Effect.flip);
384 const message = err instanceof Error ? err.message : String(err);
385
386 expect(message).toContain('Missing user id');
@@ -390,7 +392,7 @@ describe('CLI: composio tools search', () => {
392 );
393
394 layer(TestLive(testLiveOptions))(
393 - '[Given] composio search alias [Then] works like composio tools search',
395 + '[Given] composio search alias [Then] works like composio manage tools search',
396 it => {
397 it.scoped('alias expands to tools search', () =>
398 Effect.gen(function* () {
ts/packages/cli/test/src/commands/triggers/triggers.info.cmd.test.ts
+7 -7
@@ -54,13 +54,13 @@ const testConfigProvider = ConfigProvider.fromMap(
54 new Map([['COMPOSIO_USER_API_KEY', 'test_api_key']])
55 ).pipe(extendConfigProvider);
56
57 -describe('CLI: composio triggers info', () => {
57 +describe('CLI: composio manage triggers info', () => {
58 layer(TestLive({ baseConfigProvider: testConfigProvider, toolkitsData }))(
59 '[Given] valid slug [Then] displays trigger type info',
60 it => {
61 it.scoped('shows trigger details with config and payload fields', () =>
62 Effect.gen(function* () {
63 - yield* cli(['triggers', 'info', 'GMAIL_NEW_GMAIL_MESSAGE']);
63 + yield* cli(['manage', 'triggers', 'info', 'GMAIL_NEW_GMAIL_MESSAGE']);
64 const lines = yield* MockConsole.getLines({ stripAnsi: true });
65 const output = lines.join('\n');
66
@@ -73,7 +73,7 @@ describe('CLI: composio triggers info', () => {
73 expect(output).toContain('subject');
74 expect(output).toContain('default:');
75 expect(output).toContain('false');
76 - expect(output).toContain('composio triggers list --toolkits "gmail"');
76 + expect(output).toContain('composio manage triggers list --toolkits "gmail"');
77 })
78 );
79 }
@@ -84,7 +84,7 @@ describe('CLI: composio triggers info', () => {
84 it => {
85 it.scoped('shows missing argument warning', () =>
86 Effect.gen(function* () {
87 - yield* cli(['triggers', 'info']);
87 + yield* cli(['manage', 'triggers', 'info']);
88 const lines = yield* MockConsole.getLines({ stripAnsi: true });
89 const output = lines.join('\n');
90
@@ -99,12 +99,12 @@ describe('CLI: composio triggers info', () => {
99 it => {
100 it.scoped('shows not found fallback hint', () =>
101 Effect.gen(function* () {
102 - yield* cli(['triggers', 'info', 'NONEXISTENT_TRIGGER']);
102 + yield* cli(['manage', 'triggers', 'info', 'NONEXISTENT_TRIGGER']);
103 const lines = yield* MockConsole.getLines({ stripAnsi: true });
104 const output = lines.join('\n');
105
106 expect(output).toContain('not found');
107 - expect(output).toContain('composio triggers list');
107 + expect(output).toContain('composio manage triggers list');
108 })
109 );
110 }
@@ -113,7 +113,7 @@ describe('CLI: composio triggers info', () => {
113 layer(TestLive())('[Given] no API key [Then] warns user to login', it => {
114 it.scoped('warns user to login', () =>
115 Effect.gen(function* () {
116 - yield* cli(['triggers', 'info', 'GMAIL_NEW_GMAIL_MESSAGE']);
116 + yield* cli(['manage', 'triggers', 'info', 'GMAIL_NEW_GMAIL_MESSAGE']);
117 const lines = yield* MockConsole.getLines({ stripAnsi: true });
118 const output = lines.join('\n');
119
ts/packages/cli/test/src/commands/triggers/triggers.list.cmd.test.ts
+10 -10
@@ -46,13 +46,13 @@ const testConfigProvider = ConfigProvider.fromMap(
46 new Map([['COMPOSIO_USER_API_KEY', 'test_api_key']])
47 ).pipe(extendConfigProvider);
48
49 -describe('CLI: composio triggers list', () => {
49 +describe('CLI: composio manage triggers list', () => {
50 layer(TestLive({ baseConfigProvider: testConfigProvider, toolkitsData }))(
51 '[Given] no flags [Then] lists all trigger types',
52 it => {
53 it.scoped('lists all trigger types', () =>
54 Effect.gen(function* () {
55 - yield* cli(['triggers', 'list']);
55 + yield* cli(['manage', 'triggers', 'list']);
56 const lines = yield* MockConsole.getLines({ stripAnsi: true });
57 const output = lines.join('\n');
58
@@ -69,7 +69,7 @@ describe('CLI: composio triggers list', () => {
69 it => {
70 it.scoped('filters by toolkit', () =>
71 Effect.gen(function* () {
72 - yield* cli(['triggers', 'list', '--toolkits', 'gmail']);
72 + yield* cli(['manage', 'triggers', 'list', '--toolkits', 'gmail']);
73 const lines = yield* MockConsole.getLines({ stripAnsi: true });
74 const output = lines.join('\n');
75
@@ -87,7 +87,7 @@ describe('CLI: composio triggers list', () => {
87 it => {
88 it.scoped('uses singular form for one result', () =>
89 Effect.gen(function* () {
90 - yield* cli(['triggers', 'list', '--limit', '1']);
90 + yield* cli(['manage', 'triggers', 'list', '--limit', '1']);
91 const lines = yield* MockConsole.getLines({ stripAnsi: true });
92 const output = lines.join('\n');
93
@@ -103,11 +103,11 @@ describe('CLI: composio triggers list', () => {
103 it => {
104 it.scoped('shows hint to view trigger details', () =>
105 Effect.gen(function* () {
106 - yield* cli(['triggers', 'list']);
106 + yield* cli(['manage', 'triggers', 'list']);
107 const lines = yield* MockConsole.getLines({ stripAnsi: true });
108 const output = lines.join('\n');
109
110 - expect(output).toContain('composio triggers info');
110 + expect(output).toContain('composio manage triggers info');
111 })
112 );
113 }
@@ -116,7 +116,7 @@ describe('CLI: composio triggers list', () => {
116 layer(TestLive())('[Given] no API key [Then] warns user to login', it => {
117 it.scoped('warns user to login', () =>
118 Effect.gen(function* () {
119 - yield* cli(['triggers', 'list']);
119 + yield* cli(['manage', 'triggers', 'list']);
120 const lines = yield* MockConsole.getLines({ stripAnsi: true });
121 const output = lines.join('\n');
122
@@ -130,7 +130,7 @@ describe('CLI: composio triggers list', () => {
130 it => {
131 it.scoped('shows no trigger types found', () =>
132 Effect.gen(function* () {
133 - yield* cli(['triggers', 'list']);
133 + yield* cli(['manage', 'triggers', 'list']);
134 const lines = yield* MockConsole.getLines({ stripAnsi: true });
135 const output = lines.join('\n');
136
@@ -145,12 +145,12 @@ describe('CLI: composio triggers list', () => {
145 it => {
146 it.scoped('shows hint about verifying toolkit slug', () =>
147 Effect.gen(function* () {
148 - yield* cli(['triggers', 'list', '--toolkits', 'nonexistent']);
148 + yield* cli(['manage', 'triggers', 'list', '--toolkits', 'nonexistent']);
149 const lines = yield* MockConsole.getLines({ stripAnsi: true });
150 const output = lines.join('\n');
151
152 expect(output).toContain('No trigger types found');
153 - expect(output).toContain('composio toolkits list');
153 + expect(output).toContain('composio manage toolkits list');
154 })
155 );
156 }
ts/packages/cli/test/src/commands/triggers/triggers.listen.cmd.test.ts
+7 -6
@@ -106,7 +106,7 @@ const startWebhookServer = async (): Promise<{
106 };
107 };
108
109 -describe('CLI: composio triggers listen', () => {
109 +describe('CLI: composio manage triggers listen', () => {
110 layer(
111 TestLive({
112 baseConfigProvider: testConfigProvider,
@@ -117,7 +117,7 @@ describe('CLI: composio triggers listen', () => {
117 )('[Given] one realtime event [Then] prints normalized event output', it => {
118 it.scoped('prints event summary and payload', () =>
119 Effect.gen(function* () {
120 - yield* cli(['triggers', 'listen', '--max-events', '1']);
120 + yield* cli(['manage', 'triggers', 'listen', '--max-events', '1']);
121 const lines = yield* MockConsole.getLines({ stripAnsi: true });
122 const output = lines.join('\n');
123
@@ -137,7 +137,7 @@ describe('CLI: composio triggers listen', () => {
137 events: [mockV3TriggerEvent],
138 },
139 })
140 - )('[Given] composio listen alias [Then] works like composio triggers listen', it => {
140 + )('[Given] composio listen alias [Then] works like composio manage triggers listen', it => {
141 it.scoped('alias expands to triggers listen', () =>
142 Effect.gen(function* () {
143 yield* cli(['listen', '--max-events', '1']);
@@ -161,7 +161,7 @@ describe('CLI: composio triggers listen', () => {
161 )('[Given] --table [Then] prints compact table rows', it => {
162 it.scoped('prints table header and event row', () =>
163 Effect.gen(function* () {
164 - yield* cli(['triggers', 'listen', '--table', '--max-events', '1']);
164 + yield* cli(['manage', 'triggers', 'listen', '--table', '--max-events', '1']);
165 const lines = yield* MockConsole.getLines({ stripAnsi: true });
166 const output = lines.join('\n');
167
@@ -185,7 +185,7 @@ describe('CLI: composio triggers listen', () => {
185 layer(TestLive())('[Given] no API key [Then] warns user to login', it => {
186 it.scoped('warns user to login', () =>
187 Effect.gen(function* () {
188 - yield* cli(['triggers', 'listen']);
188 + yield* cli(['manage', 'triggers', 'listen']);
189 const lines = yield* MockConsole.getLines({ stripAnsi: true });
190 const output = lines.join('\n');
191 expect(output).toContain('not logged in');
@@ -205,6 +205,7 @@ describe('CLI: composio triggers listen', () => {
205 Effect.gen(function* () {
206 delete process.env.COMPOSIO_WEBHOOK_SECRET;
207 yield* cli([
208 + 'manage',
209 'triggers',
210 'listen',
211 '--forward',
@@ -247,7 +248,7 @@ describe('CLI: composio triggers listen', () => {
248 Effect.tryPromise(() => resource.close()).pipe(Effect.catchAll(() => Effect.void))
249 );
250
250 - yield* cli(['triggers', 'listen', '--forward', server.url, '--max-events', '1']);
251 + yield* cli(['manage', 'triggers', 'listen', '--forward', server.url, '--max-events', '1']);
252
253 const request = yield* Effect.tryPromise({
254 try: () =>
ts/packages/cli/test/src/commands/triggers/triggers.mutations.cmd.test.ts
+25 -9
@@ -7,13 +7,14 @@ const testConfigProvider = ConfigProvider.fromMap(
7 new Map([['COMPOSIO_USER_API_KEY', 'test_api_key']])
8 ).pipe(extendConfigProvider);
9
10 -describe('CLI: composio triggers mutations', () => {
10 +describe('CLI: composio manage triggers mutations', () => {
11 layer(TestLive({ baseConfigProvider: testConfigProvider }))(
12 '[Given] create with valid args [Then] creates trigger',
13 it => {
14 it.scoped('creates trigger and prints id', () =>
15 Effect.gen(function* () {
16 yield* cli([
17 + 'manage',
18 'triggers',
19 'create',
20 'GMAIL_NEW_GMAIL_MESSAGE',
@@ -35,7 +36,14 @@ describe('CLI: composio triggers mutations', () => {
36 it => {
37 it.scoped('rejects invalid trigger config JSON', () =>
38 Effect.gen(function* () {
38 - yield* cli(['triggers', 'create', 'GMAIL_NEW_GMAIL_MESSAGE', '--trigger-config', '{']);
39 + yield* cli([
40 + 'manage',
41 + 'triggers',
42 + 'create',
43 + 'GMAIL_NEW_GMAIL_MESSAGE',
44 + '--trigger-config',
45 + '{',
46 + ]);
47 const lines = yield* MockConsole.getLines({ stripAnsi: true });
48 const output = lines.join('\n');
49
@@ -50,7 +58,7 @@ describe('CLI: composio triggers mutations', () => {
58 it => {
59 it.scoped('enables trigger successfully', () =>
60 Effect.gen(function* () {
53 - yield* cli(['triggers', 'enable', 'trg_123']);
61 + yield* cli(['manage', 'triggers', 'enable', 'trg_123']);
62 const lines = yield* MockConsole.getLines({ stripAnsi: true });
63 const output = lines.join('\n');
64 expect(output).toContain('enabled');
@@ -64,7 +72,7 @@ describe('CLI: composio triggers mutations', () => {
72 it => {
73 it.scoped('disables trigger successfully', () =>
74 Effect.gen(function* () {
67 - yield* cli(['triggers', 'disable', 'trg_123']);
75 + yield* cli(['manage', 'triggers', 'disable', 'trg_123']);
76 const lines = yield* MockConsole.getLines({ stripAnsi: true });
77 const output = lines.join('\n');
78 expect(output).toContain('disabled');
@@ -78,7 +86,7 @@ describe('CLI: composio triggers mutations', () => {
86 it => {
87 it.scoped('deletes trigger successfully', () =>
88 Effect.gen(function* () {
81 - yield* cli(['triggers', 'delete', 'trg_123', '--yes']);
89 + yield* cli(['manage', 'triggers', 'delete', 'trg_123', '--yes']);
90 const lines = yield* MockConsole.getLines({ stripAnsi: true });
91 const output = lines.join('\n');
92 expect(output).toContain('deleted');
@@ -93,6 +101,7 @@ describe('CLI: composio triggers mutations', () => {
101 it.scoped('rejects array JSON in --trigger-config', () =>
102 Effect.gen(function* () {
103 yield* cli([
104 + 'manage',
105 'triggers',
106 'create',
107 'GMAIL_NEW_GMAIL_MESSAGE',
@@ -108,7 +117,14 @@ describe('CLI: composio triggers mutations', () => {
117
118 it.scoped('rejects number JSON in --trigger-config', () =>
119 Effect.gen(function* () {
111 - yield* cli(['triggers', 'create', 'GMAIL_NEW_GMAIL_MESSAGE', '--trigger-config', '42']);
120 + yield* cli([
121 + 'manage',
122 + 'triggers',
123 + 'create',
124 + 'GMAIL_NEW_GMAIL_MESSAGE',
125 + '--trigger-config',
126 + '42',
127 + ]);
128 const lines = yield* MockConsole.getLines({ stripAnsi: true });
129 const output = lines.join('\n');
130
@@ -123,7 +139,7 @@ describe('CLI: composio triggers mutations', () => {
139 it => {
140 it.scoped('shows missing id warning', () =>
141 Effect.gen(function* () {
126 - yield* cli(['triggers', 'enable']);
142 + yield* cli(['manage', 'triggers', 'enable']);
143 const lines = yield* MockConsole.getLines({ stripAnsi: true });
144 const output = lines.join('\n');
145 expect(output).toContain('Missing required argument');
@@ -137,7 +153,7 @@ describe('CLI: composio triggers mutations', () => {
153 it => {
154 it.scoped('shows missing id warning', () =>
155 Effect.gen(function* () {
140 - yield* cli(['triggers', 'disable']);
156 + yield* cli(['manage', 'triggers', 'disable']);
157 const lines = yield* MockConsole.getLines({ stripAnsi: true });
158 const output = lines.join('\n');
159 expect(output).toContain('Missing required argument');
@@ -151,7 +167,7 @@ describe('CLI: composio triggers mutations', () => {
167 it => {
168 it.scoped('shows missing id warning', () =>
169 Effect.gen(function* () {
154 - yield* cli(['triggers', 'delete']);
170 + yield* cli(['manage', 'triggers', 'delete']);
171 const lines = yield* MockConsole.getLines({ stripAnsi: true });
172 const output = lines.join('\n');
173 expect(output).toContain('Missing required argument');
ts/packages/cli/test/src/commands/triggers/triggers.status.cmd.test.ts
+13 -7
@@ -55,13 +55,13 @@ const testConfigProvider = ConfigProvider.fromMap(
55 new Map([['COMPOSIO_USER_API_KEY', 'test_api_key']])
56 ).pipe(extendConfigProvider);
57
58 -describe('CLI: composio triggers status', () => {
58 +describe('CLI: composio manage triggers status', () => {
59 layer(TestLive({ baseConfigProvider: testConfigProvider, triggersData }))(
60 '[Given] no flags [Then] lists active triggers only',
61 it => {
62 it.scoped('lists active trigger instances', () =>
63 Effect.gen(function* () {
64 - yield* cli(['triggers', 'status']);
64 + yield* cli(['manage', 'triggers', 'status']);
65 const lines = yield* MockConsole.getLines({ stripAnsi: true });
66 const output = lines.join('\n');
67
@@ -79,7 +79,7 @@ describe('CLI: composio triggers status', () => {
79 it => {
80 it.scoped('includes disabled trigger instances', () =>
81 Effect.gen(function* () {
82 - yield* cli(['triggers', 'status', '--show-disabled']);
82 + yield* cli(['manage', 'triggers', 'status', '--show-disabled']);
83 const lines = yield* MockConsole.getLines({ stripAnsi: true });
84 const output = lines.join('\n');
85
@@ -96,7 +96,7 @@ describe('CLI: composio triggers status', () => {
96 it => {
97 it.scoped('filters by user_ids', () =>
98 Effect.gen(function* () {
99 - yield* cli(['triggers', 'status', '--user-ids', 'user_123']);
99 + yield* cli(['manage', 'triggers', 'status', '--user-ids', 'user_123']);
100 const lines = yield* MockConsole.getLines({ stripAnsi: true });
101 const output = lines.join('\n');
102
@@ -113,7 +113,13 @@ describe('CLI: composio triggers status', () => {
113 it => {
114 it.scoped('normalizes trigger names to uppercase', () =>
115 Effect.gen(function* () {
116 - yield* cli(['triggers', 'status', '--trigger-names', 'gmail_new_gmail_message']);
116 + yield* cli([
117 + 'manage',
118 + 'triggers',
119 + 'status',
120 + '--trigger-names',
121 + 'gmail_new_gmail_message',
122 + ]);
123 const lines = yield* MockConsole.getLines({ stripAnsi: true });
124 const output = lines.join('\n');
125
@@ -130,7 +136,7 @@ describe('CLI: composio triggers status', () => {
136 it => {
137 it.scoped('filters by toolkit prefix in trigger name', () =>
138 Effect.gen(function* () {
133 - yield* cli(['triggers', 'status', '--toolkits', 'slack']);
139 + yield* cli(['manage', 'triggers', 'status', '--toolkits', 'slack']);
140 const lines = yield* MockConsole.getLines({ stripAnsi: true });
141 const output = lines.join('\n');
142
@@ -145,7 +151,7 @@ describe('CLI: composio triggers status', () => {
151 layer(TestLive())('[Given] no API key [Then] warns user to login', it => {
152 it.scoped('warns user to login', () =>
153 Effect.gen(function* () {
148 - yield* cli(['triggers', 'status']);
154 + yield* cli(['manage', 'triggers', 'status']);
155 const lines = yield* MockConsole.getLines({ stripAnsi: true });
156 const output = lines.join('\n');
157