diff --git a/.gitignore b/.gitignore index fb1f669cc3..38c3d247d1 100644 --- a/.gitignore +++ b/.gitignore @@ -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 \ No newline at end of file diff --git a/bin/claude-flow b/bin/claude-flow new file mode 100755 index 0000000000..9a77d17105 --- /dev/null +++ b/bin/claude-flow @@ -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); +}); \ No newline at end of file diff --git a/memory-bank.md b/memory-bank.md index b3503a422f..9db9ca03f4 100644 --- a/memory-bank.md +++ b/memory-bank.md @@ -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] diff --git a/memory/claude-flow-data.json b/memory/claude-flow-data.json index 8bec10dcde..c4b7166d48 100644 --- a/memory/claude-flow-data.json +++ b/memory/claude-flow-data.json @@ -1,5 +1,5 @@ { "agents": [], "tasks": [], - "lastUpdated": 1749595208016 + "lastUpdated": 1749595369951 } \ No newline at end of file