UNPKG

@bear_ai/nexus-flow

Version:

Universal AI orchestrator - portal to any flow (claude-flow, qwen-flow, copilot-flow) with queen bee coordination system

28 lines (22 loc) 815 B
#!/usr/bin/env node import { spawn } from 'child_process'; import { fileURLToPath } from 'url'; import { dirname, join } from 'path'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); // Path to the main CLI TypeScript file const mainFile = join(__dirname, '..', 'src', 'cli', 'main.ts'); // Use tsx to run the TypeScript file const child = spawn('npx', ['tsx', mainFile, ...process.argv.slice(2)], { stdio: 'inherit', shell: true }); child.on('exit', (code) => { process.exit(code || 0); }); child.on('error', (err) => { console.error('Failed to start nexus-flow:', err.message); console.error('This is an alpha release. Please ensure all dependencies are installed.'); console.error('Try: npm install -g @bear_ai/nexus-flow@alpha'); process.exit(1); });