mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-25 06:36:49 +09:00
fix(windows): Correct bin configuration for proper npx Windows execution
Remove duplicate bin entries that caused intermittent execution failures. NPM automatically creates platform-specific shim files (.cmd, .ps1) from a single bin entry. - Remove manual claude-flow.cmd file - Keep single bin entry pointing to shell script - Let npm handle Windows compatibility automatically Fixes 'El sistema no puede encontrar la ruta especificada' error.
This commit is contained in:
1 parent
a6160c4c87
commit
0c777fce69
2 files changed
+1
-56
No files matched your search
@@ -1,54 +0,0 @@
|
||||
@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
|
||||
+1
-2
@@ -4,8 +4,7 @@
|
||||
"description": "Enterprise-grade AI agent orchestration with ruv-swarm integration (Alpha Release)",
|
||||
"main": "cli.mjs",
|
||||
"bin": {
|
||||
"claude-flow": "./bin/claude-flow",
|
||||
"claude-flow.cmd": "./bin/claude-flow.cmd"
|
||||
"claude-flow": "./bin/claude-flow"
|
||||
},
|
||||
"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'); }\"",
|
||||
|
||||
Reference in new issue
Block a user