@odla-ai/harness 0.11.15 → 0.11.16
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-BOYUPB3P.js} +10 -2
- package/dist/{chunk-ZYZN43G4.js.map → chunk-BOYUPB3P.js.map} +1 -1
- package/dist/code-runtime-cli.cjs +9 -1
- package/dist/code-runtime-cli.cjs.map +1 -1
- package/dist/code-runtime-cli.js +1 -1
- package/dist/node.cjs +9 -1
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +1 -1
- package/package.json +1 -1
package/dist/code-runtime-cli.js
CHANGED
package/dist/node.cjs
CHANGED
|
@@ -2253,6 +2253,14 @@ function describeReview(review) {
|
|
|
2253
2253
|
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.`;
|
|
2254
2254
|
return [head, review.summary, findings].filter(Boolean).join("\n").slice(0, 4e3);
|
|
2255
2255
|
}
|
|
2256
|
+
function gateOutput(output) {
|
|
2257
|
+
const plain = output.replace(GATE_ANSI, "");
|
|
2258
|
+
if (plain.length <= 1500) return plain;
|
|
2259
|
+
return `${plain.slice(0, 300)}
|
|
2260
|
+
\u2026 [${plain.length - 1500} characters omitted] \u2026
|
|
2261
|
+
${plain.slice(-1200)}`;
|
|
2262
|
+
}
|
|
2263
|
+
var GATE_ANSI = /\u001b\[[0-9;?]*[A-Za-z]/g;
|
|
2256
2264
|
function describeGateFailure(evidence) {
|
|
2257
2265
|
const failed = evidence.receipt.recipes.filter((recipe2) => recipe2.status !== "passed");
|
|
2258
2266
|
const detail = failed.map((recipe2) => {
|
|
@@ -2262,7 +2270,7 @@ ${log?.stderr ?? ""}`.trim();
|
|
|
2262
2270
|
const named = describeTapFailures(output);
|
|
2263
2271
|
return `${recipe2.recipeId}=${recipe2.status}${named ? `
|
|
2264
2272
|
${named}` : ""}${output ? `
|
|
2265
|
-
${output
|
|
2273
|
+
${gateOutput(output)}` : ""}`;
|
|
2266
2274
|
}).join("\n\n");
|
|
2267
2275
|
return `Clean verification failed. Fix this and checkpoint again:
|
|
2268
2276
|
${detail}`.slice(0, 4e3);
|