@claude-flow/cli 3.25.2 → 3.25.4

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.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "manifest": {
3
- "version": "3.23.0",
3
+ "version": "3.25.4",
4
4
  "files": {
5
5
  "auto-memory-hook.mjs": "68be7e9a9eba7bf9c4e8a230db7bf61a243b965639f8504842799d6c6ca28762",
6
6
  "hook-handler.cjs": "bc4d2d26823d49b3ab1dded2946b66369f1f67bd76b4c30dca9f3b6df3cca8f0",
7
- "intelligence.cjs": "760cb82ed2000031abc1ac1fa90a014e7d91d93966e3aa4741b07ab7aff8d066"
7
+ "intelligence.cjs": "bd1f8e4b034944aee1df0391dc47ac2e8cc4b3aa542c65407a59d49620bbf76b"
8
8
  }
9
9
  },
10
- "signature": "of5l9RP68iPcmcC5dckDv+KIOiENJKifWxYKwQTwAiXiyRNNZuMwQ8y8Bd8+wGviTRxIzBfSuxL1nuJ/rX3xDQ==",
10
+ "signature": "F3TIRoNcQTCkNeMEk5Isah5CWkV/zddUKR/6pieOlAWoYgI2BEUO7avQj8B8UP4vhvgT9TSgbYsis2UnnnQyBg==",
11
11
  "algorithm": "ed25519"
12
12
  }
package/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  <div align="center">
2
2
 
