Skip to content

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

411 B
Raw Blame
import { Effect } from 'effect';
import * as Cli from 'src/commands';

// Run CLI in test environment. `bootstrap` stands in for the values `cli-main.ts` resolves before
// routing the root command (currently the `composio run` id).
export const cli = (args: ReadonlyArray<string>, bootstrap?: Cli.RootCommandBootstrap) =>
  Effect.flatMap(Cli.runWithConfig, run => run(['node', '<CMD>', ...args], bootstrap));