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.
Files changed (37) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/v3/@claude-flow/cli/README.md +1 -1
  4. package/v3/@claude-flow/cli/catalog-manifest.json +3 -3
  5. package/v3/@claude-flow/cli/dist/src/mcp-tools/managed-agent-tools.d.ts +1 -20
  6. package/v3/@claude-flow/cli/dist/src/mcp-tools/managed-agent-tools.js +344 -108
  7. package/v3/@claude-flow/cli/dist/src/mcp-tools/managed-learning-tool.d.ts +4 -0
  8. package/v3/@claude-flow/cli/dist/src/mcp-tools/managed-learning-tool.js +46 -0
  9. package/v3/@claude-flow/cli/dist/src/mcp-tools/memory-tools.js +6 -3
  10. package/v3/@claude-flow/cli/dist/src/mcp-tools/rure-tools.js +59 -0
  11. package/v3/@claude-flow/cli/dist/src/missions/schemas.d.ts +12 -12
  12. package/v3/@claude-flow/cli/dist/src/rure/cuda-cubin.d.ts +7 -0
  13. package/v3/@claude-flow/cli/dist/src/rure/cuda-cubin.js +17 -2
  14. package/v3/@claude-flow/cli/dist/src/rure/cuda-occupancy.d.ts +59 -0
  15. package/v3/@claude-flow/cli/dist/src/rure/cuda-occupancy.js +69 -0
  16. package/v3/@claude-flow/cli/dist/src/rure/cuda-plan.d.ts +84 -0
  17. package/v3/@claude-flow/cli/dist/src/rure/cuda-plan.js +197 -0
  18. package/v3/@claude-flow/cli/dist/src/services/headless-worker-executor.js +56 -19
  19. package/v3/@claude-flow/cli/dist/src/services/managed-learning-loop.d.ts +79 -0
  20. package/v3/@claude-flow/cli/dist/src/services/managed-learning-loop.js +76 -0
  21. package/v3/@claude-flow/cli/dist/src/services/managed-learning-store.d.ts +187 -0
  22. package/v3/@claude-flow/cli/dist/src/services/managed-learning-store.js +238 -0
  23. package/v3/@claude-flow/cli/dist/src/services/managed-learning.d.ts +108 -0
  24. package/v3/@claude-flow/cli/dist/src/services/managed-learning.js +197 -0
  25. package/v3/@claude-flow/cli/dist/src/services/managed-memory-client.d.ts +72 -0
  26. package/v3/@claude-flow/cli/dist/src/services/managed-memory-client.js +236 -0
  27. package/v3/@claude-flow/cli/dist/src/services/managed-memory-worker.d.ts +56 -0
  28. package/v3/@claude-flow/cli/dist/src/services/managed-memory-worker.js +161 -0
  29. package/v3/@claude-flow/cli/dist/src/services/managed-run-collector.d.ts +93 -0
  30. package/v3/@claude-flow/cli/dist/src/services/managed-run-collector.js +181 -0
  31. package/v3/@claude-flow/cli/dist/src/services/managed-run-store.d.ts +52 -0
  32. package/v3/@claude-flow/cli/dist/src/services/managed-run-store.js +119 -0
  33. package/v3/@claude-flow/cli/dist/src/services/managed-workflows.d.ts +101 -0
  34. package/v3/@claude-flow/cli/dist/src/services/managed-workflows.js +183 -0
  35. package/v3/@claude-flow/cli/dist/src/services/worker-daemon.d.ts +1 -0
  36. package/v3/@claude-flow/cli/dist/src/services/worker-daemon.js +11 -2
  37. 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
- if (typeof saved.config?.maxConcurrent === 'number' && saved.config.maxConcurrent > 0) {
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.61.1",
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",