@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.
@@ -1967,7 +1967,8 @@ function codeSkill(opts) {
1967
1967
  true
1968
1968
  )
1969
1969
  ];
1970
- const effects = opts.readOnly ? [] : [applyPatch, runRecipe];
1970
+ const runsRecipes = opts.recipes ?? !opts.readOnly;
1971
+ const effects = [...opts.readOnly ? [] : [applyPatch], ...runsRecipes ? [runRecipe] : []];
1971
1972
  const tools = opts.surface === "v3" ? [...orientation, searchFiles, read2, ...opts.readOnly ? [] : [editFile], ...effects] : opts.surface === "v2" ? [listFiles, searchFiles, read2, ...effects] : [read2, ...effects];
1972
1973
  return { name: "code", tools };
1973
1974
  }
@@ -2030,6 +2031,7 @@ async function runCodeAgentAttempt(options) {
2030
2031
  model: "brokered",
2031
2032
  surface,
2032
2033
  ...options.readOnly === void 0 ? {} : { readOnly: options.readOnly },
2034
+ ...options.recipes === void 0 ? {} : { recipes: options.recipes },
2033
2035
  ...options.recipeIds ? { recipeIds: options.recipeIds } : {},
2034
2036
  ...options.extraSkills ? { extraSkills: options.extraSkills } : {},
2035
2037
  ...options.maxSteps === void 0 ? {} : { maxSteps: options.maxSteps },
@@ -3618,6 +3620,9 @@ var TheseusRuntimeEngine = class {
3618
3620
  prompt: metadata.prompt,
3619
3621
  signal: active.abort.signal,
3620
3622
  readOnly: metadata.readOnly,
3623
+ // A review-role session is read-only and still runs the proof; a planner
3624
+ // marked read-only by its payload runs nothing.
3625
+ recipes: metadata.role === "review" || !metadata.readOnly,
3621
3626
  recipeIds: this.options.recipes.map((recipe2) => recipe2.id),
3622
3627
  ...extraSkills.length ? { extraSkills } : {}
3623
3628
  });
@@ -3730,4 +3735,4 @@ export {
3730
3735
  runGoal,
3731
3736
  TheseusRuntimeEngine
3732
3737
  };
3733
- //# sourceMappingURL=chunk-VIZALA6O.js.map
3738
+ //# sourceMappingURL=chunk-TMBYA5JX.js.map