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
| 1 | import { withCommandMeta } from 'src/invocation/command-identity'; |
| 2 | import { Command } from 'effect/cli'; |
| 3 | import { NO_SHARED_FLAGS } from 'src/commands/surface'; |
| 4 | import { triggersCmd$Info } from './info/triggers.info.cmd'; |
| 5 | import { triggersCmd$List } from './list/triggers.list.cmd'; |
| 6 | import { triggersCmd$Status } from './status/triggers.status.cmd'; |
| 7 | import { triggersCmd$Create } from './create/triggers.create.cmd'; |
| 8 | import { triggersCmd$Enable } from './enable/triggers.enable.cmd'; |
| 9 | import { triggersCmd$Disable } from './disable/triggers.disable.cmd'; |
| 10 | import { triggersCmd$Listen } from './commands/triggers.listen.cmd'; |
| 11 | import { withRegisteredSubcommands } from 'src/commands/registration'; |
| 12 | |
| 13 | /** |
| 14 | * CLI entry point for realtime trigger commands. |
| 15 | * |
| 16 | * @example |
| 17 | * ```bash |
| 18 | * composio dev triggers <command> |
| 19 | * ``` |
| 20 | */ |
| 21 | export const triggersCmd = Command.make('triggers').pipe( |
| 22 | Command.withDescription('Inspect and subscribe to trigger events.'), |
| 23 | withRegisteredSubcommands([ |
| 24 | triggersCmd$Listen, |
| 25 | triggersCmd$List.pipe(withCommandMeta({ sharedFlags: NO_SHARED_FLAGS })), |
| 26 | triggersCmd$Info.pipe(withCommandMeta({ sharedFlags: NO_SHARED_FLAGS })), |
| 27 | triggersCmd$Status.pipe(withCommandMeta({ sharedFlags: { userId: false } })), |
| 28 | triggersCmd$Create, |
| 29 | triggersCmd$Enable.pipe(withCommandMeta({ sharedFlags: { userId: false } })), |
| 30 | triggersCmd$Disable.pipe(withCommandMeta({ sharedFlags: { userId: false } })), |
| 31 | ]), |
| 32 | withCommandMeta({ requiresLogin: true }) |
| 33 | ); |