@odla-ai/harness 0.10.2 → 0.10.3

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.
@@ -7,7 +7,7 @@ import {
7
7
  createCodeRuntimeControlClient,
8
8
  createCodeRuntimeSessionSkillLoader,
9
9
  runCodeRuntimeHeartbeatLoop
10
- } from "./chunk-VIZALA6O.js";
10
+ } from "./chunk-TMBYA5JX.js";
11
11
  import "./chunk-KXFI3WM2.js";
12
12
  import {
13
13
  assertPinnedImage,
package/dist/node.cjs CHANGED
@@ -2824,7 +2824,8 @@ function codeSkill(opts) {
2824
2824
  true
2825
2825
  )
2826
2826
  ];
2827
- const effects = opts.readOnly ? [] : [applyPatch, runRecipe];
2827
+ const runsRecipes = opts.recipes ?? !opts.readOnly;
2828
+ const effects = [...opts.readOnly ? [] : [applyPatch], ...runsRecipes ? [runRecipe] : []];
2828
2829
  const tools = opts.surface === "v3" ? [...orientation, searchFiles, read2, ...opts.readOnly ? [] : [editFile], ...effects] : opts.surface === "v2" ? [listFiles, searchFiles, read2, ...effects] : [read2, ...effects];
2829
2830
  return { name: "code", tools };
2830
2831
  }
@@ -2882,6 +2883,7 @@ async function runCodeAgentAttempt(options) {
2882
2883
  model: "brokered",
2883
2884
  surface,
2884
2885
  ...options.readOnly === void 0 ? {} : { readOnly: options.readOnly },
2886
+ ...options.recipes === void 0 ? {} : { recipes: options.recipes },
2885
2887
  ...options.recipeIds ? { recipeIds: options.recipeIds } : {},
2886
2888
  ...options.extraSkills ? { extraSkills: options.extraSkills } : {},
2887
2889
  ...options.maxSteps === void 0 ? {} : { maxSteps: options.maxSteps },
@@ -4621,6 +4623,9 @@ var TheseusRuntimeEngine = class {
4621
4623
  prompt: metadata.prompt,
4622
4624
  signal: active.abort.signal,
4623
4625
  readOnly: metadata.readOnly,
4626
+ // A review-role session is read-only and still runs the proof; a planner
4627
+ // marked read-only by its payload runs nothing.
4628
+ recipes: metadata.role === "review" || !metadata.readOnly,
4624
4629
  recipeIds: this.options.recipes.map((recipe2) => recipe2.id),
4625
4630
  ...extraSkills.length ? { extraSkills } : {}
4626
4631
  });