From 3983d8aad58fe6e1995a410acb4e47b5dd584d48 Mon Sep 17 00:00:00 2001 From: Reuven Date: Tue, 28 Apr 2026 00:44:17 -0400 Subject: [PATCH] fix: browser args comma-join + proper ESM fs import for sysctl (v3.6.8) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug D final: args.join(',') not args.join(' ') — agent-browser expects comma-separated single string: --args "--no-sandbox,--disable-dev-shm" Bug E final: readSysctl used require('fs') which fails silently in ESM. Now uses top-level import { readFileSync, existsSync } from 'node:fs'. AppArmor check was already present but never executed due to require(). Co-Authored-By: claude-flow --- package.json | 2 +- ruflo/package.json | 2 +- v3/@claude-flow/cli/package.json | 2 +- v3/@claude-flow/cli/src/mcp-tools/browser-tools.ts | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index c58c09486b..f9511d5146 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "claude-flow", - "version": "3.6.7", + "version": "3.6.8", "description": "Ruflo - Enterprise AI agent orchestration for Claude Code. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration", "main": "dist/index.js", "type": "module", diff --git a/ruflo/package.json b/ruflo/package.json index 51afd2c634..f1fd4bbfdf 100644 --- a/ruflo/package.json +++ b/ruflo/package.json @@ -1,6 +1,6 @@ { "name": "ruflo", - "version": "3.6.7", + "version": "3.6.8", "description": "Ruflo - Enterprise AI agent orchestration platform. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration", "main": "bin/ruflo.js", "type": "module", diff --git a/v3/@claude-flow/cli/package.json b/v3/@claude-flow/cli/package.json index c6734d27e9..e2abcbf1c4 100644 --- a/v3/@claude-flow/cli/package.json +++ b/v3/@claude-flow/cli/package.json @@ -1,6 +1,6 @@ { "name": "@claude-flow/cli", - "version": "3.6.7", + "version": "3.6.8", "type": "module", "description": "Ruflo CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code", "main": "dist/src/index.js", diff --git a/v3/@claude-flow/cli/src/mcp-tools/browser-tools.ts b/v3/@claude-flow/cli/src/mcp-tools/browser-tools.ts index 8bcb95c6dd..8c69953606 100644 --- a/v3/@claude-flow/cli/src/mcp-tools/browser-tools.ts +++ b/v3/@claude-flow/cli/src/mcp-tools/browser-tools.ts @@ -5,6 +5,7 @@ * Provides browser automation tools for web navigation, interaction, and data extraction. */ +import { readFileSync, existsSync } from 'node:fs'; import type { MCPTool, MCPToolResult } from './types.js'; import { validateIdentifier, validateText } from './validate-input.js'; @@ -91,7 +92,6 @@ async function execBrowserCommand(args: string[], session = 'default'): Promise< */ function readSysctl(name: string): string | null { try { - const { readFileSync, existsSync } = require('fs'); const p = `/proc/sys/kernel/${name}`; if (existsSync(p)) return readFileSync(p, 'utf-8').trim(); } catch { /* not Linux or can't read */ } @@ -153,7 +153,7 @@ export const browserTools: MCPTool[] = [ } const args = ['open', url]; if (waitUntil) args.push('--wait-until', waitUntil); - if (launchArgs.length > 0) args.push('--args', launchArgs.join(' ')); + if (launchArgs.length > 0) args.push('--args', launchArgs.join(',')); // Create session if new const sessionId = session || 'default';