claude-flow 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/claude-flow +13 -25
  2. package/package.json +1 -1
package/bin/claude-flow CHANGED
@@ -1,28 +1,16 @@
1
- #!/usr/bin/env bash
1
+ #!/usr/bin/env node
2
2
 
3
- # Claude-Flow CLI wrapper
4
- # This script runs the Claude-Flow CLI using Deno
3
+ const { spawn } = require('child_process');
4
+ const path = require('path');
5
5
 
6
- # Get the directory where this script is located
7
- SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
8
- PROJECT_ROOT="$( cd "$SCRIPT_DIR/.." && pwd )"
6
+ // First try to use the Node.js version
7
+ const nodeCliPath = path.join(__dirname, 'claude-flow-node.js');
9
8
 
10
- # Check if Deno is installed
11
- if ! command -v deno &> /dev/null; then
12
- echo "Error: Deno is not installed. Please install Deno first."
13
- echo "Visit: https://deno.land/manual/getting_started/installation"
14
- exit 1
15
- fi
16
-
17
- # Set Deno environment to suppress deprecation warnings
18
- export DENO_NO_DEPRECATION_WARNINGS=1
19
-
20
- # Check if first argument is "swarm"
21
- if [ "$1" = "swarm" ]; then
22
- # Use the swarm demo script
23
- shift # Remove "swarm" from arguments
24
- exec deno run --allow-all --quiet "$PROJECT_ROOT/swarm-demo.ts" "$@"
25
- else
26
- # For all other commands, use the simple CLI which doesn't have import issues
27
- exec deno run --allow-all --quiet "$PROJECT_ROOT/src/cli/simple-cli.ts" "$@"
28
- fi
9
+ // Execute the Node.js CLI directly
10
+ try {
11
+ require(nodeCliPath);
12
+ } catch (error) {
13
+ // If Node.js version fails, log the error
14
+ console.error('Failed to execute Node.js CLI:', error.message);
15
+ process.exit(1);
16
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-flow",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Advanced AI agent orchestration system for Claude Code",
5
5
  "main": "src/cli/main.ts",
6
6
  "bin": {