@claude-flow/cli 3.56.9 → 3.56.10

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 (97) hide show
  1. package/.claude/helpers/.helpers-version +1 -1
  2. package/.claude/helpers/helpers.manifest.json +3 -3
  3. package/.claude/helpers/intelligence.cjs +51 -9
  4. package/.claude/helpers/router.cjs +0 -0
  5. package/.claude/skills/verification-quality/SKILL.md +14 -11
  6. package/README.md +1 -1
  7. package/catalog-manifest.json +2 -2
  8. package/dist/src/autopilot-state.d.ts +2 -0
  9. package/dist/src/autopilot-state.js +36 -8
  10. package/dist/src/command-resolution.d.ts +15 -0
  11. package/dist/src/command-resolution.js +25 -0
  12. package/dist/src/commands/agent.js +17 -17
  13. package/dist/src/commands/claims.js +6 -8
  14. package/dist/src/commands/daemon.js +86 -31
  15. package/dist/src/commands/memory.js +14 -2
  16. package/dist/src/commands/security-code-patterns.d.ts +2 -2
  17. package/dist/src/commands/security-code-patterns.js +61 -3
  18. package/dist/src/commands/security.d.ts +24 -0
  19. package/dist/src/commands/security.js +81 -35
  20. package/dist/src/commands/tui.d.ts +9 -0
  21. package/dist/src/commands/tui.js +29 -3
  22. package/dist/src/config/proven-config-refresh.d.ts +9 -0
  23. package/dist/src/config/proven-config-refresh.js +24 -3
  24. package/dist/src/funnel/local-signals.js +2 -1
  25. package/dist/src/index.js +6 -42
  26. package/dist/src/init/types.js +1 -1
  27. package/dist/src/mcp-tools/agent-execute-core.d.ts +2 -0
  28. package/dist/src/mcp-tools/agent-execute-core.js +15 -0
  29. package/dist/src/mcp-tools/agent-health-metrics.d.ts +22 -0
  30. package/dist/src/mcp-tools/agent-health-metrics.js +33 -0
  31. package/dist/src/mcp-tools/agent-tools.js +45 -22
  32. package/dist/src/mcp-tools/agentbbs-federation.d.ts +1 -1
  33. package/dist/src/mcp-tools/agentbbs-federation.js +7 -2
  34. package/dist/src/mcp-tools/agentdb-tools.js +25 -2
  35. package/dist/src/mcp-tools/aidefence-known-misses.d.ts +22 -0
  36. package/dist/src/mcp-tools/aidefence-known-misses.js +57 -0
  37. package/dist/src/mcp-tools/analyze-tools.js +10 -11
  38. package/dist/src/mcp-tools/autopilot-tools.js +2 -2
  39. package/dist/src/mcp-tools/browser-intent-tools.js +6 -2
  40. package/dist/src/mcp-tools/embeddings-tools.js +29 -7
  41. package/dist/src/mcp-tools/hooks-tools.js +4 -0
  42. package/dist/src/mcp-tools/memory-tools.js +70 -20
  43. package/dist/src/mcp-tools/neural-tools.js +28 -4
  44. package/dist/src/mcp-tools/ruvllm-tools.js +6 -0
  45. package/dist/src/mcp-tools/security-tools.js +55 -17
  46. package/dist/src/mcp-tools/workflow-tools.js +66 -17
  47. package/dist/src/memory/intelligence.d.ts +5 -1
  48. package/dist/src/memory/intelligence.js +105 -29
  49. package/dist/src/memory/memory-bridge.js +10 -3
  50. package/dist/src/memory/memory-initializer.js +2 -1
  51. package/dist/src/memory/search-defaults.d.ts +54 -0
  52. package/dist/src/memory/search-defaults.js +37 -0
  53. package/dist/src/memory/sona-optimizer.d.ts +28 -0
  54. package/dist/src/memory/sona-optimizer.js +59 -2
  55. package/dist/src/mods/command-registry/schema.d.ts +24 -24
  56. package/dist/src/ruvector/agent-wasm.d.ts +10 -0
  57. package/dist/src/ruvector/agent-wasm.js +27 -1
  58. package/dist/src/ruvector/diff-classifier.d.ts +2 -4
  59. package/dist/src/ruvector/diff-classifier.js +202 -69
  60. package/dist/src/ruvector/ruvllm-wasm.d.ts +4 -0
  61. package/dist/src/ruvector/ruvllm-wasm.js +12 -1
  62. package/dist/src/services/policy-runtime.d.ts +1 -1
  63. package/dist/src/services/policy-runtime.js +7 -1
  64. package/dist/src/services/worker-daemon.d.ts +11 -0
  65. package/dist/src/services/worker-daemon.js +37 -0
  66. package/dist/src/transfer/store/discovery.js +16 -17
  67. package/dist/src/transfer/store/types.d.ts +4 -0
  68. package/node_modules/@claude-flow/codex/dist/cli.js +0 -0
  69. package/node_modules/@claude-flow/plugin-agent-federation/dist/bin.js +0 -0
  70. package/node_modules/@claude-flow/security/dist/input-validator.d.ts +6 -6
  71. package/package.json +4 -4
  72. package/plugins/ruflo-console/dist/tui.mjs +162 -161
  73. package/plugins/ruflo-metaharness/.claude-flow/daemon-state.json +179 -0
  74. package/plugins/ruflo-metaharness/.claude-flow/daemon.pid +1 -0
  75. package/plugins/ruflo-metaharness/.claude-flow/logs/daemon.log +32 -0
  76. package/plugins/ruflo-metaharness/.claude-flow/metrics/backup.json +23 -0
  77. package/plugins/ruflo-metaharness/.claude-flow/metrics/codebase-map.json +11 -0
  78. package/plugins/ruflo-metaharness/.claude-flow/metrics/consolidation.json +16 -0
  79. package/plugins/ruflo-metaharness/.claude-flow/metrics/harness-loop.json +91 -0
  80. package/plugins/ruflo-metaharness/.claude-flow/metrics/performance.json +17 -0
  81. package/plugins/ruflo-metaharness/.claude-flow/metrics/security-audit.json +12 -0
  82. package/plugins/ruflo-metaharness/.claude-flow/metrics/test-gaps.json +8 -0
  83. package/plugins/ruflo-metaharness/.claude-flow/neural/patterns.json +2809 -0
  84. package/plugins/ruflo-metaharness/.claude-flow/neural/stats.json +6 -0
  85. package/plugins/ruflo-metaharness/.claude-flow/policy/state.json +11 -0
  86. package/plugins/ruflo-metaharness/.swarm/agentdb-memory.db +0 -0
  87. package/plugins/ruflo-metaharness/.swarm/agentdb-memory.db-shm +0 -0
  88. package/plugins/ruflo-metaharness/.swarm/agentdb-memory.db-wal +0 -0
  89. package/plugins/ruflo-metaharness/.swarm/backups/memory-2026-10-14T16-09-38-164Z.db +0 -0
  90. package/plugins/ruflo-metaharness/.swarm/backups/store-agentdb-memory.db-2026-10-14T16-09-38-166Z.db +0 -0
  91. package/plugins/ruflo-metaharness/.swarm/ewc-fisher.json +397 -0
  92. package/plugins/ruflo-metaharness/.swarm/memory.db +0 -0
  93. package/plugins/ruflo-metaharness/.swarm/memory.db-shm +0 -0
  94. package/plugins/ruflo-metaharness/.swarm/memory.db-wal +0 -0
  95. package/plugins/ruflo-metaharness/agentdb.rvf +0 -0
  96. package/plugins/ruflo-metaharness/agentdb.rvf.lock +0 -0
  97. package/plugins/ruflo-metaharness/ruvector.db +0 -0
