@odla-ai/harness 0.11.12 → 0.11.13

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  observedBroker
3
- } from "./chunk-INL642J5.js";
3
+ } from "./chunk-OXWLPB7P.js";
4
4
  import {
5
5
  SECRET_WORKSPACE_FILE,
6
6
  SKIP_WORKSPACE_DIRS,
@@ -1040,6 +1040,10 @@ function parseMemory(value) {
1040
1040
  function execute(engine, args, name, recipe2, signal) {
1041
1041
  return runContainerCommand(engine, args, name, { timeoutMs: recipe2.timeoutMs, maxOutputBytes: recipe2.maxOutputBytes }, signal);
1042
1042
  }
1043
+ var CONTAINER_PROGRESS = /^\[\d+\/\d+\] .*$/gm;
1044
+ function recipeOutput(engine, stderr) {
1045
+ return engine === "container" ? stderr.replace(CONTAINER_PROGRESS, "").replace(/^\n+/, "") : stderr;
1046
+ }
1043
1047
  function runContainerCommand(engine, args, name, recipe2, signal) {
1044
1048
  return new Promise((accept, reject) => {
1045
1049
  const started = Date.now();
@@ -1082,7 +1086,7 @@ function runContainerCommand(engine, args, name, recipe2, signal) {
1082
1086
  accept({
1083
1087
  exitCode: code ?? 1,
1084
1088
  stdout: Buffer.concat(stdout).toString("utf8"),
1085
- stderr: Buffer.concat(stderr).toString("utf8"),
1089
+ stderr: recipeOutput(engine, Buffer.concat(stderr).toString("utf8")),
1086
1090
  durationMs: Date.now() - started,
1087
1091
  outputLimitExceeded,
1088
1092
  timedOut
@@ -4189,6 +4193,7 @@ export {
4189
4193
  buildRecipeContainerArgs,
4190
4194
  createContainerRecipeExecutor,
4191
4195
  assertCodeBuildRecipe,
4196
+ recipeOutput,
4192
4197
  runContainerCommand,
4193
4198
  verifyCodeCandidate,
4194
4199
  prepareRuntimeCheckpoint,
@@ -4227,4 +4232,4 @@ export {
4227
4232
  withProofRecipes,
4228
4233
  TheseusRuntimeEngine
4229
4234
  };
4230
- //# sourceMappingURL=chunk-6QILNLBY.js.map
4235
+ //# sourceMappingURL=chunk-B2PQAORN.js.map