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 { Argument, Command } from 'effect/cli'; |
| 2 | import { runConnectedAccountsWhoami } from './connected-accounts.whoami.handler'; |
| 3 | |
| 4 | const id = Argument.String('id').pipe( |
| 5 | Argument.withDescription('Connected account ID (nanoid)'), |
| 6 | Argument.optional |
| 7 | ); |
| 8 | |
| 9 | /** |
| 10 | * Show the external account profile for a connected account. |
| 11 | * |
| 12 | * Retrieves the connected account details and displays a summary |
| 13 | * of who is connected (toolkit, user, status). Warns when the |
| 14 | * connection is in a non-ACTIVE state. |
| 15 | * |
| 16 | * @example |
| 17 | * ```bash |
| 18 | * composio dev connected-accounts whoami "con_1a2b3c4d5e6f" |
| 19 | * ``` |
| 20 | */ |
| 21 | export const connectedAccountsCmd$Whoami = Command.make( |
| 22 | 'whoami', |
| 23 | { id }, |
| 24 | runConnectedAccountsWhoami |
| 25 | ).pipe(Command.withDescription('Show the external account profile for a connected account.')); |