claude-flow 3.61.1 → 3.63.0
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 +1 -1
- package/package.json +1 -1
- package/v3/@claude-flow/cli/README.md +1 -1
- package/v3/@claude-flow/cli/catalog-manifest.json +3 -3
- package/v3/@claude-flow/cli/dist/src/mcp-tools/managed-agent-tools.d.ts +1 -20
- package/v3/@claude-flow/cli/dist/src/mcp-tools/managed-agent-tools.js +344 -108
- package/v3/@claude-flow/cli/dist/src/mcp-tools/managed-learning-tool.d.ts +4 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/managed-learning-tool.js +46 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/memory-tools.js +6 -3
- package/v3/@claude-flow/cli/dist/src/mcp-tools/rure-tools.js +59 -0
- package/v3/@claude-flow/cli/dist/src/missions/schemas.d.ts +12 -12
- package/v3/@claude-flow/cli/dist/src/rure/cuda-cubin.d.ts +7 -0
- package/v3/@claude-flow/cli/dist/src/rure/cuda-cubin.js +17 -2
- package/v3/@claude-flow/cli/dist/src/rure/cuda-occupancy.d.ts +59 -0
- package/v3/@claude-flow/cli/dist/src/rure/cuda-occupancy.js +69 -0
- package/v3/@claude-flow/cli/dist/src/rure/cuda-plan.d.ts +84 -0
- package/v3/@claude-flow/cli/dist/src/rure/cuda-plan.js +197 -0
- package/v3/@claude-flow/cli/dist/src/services/headless-worker-executor.js +56 -19
- package/v3/@claude-flow/cli/dist/src/services/managed-learning-loop.d.ts +79 -0
- package/v3/@claude-flow/cli/dist/src/services/managed-learning-loop.js +76 -0
- package/v3/@claude-flow/cli/dist/src/services/managed-learning-store.d.ts +187 -0
- package/v3/@claude-flow/cli/dist/src/services/managed-learning-store.js +238 -0
- package/v3/@claude-flow/cli/dist/src/services/managed-learning.d.ts +108 -0
- package/v3/@claude-flow/cli/dist/src/services/managed-learning.js +197 -0
- package/v3/@claude-flow/cli/dist/src/services/managed-memory-client.d.ts +72 -0
- package/v3/@claude-flow/cli/dist/src/services/managed-memory-client.js +236 -0
- package/v3/@claude-flow/cli/dist/src/services/managed-memory-worker.d.ts +56 -0
- package/v3/@claude-flow/cli/dist/src/services/managed-memory-worker.js +161 -0
- package/v3/@claude-flow/cli/dist/src/services/managed-run-collector.d.ts +93 -0
- package/v3/@claude-flow/cli/dist/src/services/managed-run-collector.js +181 -0
- package/v3/@claude-flow/cli/dist/src/services/managed-run-store.d.ts +52 -0
- package/v3/@claude-flow/cli/dist/src/services/managed-run-store.js +119 -0
- package/v3/@claude-flow/cli/dist/src/services/managed-workflows.d.ts +101 -0
- package/v3/@claude-flow/cli/dist/src/services/managed-workflows.js +183 -0
- package/v3/@claude-flow/cli/dist/src/services/worker-daemon.d.ts +1 -0
- package/v3/@claude-flow/cli/dist/src/services/worker-daemon.js +11 -2
- package/v3/@claude-flow/cli/package.json +1 -1
|
@@ -143,6 +143,8 @@ export class WorkerDaemon extends EventEmitter {
|
|
|
143
143
|
// originalConfig — so a config.json override kept losing to whatever
|
|
144
144
|
// .claude-flow/daemon-state.json had persisted from a previous run.
|
|
145
145
|
fileConfigResourceThresholds;
|
|
146
|
+
// #4462 — the same record for maxConcurrent / workerTimeoutMs.
|
|
147
|
+
fileConfigScalars;
|
|
146
148
|
// #2661 root-fix — resolved once (git identity doesn't change at runtime)
|
|
147
149
|
// and reused for lease heartbeats + supervisor election, both gated on
|
|
148
150
|
// aiWorkersEnabled since they only matter for the recurring AI schedule.
|
|
@@ -161,6 +163,7 @@ export class WorkerDaemon extends EventEmitter {
|
|
|
161
163
|
maxCpuLoad: fileConfig.maxCpuLoad,
|
|
162
164
|
minFreeMemoryPercent: fileConfig.minFreeMemoryPercent,
|
|
163
165
|
};
|
|
166
|
+
this.fileConfigScalars = { maxConcurrent: fileConfig.maxConcurrent, workerTimeoutMs: fileConfig.workerTimeoutMs };
|
|
164
167
|
// CPU-proportional smart default instead of hardcoded 2.0
|
|
165
168
|
const cpuCount = WorkerDaemon.getEffectiveCpuCount();
|
|
166
169
|
let smartMaxCpuLoad = Math.max(cpuCount * 0.8, 2.0); // Floor of 2.0 for single-CPU machines
|
|
@@ -691,10 +694,16 @@ export class WorkerDaemon extends EventEmitter {
|
|
|
691
694
|
this.config.resourceThresholds.minFreeMemoryPercent = rt.minFreeMemoryPercent;
|
|
692
695
|
}
|
|
693
696
|
}
|
|
694
|
-
|
|
697
|
+
// #4462 — same rule for the two scalar fields: constructor arg or
|
|
698
|
+
// config.json beats saved state, which only fills in what neither set.
|
|
699
|
+
const maxConcurrentExplicit = this.originalConfig?.maxConcurrent !== undefined
|
|
700
|
+
|| this.fileConfigScalars?.maxConcurrent !== undefined;
|
|
701
|
+
const workerTimeoutExplicit = this.originalConfig?.workerTimeoutMs !== undefined
|
|
702
|
+
|| this.fileConfigScalars?.workerTimeoutMs !== undefined;
|
|
703
|
+
if (!maxConcurrentExplicit && typeof saved.config?.maxConcurrent === 'number' && saved.config.maxConcurrent > 0) {
|
|
695
704
|
this.config.maxConcurrent = saved.config.maxConcurrent;
|
|
696
705
|
}
|
|
697
|
-
if (typeof saved.config?.workerTimeoutMs === 'number' && saved.config.workerTimeoutMs > 0) {
|
|
706
|
+
if (!workerTimeoutExplicit && typeof saved.config?.workerTimeoutMs === 'number' && saved.config.workerTimeoutMs > 0) {
|
|
698
707
|
this.config.workerTimeoutMs = saved.config.workerTimeoutMs;
|
|
699
708
|
}
|
|
700
709
|
// Restore worker runtime states (runCount, successCount, etc.)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claude-flow/cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.63.0",
|
|
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",
|