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, 06:00 UTC
| 1 | import { withCommandMeta } from 'src/invocation/command-identity'; |
| 2 | import { Command } from 'effect/cli'; |
| 3 | import { connectedAccountsCmd$List } from './list/connected-accounts.list.cmd'; |
| 4 | import { connectedAccountsCmd$Info } from './info/connected-accounts.info.cmd'; |
| 5 | import { connectedAccountsCmd$Whoami } from './whoami/connected-accounts.whoami.cmd'; |
| 6 | import { connectedAccountsCmd$Link } from './link/connected-accounts.link.cmd'; |
| 7 | import { withRegisteredSubcommands } from 'src/commands/registration'; |
| 8 | |
| 9 | /** |
| 10 | * CLI entry point for connected account management commands. |
| 11 | * |
| 12 | * @example |
| 13 | * ```bash |
| 14 | * composio dev connected-accounts <command> |
| 15 | * ``` |
| 16 | */ |
| 17 | export const connectedAccountsCmd = Command.make('connected-accounts').pipe( |
| 18 | Command.withDescription('View and manage Composio connected accounts.'), |
| 19 | withRegisteredSubcommands([ |
| 20 | connectedAccountsCmd$Link, |
| 21 | connectedAccountsCmd$List, |
| 22 | connectedAccountsCmd$Info.pipe(withCommandMeta({ sharedFlags: { userId: false } })), |
| 23 | connectedAccountsCmd$Whoami.pipe(withCommandMeta({ sharedFlags: { userId: false } })), |
| 24 | ]), |
| 25 | withCommandMeta({ requiresLogin: true }) |
| 26 | ); |