@odla-ai/harness 0.11.16 → 0.11.18

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.
@@ -362,7 +362,7 @@ var CodeRuntimeReconciler = class {
362
362
  };
363
363
 
364
364
  // src/code-runtime.ts
365
- var CODE_RUNTIME_PROTOCOL_VERSION = 3;
365
+ var CODE_RUNTIME_PROTOCOL_VERSION = 4;
366
366
  async function runCodeRuntimeHeartbeatLoop(options) {
367
367
  const heartbeatMs = options.heartbeatMs ?? 15e3;
368
368
  if (!Number.isSafeInteger(heartbeatMs) || heartbeatMs < 1e3 || heartbeatMs > 3e5) {
@@ -1386,8 +1386,8 @@ function describeGateFailure(evidence) {
1386
1386
  const output = `${log?.stdout ?? ""}
1387
1387
  ${log?.stderr ?? ""}`.trim();
1388
1388
  const named = describeTapFailures(output);
1389
- return `${recipe2.recipeId}=${recipe2.status}${named ? `
1390
- ${named}` : ""}${output ? `
1389
+ return `${named ? `${named}
1390
+ ` : ""}${recipe2.recipeId}=${recipe2.status}${output ? `
1391
1391
  ${gateOutput(output)}` : ""}`;
1392
1392
  }).join("\n\n");
1393
1393
  return `Clean verification failed. Fix this and checkpoint again:
@@ -1689,13 +1689,13 @@ function codeCommandMetadata(payload, resume) {
1689
1689
  const title = payload.title;
1690
1690
  const prompt = payload.prompt;
1691
1691
  const maxTokensPerInteraction = payload.maxTokensPerInteraction ?? 32e3;
1692
- if (role !== "coding" && role !== "review" || typeof title !== "string" || typeof prompt !== "string") {
1692
+ if (role !== "coding" && role !== "review" && role !== "planning" || typeof title !== "string" || typeof prompt !== "string") {
1693
1693
  throw new TypeError(`invalid Code ${resume ? "resume" : "start"} metadata`);
1694
1694
  }
1695
1695
  if (payload.readOnly !== void 0 && typeof payload.readOnly !== "boolean") {
1696
1696
  throw new TypeError(`invalid Code ${resume ? "resume" : "start"} read-only capability`);
1697
1697
  }
1698
- const readOnly = role === "review" || payload.readOnly === true;
1698
+ const readOnly = role !== "coding" || payload.readOnly === true;
1699
1699
  const planning = trusted?.planningInputDigest;
1700
1700
  const attestation = trusted?.attestationDigest;
1701
1701
  const repository = trusted?.repository;
@@ -3666,7 +3666,7 @@ function createCodeRuntimeToolBroker(input, lease, role) {
3666
3666
  "sandbox.who_touches",
3667
3667
  "sandbox.run_recipe"
3668
3668
  ]);
3669
- return role === "coding" ? broker : { execute: (context, request) => reviewTools.has(request.tool) ? broker.execute(context, request) : Promise.resolve({ requestId: request.requestId, ok: false, content: "review sessions are read-only" }) };
3669
+ return role !== "review" ? broker : { execute: (context, request) => reviewTools.has(request.tool) ? broker.execute(context, request) : Promise.resolve({ requestId: request.requestId, ok: false, content: "review sessions are read-only" }) };
3670
3670
  }
3671
3671
 
3672
3672
  // src/code-runtime-engine-report.ts
@@ -4220,6 +4220,9 @@ export {
4220
4220
  recipeOutput,
4221
4221
  runContainerCommand,
4222
4222
  verifyCodeCandidate,
4223
+ MAX_TAP_FAILURES,
4224
+ extractTapFailingTests,
4225
+ describeTapFailures,
4223
4226
  prepareRuntimeCheckpoint,
4224
4227
  describeGateFailure,
4225
4228
  CodeRuntimeCheckpointManager,
@@ -4256,4 +4259,4 @@ export {
4256
4259
  withProofRecipes,
4257
4260
  TheseusRuntimeEngine
4258
4261
  };
4259
- //# sourceMappingURL=chunk-BOYUPB3P.js.map
4262
+ //# sourceMappingURL=chunk-O47JCUGI.js.map