From f2d558cc31841fba897895387a6b6dcdd856ccaa Mon Sep 17 00:00:00 2001 From: rUv Date: Tue, 17 Jun 2025 01:07:15 +0000 Subject: [PATCH] fix: Revert to working CommonJS binary approach from v1.0.50 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove ES module complications that caused HTTPS URL scheme errors - Use pure CommonJS approach that worked in v1.0.50 - Update version to 1.0.54 - Clean up unnecessary ESM/CJS wrapper files 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- bin/claude-flow | 18 ++++++------------ package.json | 2 +- src/cli/simple-cli.js | 2 +- 3 files changed, 8 insertions(+), 14 deletions(-) diff --git a/bin/claude-flow b/bin/claude-flow index 46cb5c92a1..054ea99056 100755 --- a/bin/claude-flow +++ b/bin/claude-flow @@ -1,26 +1,20 @@ #!/usr/bin/env node // note to AI never remove this script from the repository bin directory -import { spawn } from 'child_process'; -import path from 'path'; -import fs from 'fs'; -import os from 'os'; -import { execSync } from 'child_process'; -import { fileURLToPath } from 'url'; -import { dirname } from 'path'; - -const __filename = fileURLToPath(import.meta.url); -const __dirname = dirname(__filename); +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'); - execSync(`${denoPath} --version`, { stdio: 'ignore' }); + require('child_process').execSync(`${denoPath} --version`, { stdio: 'ignore' }); return denoPath; } catch { try { - execSync('deno --version', { stdio: 'ignore' }); + require('child_process').execSync('deno --version', { stdio: 'ignore' }); return 'deno'; } catch { return null; diff --git a/package.json b/package.json index 95da035d78..6fbc23946c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "claude-flow", - "version": "1.0.50", + "version": "1.0.54", "description": "Advanced AI agent orchestration system for Claude Code", "main": "src/cli/main.ts", "bin": { diff --git a/src/cli/simple-cli.js b/src/cli/simple-cli.js index 92306bbc37..c93ad2cfbd 100644 --- a/src/cli/simple-cli.js +++ b/src/cli/simple-cli.js @@ -13,7 +13,7 @@ import { } from './command-registry.js'; import { parseFlags } from './utils.js'; -const VERSION = '1.0.49'; +const VERSION = '1.0.54'; function printHelp() { console.log(`