@claude-flow/cli 3.25.2 → 3.25.3
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
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
3
|
[](https://cognitum.one/agentic-engineering)
|
|
4
|
+
[](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
|
[](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
|
|
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: '
|
|
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
|
-
|
|
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:
|
|
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 "
|
|
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.
|
|
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
|
-
//
|
|
2247
|
-
|
|
2248
|
-
//
|
|
2249
|
-
|
|
2250
|
-
|
|
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.
|
|
3
|
+
"version": "3.25.3",
|
|
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": {
|