Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
| 1 | #!/usr/bin/env bun |
| 2 | import { fileURLToPath } from 'node:url'; |
| 3 | import { dirname, join } from 'node:path'; |
| 4 | import { existsSync } from 'node:fs'; |
| 5 | |
| 6 | const __dirname = dirname(fileURLToPath(import.meta.url)); |
| 7 | const distBin = join(__dirname, '..', 'dist', 'bin.mjs'); |
| 8 | |
| 9 | if (!existsSync(distBin)) { |
| 10 | console.error('Error: CLI not built yet. Run: pnpm build'); |
| 11 | process.exit(1); |
| 12 | } |
| 13 | |
| 14 | import(distBin); |