Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

next
ts 21 lines 717 Bytes
Raw
1 import { Command, Flag } from 'effect/cli';
2 import { runGeneratePy } from './generate.py.handler';
3
4 const outputDir = Flag.optional(Flag.Directory('output-dir')).pipe(
5 Flag.withAlias('o'),
6 Flag.withDescription('Output directory for the generated Python type stubs')
7 );
8
9 const toolkits = Flag.String('toolkits').pipe(
10 Flag.atLeast(0),
11 Flag.withDescription(
12 'Only generate types for specific toolkits (e.g., --toolkits gmail --toolkits slack)'
13 )
14 );
15
16 /**
17 * `composio generate py` — Generate Python type stubs.
18 */
19 export const generateCmd$Py = Command.make('py', { outputDir, toolkits }, runGeneratePy).pipe(
20 Command.withDescription('Generate Python type stubs for toolkits, tools, and triggers.')
21 );