codeharness 0.17.0 → 0.17.2
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/index.js +17 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1443,7 +1443,7 @@ function getInstallCommand(stack) {
|
|
|
1443
1443
|
}
|
|
1444
1444
|
|
|
1445
1445
|
// src/commands/init.ts
|
|
1446
|
-
var HARNESS_VERSION = true ? "0.17.
|
|
1446
|
+
var HARNESS_VERSION = true ? "0.17.2" : "0.0.0-dev";
|
|
1447
1447
|
function getProjectName(projectDir) {
|
|
1448
1448
|
try {
|
|
1449
1449
|
const pkgPath = join6(projectDir, "package.json");
|
|
@@ -1747,7 +1747,7 @@ function registerInitCommand(program) {
|
|
|
1747
1747
|
bmalph_detected: false
|
|
1748
1748
|
};
|
|
1749
1749
|
if (!isJson) {
|
|
1750
|
-
info("BMAD:
|
|
1750
|
+
info("BMAD: already installed, patches verified");
|
|
1751
1751
|
}
|
|
1752
1752
|
} else {
|
|
1753
1753
|
const installResult = installBmad(projectDir);
|
|
@@ -2785,14 +2785,8 @@ var DB_KEYWORDS = [
|
|
|
2785
2785
|
"table"
|
|
2786
2786
|
];
|
|
2787
2787
|
var INTEGRATION_KEYWORDS = [
|
|
2788
|
-
"sprint planning",
|
|
2789
|
-
"workflow",
|
|
2790
|
-
"run /command",
|
|
2791
|
-
"user session",
|
|
2792
|
-
"multi-step",
|
|
2793
2788
|
"external system",
|
|
2794
2789
|
"real infrastructure",
|
|
2795
|
-
"integration test",
|
|
2796
2790
|
"manual verification"
|
|
2797
2791
|
];
|
|
2798
2792
|
var ESCALATE_KEYWORDS = [
|
|
@@ -3503,6 +3497,10 @@ function checkBlackBoxEnforcement(proofContent) {
|
|
|
3503
3497
|
acsMissingDockerExec
|
|
3504
3498
|
};
|
|
3505
3499
|
}
|
|
3500
|
+
function hasFailVerdict(section) {
|
|
3501
|
+
const withoutCodeBlocks = section.replace(/```[\s\S]*?```/g, "");
|
|
3502
|
+
return withoutCodeBlocks.includes("[FAIL]");
|
|
3503
|
+
}
|
|
3506
3504
|
function checkPreconditions(dir, storyId) {
|
|
3507
3505
|
const state = readState(dir);
|
|
3508
3506
|
const failures = [];
|
|
@@ -3615,6 +3613,10 @@ function validateProofQuality(proofPath) {
|
|
|
3615
3613
|
escalated++;
|
|
3616
3614
|
continue;
|
|
3617
3615
|
}
|
|
3616
|
+
if (hasFailVerdict(section)) {
|
|
3617
|
+
pending++;
|
|
3618
|
+
continue;
|
|
3619
|
+
}
|
|
3618
3620
|
const hasEvidence = section.includes("<!-- /showboat exec -->") || section.includes("<!-- showboat image:") || /```(?:bash|shell)\n[\s\S]*?```\n+```output\n/m.test(section);
|
|
3619
3621
|
if (hasEvidence) {
|
|
3620
3622
|
verified++;
|
|
@@ -3650,6 +3652,8 @@ function validateProofQuality(proofPath) {
|
|
|
3650
3652
|
const bulletText = bulletMatch[1].toLowerCase();
|
|
3651
3653
|
if (bulletText.includes("n/a") || bulletText.includes("escalat") || bulletText.includes("superseded")) {
|
|
3652
3654
|
bEscalated++;
|
|
3655
|
+
} else if (bulletText.includes("fail")) {
|
|
3656
|
+
bPending++;
|
|
3653
3657
|
} else {
|
|
3654
3658
|
bVerified++;
|
|
3655
3659
|
}
|
|
@@ -3675,6 +3679,8 @@ function validateProofQuality(proofPath) {
|
|
|
3675
3679
|
const section = content.slice(regionStart, regionEnd);
|
|
3676
3680
|
if (section.includes("[ESCALATE]")) {
|
|
3677
3681
|
escalated++;
|
|
3682
|
+
} else if (hasFailVerdict(section)) {
|
|
3683
|
+
pending++;
|
|
3678
3684
|
} else if (/```output/m.test(section)) {
|
|
3679
3685
|
verified++;
|
|
3680
3686
|
} else {
|
|
@@ -3702,6 +3708,8 @@ function validateProofQuality(proofPath) {
|
|
|
3702
3708
|
const section = content.slice(acIdx, nextMatch ? nextMatch.index : content.length);
|
|
3703
3709
|
if (section.includes("[ESCALATE]")) {
|
|
3704
3710
|
escalated++;
|
|
3711
|
+
} else if (hasFailVerdict(section)) {
|
|
3712
|
+
pending++;
|
|
3705
3713
|
} else if (/```output\n/m.test(section)) {
|
|
3706
3714
|
verified++;
|
|
3707
3715
|
} else {
|
|
@@ -7780,7 +7788,7 @@ function handleStatus(dir, isJson, filterStory) {
|
|
|
7780
7788
|
}
|
|
7781
7789
|
|
|
7782
7790
|
// src/index.ts
|
|
7783
|
-
var VERSION = true ? "0.17.
|
|
7791
|
+
var VERSION = true ? "0.17.2" : "0.0.0-dev";
|
|
7784
7792
|
function createProgram() {
|
|
7785
7793
|
const program = new Command();
|
|
7786
7794
|
program.name("codeharness").description("Makes autonomous coding agents produce software that actually works").version(VERSION).option("--json", "Output in machine-readable JSON format");
|