@erzhe/harness-kit 0.4.0 → 0.4.1
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/dist/harness-kit.cjs +11 -3
- package/package.json +1 -1
package/dist/harness-kit.cjs
CHANGED
|
@@ -18185,7 +18185,7 @@ var import_node_path18 = require("node:path");
|
|
|
18185
18185
|
// package.json
|
|
18186
18186
|
var package_default = {
|
|
18187
18187
|
name: "@erzhe/harness-kit",
|
|
18188
|
-
version: "0.4.
|
|
18188
|
+
version: "0.4.1",
|
|
18189
18189
|
type: "module",
|
|
18190
18190
|
description: "AI-friendly repo harness: a manifest.yaml single source of truth that generates AGENTS.md / CLAUDE.md / Cursor rules and enforces invariants, contracts and drift via `harness-kit verify`.",
|
|
18191
18191
|
keywords: [
|
|
@@ -23548,7 +23548,15 @@ function failureMessage(report, verifyOutput, token) {
|
|
|
23548
23548
|
if (!report) lines.push("run-checks did not return valid evidence.");
|
|
23549
23549
|
else {
|
|
23550
23550
|
for (const message of report.errors.slice(0, 5)) lines.push(`- ${message}`);
|
|
23551
|
-
for (const failure of report.failed.slice(0, 5))
|
|
23551
|
+
for (const failure of report.failed.slice(0, 5)) {
|
|
23552
|
+
lines.push(`- check ${failure.id} failed (exit ${failure.code})`);
|
|
23553
|
+
lines.push(` run: ${failure.cmd}`);
|
|
23554
|
+
const tail = failure.logTail.split("\n").filter(Boolean).slice(-5);
|
|
23555
|
+
if (tail.length) {
|
|
23556
|
+
lines.push(" output (tail):");
|
|
23557
|
+
for (const line of tail) lines.push(` ${line}`);
|
|
23558
|
+
}
|
|
23559
|
+
}
|
|
23552
23560
|
for (const skipped of report.skipped.slice(0, 5)) lines.push(`- check ${skipped.id} was not run: ${skipped.reason}`);
|
|
23553
23561
|
for (const gap2 of report.gaps.filter((item) => item.severity === "blocking").slice(0, 5))
|
|
23554
23562
|
lines.push(`- [${gap2.kind}] ${gap2.where ? `${gap2.where}: ` : ""}${gap2.why}`);
|
|
@@ -23645,7 +23653,7 @@ function hookEventCmd(repoInput, opts) {
|
|
|
23645
23653
|
}
|
|
23646
23654
|
if (run.code === 0 && report?.ok && verifyPassed && evidencePersisted) return allow(opts.agent);
|
|
23647
23655
|
const verifyDetails = [
|
|
23648
|
-
verify.output.trim(),
|
|
23656
|
+
verify.code === 0 ? "" : verify.output.trim(),
|
|
23649
23657
|
finalFingerprintError,
|
|
23650
23658
|
evidencePersisted ? "" : "matching final evidence was not persisted; refusing to allow Stop"
|
|
23651
23659
|
].filter(Boolean).join("\n");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@erzhe/harness-kit",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AI-friendly repo harness: a manifest.yaml single source of truth that generates AGENTS.md / CLAUDE.md / Cursor rules and enforces invariants, contracts and drift via `harness-kit verify`.",
|
|
6
6
|
"keywords": [
|