claude-flow 3.7.0-alpha.32 β 3.7.0-alpha.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
[](https://www.npmjs.com/package/@claude-flow/codex)
|
|
13
13
|
[](https://github.com/ruvnet/ruvector)
|
|
14
14
|
|
|
15
|
+
[](https://github.com/ruvnet/ruflo/issues/1967)
|
|
16
|
+
|
|
15
17
|
# Ruflo
|
|
16
18
|
|
|
17
19
|
**Multi-agent AI orchestration for Claude Code**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-flow",
|
|
3
|
-
"version": "3.7.0-alpha.
|
|
3
|
+
"version": "3.7.0-alpha.34",
|
|
4
4
|
"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",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
[](https://www.npmjs.com/package/@claude-flow/codex)
|
|
13
13
|
[](https://github.com/ruvnet/ruvector)
|
|
14
14
|
|
|
15
|
+
[](https://github.com/ruvnet/ruflo/issues/1967)
|
|
16
|
+
|
|
15
17
|
# Ruflo
|
|
16
18
|
|
|
17
19
|
**Multi-agent AI orchestration for Claude Code**
|
|
@@ -83,9 +83,19 @@ const startCommand = {
|
|
|
83
83
|
// #1551: Kill any stale daemon processes that weren't tracked by PID file
|
|
84
84
|
await killStaleDaemons(projectRoot, quiet);
|
|
85
85
|
}
|
|
86
|
-
// Background mode (default): fork a detached process
|
|
86
|
+
// Background mode (default): fork a detached process.
|
|
87
|
+
// #1968: previously only forwarded resource thresholds β `--workers`,
|
|
88
|
+
// `--headless`, and `--sandbox` were dropped on the floor when the
|
|
89
|
+
// launcher forked the foreground child, so `daemon start --workers map`
|
|
90
|
+
// got the full default worker set instead.
|
|
87
91
|
if (!foreground) {
|
|
88
|
-
return startBackgroundDaemon(projectRoot, quiet,
|
|
92
|
+
return startBackgroundDaemon(projectRoot, quiet, {
|
|
93
|
+
maxCpuLoad: rawMaxCpu,
|
|
94
|
+
minFreeMemory: rawMinMem,
|
|
95
|
+
workers: ctx.flags.workers,
|
|
96
|
+
headless: ctx.flags.headless,
|
|
97
|
+
sandbox: ctx.flags.sandbox,
|
|
98
|
+
});
|
|
89
99
|
}
|
|
90
100
|
// Foreground mode: run in current process (blocks terminal)
|
|
91
101
|
try {
|
|
@@ -233,10 +243,8 @@ export function resolveWorkspaceFlag(raw) {
|
|
|
233
243
|
export function daemonCommandLineBelongsToWorkspace(commandLine, workspaceRoot) {
|
|
234
244
|
return commandLine.replace(/[\s"']+$/u, '').endsWith(`--workspace ${workspaceRoot}`);
|
|
235
245
|
}
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
*/
|
|
239
|
-
async function startBackgroundDaemon(projectRoot, quiet, maxCpuLoad, minFreeMemory) {
|
|
246
|
+
async function startBackgroundDaemon(projectRoot, quiet, forwarded = {}) {
|
|
247
|
+
const { maxCpuLoad, minFreeMemory, workers, headless, sandbox } = forwarded;
|
|
240
248
|
// Validate and resolve project root
|
|
241
249
|
const resolvedRoot = resolve(projectRoot);
|
|
242
250
|
validatePath(resolvedRoot, 'Project root');
|
|
@@ -304,6 +312,22 @@ async function startBackgroundDaemon(projectRoot, quiet, maxCpuLoad, minFreeMemo
|
|
|
304
312
|
if (minFreeMemory && SPAWN_NUMERIC_RE.test(minFreeMemory)) {
|
|
305
313
|
forkArgs.push('--min-free-memory', minFreeMemory);
|
|
306
314
|
}
|
|
315
|
+
// #1968: forward worker-selection / sandbox flags. The previous launcher
|
|
316
|
+
// dropped these, so `daemon start --workers map` ran with the default
|
|
317
|
+
// five-worker set instead of just `map`. Validate each before passing
|
|
318
|
+
// through β argv goes straight to a forked process so reject anything
|
|
319
|
+
// that doesn't look like a comma-separated worker-name list or one of
|
|
320
|
+
// the allowed sandbox modes.
|
|
321
|
+
const WORKERS_RE = /^[a-z][a-z0-9_-]*(,[a-z][a-z0-9_-]*)*$/;
|
|
322
|
+
if (typeof workers === 'string' && workers.length > 0 && WORKERS_RE.test(workers)) {
|
|
323
|
+
forkArgs.push('--workers', workers);
|
|
324
|
+
}
|
|
325
|
+
if (headless === true) {
|
|
326
|
+
forkArgs.push('--headless');
|
|
327
|
+
}
|
|
328
|
+
if (typeof sandbox === 'string' && (sandbox === 'strict' || sandbox === 'permissive' || sandbox === 'disabled')) {
|
|
329
|
+
forkArgs.push('--sandbox', sandbox);
|
|
330
|
+
}
|
|
307
331
|
// #1914: stamp the workspace into argv (kept LAST) so the foreground daemon
|
|
308
332
|
// process is self-identifying and `killStaleDaemons` only reaps daemons
|
|
309
333
|
// belonging to this workspace. resolvedRoot was validatePath()'d above.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claude-flow/cli",
|
|
3
|
-
"version": "3.7.0-alpha.
|
|
3
|
+
"version": "3.7.0-alpha.34",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Ruflo CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code",
|
|
6
6
|
"main": "dist/src/index.js",
|