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

next
ts 37 lines 1013 Bytes
Raw
1 import { Command, Flag } from 'effect/cli';
2 import { runToolkitsList } from './toolkits.list.handler';
3
4 const query = Flag.String('query').pipe(
5 Flag.withDescription('Text search by name, slug, or description'),
6 Flag.optional
7 );
8
9 const limit = Flag.Int('limit').pipe(
10 Flag.withDefault(30),
11 Flag.withDescription('Number of results per page (1-1000)')
12 );
13
14 const connected = Flag.Boolean('connected').pipe(
15 Flag.withDescription('Filter to connected toolkits only'),
16 Flag.optional
17 );
18
19 /**
20 * List available toolkits with connection status.
21 *
22 * @example
23 * ```bash
24 * composio dev toolkits list
25 * composio dev toolkits list --query "email"
26 * composio dev toolkits list --connected
27 * composio dev toolkits list --user-id "alice"
28 * ```
29 */
30 export const toolkitsCmd$List = Command.make(
31 'list',
32 { query, limit, connected },
33 runToolkitsList
34 ).pipe(
35 Command.withDescription('List available toolkits with connection status.'),
36 Command.withExamples([{ command: 'composio dev toolkits list' }])
37 );