fix: browser args comma-join + proper ESM fs import for sysctl (v3.6.8)

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 <ruv@ruv.net>
This commit is contained in:
Reuvenandclaude-flow committed 2026-04-28 00:44:17 -04:00
1 parent d7e05b443c
commit 3983d8aad5
4 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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",
@@ -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';