mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-25 06:36:49 +09:00
feat: Add main CLI entry point for Claude-Flow; update session timestamp and last updated fields
This commit is contained in:
1 parent
3bca82c2f9
commit
bee340c997
4 files changed
+55
-4
No files matched your search
@@ -4,7 +4,6 @@ node_modules/
|
||||
|
||||
# Build outputs
|
||||
dist/
|
||||
claude-flow
|
||||
*.exe
|
||||
|
||||
# IDE
|
||||
@@ -45,4 +44,3 @@ claude-flow.config.json
|
||||
package
|
||||
test-init
|
||||
test-full-init
|
||||
claude-flow-1.0.0
|
||||
Executable
+53
@@ -0,0 +1,53 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
const { spawn } = require('child_process');
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
const os = require('os');
|
||||
|
||||
// Check if Deno is installed
|
||||
function checkDeno() {
|
||||
try {
|
||||
const denoPath = process.env.PATH.includes('.deno/bin') ? 'deno' : path.join(os.homedir(), '.deno', 'bin', 'deno');
|
||||
require('child_process').execSync(`${denoPath} --version`, { stdio: 'ignore' });
|
||||
return denoPath;
|
||||
} catch {
|
||||
try {
|
||||
require('child_process').execSync('deno --version', { stdio: 'ignore' });
|
||||
return 'deno';
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const denoPath = checkDeno();
|
||||
|
||||
if (!denoPath) {
|
||||
console.error('Error: Deno is not installed.');
|
||||
console.error('');
|
||||
console.error('Please install Deno first:');
|
||||
console.error(' curl -fsSL https://deno.land/x/install/install.sh | sh');
|
||||
console.error('');
|
||||
console.error('Or on Windows:');
|
||||
console.error(' irm https://deno.land/install.ps1 | iex');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
// Use the simple CLI JavaScript file which doesn't have TypeScript issues
|
||||
const cliPath = path.join(__dirname, '..', 'src', 'cli', 'simple-cli.js');
|
||||
|
||||
// Run the CLI with Deno
|
||||
const deno = spawn(denoPath, ['run', '--allow-all', cliPath, ...process.argv.slice(2)], {
|
||||
stdio: 'inherit',
|
||||
cwd: path.join(__dirname, '..')
|
||||
});
|
||||
|
||||
deno.on('error', (err) => {
|
||||
console.error('Failed to start Claude-Flow:', err.message);
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
deno.on('close', (code) => {
|
||||
process.exit(code || 0);
|
||||
});
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
This file serves as persistent memory storage for Claude across sessions.
|
||||
|
||||
## Session Information
|
||||
- **Current Session**: Started 2025-06-10T22:40:08.013Z
|
||||
- **Current Session**: Started 2025-06-10T22:42:49.948Z
|
||||
- **Project Phase**: [Development/Testing/Production]
|
||||
- **Active Tasks**: [List current tasks]
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"agents": [],
|
||||
"tasks": [],
|
||||
"lastUpdated": 1749595208016
|
||||
"lastUpdated": 1749595369951
|
||||
}
|
||||
Reference in new issue
Block a user