forked from ruvnet/ruflo
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathclaude-flow
More file actions
executable file
·37 lines (30 loc) · 974 Bytes
/
Copy pathclaude-flow
File metadata and controls
executable file
·37 lines (30 loc) · 974 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
35
36
37
#!/usr/bin/env node
/**
* Claude Flow CLI - Development Wrapper
* Points to local bin/claude-flow.js for development
*/
import { spawn } from 'child_process';
import { resolve, dirname } from 'path';
import { fileURLToPath } from 'url';
import { existsSync } from 'fs';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
// Point to local bin/claude-flow.js
const localBin = resolve(__dirname, 'bin', 'claude-flow.js');
if (existsSync(localBin)) {
const child = spawn('node', [localBin, ...process.argv.slice(2)], {
stdio: 'inherit',
shell: false
});
child.on('error', (error) => {
console.error('❌ Error executing claude-flow:', error.message);
process.exit(1);
});
child.on('exit', (code) => {
process.exit(code || 0);
});
} else {
console.error('❌ Could not find bin/claude-flow.js');
console.error('Make sure you are in the claude-flow project directory');
process.exit(1);
}