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 { Command, Flag } from 'effect/cli'; |
| 2 | import { withCommandMeta } from 'src/invocation/command-identity'; |
| 3 | import { runProjectsList } from './projects.list.handler'; |
| 4 | |
| 5 | const orgId = Flag.String('org-id').pipe( |
| 6 | Flag.optional, |
| 7 | Flag.withDescription('Organization ID to list projects for (defaults to current global org)') |
| 8 | ); |
| 9 | |
| 10 | const limit = Flag.Int('limit').pipe( |
| 11 | Flag.withDefault(50), |
| 12 | Flag.withDescription('Max projects to fetch from API (default: 50)') |
| 13 | ); |
| 14 | |
| 15 | export const projectsCmd$List = Command.make('list', { orgId, limit }, runProjectsList).pipe( |
| 16 | Command.withDescription('List developer projects for the current organization.'), |
| 17 | withCommandMeta({ requiresLogin: true }) |
| 18 | ); |