@@ -63,19 +63,19 @@ export declare const commandDefinitionSchema: z.ZodEffects<z.ZodObject<{
63
63
  path: z.ZodString;
64
64
  }, "strict", z.ZodTypeAny, {
65
65
  path: string;
66
- commit: string;
67
66
  repository: string;
67
+ commit: string;
68
68
  }, {
69
69
  path: string;
70
- commit: string;
71
70
  repository: string;
71
+ commit: string;
72
72
  }>;
73
73
  }, "strict", z.ZodTypeAny, {
74
74
  id: string;
75
75
  source: {
76
76
  path: string;
77
- commit: string;
78
77
  repository: string;
78
+ commit: string;
79
79
  };
80
80
  schemaVersion: 1;
81
81
  kind: "help" | "query" | "prompt" | "workflow" | "mutation";
@@ -100,8 +100,8 @@ export declare const commandDefinitionSchema: z.ZodEffects<z.ZodObject<{
100
100
  id: string;
101
101
  source: {
102
102
  path: string;
103
- commit: string;
104
103
  repository: string;
104
+ commit: string;
105
105
  };
106
106
  schemaVersion: 1;
107
107
  kind: "help" | "query" | "prompt" | "workflow" | "mutation";
@@ -126,8 +126,8 @@ export declare const commandDefinitionSchema: z.ZodEffects<z.ZodObject<{
126
126
  id: string;
127
127
  source: {
128
128
  path: string;
129
- commit: string;
130
129
  repository: string;
130
+ commit: string;
131
131
  };
132
132
  schemaVersion: 1;
133
133
  kind: "help" | "query" | "prompt" | "workflow" | "mutation";
@@ -152,8 +152,8 @@ export declare const commandDefinitionSchema: z.ZodEffects<z.ZodObject<{
152
152
  id: string;
153
153
  source: {
154
154
  path: string;
155
- commit: string;
156
155
  repository: string;
156
+ commit: string;
157
157
  };
158
158
  schemaVersion: 1;
159
159
  kind: "help" | "query" | "prompt" | "workflow" | "mutation";
@@ -244,19 +244,19 @@ export declare const catalogEntrySchema: z.ZodObject<{
244
244
  path: z.ZodString;
245
245
  }, "strict", z.ZodTypeAny, {
246
246
  path: string;
247
- commit: string;
248
247
  repository: string;
248
+ commit: string;
249
249
  }, {
250
250
  path: string;
251
- commit: string;
252
251
  repository: string;
252
+ commit: string;
253
253
  }>;
254
254
  }, "strict", z.ZodTypeAny, {
255
255
  id: string;
256
256
  source: {
257
257
  path: string;
258
- commit: string;
259
258
  repository: string;
259
+ commit: string;
260
260
  };
261
261
  schemaVersion: 1;
262
262
  kind: "help" | "query" | "prompt" | "workflow" | "mutation";
@@ -281,8 +281,8 @@ export declare const catalogEntrySchema: z.ZodObject<{
281
281
  id: string;
282
282
  source: {
283
283
  path: string;
284
- commit: string;
285
284
  repository: string;
285
+ commit: string;
286
286
  };
287
287
  schemaVersion: 1;
288
288
  kind: "help" | "query" | "prompt" | "workflow" | "mutation";
@@ -307,8 +307,8 @@ export declare const catalogEntrySchema: z.ZodObject<{
307
307
  id: string;
308
308
  source: {
309
309
  path: string;
310
- commit: string;
311
310
  repository: string;
311
+ commit: string;
312
312
  };
313
313
  schemaVersion: 1;
314
314
  kind: "help" | "query" | "prompt" | "workflow" | "mutation";
@@ -333,8 +333,8 @@ export declare const catalogEntrySchema: z.ZodObject<{
333
333
  id: string;
334
334
  source: {
335
335
  path: string;
336
- commit: string;
337
336
  repository: string;
337
+ commit: string;
338
338
  };
339
339
  schemaVersion: 1;
340
340
  kind: "help" | "query" | "prompt" | "workflow" | "mutation";
@@ -404,8 +404,8 @@ export declare const catalogEntrySchema: z.ZodObject<{
404
404
  id: string;
405
405
  source: {
406
406
  path: string;
407
- commit: string;
408
407
  repository: string;
408
+ commit: string;
409
409
  };
410
410
  schemaVersion: 1;
411
411
  kind: "help" | "query" | "prompt" | "workflow" | "mutation";
@@ -445,8 +445,8 @@ export declare const catalogEntrySchema: z.ZodObject<{
445
445
  id: string;
446
446
  source: {
447
447
  path: string;
448
- commit: string;
449
448
  repository: string;
449
+ commit: string;
450
450
  };
451
451
  schemaVersion: 1;
452
452
  kind: "help" | "query" | "prompt" | "workflow" | "mutation";
@@ -510,19 +510,19 @@ export declare const commandCatalogSchema: z.ZodObject<{
510
510
  path: z.ZodString;
511
511
  }, "strict", z.ZodTypeAny, {
512
512
  path: string;
513
- commit: string;
514
513
  repository: string;
514
+ commit: string;
515
515
  }, {
516
516
  path: string;
517
- commit: string;
518
517
  repository: string;
518
+ commit: string;
519
519
  }>;
520
520
  }, "strict", z.ZodTypeAny, {
521
521
  id: string;
522
522
  source: {
523
523
  path: string;
524
- commit: string;
525
524
  repository: string;
525
+ commit: string;
526
526
  };
527
527
  schemaVersion: 1;
528
528
  kind: "help" | "query" | "prompt" | "workflow" | "mutation";
@@ -547,8 +547,8 @@ export declare const commandCatalogSchema: z.ZodObject<{
547
547
  id: string;
548
548
  source: {
549
549
  path: string;
550
- commit: string;
551
550
  repository: string;
551
+ commit: string;
552
552
  };
553
553
  schemaVersion: 1;
554
554
  kind: "help" | "query" | "prompt" | "workflow" | "mutation";
@@ -573,8 +573,8 @@ export declare const commandCatalogSchema: z.ZodObject<{
573
573
  id: string;
574
574
  source: {
575
575
  path: string;
576
- commit: string;
577
576
  repository: string;
577
+ commit: string;
578
578
  };
579
579
  schemaVersion: 1;
580
580
  kind: "help" | "query" | "prompt" | "workflow" | "mutation";
@@ -599,8 +599,8 @@ export declare const commandCatalogSchema: z.ZodObject<{
599
599
  id: string;
600
600
  source: {
601
601
  path: string;
602
- commit: string;
603
602
  repository: string;
603
+ commit: string;
604
604
  };
605
605
  schemaVersion: 1;
606
606
  kind: "help" | "query" | "prompt" | "workflow" | "mutation";
@@ -670,8 +670,8 @@ export declare const commandCatalogSchema: z.ZodObject<{
670
670
  id: string;
671
671
  source: {
672
672
  path: string;
673
- commit: string;
674
673
  repository: string;
674
+ commit: string;
675
675
  };
676
676
  schemaVersion: 1;
677
677
  kind: "help" | "query" | "prompt" | "workflow" | "mutation";
@@ -711,8 +711,8 @@ export declare const commandCatalogSchema: z.ZodObject<{
711
711
  id: string;
712
712
  source: {
713
713
  path: string;
714
- commit: string;
715
714
  repository: string;
715
+ commit: string;
716
716
  };
717
717
  schemaVersion: 1;
718
718
  kind: "help" | "query" | "prompt" | "workflow" | "mutation";
@@ -754,8 +754,8 @@ export declare const commandCatalogSchema: z.ZodObject<{
754
754
  id: string;
755
755
  source: {
756
756
  path: string;
757
- commit: string;
758
757
  repository: string;
758
+ commit: string;
759
759
  };
760
760
  schemaVersion: 1;
761
761
  kind: "help" | "query" | "prompt" | "workflow" | "mutation";
@@ -800,8 +800,8 @@ export declare const commandCatalogSchema: z.ZodObject<{
800
800
  id: string;
801
801
  source: {
802
802
  path: string;
803
- commit: string;
804
803
  repository: string;
804
+ commit: string;
805
805
  };
806
806
  schemaVersion: 1;
807
807
  kind: "help" | "query" | "prompt" | "workflow" | "mutation";
@@ -70,6 +70,16 @@ export interface ToolResult {
70
70
  success: boolean;
71
71
  output: string;
72
72
  }
73
+ /** Shown wherever the optional @ruvector/rvagent-wasm package cannot be loaded. */
74
+ export declare const AGENT_WASM_NOT_INSTALLED_MESSAGE: string;
75
+ /**
76
+ * True when err is the module-resolution failure for @ruvector/rvagent-wasm itself.
77
+ * Decided by the error code OR its text, because wrappers (loaders, test harnesses)
78
+ * can drop `code` while keeping the message.
79
+ */
80
+ export declare function isMissingAgentWasm(err: unknown): boolean;
81
+ /** The error initAgentWasm() throws for a load failure: "not installed" with the fix, or a genuine init failure. */
82
+ export declare function agentWasmLoadError(err: unknown): Error;
73
83
  /**
74
84
  * Check if @ruvector/rvagent-wasm is installed and loadable.
75
85
  */
@@ -14,6 +14,30 @@ import { readFileSync } from 'node:fs';
14
14
  import { createRequire } from 'node:module';
15
15
  // ── WASM Module Detection & Init ─────────────────────────────
16
16
  let _wasmReady = false;
17
+ /** Shown wherever the optional @ruvector/rvagent-wasm package cannot be loaded. */
18
+ export const AGENT_WASM_NOT_INSTALLED_MESSAGE = '@ruvector/rvagent-wasm is not installed.\n' +
19
+ 'Install it with: npm install @ruvector/rvagent-wasm (or npm install -g @ruvector/rvagent-wasm for a global ruflo)';
20
+ /**
21
+ * True when err is the module-resolution failure for @ruvector/rvagent-wasm itself.
22
+ * Decided by the error code OR its text, because wrappers (loaders, test harnesses)
23
+ * can drop `code` while keeping the message.
24
+ */
25
+ export function isMissingAgentWasm(err) {
26
+ const e = err;
27
+ const code = typeof e?.code === 'string' ? e.code : '';
28
+ const message = typeof e?.message === 'string' ? e.message : String(err);
29
+ if (!message.includes('@ruvector/rvagent-wasm'))
30
+ return false;
31
+ return (code === 'ERR_MODULE_NOT_FOUND' ||
32
+ code === 'MODULE_NOT_FOUND' ||
33
+ /ERR_MODULE_NOT_FOUND|MODULE_NOT_FOUND|Cannot find (package|module)/.test(message));
34
+ }
35
+ /** The error initAgentWasm() throws for a load failure: "not installed" with the fix, or a genuine init failure. */
36
+ export function agentWasmLoadError(err) {
37
+ return isMissingAgentWasm(err)
38
+ ? new Error(AGENT_WASM_NOT_INSTALLED_MESSAGE)
39
+ : new Error(`Failed to initialize @ruvector/rvagent-wasm: ${err}`);
40
+ }
17
41
  /**
18
42
  * Check if @ruvector/rvagent-wasm is installed and loadable.
19
43
  */
@@ -43,7 +67,9 @@ export async function initAgentWasm() {
43
67
  _wasmReady = true;
44
68
  }
45
69
  catch (err) {
46
- throw new Error(`Failed to initialize @ruvector/rvagent-wasm: ${err}`);
70
+ // #3979 item 1: a missing optional package is "not installed", with the fix,
71
+ // not a raw ERR_MODULE_NOT_FOUND trace dressed up as an initialization failure.
72
+ throw agentWasmLoadError(err);
47
73
  }
48
74
  }
49
75
  // ── Agent Registry ───────────────────────────────────────────
@@ -145,10 +145,8 @@ export declare function assessFileRisk(file: DiffFile): FileRisk;
145
145
  * Assess overall risk from files and file risks
146
146
  */
147
147
  export declare function assessOverallRisk(files: DiffFile[], fileRisks: FileRisk[]): OverallRisk;
148
- /**
149
- * Classify a diff based on files (uses singleton classifier)
150
- */
151
- export declare function classifyDiff(files: DiffFile[]): DiffClassification;
148
+ /** Classify file metadata with the actual patch and, for one-commit ranges, its subject. */
149
+ export declare function classifyDiff(files: DiffFile[], patch?: string, commitSubject?: string): DiffClassification;
152
150
  /**
153
151
  * Suggest reviewers based on files and risks
154
152
  */