Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

fix(windows): Add Windows-compatible batch file for npx execution

Alexx_FTWa6160c4c8761
diff --git a/bin/claude-flow.cmd b/bin/claude-flow.cmd
new file mode 100644
index 0000000000..ead9b61c88
--- /dev/null
+++ b/bin/claude-flow.cmd
@@ -0,0 +1,54 @@
+@echo off
+setlocal enabledelayedexpansion
+
+:: Claude-Flow Windows Dispatcher
+set VERSION=2.0.0-alpha.73
+
+:: Get the directory where this script is located
+set SCRIPT_DIR=%~dp0
+set ROOT_DIR=%SCRIPT_DIR%..
+
+:: Show help if no arguments provided
+if "%~1"=="" (
+ set "ARGS=--help"
+) else (
+ set "ARGS=%*"
+)
+
+:: Check for version flag
+if "%~1"=="--version" (
+ echo v%VERSION%
+ exit /b 0
+)
+if "%~1"=="-v" (
+ echo v%VERSION%
+ exit /b 0
+)
+
+:: Try to use the JavaScript CLI directly
+if exist "%ROOT_DIR%\src\cli\simple-cli.js" (
+ node "%ROOT_DIR%\src\cli\simple-cli.js" %ARGS%
+ exit /b %ERRORLEVEL%
+)
+
+:: Fallback: try with tsx if available
+where tsx >nul 2>&1
+if %ERRORLEVEL% == 0 (
+ if exist "%ROOT_DIR%\src\cli\simple-cli.ts" (
+ tsx "%ROOT_DIR%\src\cli\simple-cli.ts" %ARGS%
+ exit /b %ERRORLEVEL%
+ )
+)
+
+:: No runtime available
+echo Claude-Flow v%VERSION% - Advanced AI Agent Orchestration System
+echo.
+echo Error: No compatible runtime found.
+echo.
+echo To install and run:
+echo 1. Ensure Node.js is installed
+echo 2. Run: npm install -g tsx
+echo 3. Run: claude-flow ^<command^>
+echo.
+echo Documentation: https://github.com/ruvnet/claude-code-flow
+exit /b 1
\ No newline at end of file
diff --git a/package.json b/package.json
index 67959d6373..d4a421b244 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,8 @@
"description": "Enterprise-grade AI agent orchestration with ruv-swarm integration (Alpha Release)",
"main": "cli.mjs",
"bin": {
- "claude-flow": "./bin/claude-flow"
+ "claude-flow": "./bin/claude-flow",
+ "claude-flow.cmd": "./bin/claude-flow.cmd"
},
"scripts": {
"preinstall": "node -e \"if(process.platform === 'win32' && process.env.npm_config_user_agent && process.env.npm_config_user_agent.includes('npm')) { console.warn('⚠️ Warning: On Windows, it is recommended to use pnpm to install this package to avoid potential native dependency build issues.'); console.warn('💡 Try: pnpm install or pnpx claude-flow@alpha'); }\"",