Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
| 1 | import { Command, Flag } from 'effect/cli'; |
| 2 | import { withCommandMeta } from 'src/invocation/command-identity'; |
| 3 | import { listAccounts } from './command-example.handler'; |
| 4 | |
| 5 | const toolkit = Flag.String('toolkit').pipe( |
| 6 | Flag.withDescription('Filter by toolkit slug'), |
| 7 | Flag.optional |
| 8 | ); |
| 9 | |
| 10 | /** Teaching example, substituted for connections list only by its test. */ |
| 11 | export const connectionsCmd$List = Command.make('list', { toolkit }, listAccounts).pipe( |
| 12 | Command.withDescription('List connected accounts.'), |
| 13 | withCommandMeta({ requiresLogin: true }) |
| 14 | ); |