@devries-cameron20 / composio-1 / commits / 97a5218dc
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.

Move CLI manage commands under `dev` namespace (#3010)

## Summary - Moved developer-oriented CLI commands from `manage` to the `dev` namespace. - Updated command registrations, help text, hints, and examples across auth configs, connected accounts, toolkits, triggers, logs, tools, orgs, and projects. - Removed the old `manage` entrypoint and adjusted command routing and error guidance to match the new structure. - Updated the affected CLI tests to reflect the new command paths. ## Testing - Not run (not requested). - Updated command test snapshots/expectations in the CLI test suite to match the renamed namespace. - Verified help text and inline hints were rewritten from `composio manage ...` to `composio dev ...` in the touched commands.

Rahul Tarak committed Mar 24, 2026 at 20:51 UTC 97a5218dc697aa6bf844ef54c6b3ff6e10f63abe
76 files changed +435 -531
ts/e2e-tests/cli/toolkits/info/README.md
+2 -2
@@ -1,6 +1,6 @@
1 -# CLI `composio manage toolkits info` Test
1 +# CLI `composio dev toolkits info` Test
2
3 -Verifies that `composio manage toolkits info <slug>` returns detailed toolkit JSON in piped mode, handles invalid slugs gracefully, and supports stdout redirection.
3 +Verifies that `composio dev 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 manage toolkits info` e2e test
2 + * CLI `composio dev 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 manage toolkits info gmail');
38 + validResult = await runCmd('composio dev toolkits info gmail');
39 redirectResult = await runCmd({
40 - command: 'composio manage toolkits info gmail > out.json',
40 + command: 'composio dev toolkits info gmail > out.json',
41 files: ['out.json'],
42 });
43 - invalidResult = await runCmd('composio manage toolkits info nonexistent_toolkit_xyz12345');
44 - missingSlugResult = await runCmd('composio manage toolkits info');
43 + invalidResult = await runCmd('composio dev toolkits info nonexistent_toolkit_xyz12345');
44 + missingSlugResult = await runCmd('composio dev toolkits info');
45 }, TIMEOUTS.FIXTURE);
46
47 - describe('composio manage toolkits info gmail (valid slug)', () => {
47 + describe('composio dev 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 manage toolkits info gmail > out.json (stdout redirection)', () => {
92 + describe('composio dev 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 manage toolkits info nonexistent_toolkit_xyz12345 (invalid slug)', () => {
112 + describe('composio dev 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 manage toolkits info (missing slug)', () => {
126 + describe('composio dev 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 manage toolkits list` Test
1 +# CLI `composio dev toolkits list` Test
2
3 -Verifies that `composio manage toolkits list` returns toolkits as JSON in piped mode with correct `--query` filtering behavior.
3 +Verifies that `composio dev 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 manage toolkits list` e2e test
2 + * CLI `composio dev 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 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');
31 + exactResult = await runCmd('composio dev toolkits list --query gmail --limit 1');
32 + prefixResult = await runCmd('composio dev toolkits list --query gmai --limit 1');
33 + noFuzzyResult = await runCmd('composio dev toolkits list --query gmal --limit 1');
34 }, TIMEOUTS.FIXTURE);
35
36 - describe('composio manage toolkits list --query gmail --limit 1 (exact slug)', () => {
36 + describe('composio dev 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 manage toolkits list --query gmai --limit 1 (prefix search)', () => {
70 + describe('composio dev 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 manage toolkits list --query gmal --limit 1 (no fuzzy search)', () => {
91 + describe('composio dev 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 manage toolkits search` Test
1 +# CLI `composio dev toolkits search` Test
2
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.
3 +Verifies that `composio dev 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 manage toolkits search` e2e test
2 + * CLI `composio dev 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 manage toolkits search gmail');
39 - limitResult = await runCmd('composio manage toolkits search gmail --limit 1');
38 + validResult = await runCmd('composio dev toolkits search gmail');
39 + limitResult = await runCmd('composio dev toolkits search gmail --limit 1');
40 redirectResult = await runCmd({
41 - command: 'composio manage toolkits search gmail --limit 1 > out.json',
41 + command: 'composio dev toolkits search gmail --limit 1 > out.json',
42 files: ['out.json'],
43 });
44 - noResultsResult = await runCmd('composio manage toolkits search xyznonexistent_abc_12345');
44 + noResultsResult = await runCmd('composio dev toolkits search xyznonexistent_abc_12345');
45 }, TIMEOUTS.FIXTURE);
46
47 - describe('composio manage toolkits search gmail (known query)', () => {
47 + describe('composio dev 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 manage toolkits search gmail --limit 1 (with limit)', () => {
79 + describe('composio dev 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 manage toolkits search gmail --limit 1 > out.json (stdout redirection)', () => {
100 + describe('composio dev 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 manage toolkits search xyznonexistent_abc_12345 (no results)', () => {
121 + describe('composio dev toolkits search xyznonexistent_abc_12345 (no results)', () => {
122 it('exits successfully', () => {
123 expect(noResultsResult.exitCode).toBe(0);
124 });
ts/packages/cli/src/analytics/events.ts
+8 -8
@@ -42,12 +42,12 @@ const KNOWN_COMMAND_TOKENS = new Set([
42 'install',
43 'dev',
44 'generate',
45 - 'manage',
45 'tools',
46 'toolkits',
47 'toolkit',
48 'search',
49 'execute',
50 + 'playground-execute',
51 'link',
52 'proxy',
53 'artifacts',
@@ -206,7 +206,7 @@ const getExecuteCommandProperties = (context: CliCommandTelemetryContext) => {
206 cli_version: context.cliVersion,
207 command_path: context.commandPath,
208 duration_ms: Date.now() - context.startedAt,
209 - surface: context.commandPath === 'execute' ? 'root' : 'manage',
209 + surface: context.commandPath === 'execute' ? 'root' : 'dev',
210 tool_slug: slug,
211 tool_name: slug,
212 toolkit_slug: typeof slug === 'string' ? toolkitFromToolSlug(slug) : undefined,
@@ -302,13 +302,13 @@ const getProxyCommandProperties = (context: CliCommandTelemetryContext) => ({
302 });
303
304 const isExecuteCommand = (commandPath: string): boolean =>
305 - commandPath === 'execute' || commandPath === 'manage tools execute';
305 + commandPath === 'execute' || commandPath === 'dev playground-execute';
306
307 const isSearchCommand = (commandPath: string): boolean =>
308 - commandPath === 'search' || commandPath === 'manage tools search';
308 + commandPath === 'search' || commandPath === 'dev toolkits search';
309
310 const isLinkCommand = (commandPath: string): boolean =>
311 - commandPath === 'link' || commandPath === 'manage connected-accounts link';
311 + commandPath === 'link' || commandPath === 'dev connected-accounts link';
312
313 const isLoginCommand = (commandPath: string): boolean => commandPath === 'login';
314
@@ -490,7 +490,7 @@ export const getToolExecuteValidationFailedEvent = (params: {
490 readonly toolSlug: string;
491 readonly args: Record<string, unknown>;
492 readonly error: ToolInputValidationError;
493 - readonly surface: 'root' | 'manage' | 'dev';
493 + readonly surface: 'root' | 'dev';
494 readonly projectMode: 'consumer' | 'developer';
495 readonly stage: 'dry_run' | 'validation' | 'execution';
496 }): TrackEvent => ({
@@ -523,7 +523,7 @@ export const isMaybeToolNotFoundError = (params: {
523 export const getToolExecuteToolNotFoundEvent = (params: {
524 readonly toolSlug: string;
525 readonly args: Record<string, unknown>;
526 - readonly surface: 'root' | 'manage' | 'dev';
526 + readonly surface: 'root' | 'dev';
527 readonly projectMode: 'consumer' | 'developer';
528 readonly stage: 'schema_fetch' | 'dry_run' | 'execution';
529 readonly errorSlug?: string;
@@ -551,7 +551,7 @@ export const getToolExecuteToolNotFoundEvent = (params: {
551 export const getToolExecuteFailedEvent = (params: {
552 readonly toolSlug: string;
553 readonly args: Record<string, unknown>;
554 - readonly surface: 'root' | 'manage' | 'dev';
554 + readonly surface: 'root' | 'dev';
555 readonly projectMode: 'consumer' | 'developer';
556 readonly stage: 'schema_fetch' | 'dry_run' | 'execution';
557 readonly errorSlug?: string;
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 manage auth-configs <command>
12 + * composio dev 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 manage auth-configs create "my-gmail-config" --toolkit "gmail"
43 + * composio dev auth-configs create "my-gmail-config" --toolkit "gmail"
44 *
45 * # Custom auth with specific scheme
46 - * composio manage auth-configs create "custom-gmail" --toolkit "gmail" --auth-scheme "OAUTH2" --scopes "send_email"
46 + * composio dev auth-configs create "custom-gmail" --toolkit "gmail" --auth-scheme "OAUTH2" --scopes "send_email"
47 *
48 * # White-labeling with custom credentials
49 - * composio manage auth-configs create "custom-gmail" --toolkit "gmail" --auth-scheme "OAUTH2" --custom-credentials '{"client_id":"...","client_secret":"..."}'
49 + * composio dev 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 manage auth-configs create "name" --toolkit "gmail" --custom-credentials \'{"client_id":"...","client_secret":"..."}\''
70 + 'Example:\n> composio dev 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 manage toolkits info "${toolkit}"`,
120 + hint: `Check available auth schemes for "${toolkit}":\n> composio dev 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 manage auth-configs info "${redactedId}"`);
138 + yield* ui.log.step(`To view details:\n> composio dev 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 manage auth-configs delete "ac_1232323"
28 - * composio manage auth-configs delete "ac_1232323" --yes
27 + * composio dev auth-configs delete "ac_1232323"
28 + * composio dev 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 manage auth-configs delete "ac_1232323"\n\nTo find auth config IDs:\n> composio manage auth-configs list'
42 + 'Try specifying an auth config ID, e.g.:\n> composio dev auth-configs delete "ac_1232323"\n\nTo find auth config IDs:\n> composio dev 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 manage auth-configs list',
69 + hint: 'Browse available auth configs:\n> composio dev 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 manage auth-configs info "ac_1232323"
20 + * composio dev 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 manage auth-configs info "ac_1232323"\n\nTo find auth config IDs:\n> composio manage auth-configs list'
34 + 'Try specifying an auth config ID, e.g.:\n> composio dev auth-configs info "ac_1232323"\n\nTo find auth config IDs:\n> composio dev 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 manage auth-configs list',
50 + hint: 'Browse available auth configs:\n> composio dev 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 manage auth-configs delete "${redactedId}"`
68 + `To delete this auth config:\n> composio dev 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 manage auth-configs list
33 - * composio manage auth-configs list --toolkits "gmail"
34 - * composio manage auth-configs list --query "my config" --limit 10
32 + * composio dev auth-configs list
33 + * composio dev auth-configs list --toolkits "gmail"
34 + * composio dev 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 manage toolkits list`
58 + ? `No auth configs found for toolkit "${toolkits.value}". Verify the toolkit slug with:\n> composio dev 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 manage auth-configs info "${redactedId}"`
77 + `To view details of an auth config:\n> composio dev 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 manage connected-accounts delete "con_1a2b3c4d5e6f"
28 - * composio manage connected-accounts delete "con_1a2b3c4d5e6f" --yes
27 + * composio dev connected-accounts delete "con_1a2b3c4d5e6f"
28 + * composio dev 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 manage connected-accounts delete "con_1a2b3c4d5e6f"\n\nTo find connected account IDs:\n> composio manage connected-accounts list'
42 + 'Try specifying a connected account ID, e.g.:\n> composio dev connected-accounts delete "con_1a2b3c4d5e6f"\n\nTo find connected account IDs:\n> composio dev 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 manage connected-accounts list',
72 + hint: 'Browse available connected accounts:\n> composio dev 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 manage connected-accounts info "con_1a2b3c4d5e6f"
20 + * composio dev 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 manage connected-accounts info "con_1a2b3c4d5e6f"\n\nTo find connected account IDs:\n> composio manage connected-accounts list'
34 + 'Try specifying a connected account ID, e.g.:\n> composio dev connected-accounts info "con_1a2b3c4d5e6f"\n\nTo find connected account IDs:\n> composio dev 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 manage connected-accounts list',
49 + hint: 'Browse available connected accounts:\n> composio dev 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 manage connected-accounts delete "${redactedId}"`
67 + `To delete this connected account:\n> composio dev 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
+7 -7
@@ -170,7 +170,7 @@ const runConnectedAccountsLink = (params: {
170 if (Option.isSome(params.authConfig)) {
171 return yield* Effect.fail(
172 new Error(
173 - 'Top-level `composio link` is consumer-only and does not accept `--auth-config`. Use `composio manage connected-accounts link --auth-config ...` for developer-scoped usage.'
173 + 'Top-level `composio link` is consumer-only and does not accept `--auth-config`. Use `composio dev connected-accounts link --auth-config ...` for developer-scoped usage.'
174 )
175 );
176 }
@@ -179,8 +179,8 @@ const runConnectedAccountsLink = (params: {
179 if (Option.isSome(params.toolkit) && Option.isSome(params.authConfig)) {
180 yield* ui.log.error(
181 'Cannot use both <toolkit> and --auth-config. Choose one:\n' +
182 - ' Tool Router: composio manage connected-accounts link <toolkit>\n' +
183 - ' Legacy: composio manage connected-accounts link --auth-config <id>'
182 + ' Tool Router: composio dev connected-accounts link <toolkit>\n' +
183 + ' Legacy: composio dev connected-accounts link --auth-config <id>'
184 );
185 return;
186 }
@@ -190,8 +190,8 @@ const runConnectedAccountsLink = (params: {
190 params.rootOnly
191 ? 'Missing argument. Provide a toolkit slug:\n composio link github'
192 : 'Missing argument. Provide a toolkit slug or --auth-config:\n' +
193 - ' composio manage connected-accounts link github\n' +
194 - ' composio manage connected-accounts link --auth-config "ac_..."'
193 + ' composio dev connected-accounts link github\n' +
194 + ' composio dev connected-accounts link --auth-config "ac_..."'
195 );
196 return;
197 }
@@ -251,7 +251,7 @@ const runConnectedAccountsLink = (params: {
251 extractMessage(error) ?? `Failed to create link for auth config "${authConfigId}".`;
252 yield* ui.log.error(message);
253 yield* ui.log.step(
254 - 'Browse available auth configs:\n> composio manage auth-configs list'
254 + 'Browse available auth configs:\n> composio dev auth-configs list'
255 );
256 return Option.none();
257 })
@@ -329,7 +329,7 @@ const runConnectedAccountsLink = (params: {
329 extractMessage(error) ?? `Failed to create link for toolkit "${toolkitSlug}".`;
330 yield* ui.log.error(message);
331 yield* Effect.logDebug('Link error:', error);
332 - yield* ui.log.step('Browse available toolkits:\n> composio manage toolkits list');
332 + yield* ui.log.step('Browse available toolkits:\n> composio dev toolkits list');
333 return Option.none();
334 })
335 )
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 manage connected-accounts list
42 - * composio manage connected-accounts list --toolkits "gmail"
43 - * composio manage connected-accounts list --user-id "default" --status ACTIVE
41 + * composio dev connected-accounts list
42 + * composio dev connected-accounts list --toolkits "gmail"
43 + * composio dev 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 manage toolkits list`;
73 + hint = `No connected accounts found for toolkit "${toolkits.value}". Verify the toolkit slug with:\n> composio dev 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 manage connected-accounts info "${redactedId}"`
98 + `To view details of a connected account:\n> composio dev 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 manage connected-accounts whoami "con_1a2b3c4d5e6f"
23 + * composio dev 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 manage connected-accounts whoami "con_1a2b3c4d5e6f"\n\nTo find connected account IDs:\n> composio manage connected-accounts list'
37 + 'Try specifying a connected account ID, e.g.:\n> composio dev connected-accounts whoami "con_1a2b3c4d5e6f"\n\nTo find connected account IDs:\n> composio dev 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 manage connected-accounts list',
52 + hint: 'Browse available connected accounts:\n> composio dev 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 manage connected-accounts <command>
13 + * composio dev connected-accounts <command>
14 * ```
15 */
16 export const connectedAccountsCmd = Command.make('connected-accounts').pipe(
ts/packages/cli/src/commands/dev.cmd.ts
+19 -2
@@ -3,10 +3,27 @@ import { initCmd } from './init.cmd';
3 import { triggersCmd$Listen } from './triggers/commands/triggers.listen.cmd';
4 import { logsCmd } from './logs-cmd/logs.cmd';
5 import { devToolsCmd$Execute } from './tools/commands/tools.execute.cmd';
6 +import { toolkitsCmd } from './toolkits/toolkits.cmd';
7 +import { authConfigsCmd } from './auth-configs/auth-configs.cmd';
8 +import { connectedAccountsCmd } from './connected-accounts/connected-accounts.cmd';
9 +import { triggersCmd } from './triggers/triggers.cmd';
10 +import { orgsCmd } from './orgs/orgs.cmd';
11 +import { projectsCmd } from './projects/projects.cmd';
12
13 export const devCmd = Command.make('dev').pipe(
14 Command.withDescription(
9 - 'Developer workflows: initialize a local project, execute tools with playground users, listen for triggers, and inspect logs.'
15 + 'Developer workflows: initialize local project context, test tool executions against playground users, inspect logs, and manage orgs, projects, toolkits, auth configs, accounts, and triggers.'
16 ),
11 - Command.withSubcommands([initCmd, devToolsCmd$Execute, triggersCmd$Listen, logsCmd])
17 + Command.withSubcommands([
18 + initCmd,
19 + devToolsCmd$Execute,
20 + triggersCmd$Listen,
21 + logsCmd,
22 + toolkitsCmd,
23 + authConfigsCmd,
24 + connectedAccountsCmd,
25 + triggersCmd,
26 + orgsCmd,
27 + projectsCmd,
28 + ])
29 );
ts/packages/cli/src/commands/index.ts
+3 -5
@@ -14,7 +14,6 @@ import { proxyCmd } from './proxy.cmd';
14 import { artifactsCmd } from './artifacts.cmd';
15 import { installCmd } from './install.cmd';
16 import { generateCmd } from './generate/generate.cmd';
17 -import { manageCmd } from './manage/manage.cmd';
17 import { devCmd } from './dev.cmd';
18 import {
19 runParallelToolsExecuteFromArgv,
@@ -52,7 +51,6 @@ const $cmd = $defaultCmd.pipe(
51 rootConnectedAccountsCmd$Link,
52 rootToolsCmd$Execute,
53 generateCmd,
55 - manageCmd,
54 ])
55 );
56 export const rootCommand = $cmd;
@@ -60,13 +58,13 @@ export const rootCommand = $cmd;
58 const parseExecuteInputHelpSlug = (argv: ReadonlyArray<string>): string | undefined => {
59 const args = argv.slice(2);
60 const isRootExecute = args[0] === 'execute';
63 - const isManageExecute = args[0] === 'manage' && args[1] === 'tools' && args[2] === 'execute';
64 - if (!isRootExecute && !isManageExecute) return undefined;
61 + const isDevExecute = args[0] === 'dev' && args[1] === 'playground-execute';
62 + if (!isRootExecute && !isDevExecute) return undefined;
63
64 const hasHelp = args.includes('--help') || args.includes('-h');
65 if (!hasHelp) return undefined;
66
69 - const tail = isRootExecute ? args.slice(1) : args.slice(3);
67 + const tail = isRootExecute ? args.slice(1) : args.slice(2);
68 for (let i = 0; i < tail.length; i += 1) {
69 const token = tail[i];
70 if (!token) continue;
ts/packages/cli/src/commands/login.cmd.ts
+3 -3
@@ -114,7 +114,7 @@ const storeCredentials = (params: {
114 yield* ui.log.success(email ? `Logged in as ${email}` : 'Logged in successfully');
115 if (!skipHints) {
116 yield* ui.log.info(commandHintStep('Set up developer project context', 'dev.init'));
117 - yield* ui.log.info(commandHintStep('Switch your default org later', 'manage.orgs.switch'));
117 + yield* ui.log.info(commandHintStep('Switch your default org later', 'dev.orgs.switch'));
118 }
119
120 // Emit structured JSON for piped/scripted consumption (agent-native)
@@ -246,7 +246,7 @@ const loginWithKey = (params: { key: string; noWait: boolean; skipOrgProjectPick
246 })
247 );
248 yield* ui.log.info(commandHintStep('Set up developer project context', 'dev.init'));
249 - yield* ui.log.info(commandHintStep('Switch your default org later', 'manage.orgs.switch'));
249 + yield* ui.log.info(commandHintStep('Switch your default org later', 'dev.orgs.switch'));
250 yield* ui.outro("You're all set!");
251 }
252 });
@@ -406,7 +406,7 @@ export const browserLogin = (params: {
406 })
407 );
408 yield* ui.log.info(commandHintStep('Set up developer project context', 'dev.init'));
409 - yield* ui.log.info(commandHintStep('Switch your default org later', 'manage.orgs.switch'));
409 + yield* ui.log.info(commandHintStep('Switch your default org later', 'dev.orgs.switch'));
410 yield* ui.outro("You're all set!");
411 }
412 });
ts/packages/cli/src/commands/logs-cmd/commands/logs.tools.cmd.ts
+6 -6
@@ -118,12 +118,12 @@ const logId = Args.text({ name: 'log_id' }).pipe(
118 *
119 * @example
120 * ```bash
121 - * composio manage logs tools --limit 50
122 - * composio manage logs tools <log_id>
123 - * composio manage logs tools --toolkit gmail --tool GMAIL_SEND_EMAIL
124 - * composio manage logs tools --connected-account-id con_123 --user-id user_123
125 - * composio manage logs tools --status success --auth-config-id ac_123
126 - * composio manage logs tools --from 1735689600000 --to 1735776000000
121 + * composio dev logs tools --limit 50
122 + * composio dev logs tools <log_id>
123 + * composio dev logs tools --toolkit gmail --tool GMAIL_SEND_EMAIL
124 + * composio dev logs tools --connected-account-id con_123 --user-id user_123
125 + * composio dev logs tools --status success --auth-config-id ac_123
126 + * composio dev logs tools --from 1735689600000 --to 1735776000000
127 * ```
128 */
129 export const logsCmd$Tools = Command.make(
ts/packages/cli/src/commands/logs-cmd/commands/logs.triggers.cmd.ts
+5 -5
@@ -79,11 +79,11 @@ const includePayload = Options.boolean('include-payload').pipe(
79 *
80 * @example
81 * ```bash
82 - * composio manage logs triggers <log_id>
83 - * composio manage logs triggers --trigger GMAIL_NEW_GMAIL_MESSAGE
84 - * composio manage logs triggers --trigger-id 77ac1dbf-6db0-4039-8dbe-e903b3f2057e
85 - * composio manage logs triggers --connected-account-id ca_123 --user-id user_123
86 - * composio manage logs triggers --log-id log_123
82 + * composio dev logs triggers <log_id>
83 + * composio dev logs triggers --trigger GMAIL_NEW_GMAIL_MESSAGE
84 + * composio dev logs triggers --trigger-id 77ac1dbf-6db0-4039-8dbe-e903b3f2057e
85 + * composio dev logs triggers --connected-account-id ca_123 --user-id user_123
86 + * composio dev logs triggers --log-id log_123
87 * ```
88 */
89 export const logsCmd$Triggers = Command.make(
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 manage logs <command>
10 + * composio dev logs <command>
11 * ```
12 */
13 export const logsCmd = Command.make('logs').pipe(
ts/packages/cli/src/commands/manage/manage.cmd.ts deleted
-34
@@ -1,34 +0,0 @@
1 -import { Command } from '@effect/cli';
2 -import { toolkitsCmd } from '../toolkits/toolkits.cmd';
3 -import { authConfigsCmd } from '../auth-configs/auth-configs.cmd';
4 -import { connectedAccountsCmd } from '../connected-accounts/connected-accounts.cmd';
5 -import { triggersCmd } from '../triggers/triggers.cmd';
6 -import { orgsCmd } from '../orgs/orgs.cmd';
7 -import { projectsCmd } from '../projects/projects.cmd';
8 -
9 -/**
10 - * CLI entry point for developer management commands.
11 - *
12 - * Groups orgs, toolkits, connected-accounts, triggers, auth-configs, and projects
13 - * under a single `composio manage` namespace.
14 - *
15 - * @example
16 - * ```bash
17 - * composio manage <command>
18 - * composio manage toolkits list
19 - * composio manage projects list
20 - * ```
21 - */
22 -export const manageCmd = Command.make('manage').pipe(
23 - Command.withDescription(
24 - 'Manage your developer orgs, toolkits, connected accounts, triggers, auth configs, and projects.'
25 - ),
26 - Command.withSubcommands([
27 - toolkitsCmd,
28 - authConfigsCmd,
29 - connectedAccountsCmd,
30 - triggersCmd,
31 - orgsCmd,
32 - projectsCmd,
33 - ])
34 -);
ts/packages/cli/src/commands/orgs/commands/orgs.list.cmd.ts
+2 -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 manage orgs list`);
29 + yield* ui.intro(`composio dev orgs list`);
30
31 const organizations = yield* ui.withSpinner(
32 'Loading organizations...',
@@ -52,7 +52,7 @@ export const orgsCmd$List = Command.make('list', { limit }, ({ limit }) =>
52 });
53 yield* ui.log.info(lines.join('\n'));
54 yield* ui.outro(
55 - 'Hint: run `composio manage orgs switch` to switch the default global org/project.'
55 + 'Hint: run `composio dev orgs switch` to switch the default global org/project.'
56 );
57
58 yield* ui.output(
ts/packages/cli/src/commands/orgs/commands/orgs.switch.cmd.ts
+1 -1
@@ -21,7 +21,7 @@ export const orgsCmd$Switch = Command.make('switch', { orgId, limit }, ({ orgId,
21
22 const ui = yield* TerminalUI;
23 const ctx = yield* ComposioUserContext;
24 - yield* ui.intro('composio manage orgs switch');
24 + yield* ui.intro('composio dev orgs switch');
25
26 const apiKey = Option.getOrUndefined(ctx.data.apiKey);
27 if (!apiKey) {
ts/packages/cli/src/commands/projects/commands/projects.list.cmd.ts
+3 -3
@@ -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 manage projects list');
25 + yield* ui.intro('composio dev 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 manage orgs switch` first, or pass `--org-id`.');
35 + yield* ui.outro('Hint: run `composio dev orgs switch` first, or pass `--org-id`.');
36 return;
37 }
38
@@ -66,7 +66,7 @@ export const projectsCmd$List = Command.make('list', { orgId, limit }, ({ orgId,
66 yield* ui.outro(
67 [
68 'Hint: run `composio dev init` in a directory to bind it to a developer project.',
69 - 'Run `composio manage orgs switch` to change your default org.',
69 + 'Run `composio dev orgs switch` to change your default org.',
70 ].join('\n')
71 );
72
ts/packages/cli/src/commands/root-help.ts
+56 -59
@@ -87,16 +87,13 @@ const OTHER_COMMANDS: ReadonlyArray<CompactCommand> = [
87 const DEVELOPER_COMMANDS: ReadonlyArray<CompactCommand> = [
88 {
89 name: 'dev',
90 - description: 'Developer workflows: init, playground execution, triggers, and logs.',
90 + description:
91 + 'Developer workflows and management: init, execute, logs, orgs, projects, toolkits, accounts, and triggers.',
92 },
93 {
94 name: 'generate',
95 description: 'Generate type stubs for toolkits, tools, and triggers (TypeScript | Python).',
96 },
96 - {
97 - name: 'manage',
98 - description: 'Manage orgs, toolkits, connected accounts, triggers, auth configs, and projects.',
99 - },
97 ];
98
99 // ── Account commands ───────────────────────────────────────────────────
@@ -514,11 +511,11 @@ const SUBCOMMAND_HELP: Record<string, SubcommandHelp> = {
511 { name: '-y, --yes', description: 'Auto-select the default org project' },
512 ],
513 },
517 - 'dev execute': {
514 + 'dev playground-execute': {
515 usage:
519 - 'composio dev execute <slug> [-d, --data text] [--user-id text] [--project-name text] [--dry-run] [--get-schema]',
516 + 'composio dev playground-execute <slug> [-d, --data text] [--user-id text] [--project-name text] [--dry-run] [--get-schema]',
517 description:
521 - 'Execute a tool with your playground test user against your developer project auth configs.',
518 + 'Test tool executions against playground users using your developer project auth configs.',
519 args: [{ name: '<slug>', description: 'Tool slug (e.g. "GITHUB_CREATE_ISSUE")' }],
520 options: [
521 { name: '-d, --data <text>', description: 'JSON arguments, @file, or - for stdin' },
@@ -559,11 +556,11 @@ const SUBCOMMAND_HELP: Record<string, SubcommandHelp> = {
556 { name: '--table', description: 'Show compact table rows' },
557 ],
558 },
562 - // ── Manage commands ───────────────────────────────────────────────────
559 + // ── Dev admin commands ─────────────────────────────────────────────────
560
564 - 'manage toolkits list': {
561 + 'dev toolkits list': {
562 usage:
566 - 'composio manage toolkits list [--query text] [--limit integer] [--connected] [--user-id text]',
563 + 'composio dev toolkits list [--query text] [--limit integer] [--connected] [--user-id text]',
564 description: 'List available toolkits with connection status.',
565 options: [
566 { name: '--query <text>', description: 'Text search by name, slug, or description' },
@@ -572,25 +569,25 @@ const SUBCOMMAND_HELP: Record<string, SubcommandHelp> = {
569 ],
570 flags: [{ name: '--connected', description: 'Show only connected toolkits' }],
571 },
575 - 'manage toolkits info': {
576 - usage: 'composio manage toolkits info [--user-id text] [-a, --all] [<slug>]',
572 + 'dev toolkits info': {
573 + usage: 'composio dev toolkits info [--user-id text] [-a, --all] [<slug>]',
574 description: 'View details of a specific toolkit.',
575 args: [{ name: '<slug>', description: 'Toolkit slug (e.g. "github")' }],
576 flags: [{ name: '-a, --all', description: 'Show all details' }],
577 },
581 - 'manage toolkits search': {
582 - usage: 'composio manage toolkits search <query> [--limit integer]',
578 + 'dev toolkits search': {
579 + usage: 'composio dev toolkits search <query> [--limit integer]',
580 description: 'Search toolkits by use case.',
581 args: [{ name: '<query>', description: 'Search query' }],
582 options: [{ name: '--limit <integer>', description: 'Number of results' }],
583 },
587 - 'manage toolkits version': {
588 - usage: 'composio manage toolkits version <slug>',
584 + 'dev toolkits version': {
585 + usage: 'composio dev toolkits version <slug>',
586 description: 'Show latest and recent versions for a toolkit.',
587 args: [{ name: '<slug>', description: 'Toolkit slug' }],
588 },
592 - 'manage auth-configs list': {
593 - usage: 'composio manage auth-configs list [--toolkits text] [--query text] [--limit integer]',
589 + 'dev auth-configs list': {
590 + usage: 'composio dev auth-configs list [--toolkits text] [--query text] [--limit integer]',
591 description: 'List auth configs.',
592 options: [
593 { name: '--toolkits <text>', description: 'Filter by toolkit slugs' },
@@ -598,14 +595,14 @@ const SUBCOMMAND_HELP: Record<string, SubcommandHelp> = {
595 { name: '--limit <integer>', description: 'Number of results' },
596 ],
597 },
601 - 'manage auth-configs info': {
602 - usage: 'composio manage auth-configs info [<id>]',
598 + 'dev auth-configs info': {
599 + usage: 'composio dev auth-configs info [<id>]',
600 description: 'View details of a specific auth config.',
601 args: [{ name: '<id>', description: 'Auth config ID' }],
602 },
606 - 'manage auth-configs create': {
603 + 'dev auth-configs create': {
604 usage:
608 - 'composio manage auth-configs create --toolkit text [--auth-scheme text] [--scopes text] [--custom-credentials text] [<name>]',
605 + 'composio dev auth-configs create --toolkit text [--auth-scheme text] [--scopes text] [--custom-credentials text] [<name>]',
606 description: 'Create a new auth config.',
607 args: [{ name: '<name>', description: 'Auth config name' }],
608 options: [
@@ -615,15 +612,15 @@ const SUBCOMMAND_HELP: Record<string, SubcommandHelp> = {
612 { name: '--custom-credentials <text>', description: 'Custom credentials JSON' },
613 ],
614 },
618 - 'manage auth-configs delete': {
619 - usage: 'composio manage auth-configs delete [-y, --yes] [<id>]',
615 + 'dev auth-configs delete': {
616 + usage: 'composio dev auth-configs delete [-y, --yes] [<id>]',
617 description: 'Delete an auth config.',
618 args: [{ name: '<id>', description: 'Auth config ID' }],
619 flags: [{ name: '-y, --yes', description: 'Skip confirmation prompt' }],
620 },
624 - 'manage connected-accounts list': {
621 + 'dev connected-accounts list': {
622 usage:
626 - 'composio manage connected-accounts list [--toolkits text] [--user-id text] [--status text] [--limit integer]',
623 + 'composio dev connected-accounts list [--toolkits text] [--user-id text] [--status text] [--limit integer]',
624 description: 'List connected accounts.',
625 options: [
626 { name: '--toolkits <text>', description: 'Filter by toolkit slugs' },
@@ -632,25 +629,25 @@ const SUBCOMMAND_HELP: Record<string, SubcommandHelp> = {
629 { name: '--limit <integer>', description: 'Number of results' },
630 ],
631 },
635 - 'manage connected-accounts info': {
636 - usage: 'composio manage connected-accounts info [<id>]',
632 + 'dev connected-accounts info': {
633 + usage: 'composio dev connected-accounts info [<id>]',
634 description: 'View details of a specific connected account.',
635 args: [{ name: '<id>', description: 'Connected account ID' }],
636 },
640 - 'manage connected-accounts whoami': {
641 - usage: 'composio manage connected-accounts whoami [<id>]',
637 + 'dev connected-accounts whoami': {
638 + usage: 'composio dev connected-accounts whoami [<id>]',
639 description: 'Show the external account profile for a connected account.',
640 args: [{ name: '<id>', description: 'Connected account ID' }],
641 },
645 - 'manage connected-accounts delete': {
646 - usage: 'composio manage connected-accounts delete [-y, --yes] [<id>]',
642 + 'dev connected-accounts delete': {
643 + usage: 'composio dev connected-accounts delete [-y, --yes] [<id>]',
644 description: 'Delete a connected account.',
645 args: [{ name: '<id>', description: 'Connected account ID' }],
646 flags: [{ name: '-y, --yes', description: 'Skip confirmation prompt' }],
647 },
651 - 'manage connected-accounts link': {
648 + 'dev connected-accounts link': {
649 usage:
653 - 'composio manage connected-accounts link [--auth-config text] [--user-id text] [--project-name text] [--no-browser] [--no-wait] [<toolkit>]',
650 + 'composio dev connected-accounts link [--auth-config text] [--user-id text] [--project-name text] [--no-browser] [--no-wait] [<toolkit>]',
651 description: 'Connect an external account so tools can act on your behalf.',
652 args: [{ name: '<toolkit>', description: 'Toolkit slug to link (e.g. "github", "gmail")' }],
653 options: [
@@ -663,22 +660,22 @@ const SUBCOMMAND_HELP: Record<string, SubcommandHelp> = {
660 { name: '--no-wait', description: 'Print link info and exit without waiting' },
661 ],
662 },
666 - 'manage triggers list': {
667 - usage: 'composio manage triggers list [--toolkits text] [--limit integer]',
663 + 'dev triggers list': {
664 + usage: 'composio dev triggers list [--toolkits text] [--limit integer]',
665 description: 'List available trigger types.',
666 options: [
667 { name: '--toolkits <text>', description: 'Filter by toolkit slugs' },
668 { name: '--limit <integer>', description: 'Number of results' },
669 ],
670 },
674 - 'manage triggers info': {
675 - usage: 'composio manage triggers info [<slug>]',
671 + 'dev triggers info': {
672 + usage: 'composio dev triggers info [<slug>]',
673 description: 'View details of a specific trigger type.',
674 args: [{ name: '<slug>', description: 'Trigger slug' }],
675 },
679 - 'manage triggers listen': {
676 + 'dev triggers listen': {
677 usage:
681 - 'composio manage triggers listen [--toolkits text] [--trigger-slug text] [--json] [--table] [--max-events int] [--forward url] [--out file]',
678 + 'composio dev triggers listen [--toolkits text] [--trigger-slug text] [--json] [--table] [--max-events int] [--forward url] [--out file]',
679 description: 'Listen to realtime trigger events and optionally forward them.',
680 options: [
681 { name: '--toolkits <text>', description: 'Filter by toolkit slugs, comma-separated' },
@@ -695,9 +692,9 @@ const SUBCOMMAND_HELP: Record<string, SubcommandHelp> = {
692 { name: '--table', description: 'Show compact table rows' },
693 ],
694 },
698 - 'manage triggers status': {
695 + 'dev triggers status': {
696 usage:
700 - 'composio manage triggers status [--user-ids text] [--toolkits text] [--trigger-ids text] [--show-disabled] [--limit integer]',
697 + 'composio dev triggers status [--user-ids text] [--toolkits text] [--trigger-ids text] [--show-disabled] [--limit integer]',
698 description: 'Show active triggers with optional filters.',
699 options: [
700 { name: '--user-ids <text>', description: 'Filter by user IDs' },
@@ -709,9 +706,9 @@ const SUBCOMMAND_HELP: Record<string, SubcommandHelp> = {
706 ],
707 flags: [{ name: '--show-disabled', description: 'Include disabled triggers' }],
708 },
712 - 'manage triggers create': {
709 + 'dev triggers create': {
710 usage:
714 - 'composio manage triggers create [--connected-account-id text] [--trigger-config text] [<trigger-name>]',
711 + 'composio dev triggers create [--connected-account-id text] [--trigger-config text] [<trigger-name>]',
712 description: 'Create a new trigger instance.',
713 args: [{ name: '<trigger-name>', description: 'Trigger type slug' }],
714 options: [
@@ -719,37 +716,37 @@ const SUBCOMMAND_HELP: Record<string, SubcommandHelp> = {
716 { name: '--trigger-config <text>', description: 'Trigger configuration JSON' },
717 ],
718 },
722 - 'manage triggers enable': {
723 - usage: 'composio manage triggers enable [<id>]',
719 + 'dev triggers enable': {
720 + usage: 'composio dev triggers enable [<id>]',
721 description: 'Enable a trigger instance.',
722 args: [{ name: '<id>', description: 'Trigger instance ID' }],
723 },
727 - 'manage triggers disable': {
728 - usage: 'composio manage triggers disable [<id>]',
724 + 'dev triggers disable': {
725 + usage: 'composio dev triggers disable [<id>]',
726 description: 'Disable a trigger instance.',
727 args: [{ name: '<id>', description: 'Trigger instance ID' }],
728 },
732 - 'manage triggers delete': {
733 - usage: 'composio manage triggers delete [-y, --yes] [<id>]',
729 + 'dev triggers delete': {
730 + usage: 'composio dev triggers delete [-y, --yes] [<id>]',
731 description: 'Delete a trigger instance.',
732 args: [{ name: '<id>', description: 'Trigger instance ID' }],
733 flags: [{ name: '-y, --yes', description: 'Skip confirmation prompt' }],
734 },
738 - 'manage orgs list': {
739 - usage: 'composio manage orgs list [--limit integer]',
735 + 'dev orgs list': {
736 + usage: 'composio dev orgs list [--limit integer]',
737 description: 'List organizations and show current global selection.',
738 options: [{ name: '--limit <integer>', description: 'Number of results' }],
739 },
743 - 'manage orgs switch': {
744 - usage: 'composio manage orgs switch [--org-id text] [--limit integer]',
740 + 'dev orgs switch': {
741 + usage: 'composio dev orgs switch [--org-id text] [--limit integer]',
742 description: 'Switch default organization context.',
743 options: [
744 { name: '--org-id <text>', description: 'Organization ID to switch to' },
745 { name: '--limit <integer>', description: 'Number of orgs to show in picker' },
746 ],
747 },
751 - 'manage projects list': {
752 - usage: 'composio manage projects list [--org-id text] [--limit integer]',
748 + 'dev projects list': {
749 + usage: 'composio dev projects list [--org-id text] [--limit integer]',
750 description: 'List developer projects for the current organization.',
751 options: [
752 { name: '--org-id <text>', description: 'Organization ID override' },
@@ -867,7 +864,7 @@ export function matchSubcommandHelp(argv: ReadonlyArray<string>): string | undef
864 if (last !== '--help' && last !== '-h') return undefined;
865
866 const cmdParts = args.slice(0, -1);
870 - // Try longest match first: "manage toolkits list" → "manage toolkits" → "manage"
867 + // Try longest match first: "dev toolkits list" → "dev toolkits" → "dev"
868 for (let len = cmdParts.length; len > 0; len--) {
869 const key = cmdParts.slice(0, len).join(' ');
870 if (key in SUBCOMMAND_HELP) return key;
@@ -899,7 +896,7 @@ export function printRootHelp(): Effect.Effect<void> {
896 'you what to fix.',
897 '',
898 `Use ${bold('dev')} when you are building an agent with Composio's SDK and want scaffolding,`,
902 - 'playground execution, triggers, and logs.',
899 + 'playground execution, logs, and developer-scoped management commands.',
900 '',
901 bold('USAGE'),
902 ` ${name} <command> [options]`,
ts/packages/cli/src/commands/toolkits/commands/toolkits.info.cmd.ts
+6 -6
@@ -32,8 +32,8 @@ const allDetails = Options.boolean('all').pipe(
32 *
33 * @example
34 * ```bash
35 - * composio manage toolkits info "gmail"
36 - * composio manage toolkits info "github" --user-id "alice"
35 + * composio dev toolkits info "gmail"
36 + * composio dev toolkits info "github" --user-id "alice"
37 * ```
38 */
39 export const toolkitsCmd$Info = Command.make(
@@ -52,7 +52,7 @@ export const toolkitsCmd$Info = Command.make(
52 if (Option.isNone(slug)) {
53 yield* ui.log.warn('Missing required argument: <slug>');
54 yield* ui.log.step(
55 - 'Try specifying a toolkit slug, e.g.:\n> composio manage toolkits info "gmail"'
55 + 'Try specifying a toolkit slug, e.g.:\n> composio dev toolkits info "gmail"'
56 );
57 return;
58 }
@@ -119,7 +119,7 @@ export const toolkitsCmd$Info = Command.make(
119 const message = extractMessage(error) ?? `Failed to fetch toolkit "${slugValue}".`;
120 yield* ui.log.error(message);
121 yield* Effect.logDebug('Toolkit info error:', error);
122 - yield* ui.log.step('Browse available toolkits:\n> composio manage toolkits list');
122 + yield* ui.log.step('Browse available toolkits:\n> composio dev toolkits list');
123 return Option.none();
124 })
125 )
@@ -141,7 +141,7 @@ export const toolkitsCmd$Info = Command.make(
141 Effect.map(r =>
142 r.items.map(s => ({
143 label: `${s.slug} — ${s.meta.description}`,
144 - command: `> composio manage toolkits info "${s.slug}"`,
144 + command: `> composio dev toolkits info "${s.slug}"`,
145 }))
146 ),
147 Effect.catchAll(() => Effect.succeed([] as { label: string; command: string }[]))
@@ -152,7 +152,7 @@ export const toolkitsCmd$Info = Command.make(
152 const lines = suggestions.map(s => ` ${s.label}`).join('\n');
153 yield* ui.log.step(`Did you mean?\n${lines}\n\n${first.command}`);
154 } else {
155 - yield* ui.log.step('Browse available toolkits:\n> composio manage toolkits list');
155 + yield* ui.log.step('Browse available toolkits:\n> composio dev toolkits list');
156 }
157 return;
158 }
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 manage toolkits list
46 - * composio manage toolkits list --query "email"
47 - * composio manage toolkits list --connected
48 - * composio manage toolkits list --user-id "alice"
45 + * composio dev toolkits list
46 + * composio dev toolkits list --query "email"
47 + * composio dev toolkits list --connected
48 + * composio dev toolkits list --user-id "alice"
49 * ```
50 */
51 export const toolkitsCmd$List = Command.make(
@@ -178,7 +178,7 @@ export const toolkitsCmd$List = Command.make(
178 const firstSlug = unified[0]?.slug;
179 if (firstSlug) {
180 yield* ui.log.step(
181 - `To view details of a toolkit:\n> composio manage toolkits info "${firstSlug}"`
181 + `To view details of a toolkit:\n> composio dev toolkits info "${firstSlug}"`
182 );
183 }
184 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 manage toolkits search "send emails"
29 - * composio manage toolkits search "messaging" --limit 5
28 + * composio dev toolkits search "send emails"
29 + * composio dev 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 manage toolkits info "${firstSlug}"`);
62 + yield* ui.log.step(`To view details:\n> composio dev 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 manage toolkits list');
41 + yield* ui.log.step('Browse available toolkits:\n> composio dev 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 manage connected-accounts link "${toolkit.slug}"`
237 + `${bold('Tip:')} Link this toolkit:\n> composio dev 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 manage toolkits <command>
12 + * composio dev toolkits <command>
13 * ```
14 */
15 export const toolkitsCmd = Command.make('toolkits').pipe(
ts/packages/cli/src/commands/tools/commands/tools.execute.cmd.ts
+17 -91
@@ -117,11 +117,11 @@ const parseArguments = (raw: string) =>
117 return parsed as Record<string, unknown>;
118 });
119
120 -const connectionTips = (toolSlug: string, surface: 'root' | 'manage' | 'dev') => {
120 +const connectionTips = (toolSlug: string, surface: 'root' | 'dev') => {
121 const toolkit = toolkitFromToolSlug(toolSlug);
122 const executeStep =
123 surface === 'dev'
124 - ? commandHintStep('Retry', 'dev.execute', {
124 + ? commandHintStep('Retry', 'dev.playgroundExecute', {
125 slug: toolSlug,
126 userId: '<user-id>',
127 data: '...',
@@ -133,7 +133,7 @@ const connectionTips = (toolSlug: string, surface: 'root' | 'manage' | 'dev') =>
133 return [
134 commandHintStep(
135 'Link the toolkit first',
136 - surface === 'dev' ? 'manage.connectedAccounts.link' : 'root.link',
136 + surface === 'dev' ? 'dev.connectedAccounts.link' : 'root.link',
137 surface === 'dev' ? { toolkit, userId: '<user-id>' } : { toolkit }
138 ),
139 executeStep.replace('Retry:', 'Then retry:'),
@@ -258,7 +258,7 @@ const emitExecuteFailureTelemetry = (params: {
258 readonly toolSlug: string;
259 readonly args: Record<string, unknown>;
260 readonly error: unknown;
261 - readonly surface: 'root' | 'manage' | 'dev';
261 + readonly surface: 'root' | 'dev';
262 readonly projectMode: 'consumer' | 'developer';
263 readonly stage: 'schema_fetch' | 'dry_run' | 'validation' | 'execution';
264 readonly mappedError?: ReturnType<typeof mapComposioError>;
@@ -343,7 +343,7 @@ export const showToolsExecuteInputHelp = (toolSlug: string) =>
343 handleHttpServerError(ui, {
344 fallbackMessage: `Tool "${toolSlug}" not found.`,
345 hint: [
346 - commandHintStep('Browse available toolkits', 'manage.toolkits.list'),
346 + commandHintStep('Browse available toolkits', 'dev.toolkits.list'),
347 commandHintStep('Then list tools', 'root.tools.list'),
348 ].join('\n'),
349 fallbackValue: Option.none(),
@@ -376,7 +376,7 @@ const handleExecutionError = (
376 context: {
377 toolSlug: string;
378 args: Record<string, unknown>;
379 - surface: 'root' | 'manage' | 'dev';
379 + surface: 'root' | 'dev';
380 projectMode: 'consumer' | 'developer';
381 stage: 'schema_fetch' | 'dry_run' | 'validation' | 'execution';
382 }
@@ -593,7 +593,7 @@ type RunToolsExecuteParams = {
593 data: Option.Option<string>;
594 userId: Option.Option<string>;
595 projectName: Option.Option<string>;
596 - surface: 'root' | 'manage' | 'dev';
596 + surface: 'root' | 'dev';
597 projectMode: 'consumer' | 'developer';
598 getSchema: boolean;
599 dryRun: boolean;
@@ -753,7 +753,7 @@ const resolveExecuteContext = (params: RunToolsExecuteParams) =>
753
754 const runConnectedToolkitFailFast = (params: {
755 readonly slug: string;
756 - readonly surface: 'root' | 'manage' | 'dev';
756 + readonly surface: 'root' | 'dev';
757 readonly ui: TerminalUI;
758 readonly resolvedProject: ResolvedExecuteContext['resolvedProject'];
759 readonly resolvedUserId: string;
@@ -851,7 +851,7 @@ const runConnectedToolkitFailFast = (params: {
851 // eslint-disable-next-line max-lines-per-function
852 const runExecuteWithSpinner = (params: {
853 readonly slug: string;
854 - readonly surface: 'root' | 'manage' | 'dev';
854 + readonly surface: 'root' | 'dev';
855 readonly projectMode: 'consumer' | 'developer';
856 readonly dryRun: boolean;
857 readonly ui: TerminalUI;
@@ -1166,7 +1166,7 @@ const runToolsExecute = (params: RunToolsExecuteParams) =>
1166 const parseParallelExecuteArgs = (
1167 args: ReadonlyArray<string>,
1168 config: {
1169 - readonly surface: 'root' | 'manage' | 'dev';
1169 + readonly surface: 'root' | 'dev';
1170 readonly projectMode: 'consumer' | 'developer';
1171 readonly allowUserId: boolean;
1172 readonly allowProjectName: boolean;
@@ -1312,17 +1312,7 @@ const isParallelExecuteCommand = (argv: ReadonlyArray<string>) => {
1312 allowProjectName: false,
1313 };
1314 }
1315 - if (args[0] === 'manage' && args[1] === 'tools' && args[2] === 'execute') {
1316 - return {
1317 - matched: args.includes('--parallel') || args.includes('-p'),
1318 - tail: args.slice(3),
1319 - surface: 'manage' as const,
1320 - projectMode: 'consumer' as const,
1321 - allowUserId: true,
1322 - allowProjectName: true,
1323 - };
1324 - }
1325 - if (args[0] === 'dev' && args[1] === 'execute') {
1315 + if (args[0] === 'dev' && args[1] === 'playground-execute') {
1316 return {
1317 matched: args.includes('--parallel') || args.includes('-p'),
1318 tail: args.slice(2),
@@ -1572,70 +1562,6 @@ export const runParallelToolsExecuteFromArgv = (argv: ReadonlyArray<string>) =>
1562 catch: error => (error instanceof Error ? error : new Error(String(error))),
1563 }).pipe(Effect.flatMap(runParallelToolsExecuteFromParsed));
1564 };
1575 -
1576 -export const toolsCmd$Execute = Command.make(
1577 - 'execute',
1578 - {
1579 - slug,
1580 - data,
1581 - userId,
1582 - projectName,
1583 - getSchema,
1584 - dryRun,
1585 - skipConnectionCheck,
1586 - skipToolParamsCheck,
1587 - noVerify,
1588 - },
1589 - ({
1590 - slug,
1591 - data,
1592 - userId,
1593 - projectName,
1594 - getSchema,
1595 - dryRun,
1596 - skipConnectionCheck,
1597 - skipToolParamsCheck,
1598 - noVerify,
1599 - }) =>
1600 - runToolsExecute({
1601 - slug,
1602 - data,
1603 - userId,
1604 - projectName,
1605 - surface: 'manage',
1606 - projectMode: 'consumer',
1607 - getSchema,
1608 - dryRun,
1609 - skipConnectionCheck,
1610 - skipToolParamsCheck,
1611 - noVerify,
1612 - })
1613 -).pipe(
1614 - Command.withDescription(
1615 - [
1616 - 'Execute a tool by slug. Validates inputs against cached schemas and checks connections',
1617 - 'automatically — just try it and it will tell you what to fix.',
1618 - '',
1619 - 'Examples:',
1620 - ' composio execute GMAIL_SEND_EMAIL -d \'{ recipient_email: "a@b.com", body: "Hello" }\'',
1621 - ' composio execute --parallel GMAIL_SEND_EMAIL -d \'{ recipient_email: "a@b.com", subject: "Hello", body: "World" }\' GITHUB_CREATE_ISSUE -d \'{ owner: "acme", repo: "app", title: "Bug report", body: "Steps to reproduce..." }\'',
1622 - " composio execute GMAIL_SEND_EMAIL --dry-run -d '{ ... }' Preview without executing",
1623 - ' composio execute GMAIL_SEND_EMAIL --get-schema Fetch and print the input schema',
1624 - '',
1625 - 'Flags:',
1626 - ' -p, --parallel Execute repeated TOOL_SLUG -d <json> groups concurrently',
1627 - ' --skip-connection-check Skip the linked-account check',
1628 - ' --skip-tool-params-check Skip input validation against cached schema',
1629 - ' --no-verify Skip both checks above',
1630 - '',
1631 - 'See also:',
1632 - ' composio search "<query>" Find tool slugs by use case',
1633 - ' composio tools info <slug> Schema summary with jq hints',
1634 - ' composio link <toolkit> Connect an account for a toolkit',
1635 - ].join('\n')
1636 - )
1637 -);
1638 -
1565 export const rootToolsCmd$Execute = Command.make(
1566 'execute',
1567 { slug, data, getSchema, dryRun, skipConnectionCheck, skipToolParamsCheck, noVerify },
@@ -1680,7 +1606,7 @@ export const rootToolsCmd$Execute = Command.make(
1606 );
1607
1608 export const devToolsCmd$Execute = Command.make(
1683 - 'execute',
1609 + 'playground-execute',
1610 {
1611 slug,
1612 data,
@@ -1719,15 +1645,15 @@ export const devToolsCmd$Execute = Command.make(
1645 ).pipe(
1646 Command.withDescription(
1647 [
1722 - 'Execute a tool with your playground test user id against your developer project auth configs.',
1648 + 'Test tool executions against playground users using your developer project auth configs.',
1649 'Uses --user-id when provided, otherwise falls back to your local or global playground test user id.',
1650 'Arguments are validated against cached tool schemas in `~/.composio/tool_definitions/` when available.',
1651 '',
1652 'Examples:',
1727 - ' composio dev execute GMAIL_SEND_EMAIL -d \'{ recipient_email: "a@b.com", body: "Hello" }\'',
1728 - ' composio dev execute --parallel GMAIL_SEND_EMAIL -d \'{ recipient_email: "a@b.com", subject: "Hello", body: "World" }\' GITHUB_CREATE_ISSUE -d \'{ owner: "acme", repo: "app", title: "Bug report", body: "Steps to reproduce..." }\'',
1729 - ' composio dev execute GMAIL_SEND_EMAIL --dry-run -d \'{ recipient_email: "a@b.com", body: "Hello" }\'',
1730 - ' composio dev execute GMAIL_SEND_EMAIL --get-schema',
1653 + ' composio dev playground-execute GMAIL_SEND_EMAIL -d \'{ recipient_email: "a@b.com", body: "Hello" }\'',
1654 + ' composio dev playground-execute --parallel GMAIL_SEND_EMAIL -d \'{ recipient_email: "a@b.com", subject: "Hello", body: "World" }\' GITHUB_CREATE_ISSUE -d \'{ owner: "acme", repo: "app", title: "Bug report", body: "Steps to reproduce..." }\'',
1655 + ' composio dev playground-execute GMAIL_SEND_EMAIL --dry-run -d \'{ recipient_email: "a@b.com", body: "Hello" }\'',
1656 + ' composio dev playground-execute GMAIL_SEND_EMAIL --get-schema',
1657 ].join('\n')
1658 )
1659 );
ts/packages/cli/src/commands/tools/commands/tools.info.cmd.ts
+1 -1
@@ -46,7 +46,7 @@ export const toolsCmd$Info = Command.make('info', { slug }, ({ slug }) =>
46 handleHttpServerError(ui, {
47 fallbackMessage: `Tool "${slugValue}" not found.`,
48 hint: [
49 - commandHintStep('Browse available toolkits', 'manage.toolkits.list'),
49 + commandHintStep('Browse available toolkits', 'dev.toolkits.list'),
50 commandHintStep('Then list tools', 'root.tools.list'),
51 ].join('\n'),
52 fallbackValue: Option.none(),
ts/packages/cli/src/commands/tools/commands/tools.list.cmd.ts
+1 -1
@@ -59,7 +59,7 @@ export const toolsCmd$List = Command.make(
59
60 if (result.items.length === 0) {
61 yield* ui.log.warn(
62 - `No tools found in toolkit "${toolkit}". Verify the toolkit slug with:\n> composio manage toolkits list`
62 + `No tools found in toolkit "${toolkit}". Verify the toolkit slug with:\n> composio dev toolkits list`
63 );
64 return;
65 }
ts/packages/cli/src/commands/tools/commands/tools.search.cmd.ts
+4 -4
@@ -194,14 +194,14 @@ const runToolsSearch = (params: {
194 slug: firstSlug,
195 data: firstDataArg,
196 })
197 - : commandHintStep('Execute a tool', 'dev.execute', {
197 + : commandHintStep('Test a tool against a playground user', 'dev.playgroundExecute', {
198 slug: firstSlug,
199 userId: '<user-id>',
200 data: firstDataArg,
201 });
202 const linkHint = params.rootOnly
203 ? commandHintStep('Link an account', 'root.link', { toolkit: '<toolkit>' })
204 - : commandHintStep('Link an account', 'manage.connectedAccounts.link', {
204 + : commandHintStep('Link an account', 'dev.connectedAccounts.link', {
205 toolkit: '<toolkit>',
206 userId: '<user-id>',
207 });
@@ -218,7 +218,7 @@ const runToolsSearch = (params: {
218 action: 'Execute a tool',
219 command: params.rootOnly
220 ? commandHintExample('root.execute', { slug: firstSlug, data: firstDataArg })
221 - : commandHintExample('dev.execute', {
221 + : commandHintExample('dev.playgroundExecute', {
222 slug: firstSlug,
223 userId: '<user-id>',
224 data: firstDataArg,
@@ -230,7 +230,7 @@ const runToolsSearch = (params: {
230 action: 'Connect a user account',
231 command: params.rootOnly
232 ? commandHintExample('root.link', { toolkit: String(firstToolkit).toLowerCase() })
233 - : commandHintExample('manage.connectedAccounts.link', {
233 + : commandHintExample('dev.connectedAccounts.link', {
234 toolkit: String(firstToolkit).toLowerCase(),
235 userId: '<user-id>',
236 }),
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 manage triggers create "GMAIL_NEW_GMAIL_MESSAGE" --connected-account-id "con_123"'
39 + 'Try specifying a trigger slug, e.g.:\n> composio dev 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 manage triggers create "GMAIL_NEW_GMAIL_MESSAGE" --trigger-config \'{"label":"inbox"}\''
58 + 'Example:\n> composio dev 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 manage triggers list',
78 + hint: 'List available trigger types with:\n> composio dev 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 manage triggers status --trigger-ids "${created.trigger_id}"`
91 + `To check status:\n> composio dev 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 manage triggers delete "trg_123" --yes\n\nTo find trigger IDs:\n> composio manage triggers status --show-disabled'
32 + 'Try specifying a trigger ID, e.g.:\n> composio dev triggers delete "trg_123" --yes\n\nTo find trigger IDs:\n> composio dev 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 manage triggers status --show-disabled',
57 + hint: 'Browse available triggers:\n> composio dev 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 manage triggers disable "trg_123"\n\nTo find trigger IDs:\n> composio manage triggers status'
26 + 'Try specifying a trigger ID, e.g.:\n> composio dev triggers disable "trg_123"\n\nTo find trigger IDs:\n> composio dev 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 manage triggers status',
40 + hint: 'Browse available triggers:\n> composio dev 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 manage triggers enable "trg_123"\n\nTo find trigger IDs:\n> composio manage triggers status --show-disabled'
26 + 'Try specifying a trigger ID, e.g.:\n> composio dev triggers enable "trg_123"\n\nTo find trigger IDs:\n> composio dev 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 manage triggers status --show-disabled',
40 + hint: 'Browse available triggers:\n> composio dev 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 manage triggers info "GMAIL_NEW_GMAIL_MESSAGE"
19 + * composio dev 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 manage triggers info "GMAIL_NEW_GMAIL_MESSAGE"'
32 + 'Try specifying a trigger slug, e.g.:\n> composio dev 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 manage triggers list',
47 + hint: 'Browse available trigger types:\n> composio dev 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 manage triggers list --toolkits "${toolkitSlug}"`
62 + `To list more trigger types in this toolkit:\n> composio dev 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 manage triggers list
28 - * composio manage triggers list --toolkits "gmail"
29 - * composio manage triggers list --toolkits "gmail,slack"
27 + * composio dev triggers list
28 + * composio dev triggers list --toolkits "gmail"
29 + * composio dev 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 manage toolkits list`
49 + ? `No trigger types found in toolkit "${toolkits.value}". Verify the toolkit slug with:\n> composio dev 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 manage triggers info "${firstSlug}"`
63 + `To view details of a trigger type:\n> composio dev triggers info "${firstSlug}"`
64 );
65 }
66
ts/packages/cli/src/commands/triggers/commands/triggers.listen.cmd.ts
+4 -4
@@ -141,9 +141,9 @@ const emitTableLine = (line: string, ui: TerminalUI): Effect.Effect<void> =>
141 *
142 * @example
143 * ```bash
144 - * composio manage triggers listen --toolkits gmail --table
145 - * composio manage triggers listen --trigger-slug GMAIL_NEW_GMAIL_MESSAGE --json --max-events 5
146 - * composio manage triggers listen --forward "http://localhost:8080/webhook" --out events.jsonl
144 + * composio dev triggers listen --toolkits gmail --table
145 + * composio dev triggers listen --trigger-slug GMAIL_NEW_GMAIL_MESSAGE --json --max-events 5
146 + * composio dev triggers listen --forward "http://localhost:8080/webhook" --out events.jsonl
147 * ```
148 */
149 export const triggersCmd$Listen = Command.make(
@@ -208,7 +208,7 @@ export const triggersCmd$Listen = Command.make(
208 let matchingEvents = 0;
209 let tableHeaderPrinted = false;
210
211 - yield* ui.intro('composio manage triggers listen');
211 + yield* ui.intro('composio dev triggers listen');
212 if (forwardUrl) {
213 if (process.env.COMPOSIO_WEBHOOK_SECRET) {
214 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 manage triggers status --show-disabled',
100 + hint: 'Retry with:\n> composio dev 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 manage triggers <command>
16 + * composio dev triggers <command>
17 * ```
18 */
19 export const triggersCmd = Command.make('triggers').pipe(
ts/packages/cli/src/commands/whoami.cmd.ts
+1 -1
@@ -37,7 +37,7 @@ export const whoamiCmd = Command.make('whoami', {}).pipe(
37 );
38 yield* ui.log.step(
39 [
40 - commandHintStep('To switch orgs', 'manage.orgs.switch'),
40 + commandHintStep('To switch orgs', 'dev.orgs.switch'),
41 commandHintStep('To set up developer project context', 'dev.init'),
42 ].join('\n\n')
43 );
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 manage auth-configs list',
28 + * hint: 'Browse available auth configs:\n> composio dev auth-configs list',
29 * fallbackValue: Option.none(),
30 * })
31 * )
ts/packages/cli/src/services/command-hints.ts
+28 -28
@@ -11,15 +11,15 @@ export type CommandHintId =
11 | 'root.execute.getSchema'
12 | 'root.link'
13 | 'dev.init'
14 - | 'dev.execute'
15 - | 'dev.execute.getSchema'
14 + | 'dev.playgroundExecute'
15 + | 'dev.playgroundExecute.getSchema'
16 | 'dev.logs.tools'
17 | 'dev.logs.triggers'
18 - | 'manage.orgs.switch'
19 - | 'manage.projects.list'
20 - | 'manage.toolkits.list'
21 - | 'manage.connectedAccounts.link'
22 - | 'manage.authConfigs.list';
18 + | 'dev.orgs.switch'
19 + | 'dev.projects.list'
20 + | 'dev.toolkits.list'
21 + | 'dev.connectedAccounts.link'
22 + | 'dev.authConfigs.list';
23
24 type CommandHintNode = {
25 readonly example: (params?: HintParams) => string;
@@ -54,17 +54,17 @@ export const COMMAND_HINTS: Record<CommandHintId, CommandHintNode> = {
54 },
55 'dev.init': {
56 example: () => 'composio dev init',
57 - links: ['dev.execute', 'dev.logs.tools', 'dev.logs.triggers'],
57 + links: ['dev.playgroundExecute', 'dev.logs.tools', 'dev.logs.triggers'],
58 },
59 - 'dev.execute': {
59 + 'dev.playgroundExecute': {
60 example: params =>
61 - `composio dev execute "${getParam(params, 'slug', '<slug>')}" --user-id "${getParam(params, 'userId', '<user-id>')}" ${getParam(params, 'data', "-d '{}'")}`.trim(),
62 - links: ['manage.connectedAccounts.link', 'dev.init', 'dev.execute.getSchema'],
61 + `composio dev playground-execute "${getParam(params, 'slug', '<slug>')}" --user-id "${getParam(params, 'userId', '<user-id>')}" ${getParam(params, 'data', "-d '{}'")}`.trim(),
62 + links: ['dev.connectedAccounts.link', 'dev.init', 'dev.playgroundExecute.getSchema'],
63 },
64 - 'dev.execute.getSchema': {
64 + 'dev.playgroundExecute.getSchema': {
65 example: params =>
66 - `composio dev execute "${getParam(params, 'slug', '<slug>')}" --get-schema`,
67 - links: ['dev.execute'],
66 + `composio dev playground-execute "${getParam(params, 'slug', '<slug>')}" --get-schema`,
67 + links: ['dev.playgroundExecute'],
68 },
69 'dev.logs.tools': {
70 example: params =>
@@ -74,26 +74,26 @@ export const COMMAND_HINTS: Record<CommandHintId, CommandHintNode> = {
74 example: params =>
75 `composio dev logs triggers "${getParam(params, 'logId', '<log_id>')}"`,
76 },
77 - 'manage.orgs.switch': {
78 - example: () => 'composio manage orgs switch',
79 - links: ['dev.init', 'manage.projects.list'],
77 + 'dev.orgs.switch': {
78 + example: () => 'composio dev orgs switch',
79 + links: ['dev.init', 'dev.projects.list'],
80 },
81 - 'manage.projects.list': {
82 - example: () => 'composio manage projects list',
81 + 'dev.projects.list': {
82 + example: () => 'composio dev projects list',
83 links: ['dev.init'],
84 },
85 - 'manage.toolkits.list': {
86 - example: () => 'composio manage toolkits list',
87 - links: ['root.tools.list', 'manage.connectedAccounts.link'],
85 + 'dev.toolkits.list': {
86 + example: () => 'composio dev toolkits list',
87 + links: ['root.tools.list', 'dev.connectedAccounts.link'],
88 },
89 - 'manage.connectedAccounts.link': {
89 + 'dev.connectedAccounts.link': {
90 example: params =>
91 - `composio manage connected-accounts link ${getParam(params, 'toolkit', '<toolkit>')} --user-id "${getParam(params, 'userId', '<user-id>')}"`,
92 - links: ['dev.execute'],
91 + `composio dev connected-accounts link ${getParam(params, 'toolkit', '<toolkit>')} --user-id "${getParam(params, 'userId', '<user-id>')}"`,
92 + links: ['dev.playgroundExecute'],
93 },
94 - 'manage.authConfigs.list': {
95 - example: () => 'composio manage auth-configs list',
96 - links: ['manage.connectedAccounts.link'],
94 + 'dev.authConfigs.list': {
95 + example: () => 'composio dev auth-configs list',
96 + links: ['dev.connectedAccounts.link'],
97 },
98 };
99
ts/packages/cli/src/services/command-project.ts
+2 -2
@@ -130,7 +130,7 @@ export const resolveCommandProject = (params: { mode: ProjectMode; projectName?:
130 export const formatResolveCommandProjectError = (error: unknown): Error => {
131 if (error instanceof MissingDefaultOrgError) {
132 return new Error(
133 - 'No default org configured. Run `composio login` or `composio manage orgs switch`.'
133 + 'No default org configured. Run `composio login` or `composio dev orgs switch`.'
134 );
135 }
136 if (error instanceof MissingDeveloperProjectError) {
@@ -140,7 +140,7 @@ export const formatResolveCommandProjectError = (error: unknown): Error => {
140 }
141 if (error instanceof DeveloperProjectNotFoundError) {
142 return new Error(
143 - `Developer project "${error.projectName}" was not found in org "${error.orgId}". Run \`composio dev init\` or \`composio manage projects list\`.`
143 + `Developer project "${error.projectName}" was not found in org "${error.orgId}". Run \`composio dev init\` or \`composio dev projects list\`.`
144 );
145 }
146 if (error instanceof AmbiguousDeveloperProjectNameError) {
ts/packages/cli/test/src/commands/$default.cmd.test.ts
+1 -1
@@ -19,7 +19,7 @@ describe('CLI: composio', () => {
19 expect(result).toEqual(
20 ValidationError.commandMismatch(
21 HelpDoc.p(
22 - "Invalid subcommand for composio - use one of 'version', 'upgrade', 'whoami', 'login', 'logout', 'run', 'proxy', 'artifacts', 'install', 'dev', 'tools', 'search', 'link', 'execute', 'generate', 'manage'"
22 + "Invalid subcommand for composio - use one of 'version', 'upgrade', 'whoami', 'login', 'logout', 'run', 'proxy', 'artifacts', 'install', 'dev', 'tools', 'search', 'link', 'execute', 'generate'"
23 )
24 )
25 );
ts/packages/cli/test/src/commands/auth-configs/auth-configs.create.cmd.test.ts
+9 -9
@@ -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 manage auth-configs create', () => {
11 +describe('CLI: composio dev 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(['manage', 'auth-configs', 'create', '--toolkit', 'gmail']);
17 + yield* cli(['dev', '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 manage auth-configs create', () => {
31 it => {
32 it.scoped('creates with name successfully', () =>
33 Effect.gen(function* () {
34 - yield* cli(['manage', 'auth-configs', 'create', 'my-config', '--toolkit', 'gmail']);
34 + yield* cli(['dev', 'auth-configs', 'create', 'my-config', '--toolkit', 'gmail']);
35 const lines = yield* MockConsole.getLines({ stripAnsi: true });
36 const output = lines.join('\n');
37
@@ -48,7 +48,7 @@ describe('CLI: composio manage auth-configs create', () => {
48 it.scoped('creates with custom auth scheme', () =>
49 Effect.gen(function* () {
50 yield* cli([
51 - 'manage',
51 + 'dev',
52 'auth-configs',
53 'create',
54 '--toolkit',
@@ -78,7 +78,7 @@ describe('CLI: composio manage auth-configs create', () => {
78 )('[Given] custom create response [Then] shows correct details', it => {
79 it.scoped('shows custom response data', () =>
80 Effect.gen(function* () {
81 - yield* cli(['manage', 'auth-configs', 'create', '--toolkit', 'slack']);
81 + yield* cli(['dev', 'auth-configs', 'create', '--toolkit', 'slack']);
82 const lines = yield* MockConsole.getLines({ stripAnsi: true });
83 const output = lines.join('\n');
84
@@ -95,7 +95,7 @@ describe('CLI: composio manage auth-configs create', () => {
95 it.scoped('shows JSON parse error', () =>
96 Effect.gen(function* () {
97 yield* cli([
98 - 'manage',
98 + 'dev',
99 'auth-configs',
100 'create',
101 '--toolkit',
@@ -117,7 +117,7 @@ describe('CLI: composio manage 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* () {
120 - yield* cli(['manage', 'auth-configs', 'create', '--toolkit', 'gmail']);
120 + yield* cli(['dev', 'auth-configs', 'create', '--toolkit', 'gmail']);
121 const lines = yield* MockConsole.getLines({ stripAnsi: true });
122 const output = lines.join('\n');
123
@@ -131,11 +131,11 @@ describe('CLI: composio manage auth-configs create', () => {
131 it => {
132 it.scoped('shows next step hint', () =>
133 Effect.gen(function* () {
134 - yield* cli(['manage', 'auth-configs', 'create', '--toolkit', 'gmail']);
134 + yield* cli(['dev', 'auth-configs', 'create', '--toolkit', 'gmail']);
135 const lines = yield* MockConsole.getLines({ stripAnsi: true });
136 const output = lines.join('\n');
137
138 - expect(output).toContain('composio manage auth-configs info');
138 + expect(output).toContain('composio dev 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 manage auth-configs delete', () => {
32 +describe('CLI: composio dev 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(['manage', 'auth-configs', 'delete', 'ac_gmail_default', '--yes']);
38 + yield* cli(['dev', '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 manage auth-configs delete', () => {
51 it => {
52 it.scoped('shows missing argument warning', () =>
53 Effect.gen(function* () {
54 - yield* cli(['manage', 'auth-configs', 'delete']);
54 + yield* cli(['dev', '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 manage auth-configs delete', () => {
66 it => {
67 it.scoped('shows not found error', () =>
68 Effect.gen(function* () {
69 - yield* cli(['manage', 'auth-configs', 'delete', 'ac_nonexistent', '--yes']);
69 + yield* cli(['dev', '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 manage auth-configs list');
74 + expect(output).toContain('composio dev auth-configs list');
75 })
76 );
77 }
@@ -80,7 +80,7 @@ describe('CLI: composio manage 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(['manage', 'auth-configs', 'delete', 'ac_gmail_default', '--yes']);
83 + yield* cli(['dev', '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 manage auth-configs info', () => {
32 +describe('CLI: composio dev 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(['manage', 'auth-configs', 'info', 'ac_gmail_default']);
38 + yield* cli(['dev', '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 manage 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 manage auth-configs delete');
49 + expect(output).toContain('composio dev auth-configs delete');
50 })
51 );
52 }
@@ -57,7 +57,7 @@ describe('CLI: composio manage auth-configs info', () => {
57 it => {
58 it.scoped('shows missing argument warning', () =>
59 Effect.gen(function* () {
60 - yield* cli(['manage', 'auth-configs', 'info']);
60 + yield* cli(['dev', '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 manage auth-configs info', () => {
72 it => {
73 it.scoped('shows not found error', () =>
74 Effect.gen(function* () {
75 - yield* cli(['manage', 'auth-configs', 'info', 'ac_nonexistent']);
75 + yield* cli(['dev', '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 manage auth-configs list');
80 + expect(output).toContain('composio dev auth-configs list');
81 })
82 );
83 }
@@ -86,7 +86,7 @@ describe('CLI: composio manage 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(['manage', 'auth-configs', 'info', 'ac_gmail_default']);
89 + yield* cli(['dev', '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 manage auth-configs list', () => {
58 +describe('CLI: composio dev 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(['manage', 'auth-configs', 'list']);
64 + yield* cli(['dev', '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 manage auth-configs list', () => {
79 it => {
80 it.scoped('filters by toolkit', () =>
81 Effect.gen(function* () {
82 - yield* cli(['manage', 'auth-configs', 'list', '--toolkits', 'gmail']);
82 + yield* cli(['dev', '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 manage auth-configs list', () => {
97 it => {
98 it.scoped('filters by name search', () =>
99 Effect.gen(function* () {
100 - yield* cli(['manage', 'auth-configs', 'list', '--query', 'Custom']);
100 + yield* cli(['dev', '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 manage auth-configs list', () => {
113 it => {
114 it.scoped('respects limit', () =>
115 Effect.gen(function* () {
116 - yield* cli(['manage', 'auth-configs', 'list', '--limit', '1']);
116 + yield* cli(['dev', '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 manage 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(['manage', 'auth-configs', 'list']);
129 + yield* cli(['dev', '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 manage auth-configs list', () => {
140 it => {
141 it.scoped('shows no auth configs found', () =>
142 Effect.gen(function* () {
143 - yield* cli(['manage', 'auth-configs', 'list']);
143 + yield* cli(['dev', '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 manage auth-configs list', () => {
155 it => {
156 it.scoped('shows toolkit hint', () =>
157 Effect.gen(function* () {
158 - yield* cli(['manage', 'auth-configs', 'list', '--toolkits', 'nonexistent']);
158 + yield* cli(['dev', '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 manage toolkits list');
163 + expect(output).toContain('composio dev 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 manage connected-accounts delete', () => {
36 +describe('CLI: composio dev 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(['manage', 'connected-accounts', 'delete', 'con_gmail_active', '--yes']);
42 + yield* cli(['dev', '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 manage connected-accounts delete', () => {
54 it => {
55 it.scoped('shows error for nonexistent account', () =>
56 Effect.gen(function* () {
57 - yield* cli(['manage', 'connected-accounts', 'delete', 'con_nonexistent', '--yes']);
57 + yield* cli(['dev', '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 manage connected-accounts list');
62 + expect(output).toContain('composio dev connected-accounts list');
63 })
64 );
65 }
@@ -70,12 +70,12 @@ describe('CLI: composio manage connected-accounts delete', () => {
70 it => {
71 it.scoped('warns about missing argument', () =>
72 Effect.gen(function* () {
73 - yield* cli(['manage', 'connected-accounts', 'delete']);
73 + yield* cli(['dev', '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 manage connected-accounts delete');
78 + expect(output).toContain('composio dev connected-accounts delete');
79 })
80 );
81 }
@@ -84,7 +84,7 @@ describe('CLI: composio manage 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(['manage', 'connected-accounts', 'delete', 'con_gmail_active', '--yes']);
87 + yield* cli(['dev', '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 manage connected-accounts info', () => {
36 +describe('CLI: composio dev 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(['manage', 'connected-accounts', 'info', 'con_gmail_active']);
42 + yield* cli(['dev', '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 manage connected-accounts info', () => {
57 it => {
58 it.scoped('shows error for nonexistent account', () =>
59 Effect.gen(function* () {
60 - yield* cli(['manage', 'connected-accounts', 'info', 'con_nonexistent']);
60 + yield* cli(['dev', '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 manage connected-accounts list');
65 + expect(output).toContain('composio dev connected-accounts list');
66 })
67 );
68 }
@@ -73,12 +73,12 @@ describe('CLI: composio manage connected-accounts info', () => {
73 it => {
74 it.scoped('warns about missing argument', () =>
75 Effect.gen(function* () {
76 - yield* cli(['manage', 'connected-accounts', 'info']);
76 + yield* cli(['dev', '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 manage connected-accounts info');
81 + expect(output).toContain('composio dev connected-accounts info');
82 })
83 );
84 }
@@ -87,7 +87,7 @@ describe('CLI: composio manage 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(['manage', 'connected-accounts', 'info', 'con_gmail_active']);
90 + yield* cli(['dev', '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
+9 -9
@@ -43,7 +43,7 @@ const testConfigProvider = ConfigProvider.fromMap(
43 new Map([['COMPOSIO_USER_API_KEY', 'test_api_key']])
44 ).pipe(extendConfigProvider);
45
46 -describe('CLI: composio manage connected-accounts link', () => {
46 +describe('CLI: composio dev connected-accounts link', () => {
47 layer(
48 TestLive({
49 baseConfigProvider: testConfigProvider,
@@ -54,7 +54,7 @@ describe('CLI: composio manage connected-accounts link', () => {
54 it.scoped('creates link and waits for ACTIVE', () =>
55 Effect.gen(function* () {
56 yield* cli([
57 - 'manage',
57 + 'dev',
58 'connected-accounts',
59 'link',
60 '--auth-config',
@@ -82,7 +82,7 @@ describe('CLI: composio manage connected-accounts link', () => {
82 it.scoped('uses explicit user-id', () =>
83 Effect.gen(function* () {
84 yield* cli([
85 - 'manage',
85 + 'dev',
86 'connected-accounts',
87 'link',
88 '--auth-config',
@@ -111,7 +111,7 @@ describe('CLI: composio manage connected-accounts link', () => {
111 it.scoped('uses global test user id from user_data.json', () =>
112 Effect.gen(function* () {
113 yield* cli([
114 - 'manage',
114 + 'dev',
115 'connected-accounts',
116 'link',
117 '--auth-config',
@@ -132,7 +132,7 @@ describe('CLI: composio manage connected-accounts link', () => {
132 it.scoped('warns user to login', () =>
133 Effect.gen(function* () {
134 yield* cli([
135 - 'manage',
135 + 'dev',
136 'connected-accounts',
137 'link',
138 '--auth-config',
@@ -153,7 +153,7 @@ describe('CLI: composio manage connected-accounts link', () => {
153 connectedAccountsData,
154 fixture: 'global-test-user-id',
155 })
156 - )('[Given] composio link alias [Then] works like composio manage connected-accounts link', it => {
156 + )('[Given] composio link alias [Then] works like composio dev connected-accounts link', it => {
157 it.scoped('root link works for consumer toolkit linking only', () =>
158 Effect.gen(function* () {
159 yield* cli(['link', 'gmail', '--no-browser']);
@@ -176,7 +176,7 @@ describe('CLI: composio manage connected-accounts link', () => {
176 it.scoped('prints JSON with status pending, connected_account_id, redirect_url', () =>
177 Effect.gen(function* () {
178 yield* cli([
179 - 'manage',
179 + 'dev',
180 'connected-accounts',
181 'link',
182 '--auth-config',
@@ -220,7 +220,7 @@ describe('CLI: composio manage connected-accounts link', () => {
220 it.scoped('reports the incomplete response instead of waiting with empty values', () =>
221 Effect.gen(function* () {
222 yield* cli([
223 - 'manage',
223 + 'dev',
224 'connected-accounts',
225 'link',
226 '--auth-config',
@@ -252,7 +252,7 @@ describe('CLI: composio manage connected-accounts link', () => {
252 () =>
253 Effect.gen(function* () {
254 yield* cli([
255 - 'manage',
255 + 'dev',
256 'connected-accounts',
257 'link',
258 '--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 manage connected-accounts list', () => {
70 +describe('CLI: composio dev 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(['manage', 'connected-accounts', 'list']);
76 + yield* cli(['dev', '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 manage connected-accounts list', () => {
91 it => {
92 it.scoped('filters by toolkit', () =>
93 Effect.gen(function* () {
94 - yield* cli(['manage', 'connected-accounts', 'list', '--toolkits', 'gmail']);
94 + yield* cli(['dev', '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 manage connected-accounts list', () => {
108 it => {
109 it.scoped('filters by user ID', () =>
110 Effect.gen(function* () {
111 - yield* cli(['manage', 'connected-accounts', 'list', '--user-id', 'default']);
111 + yield* cli(['dev', '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 manage connected-accounts list', () => {
126 it => {
127 it.scoped('filters by status', () =>
128 Effect.gen(function* () {
129 - yield* cli(['manage', 'connected-accounts', 'list', '--status', 'ACTIVE']);
129 + yield* cli(['dev', '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 manage connected-accounts list', () => {
144 it => {
145 it.scoped('respects limit', () =>
146 Effect.gen(function* () {
147 - yield* cli(['manage', 'connected-accounts', 'list', '--limit', '1']);
147 + yield* cli(['dev', '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 manage 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(['manage', 'connected-accounts', 'list']);
160 + yield* cli(['dev', '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 manage connected-accounts list', () => {
171 it => {
172 it.scoped('shows no connected accounts found', () =>
173 Effect.gen(function* () {
174 - yield* cli(['manage', 'connected-accounts', 'list']);
174 + yield* cli(['dev', '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 manage connected-accounts list', () => {
186 it => {
187 it.scoped('shows toolkit hint', () =>
188 Effect.gen(function* () {
189 - yield* cli(['manage', 'connected-accounts', 'list', '--toolkits', 'nonexistent']);
189 + yield* cli(['dev', '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 manage toolkits list');
194 + expect(output).toContain('composio dev 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 manage connected-accounts whoami', () => {
53 +describe('CLI: composio dev 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(['manage', 'connected-accounts', 'whoami', 'con_gmail_active']);
59 + yield* cli(['dev', '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 manage connected-accounts whoami', () => {
74 it => {
75 it.scoped('shows warning for non-ACTIVE connection', () =>
76 Effect.gen(function* () {
77 - yield* cli(['manage', 'connected-accounts', 'whoami', 'con_github_expired']);
77 + yield* cli(['dev', '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 manage connected-accounts whoami', () => {
91 it => {
92 it.scoped('shows error for nonexistent account', () =>
93 Effect.gen(function* () {
94 - yield* cli(['manage', 'connected-accounts', 'whoami', 'con_nonexistent']);
94 + yield* cli(['dev', '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 manage connected-accounts list');
99 + expect(output).toContain('composio dev connected-accounts list');
100 })
101 );
102 }
@@ -107,12 +107,12 @@ describe('CLI: composio manage connected-accounts whoami', () => {
107 it => {
108 it.scoped('warns about missing argument', () =>
109 Effect.gen(function* () {
110 - yield* cli(['manage', 'connected-accounts', 'whoami']);
110 + yield* cli(['dev', '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 manage connected-accounts whoami');
115 + expect(output).toContain('composio dev connected-accounts whoami');
116 })
117 );
118 }
@@ -121,7 +121,7 @@ describe('CLI: composio manage 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(['manage', 'connected-accounts', 'whoami', 'con_gmail_active']);
124 + yield* cli(['dev', '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 manage orgs list', () => {
12 +describe('CLI: composio dev orgs list', () => {
13 afterEach(() => {
14 vi.restoreAllMocks();
15 });
@@ -26,7 +26,7 @@ describe('CLI: composio manage orgs list', () => {
26 })
27 );
28
29 - yield* cli(['manage', 'orgs', 'list']);
29 + yield* cli(['dev', 'orgs', 'list']);
30
31 expect(fetchSpy).toHaveBeenCalledTimes(1);
32 const [orgUrl, orgRequest] = fetchSpy.mock.calls[0]!;
@@ -40,7 +40,7 @@ describe('CLI: composio manage 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 manage orgs switch` to switch the default global org/project.'
43 + 'Hint: run `composio dev 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 manage orgs switch', () => {
23 +describe('CLI: composio dev orgs switch', () => {
24 afterEach(() => {
25 vi.restoreAllMocks();
26 });
@@ -36,7 +36,7 @@ describe('CLI: composio manage orgs switch', () => {
36 })
37 );
38
39 - yield* cli(['manage', 'orgs', 'switch']);
39 + yield* cli(['dev', 'orgs', 'switch']);
40
41 expect(fetchSpy).toHaveBeenCalledTimes(1);
42 const [orgUrl, orgRequest] = fetchSpy.mock.calls[0]!;
@@ -64,7 +64,7 @@ describe('CLI: composio manage orgs switch', () => {
64 Effect.gen(function* () {
65 const fetchSpy = vi.spyOn(globalThis, 'fetch');
66
67 - yield* cli(['manage', 'orgs', 'switch', '--org-id', 'org_manual']);
67 + yield* cli(['dev', 'orgs', 'switch', '--org-id', 'org_manual']);
68
69 expect(fetchSpy).toHaveBeenCalledTimes(0);
70
ts/packages/cli/test/src/commands/projects/projects.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 manage projects list', () => {
12 +describe('CLI: composio dev projects list', () => {
13 afterEach(() => {
14 vi.restoreAllMocks();
15 });
@@ -26,7 +26,7 @@ describe('CLI: composio manage projects list', () => {
26 })
27 );
28
29 - yield* cli(['manage', 'projects', 'list', '--org-id', 'org_1']);
29 + yield* cli(['dev', 'projects', 'list', '--org-id', 'org_1']);
30
31 expect(fetchSpy).toHaveBeenCalledTimes(1);
32 const [projectUrl, projectRequest] = fetchSpy.mock.calls[0]!;
@@ -43,7 +43,7 @@ describe('CLI: composio manage projects list', () => {
43 expect(output).toContain(
44 'Hint: run `composio dev init` in a directory to bind it to a developer project.'
45 );
46 - expect(output).toContain('Run `composio manage orgs switch` to change your default org.');
46 + expect(output).toContain('Run `composio dev orgs switch` to change your default org.');
47 })
48 );
49 });
ts/packages/cli/test/src/commands/projects/projects.switch.cmd.test.ts
+2 -2
@@ -2,11 +2,11 @@ import { Effect } from 'effect';
2 import { describe, expect, layer } from '@effect/vitest';
3 import { cli, MockConsole, TestLive } from 'test/__utils__';
4
5 -describe('CLI: composio manage projects switch', () => {
5 +describe('CLI: composio dev projects switch', () => {
6 layer(TestLive())(it => {
7 it.scoped('[Then] it reports global developer project switching is deprecated', () =>
8 Effect.gen(function* () {
9 - yield* cli(['manage', 'projects', 'switch']).pipe(Effect.catchAll(() => Effect.void));
9 + yield* cli(['dev', 'projects', 'switch']).pipe(Effect.catchAll(() => Effect.void));
10 const output = (yield* MockConsole.getLines({ stripAnsi: true })).join('\n');
11 expect(output).toContain('Global developer project switching is no longer supported');
12 expect(output).toContain('composio dev init');
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 manage toolkits info', () => {
132 +describe('CLI: composio dev 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(['manage', 'toolkits', 'info', 'gmail']);
138 + yield* cli(['dev', '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 manage toolkits info', () => {
165 it => {
166 it.scoped('uses global test user id for toolkit info', () =>
167 Effect.gen(function* () {
168 - yield* cli(['manage', 'toolkits', 'info', 'gmail']);
168 + yield* cli(['dev', '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 manage toolkits info', () => {
181 it => {
182 it.scoped('shows "no auth"', () =>
183 Effect.gen(function* () {
184 - yield* cli(['manage', 'toolkits', 'info', 'codeinterpreter']);
184 + yield* cli(['dev', '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 manage toolkits info', () => {
199 it => {
200 it.scoped('shows full auth config setup fields', () =>
201 Effect.gen(function* () {
202 - yield* cli(['manage', 'toolkits', 'info', 'gmail', '--all']);
202 + yield* cli(['dev', '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 manage toolkits info', () => {
218 it => {
219 it.scoped('shows error', () =>
220 Effect.gen(function* () {
221 - yield* cli(['manage', 'toolkits', 'info', 'gmal']).pipe(Effect.either);
221 + yield* cli(['dev', '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 manage toolkits info', () => {
233 it => {
234 it.scoped('shows error with hint', () =>
235 Effect.gen(function* () {
236 - yield* cli(['manage', 'toolkits', 'info', 'gma']).pipe(Effect.either);
236 + yield* cli(['dev', '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 manage toolkits info "gmail"');
241 + expect(output).toContain('composio dev toolkits info "gmail"');
242 })
243 );
244 }
@@ -249,12 +249,12 @@ describe('CLI: composio manage toolkits info', () => {
249 it => {
250 it.scoped('shows missing argument warning with tip', () =>
251 Effect.gen(function* () {
252 - yield* cli(['manage', 'toolkits', 'info']);
252 + yield* cli(['dev', '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 manage toolkits info "gmail"');
257 + expect(output).toContain('composio dev toolkits info "gmail"');
258 })
259 );
260 }
@@ -263,7 +263,7 @@ describe('CLI: composio manage toolkits info', () => {
263 layer(TestLive())('[Given] no API key', it => {
264 it.scoped('warns user to login', () =>
265 Effect.gen(function* () {
266 - yield* cli(['manage', 'toolkits', 'info', 'gmail']);
266 + yield* cli(['dev', '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 manage toolkits list', () => {
70 +describe('CLI: composio dev 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(['manage', 'toolkits', 'list']);
76 + yield* cli(['dev', 'toolkits', 'list']);
77 const lines = yield* MockConsole.getLines({ stripAnsi: true });
78 const output = lines.join('\n');
79
@@ -100,7 +100,7 @@ describe('CLI: composio manage toolkits list', () => {
100 it => {
101 it.scoped('shows connected column with global test user id', () =>
102 Effect.gen(function* () {
103 - yield* cli(['manage', 'toolkits', 'list']);
103 + yield* cli(['dev', 'toolkits', 'list']);
104 const lines = yield* MockConsole.getLines({ stripAnsi: true });
105 const output = lines.join('\n');
106
@@ -116,7 +116,7 @@ describe('CLI: composio manage toolkits list', () => {
116 it => {
117 it.scoped('shows connected column with explicit user id', () =>
118 Effect.gen(function* () {
119 - yield* cli(['manage', 'toolkits', 'list', '--user-id', 'default']);
119 + yield* cli(['dev', '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 manage toolkits list', () => {
132 it => {
133 it.scoped('shows filtered results', () =>
134 Effect.gen(function* () {
135 - yield* cli(['manage', 'toolkits', 'list', '--query', 'email']);
135 + yield* cli(['dev', '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 manage toolkits list', () => {
149 it => {
150 it.scoped('respects limit', () =>
151 Effect.gen(function* () {
152 - yield* cli(['manage', 'toolkits', 'list', '--limit', '2']);
152 + yield* cli(['dev', '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 manage toolkits list', () => {
162 layer(TestLive())('[Given] no API key', it => {
163 it.scoped('warns user to login', () =>
164 Effect.gen(function* () {
165 - yield* cli(['manage', 'toolkits', 'list']);
165 + yield* cli(['dev', 'toolkits', 'list']);
166 const lines = yield* MockConsole.getLines({ stripAnsi: true });
167 const output = lines.join('\n');
168
@@ -174,7 +174,7 @@ describe('CLI: composio manage 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(['manage', 'toolkits', 'list']);
177 + yield* cli(['dev', '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 manage toolkits search', () => {
70 +describe('CLI: composio dev 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(['manage', 'toolkits', 'search', 'email']);
76 + yield* cli(['dev', '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 manage toolkits search', () => {
91 it => {
92 it.scoped('shows "No toolkits found"', () =>
93 Effect.gen(function* () {
94 - yield* cli(['manage', 'toolkits', 'search', 'xyzzy']);
94 + yield* cli(['dev', '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 manage toolkits search', () => {
106 it => {
107 it.scoped('respects limit', () =>
108 Effect.gen(function* () {
109 - yield* cli(['manage', 'toolkits', 'search', 'email', '--limit', '1']);
109 + yield* cli(['dev', '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 manage toolkits search', () => {
119 layer(TestLive())('[Given] no API key', it => {
120 it.scoped('warns user to login', () =>
121 Effect.gen(function* () {
122 - yield* cli(['manage', 'toolkits', 'search', 'email']);
122 + yield* cli(['dev', '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 manage toolkits version', () => {
79 +describe('CLI: composio dev 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(['manage', 'toolkits', 'version', 'gmail']);
85 + yield* cli(['dev', '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 manage toolkits version', () => {
105 it => {
106 it.scoped('prints fetch failure and browse hint', () =>
107 Effect.gen(function* () {
108 - yield* cli(['manage', 'toolkits', 'version', 'unknown']).pipe(Effect.either);
108 + yield* cli(['dev', '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 manage toolkits list');
113 + expect(output).toContain('composio dev toolkits list');
114 })
115 );
116 }
@@ -119,7 +119,7 @@ describe('CLI: composio manage 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(['manage', 'toolkits', 'version', 'gmail']);
122 + yield* cli(['dev', '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.list.cmd.test.ts
+1 -1
@@ -177,7 +177,7 @@ describe('CLI: composio tools list', () => {
177 const output = lines.join('\n');
178
179 expect(output).toContain('No tools found');
180 - expect(output).toContain('composio manage toolkits list');
180 + expect(output).toContain('composio dev toolkits list');
181 })
182 );
183 }
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 manage triggers info', () => {
57 +describe('CLI: composio dev 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(['manage', 'triggers', 'info', 'GMAIL_NEW_GMAIL_MESSAGE']);
63 + yield* cli(['dev', '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 manage triggers info', () => {
73 expect(output).toContain('subject');
74 expect(output).toContain('default:');
75 expect(output).toContain('false');
76 - expect(output).toContain('composio manage triggers list --toolkits "gmail"');
76 + expect(output).toContain('composio dev triggers list --toolkits "gmail"');
77 })
78 );
79 }
@@ -84,7 +84,7 @@ describe('CLI: composio manage triggers info', () => {
84 it => {
85 it.scoped('shows missing argument warning', () =>
86 Effect.gen(function* () {
87 - yield* cli(['manage', 'triggers', 'info']);
87 + yield* cli(['dev', 'triggers', 'info']);
88 const lines = yield* MockConsole.getLines({ stripAnsi: true });
89 const output = lines.join('\n');
90
@@ -99,12 +99,12 @@ describe('CLI: composio manage triggers info', () => {
99 it => {
100 it.scoped('shows not found fallback hint', () =>
101 Effect.gen(function* () {
102 - yield* cli(['manage', 'triggers', 'info', 'NONEXISTENT_TRIGGER']);
102 + yield* cli(['dev', '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 manage triggers list');
107 + expect(output).toContain('composio dev triggers list');
108 })
109 );
110 }
@@ -113,7 +113,7 @@ describe('CLI: composio manage 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(['manage', 'triggers', 'info', 'GMAIL_NEW_GMAIL_MESSAGE']);
116 + yield* cli(['dev', '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 manage triggers list', () => {
49 +describe('CLI: composio dev 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(['manage', 'triggers', 'list']);
55 + yield* cli(['dev', 'triggers', 'list']);
56 const lines = yield* MockConsole.getLines({ stripAnsi: true });
57 const output = lines.join('\n');
58
@@ -69,7 +69,7 @@ describe('CLI: composio manage triggers list', () => {
69 it => {
70 it.scoped('filters by toolkit', () =>
71 Effect.gen(function* () {
72 - yield* cli(['manage', 'triggers', 'list', '--toolkits', 'gmail']);
72 + yield* cli(['dev', '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 manage triggers list', () => {
87 it => {
88 it.scoped('uses singular form for one result', () =>
89 Effect.gen(function* () {
90 - yield* cli(['manage', 'triggers', 'list', '--limit', '1']);
90 + yield* cli(['dev', '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 manage triggers list', () => {
103 it => {
104 it.scoped('shows hint to view trigger details', () =>
105 Effect.gen(function* () {
106 - yield* cli(['manage', 'triggers', 'list']);
106 + yield* cli(['dev', 'triggers', 'list']);
107 const lines = yield* MockConsole.getLines({ stripAnsi: true });
108 const output = lines.join('\n');
109
110 - expect(output).toContain('composio manage triggers info');
110 + expect(output).toContain('composio dev triggers info');
111 })
112 );
113 }
@@ -116,7 +116,7 @@ describe('CLI: composio manage 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(['manage', 'triggers', 'list']);
119 + yield* cli(['dev', 'triggers', 'list']);
120 const lines = yield* MockConsole.getLines({ stripAnsi: true });
121 const output = lines.join('\n');
122
@@ -130,7 +130,7 @@ describe('CLI: composio manage triggers list', () => {
130 it => {
131 it.scoped('shows no trigger types found', () =>
132 Effect.gen(function* () {
133 - yield* cli(['manage', 'triggers', 'list']);
133 + yield* cli(['dev', 'triggers', 'list']);
134 const lines = yield* MockConsole.getLines({ stripAnsi: true });
135 const output = lines.join('\n');
136
@@ -145,12 +145,12 @@ describe('CLI: composio manage triggers list', () => {
145 it => {
146 it.scoped('shows hint about verifying toolkit slug', () =>
147 Effect.gen(function* () {
148 - yield* cli(['manage', 'triggers', 'list', '--toolkits', 'nonexistent']);
148 + yield* cli(['dev', '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 manage toolkits list');
153 + expect(output).toContain('composio dev toolkits list');
154 })
155 );
156 }
ts/packages/cli/test/src/commands/triggers/triggers.listen.cmd.test.ts
+7 -7
@@ -106,7 +106,7 @@ const startWebhookServer = async (): Promise<{
106 };
107 };
108
109 -describe('CLI: composio manage triggers listen', () => {
109 +describe('CLI: composio dev triggers listen', () => {
110 layer(
111 TestLive({
112 baseConfigProvider: testConfigProvider,
@@ -118,7 +118,7 @@ describe('CLI: composio manage triggers listen', () => {
118 )('[Given] one realtime event [Then] prints normalized event output', it => {
119 it.scoped('prints event summary and payload', () =>
120 Effect.gen(function* () {
121 - yield* cli(['manage', 'triggers', 'listen', '--max-events', '1']);
121 + yield* cli(['dev', 'triggers', 'listen', '--max-events', '1']);
122 const lines = yield* MockConsole.getLines({ stripAnsi: true });
123 const output = lines.join('\n');
124
@@ -139,7 +139,7 @@ describe('CLI: composio manage triggers listen', () => {
139 events: [mockV3TriggerEvent],
140 },
141 })
142 - )('[Given] composio dev listen [Then] works like composio manage triggers listen', it => {
142 + )('[Given] composio dev listen [Then] works like composio dev triggers listen', it => {
143 it.scoped('dev listen expands to triggers listen', () =>
144 Effect.gen(function* () {
145 yield* cli(['dev', 'listen', '--max-events', '1']);
@@ -164,7 +164,7 @@ describe('CLI: composio manage triggers listen', () => {
164 )('[Given] --table [Then] prints compact table rows', it => {
165 it.scoped('prints table header and event row', () =>
166 Effect.gen(function* () {
167 - yield* cli(['manage', 'triggers', 'listen', '--table', '--max-events', '1']);
167 + yield* cli(['dev', 'triggers', 'listen', '--table', '--max-events', '1']);
168 const lines = yield* MockConsole.getLines({ stripAnsi: true });
169 const output = lines.join('\n');
170
@@ -188,7 +188,7 @@ describe('CLI: composio manage triggers listen', () => {
188 layer(TestLive())('[Given] no API key [Then] warns user to login', it => {
189 it.scoped('warns user to login', () =>
190 Effect.gen(function* () {
191 - yield* cli(['manage', 'triggers', 'listen']);
191 + yield* cli(['dev', 'triggers', 'listen']);
192 const lines = yield* MockConsole.getLines({ stripAnsi: true });
193 const output = lines.join('\n');
194 expect(output).toContain('not logged in');
@@ -209,7 +209,7 @@ describe('CLI: composio manage triggers listen', () => {
209 Effect.gen(function* () {
210 delete process.env.COMPOSIO_WEBHOOK_SECRET;
211 yield* cli([
212 - 'manage',
212 + 'dev',
213 'triggers',
214 'listen',
215 '--forward',
@@ -253,7 +253,7 @@ describe('CLI: composio manage triggers listen', () => {
253 Effect.tryPromise(() => resource.close()).pipe(Effect.catchAll(() => Effect.void))
254 );
255
256 - yield* cli(['manage', 'triggers', 'listen', '--forward', server.url, '--max-events', '1']);
256 + yield* cli(['dev', 'triggers', 'listen', '--forward', server.url, '--max-events', '1']);
257
258 const request = yield* Effect.tryPromise({
259 try: () =>
ts/packages/cli/test/src/commands/triggers/triggers.mutations.cmd.test.ts
+11 -11
@@ -7,14 +7,14 @@ const testConfigProvider = ConfigProvider.fromMap(
7 new Map([['COMPOSIO_USER_API_KEY', 'test_api_key']])
8 ).pipe(extendConfigProvider);
9
10 -describe('CLI: composio manage triggers mutations', () => {
10 +describe('CLI: composio dev 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',
17 + 'dev',
18 'triggers',
19 'create',
20 'GMAIL_NEW_GMAIL_MESSAGE',
@@ -37,7 +37,7 @@ describe('CLI: composio manage triggers mutations', () => {
37 it.scoped('rejects invalid trigger config JSON', () =>
38 Effect.gen(function* () {
39 yield* cli([
40 - 'manage',
40 + 'dev',
41 'triggers',
42 'create',
43 'GMAIL_NEW_GMAIL_MESSAGE',
@@ -58,7 +58,7 @@ describe('CLI: composio manage triggers mutations', () => {
58 it => {
59 it.scoped('enables trigger successfully', () =>
60 Effect.gen(function* () {
61 - yield* cli(['manage', 'triggers', 'enable', 'trg_123']);
61 + yield* cli(['dev', 'triggers', 'enable', 'trg_123']);
62 const lines = yield* MockConsole.getLines({ stripAnsi: true });
63 const output = lines.join('\n');
64 expect(output).toContain('enabled');
@@ -72,7 +72,7 @@ describe('CLI: composio manage triggers mutations', () => {
72 it => {
73 it.scoped('disables trigger successfully', () =>
74 Effect.gen(function* () {
75 - yield* cli(['manage', 'triggers', 'disable', 'trg_123']);
75 + yield* cli(['dev', 'triggers', 'disable', 'trg_123']);
76 const lines = yield* MockConsole.getLines({ stripAnsi: true });
77 const output = lines.join('\n');
78 expect(output).toContain('disabled');
@@ -86,7 +86,7 @@ describe('CLI: composio manage triggers mutations', () => {
86 it => {
87 it.scoped('deletes trigger successfully', () =>
88 Effect.gen(function* () {
89 - yield* cli(['manage', 'triggers', 'delete', 'trg_123', '--yes']);
89 + yield* cli(['dev', 'triggers', 'delete', 'trg_123', '--yes']);
90 const lines = yield* MockConsole.getLines({ stripAnsi: true });
91 const output = lines.join('\n');
92 expect(output).toContain('deleted');
@@ -101,7 +101,7 @@ describe('CLI: composio manage triggers mutations', () => {
101 it.scoped('rejects array JSON in --trigger-config', () =>
102 Effect.gen(function* () {
103 yield* cli([
104 - 'manage',
104 + 'dev',
105 'triggers',
106 'create',
107 'GMAIL_NEW_GMAIL_MESSAGE',
@@ -118,7 +118,7 @@ describe('CLI: composio manage triggers mutations', () => {
118 it.scoped('rejects number JSON in --trigger-config', () =>
119 Effect.gen(function* () {
120 yield* cli([
121 - 'manage',
121 + 'dev',
122 'triggers',
123 'create',
124 'GMAIL_NEW_GMAIL_MESSAGE',
@@ -139,7 +139,7 @@ describe('CLI: composio manage triggers mutations', () => {
139 it => {
140 it.scoped('shows missing id warning', () =>
141 Effect.gen(function* () {
142 - yield* cli(['manage', 'triggers', 'enable']);
142 + yield* cli(['dev', 'triggers', 'enable']);
143 const lines = yield* MockConsole.getLines({ stripAnsi: true });
144 const output = lines.join('\n');
145 expect(output).toContain('Missing required argument');
@@ -153,7 +153,7 @@ describe('CLI: composio manage triggers mutations', () => {
153 it => {
154 it.scoped('shows missing id warning', () =>
155 Effect.gen(function* () {
156 - yield* cli(['manage', 'triggers', 'disable']);
156 + yield* cli(['dev', 'triggers', 'disable']);
157 const lines = yield* MockConsole.getLines({ stripAnsi: true });
158 const output = lines.join('\n');
159 expect(output).toContain('Missing required argument');
@@ -167,7 +167,7 @@ describe('CLI: composio manage triggers mutations', () => {
167 it => {
168 it.scoped('shows missing id warning', () =>
169 Effect.gen(function* () {
170 - yield* cli(['manage', 'triggers', 'delete']);
170 + yield* cli(['dev', '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
+7 -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 manage triggers status', () => {
58 +describe('CLI: composio dev 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(['manage', 'triggers', 'status']);
64 + yield* cli(['dev', 'triggers', 'status']);
65 const lines = yield* MockConsole.getLines({ stripAnsi: true });
66 const output = lines.join('\n');
67
@@ -79,7 +79,7 @@ describe('CLI: composio manage triggers status', () => {
79 it => {
80 it.scoped('includes disabled trigger instances', () =>
81 Effect.gen(function* () {
82 - yield* cli(['manage', 'triggers', 'status', '--show-disabled']);
82 + yield* cli(['dev', '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 manage triggers status', () => {
96 it => {
97 it.scoped('filters by user_ids', () =>
98 Effect.gen(function* () {
99 - yield* cli(['manage', 'triggers', 'status', '--user-ids', 'user_123']);
99 + yield* cli(['dev', 'triggers', 'status', '--user-ids', 'user_123']);
100 const lines = yield* MockConsole.getLines({ stripAnsi: true });
101 const output = lines.join('\n');
102
@@ -114,7 +114,7 @@ describe('CLI: composio manage triggers status', () => {
114 it.scoped('normalizes trigger names to uppercase', () =>
115 Effect.gen(function* () {
116 yield* cli([
117 - 'manage',
117 + 'dev',
118 'triggers',
119 'status',
120 '--trigger-names',
@@ -136,7 +136,7 @@ describe('CLI: composio manage triggers status', () => {
136 it => {
137 it.scoped('filters by toolkit prefix in trigger name', () =>
138 Effect.gen(function* () {
139 - yield* cli(['manage', 'triggers', 'status', '--toolkits', 'slack']);
139 + yield* cli(['dev', 'triggers', 'status', '--toolkits', 'slack']);
140 const lines = yield* MockConsole.getLines({ stripAnsi: true });
141 const output = lines.join('\n');
142
@@ -151,7 +151,7 @@ describe('CLI: composio manage 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* () {
154 - yield* cli(['manage', 'triggers', 'status']);
154 + yield* cli(['dev', 'triggers', 'status']);
155 const lines = yield* MockConsole.getLines({ stripAnsi: true });
156 const output = lines.join('\n');
157