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 15 lines 550 Bytes
Raw
1 import { Argument, Command, Flag } from 'effect/cli';
2 import { runTriggersList } from './triggers.list.handler';
3
4 const toolkit = Argument.String('toolkit').pipe(
5 Argument.withDescription('Toolkit slug to list trigger types for (e.g. "gmail")')
6 );
7
8 const limit = Flag.Int('limit').pipe(
9 Flag.withDefault(30),
10 Flag.withDescription('Maximum number of trigger types to show (1-1000)')
11 );
12
13 export const triggersCmd$List = Command.make('list', { toolkit, limit }, runTriggersList).pipe(
14 Command.withDescription('List available trigger types.')
15 );