@devries-cameron20 / composio Mirror · read-only
Fork 0

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

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

Synced Nov 21, 04:45 UTC

next
ts 53 lines 1.45 KB
Raw
1 import { Command, Flag } from 'effect/cli';
2 import { runTriggersStatus } from './triggers.status.handler';
3
4 const userIds = Flag.String('user-ids').pipe(
5 Flag.withDescription('Filter by user IDs, comma-separated'),
6 Flag.optional
7 );
8
9 const connectedAccountIds = Flag.String('connected-account-ids').pipe(
10 Flag.withDescription('Filter by connected account IDs, comma-separated'),
11 Flag.optional
12 );
13
14 const toolkits = Flag.String('toolkits').pipe(
15 Flag.withDescription('Filter by toolkit slugs, comma-separated (e.g. "gmail" or "gmail,slack")'),
16 Flag.optional
17 );
18
19 const triggerIds = Flag.String('trigger-ids').pipe(
20 Flag.withDescription('Filter by trigger instance IDs, comma-separated'),
21 Flag.optional
22 );
23
24 const triggerNames = Flag.String('trigger-names').pipe(
25 Flag.withDescription(
26 'Filter by trigger names, comma-separated (case-insensitive; normalized to uppercase)'
27 ),
28 Flag.optional
29 );
30
31 const showDisabled = Flag.Boolean('show-disabled').pipe(
32 Flag.withDefault(false),
33 Flag.withDescription('Include disabled triggers in the response')
34 );
35
36 const limit = Flag.Int('limit').pipe(
37 Flag.withDefault(30),
38 Flag.withDescription('Number of results per page (1-1000)')
39 );
40
41 export const triggersCmd$Status = Command.make(
42 'status',
43 {
44 userIds,
45 connectedAccountIds,
46 toolkits,
47 triggerIds,
48 triggerNames,
49 showDisabled,
50 limit,
51 },
52 runTriggersStatus
53 ).pipe(Command.withDescription('Show active triggers with optional filters.'));