-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclaude-flow
More file actions
executable file
·34 lines (28 loc) · 808 Bytes
/
claude-flow
File metadata and controls
executable file
·34 lines (28 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env node
/**
* Claude Flow CLI - AI-Driven Development Toolkit
*
* This is the main entry point for the Claude Flow command-line interface.
* It provides powerful AI coordination capabilities for Claude Code.
*/
const { spawn } = require('child_process');
const path = require('path');
// Resolve the actual CLI path
const cliPath = path.resolve(__dirname, 'dist', 'index.js');
// Forward all arguments to the actual CLI
const child = spawn(process.execPath, [cliPath, ...process.argv.slice(2)], {
stdio: 'inherit',
env: {
...process.env,
CLAUDE_FLOW_CLI: 'true'
}
});
// Forward the exit code
child.on('exit', (code) => {
process.exit(code);
});
// Handle errors
child.on('error', (err) => {
console.error('Failed to start Claude Flow:', err);
process.exit(1);
});