3
3
  [![Ruflo Banner](ruflo/assets/ruflo-small.jpeg)](https://cognitum.one/agentic-engineering)
4
+ [![Agentics Foundation Banner](docs/assets/sv-summit.png)](https://agentics.org/siliconvalley/?UTM=GH-RuFlo-SV)
5
+
4
6
 
5
7
  <!-- Try Ruflo — the 4 badges first-time visitors actually act on -->
6
8
  [![Try the UI Beta — flo.ruv.io](https://img.shields.io/badge/_Try_the_UI_Beta-flo.ruv.io-6366f1?style=for-the-badge&logoColor=white&logo=svelte)](https://flo.ruv.io/)
@@ -537,11 +537,11 @@ export function isAnswerCorrect(modelAnswer, expected) {
537
537
  // Exact match
538
538
  if (normModel === normExpected)
539
539
  return true;
540
- // Substring match (expected contained in model answer or vice versa)
540
+ // Substring match: expected contained in model answer (forward only).
541
+ // Reverse (normExpected.includes(normModel)) removed — see #2566 / ADR-169 R1:
542
+ // it scored fragmentary model answers ("a" vs "Paris, France") as correct.
541
543
  if (normModel.includes(normExpected))
542
544
  return true;
543
- if (normExpected.includes(normModel))
544
- return true;
545
545
  // Numeric match with tolerance
546
546
  const numModel = parseFloat(normModel.replace(/[^0-9.\-]/g, ''));
547
547
  const numExpected = parseFloat(normExpected.replace(/[^0-9.\-]/g, ''));
@@ -269,11 +269,24 @@ async function checkLearningBridge() {
269
269
  message: `@claude-flow/memory resolvable${version ? ` (v${version})` : ''}`,
270
270
  };
271
271
  }
272
+ // #2599: Self-heal on plain `doctor` (not just --fix). The project-side resolver
273
+ // fails when the sidecar is stale or missing (e.g. npx cache generation rotated),
274
+ // but the CLI process itself can resolve @claude-flow/memory from its own module
275
+ // context. Write the sidecar automatically instead of hard-failing the check.
276
+ const record = recordMemoryPackagePath(cwd, 'doctor-auto');
277
+ if (record) {
278
+ const version = readMemoryPackageVersion(record.distPath);
279
+ return {
280
+ name: 'Learning Bridge',
281
+ status: 'pass',
282
+ message: `@claude-flow/memory resolvable via auto-recorded sidecar${version ? ` (v${version})` : ''}`,
283
+ };
284
+ }
272
285
  return {
273
286
  name: 'Learning Bridge',
274
287
  status: 'fail',
275
288
  message: '@claude-flow/memory NOT resolvable — SessionStart self-learning imports are a silent no-op',
276
- fix: 'npx ruflo@latest doctor --fix (records resolver sidecar) — or: npm i -D @claude-flow/memory',
289
+ fix: 'npm i -D @claude-flow/memory (optional dep appears absent — likely --omit=optional install)',
277
290
  };
278
291
  }
279
292
  // Check API keys
@@ -66,16 +66,19 @@ const storeCommand = {
66
66
  {
67
67
  name: 'upsert',
68
68
  short: 'u',
69
- description: 'Update if key exists (insert or replace)',
69
+ // #2594: default true so `store delete → store` doesn't hit the UNIQUE
70
+ // (namespace, key) constraint on the soft-deleted row. Pass --no-upsert
71
+ // for strict insert semantics.
72
+ description: 'Update if key exists (default; pass --no-upsert for strict insert)',
70
73
  type: 'boolean',
71
- default: false
74
+ default: true
72
75
  },
73
76
  DB_PATH_OPTION
74
77
  ],
75
78
  examples: [
76
79
  { command: 'claude-flow memory store -k "api/auth" -v "JWT implementation"', description: 'Store text' },
77
80
  { command: 'claude-flow memory store -k "pattern/singleton" --vector', description: 'Store vector' },
78
- { command: 'claude-flow memory store -k "pattern" -v "updated" --upsert', description: 'Update existing' }
81
+ { command: 'claude-flow memory store -k "pattern" -v "new" --no-upsert', description: 'Strict insert (fail if key exists)' }
79
82
  ],
80
83
  action: async (ctx) => {
81
84
  const key = ctx.flags.key;
@@ -498,7 +498,9 @@ const statusCommand = {
498
498
  },
499
499
  {
500
500
  component: 'ReasoningBank',
501
- status: stats.reasoningBankSize > 0 ? output.success('Active') : output.dim('Empty'),
501
+ status: (stats.patternsLearned > 0 || stats.reasoningBankSize > 0)
502
+ ? output.success('Active')
503
+ : output.dim('Empty'),
502
504
  details: `${stats.patternsLearned} patterns stored`,
503
505
  },
504
506
  {
@@ -2243,11 +2243,11 @@ export async function verifyMemoryInit(dbPath, options) {
2243
2243
  duration: Date.now() - indexStart
2244
2244
  });
2245
2245
  }
2246
- // Cleanup test entry
2247
- db.run(`DELETE FROM memory_entries WHERE id = ?`, [testId]);
2248
- // Save changes
2249
- const data = db.export();
2250
- writeFileRestricted(dbPath, Buffer.from(data), { encrypt: true });
2246
+ // Verification is read-only: sql.js holds an in-memory copy; discarding it on
2247
+ // close() leaves the on-disk DB untouched. Writing back here would race the
2248
+ // still-open better-sqlite3 handle (WAL) owned by ControllerRegistry /
2249
+ // repairVectorIndexes atomic rename fails with EPERM on Windows (#2596)
2250
+ // and risks clobbering concurrent writes on all platforms.
2251
2251
  db.close();
2252
2252
  const passed = tests.filter(t => t.passed).length;
2253
2253
  const failed = tests.filter(t => !t.passed).length;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claude-flow/cli",
3
- "version": "3.25.2",
3
+ "version": "3.25.4",
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",
@@ -89,7 +89,7 @@
89
89
  "test:plugin-store": "npx tsx src/plugins/tests/standalone-test.ts",
90
90
  "test:pattern-store": "npx tsx src/transfer/store/tests/standalone-test.ts",
91
91
  "postinstall": "node ./scripts/postinstall.cjs",
92
- "prepublishOnly": "cp ../../../README.md ./README.md && rm -rf plugins && mkdir -p plugins && cp -r ../../../plugins/ruflo-metaharness plugins/",
92
+ "prepublishOnly": "cp ../../../README.md ./README.md && rm -rf plugins && mkdir -p plugins && cp -r ../../../plugins/ruflo-metaharness plugins/ && node scripts/sign-helpers.mjs && node scripts/verify-helpers.mjs",
93
93
  "release": "npm version prerelease --preid=alpha && npm run publish:all",
94
94
  "publish:all": "./scripts/publish.sh"
95
95
  },
@@ -108,33 +108,10 @@
108
108
  "yaml": "^2.8.0"
109
109
  },
110
110
  "optionalDependencies": {
111
- "@claude-flow/aidefence": "^3.0.2",
112
- "@claude-flow/codex": "^3.0.0-alpha.8",
113
- "@claude-flow/embeddings": "^3.0.0-alpha.18",
114
- "@claude-flow/guidance": "^3.0.0-alpha.1",
115
111
  "@claude-flow/memory": "^3.0.0-alpha.21",
116
- "@claude-flow/plugin-gastown-bridge": "^0.1.3",
117
112
  "@claude-flow/security": "^3.0.0-alpha.10",
118
- "@metaharness/darwin": "~0.8.0",
119
- "@metaharness/kernel": "~0.1.2",
120
- "@metaharness/redblue": "~0.1.4",
121
- "@metaharness/router": "~0.3.2",
122
- "@metaharness/weight-eft": "~0.1.1",
123
- "@ruvector/attention": "^0.1.32",
124
- "@ruvector/attention-darwin-arm64": "0.1.32",
125
- "@ruvector/diskann": "^0.1.0",
126
- "@ruvector/learning-wasm": "^0.1.29",
127
- "@ruvector/router": "^0.1.30",
128
- "@ruvector/ruvllm-wasm": "^2.0.2",
129
- "@ruvector/rvagent-wasm": "^0.1.0",
130
- "@ruvector/sona": "^0.1.6",
131
- "@ruvector/tiny-dancer": "^0.1.22",
132
- "agentbbs": "~0.1.0",
133
113
  "agentdb": "^3.0.0-alpha.17",
134
114
  "agentic-flow": "^3.0.0-alpha.1",
135
- "agenticow": "~0.2.4",
136
- "metaharness": "~0.2.8",
137
- "page-agent": "~1.11.0",
138
115
  "ruvector": "^0.2.27"
139
116
  },
140
117
  "publishConfig": {