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 24 lines 818 Bytes
Raw
1 import { Command, Flag } from 'effect/cli';
2 import { runAgentSignup } from './agent.signup.handler';
3
4 const noWait = Flag.Boolean('no-wait').pipe(
5 Flag.withDefault(false),
6 Flag.withDescription('Start agent signup and exit without waiting for credentials')
7 );
8
9 const noLogin = Flag.Boolean('no-login').pipe(
10 Flag.withDefault(false),
11 Flag.withDescription('Create or verify the agent identity without logging the CLI in')
12 );
13
14 const force = Flag.Boolean('force').pipe(
15 Flag.withAlias('f'),
16 Flag.withDefault(false),
17 Flag.withDescription('Create a new agent identity even if ~/.composio/agent.json already exists')
18 );
19
20 export const agentCmd$Signup = Command.make(
21 'signup',
22 { noWait, noLogin, force },
23 runAgentSignup
24 ).pipe(Command.withDescription('Sign up and optionally log in as a Composio agent.'));