@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.
- package/dist/{chunk-VIZALA6O.js → chunk-TMBYA5JX.js} +7 -2
- package/dist/chunk-TMBYA5JX.js.map +1 -0
- package/dist/code-runtime-cli.cjs +6 -1
- package/dist/code-runtime-cli.cjs.map +1 -1
- package/dist/code-runtime-cli.js +1 -1
- package/dist/node.cjs +6 -1
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.cts +9 -0
- package/dist/node.d.ts +9 -0
- package/dist/node.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-VIZALA6O.js.map +0 -1
package/dist/code-runtime-cli.js
CHANGED
package/dist/node.cjs
CHANGED
|
@@ -2824,7 +2824,8 @@ function codeSkill(opts) {
|
|
|
2824
2824
|
true
|
|
2825
2825
|
)
|
|
2826
2826
|
];
|
|
2827
|
-
const
|
|
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
|
});
|