@odla-ai/harness 0.11.15 → 0.11.17
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/{chunk-ZYZN43G4.js → chunk-RDCU4PIP.js} +15 -4
- package/dist/{chunk-ZYZN43G4.js.map → chunk-RDCU4PIP.js.map} +1 -1
- package/dist/code-runtime-cli.cjs +11 -3
- package/dist/code-runtime-cli.cjs.map +1 -1
- package/dist/code-runtime-cli.js +1 -1
- package/dist/node.cjs +17 -3
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.cts +11 -1
- package/dist/node.d.ts +11 -1
- package/dist/node.js +7 -1
- package/dist/node.js.map +1 -1
- package/package.json +1 -1
|
@@ -1371,6 +1371,14 @@ function describeReview(review) {
|
|
|
1371
1371
|
const head = review.verdict === "approved" ? `Clean verification and independent review passed (score ${review.score}/100).` : `Clean verification passed; independent review REJECTED this candidate (score ${review.score}/100). Address the findings and checkpoint again.`;
|
|
1372
1372
|
return [head, review.summary, findings].filter(Boolean).join("\n").slice(0, 4e3);
|
|
1373
1373
|
}
|
|
1374
|
+
function gateOutput(output) {
|
|
1375
|
+
const plain = output.replace(GATE_ANSI, "");
|
|
1376
|
+
if (plain.length <= 1500) return plain;
|
|
1377
|
+
return `${plain.slice(0, 300)}
|
|
1378
|
+
\u2026 [${plain.length - 1500} characters omitted] \u2026
|
|
1379
|
+
${plain.slice(-1200)}`;
|
|
1380
|
+
}
|
|
1381
|
+
var GATE_ANSI = /\u001b\[[0-9;?]*[A-Za-z]/g;
|
|
1374
1382
|
function describeGateFailure(evidence) {
|
|
1375
1383
|
const failed = evidence.receipt.recipes.filter((recipe2) => recipe2.status !== "passed");
|
|
1376
1384
|
const detail = failed.map((recipe2) => {
|
|
@@ -1378,9 +1386,9 @@ function describeGateFailure(evidence) {
|
|
|
1378
1386
|
const output = `${log?.stdout ?? ""}
|
|
1379
1387
|
${log?.stderr ?? ""}`.trim();
|
|
1380
1388
|
const named = describeTapFailures(output);
|
|
1381
|
-
return `${
|
|
1382
|
-
|
|
1383
|
-
${output
|
|
1389
|
+
return `${named ? `${named}
|
|
1390
|
+
` : ""}${recipe2.recipeId}=${recipe2.status}${output ? `
|
|
1391
|
+
${gateOutput(output)}` : ""}`;
|
|
1384
1392
|
}).join("\n\n");
|
|
1385
1393
|
return `Clean verification failed. Fix this and checkpoint again:
|
|
1386
1394
|
${detail}`.slice(0, 4e3);
|
|
@@ -4212,6 +4220,9 @@ export {
|
|
|
4212
4220
|
recipeOutput,
|
|
4213
4221
|
runContainerCommand,
|
|
4214
4222
|
verifyCodeCandidate,
|
|
4223
|
+
MAX_TAP_FAILURES,
|
|
4224
|
+
extractTapFailingTests,
|
|
4225
|
+
describeTapFailures,
|
|
4215
4226
|
prepareRuntimeCheckpoint,
|
|
4216
4227
|
describeGateFailure,
|
|
4217
4228
|
CodeRuntimeCheckpointManager,
|
|
@@ -4248,4 +4259,4 @@ export {
|
|
|
4248
4259
|
withProofRecipes,
|
|
4249
4260
|
TheseusRuntimeEngine
|
|
4250
4261
|
};
|
|
4251
|
-
//# sourceMappingURL=chunk-
|
|
4262
|
+
//# sourceMappingURL=chunk-RDCU4PIP.js.map
|