@claude-flow/cli 3.73.0 → 3.74.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/.claude/helpers/.helpers-version +1 -1
- package/.claude/helpers/auto-memory-hook.mjs +53 -224
- package/.claude/helpers/helpers.manifest.json +6 -6
- package/.claude/helpers/hook-handler.cjs +10 -89
- package/.claude/helpers/intelligence.cjs +1 -23
- package/.claude/helpers/statusline.cjs +14 -29
- package/catalog-manifest.json +2 -2
- package/dist/src/commands/doctor.js +5 -3
- package/dist/src/mcp-tools/memory-tools.js +17 -0
- package/dist/src/mcp-tools/metaharness-tools.js +19 -0
- package/dist/src/memory/memory-bridge.d.ts +2 -0
- package/dist/src/memory/memory-bridge.js +1 -1
- package/dist/src/memory/memory-initializer.d.ts +2 -0
- package/dist/src/memory/memory-initializer.js +1 -1
- package/dist/src/metaharness/darwin-lib.d.ts +68 -0
- package/dist/src/metaharness/darwin-lib.js +150 -0
- package/dist/src/missions/schemas.d.ts +117 -117
- package/dist/src/mods/command-registry/schema.d.ts +121 -121
- package/node_modules/@claude-flow/codex/dist/cli.js +0 -0
- package/node_modules/@claude-flow/plugin-agent-federation/dist/bin.js +0 -0
- package/node_modules/@claude-flow/security/dist/input-validator.d.ts +138 -106
- package/node_modules/@claude-flow/security/dist/input-validator.d.ts.map +1 -1
- package/node_modules/@claude-flow/security/dist/input-validator.js +23 -26
- package/node_modules/@claude-flow/security/dist/input-validator.js.map +1 -1
- package/node_modules/@claude-flow/security/package.json +2 -2
- package/package.json +6 -6
- package/plugins/ruflo-metaharness/.claude-plugin/plugin.json +1 -1
- package/plugins/ruflo-metaharness/CHANGELOG.md +3 -0
- package/plugins/ruflo-metaharness/scripts/_darwin.mjs +13 -0
- package/plugins/ruflo-metaharness/scripts/bench.mjs +34 -2
- package/plugins/ruflo-metaharness/scripts/smoke.sh +4 -4
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
import { guardCliArgs } from './_cli-args.mjs';
|
|
22
22
|
|
|
23
|
-
import { runDarwin, emitDarwinDegradedJsonAndExit } from './_darwin.mjs';
|
|
23
|
+
import { runDarwin, emitDarwinDegradedJsonAndExit, importDarwinLib } from './_darwin.mjs';
|
|
24
24
|
import { existsSync } from 'node:fs';
|
|
25
25
|
import { resolve } from 'node:path';
|
|
26
26
|
|
|
@@ -64,8 +64,40 @@ function safetyChecks() {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
// ADR-526 — verify through darwin's library (loadSuite + verifySuite), the
|
|
68
|
+
// same two calls the darwin CLI makes, without spawning it. Returns false when
|
|
69
|
+
// the library is unavailable so main() falls back to the CLI.
|
|
70
|
+
async function verifyInProcess() {
|
|
71
|
+
const darwin = await importDarwinLib();
|
|
72
|
+
if (!darwin?.bench?.loadSuite || !darwin?.bench?.verifySuite) return false;
|
|
73
|
+
const start = Date.now();
|
|
74
|
+
let payload;
|
|
75
|
+
let exitCode;
|
|
76
|
+
try {
|
|
77
|
+
const suite = await darwin.bench.loadSuite(resolve(ARGS.suite));
|
|
78
|
+
const check = darwin.bench.verifySuite(suite);
|
|
79
|
+
const tasks = Array.isArray(suite.tasks) ? suite.tasks.length : 0;
|
|
80
|
+
exitCode = check.ok ? 0 : 1;
|
|
81
|
+
payload = {
|
|
82
|
+
success: check.ok,
|
|
83
|
+
data: {
|
|
84
|
+
op: 'verify', suiteId: suite.id, version: suite.version, tasks, hashOk: check.ok, hash: check.actual,
|
|
85
|
+
stdoutTail: `Suite ${suite.id}@${suite.version}: ${tasks} tasks, hash ${check.ok ? 'OK' : 'MISMATCH'} (${String(check.actual).slice(0, 12)}…)\n`,
|
|
86
|
+
durationMs: Date.now() - start,
|
|
87
|
+
},
|
|
88
|
+
generatedAt: new Date().toISOString(),
|
|
89
|
+
};
|
|
90
|
+
} catch (e) {
|
|
91
|
+
exitCode = 1;
|
|
92
|
+
payload = { success: false, data: { op: 'verify', error: e?.message ?? String(e), durationMs: Date.now() - start }, generatedAt: new Date().toISOString() };
|
|
93
|
+
}
|
|
94
|
+
console.log(JSON.stringify(payload, null, 2));
|
|
95
|
+
process.exit(exitCode);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
async function main() {
|
|
68
99
|
safetyChecks();
|
|
100
|
+
if (ARGS.op === 'verify' && (await verifyInProcess())) return;
|
|
69
101
|
|
|
70
102
|
const cliArgs = ARGS.op === 'create'
|
|
71
103
|
? ['bench', 'create', resolve(ARGS.repo), ...(ARGS.out ? ['--out', resolve(ARGS.out)] : [])]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# Structural smoke test for ruflo-metaharness v0.
|
|
2
|
+
# Structural smoke test for ruflo-metaharness v0.5.0 (ADR-150 Phase 1).
|
|
3
3
|
set -u
|
|
4
4
|
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
5
5
|
PASS=0
|
|
@@ -32,10 +32,10 @@ else
|
|
|
32
32
|
bad "extraction-regex-rot: EXPECTED_TOOLS=$EXPECTED_TOOLS EXPECTED_SUBS=$EXPECTED_SUBS"
|
|
33
33
|
fi
|
|
34
34
|
|
|
35
|
-
step "1. plugin.json declares 0.
|
|
35
|
+
step "1. plugin.json declares 0.5.0 with adr-150 keywords"
|
|
36
36
|
v=$(grep -E '"version"' "$ROOT/.claude-plugin/plugin.json" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)
|
|
37
|
-
if [[ "$v" != "0.
|
|
38
|
-
bad "expected 0.
|
|
37
|
+
if [[ "$v" != "0.5.0" ]]; then
|
|
38
|
+
bad "expected 0.5.0, got '$v'"
|
|
39
39
|
else
|
|
40
40
|
miss=""
|
|
41
41
|
for k in ruflo metaharness harness scorecard genome mcp-scan threat-model router adr-150 adr-148 adr-149 optional-dependency graceful-degradation subprocess phase-1-mvp; do
|