@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.
@@ -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) => {
@@ -1380,7 +1388,7 @@ ${log?.stderr ?? ""}`.trim();
1380
1388
  const named = describeTapFailures(output);
1381
1389
  return `${recipe2.recipeId}=${recipe2.status}${named ? `
1382
1390
  ${named}` : ""}${output ? `
1383
- ${output.slice(0, 1500)}` : ""}`;
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);
@@ -4248,4 +4256,4 @@ export {
4248
4256
  withProofRecipes,
4249
4257
  TheseusRuntimeEngine
4250
4258
  };
4251
- //# sourceMappingURL=chunk-ZYZN43G4.js.map
4259
+ //# sourceMappingURL=chunk-BOYUPB3P.js.map