@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
|
@@ -2237,7 +2237,8 @@ function codeSkill(opts) {
|
|
|
2237
2237
|
true
|
|
2238
2238
|
)
|
|
2239
2239
|
];
|
|
2240
|
-
const
|
|
2240
|
+
const runsRecipes = opts.recipes ?? !opts.readOnly;
|
|
2241
|
+
const effects = [...opts.readOnly ? [] : [applyPatch], ...runsRecipes ? [runRecipe] : []];
|
|
2241
2242
|
const tools = opts.surface === "v3" ? [...orientation, searchFiles, read2, ...opts.readOnly ? [] : [editFile], ...effects] : opts.surface === "v2" ? [listFiles, searchFiles, read2, ...effects] : [read2, ...effects];
|
|
2242
2243
|
return { name: "code", tools };
|
|
2243
2244
|
}
|
|
@@ -2295,6 +2296,7 @@ async function runCodeAgentAttempt(options) {
|
|
|
2295
2296
|
model: "brokered",
|
|
2296
2297
|
surface,
|
|
2297
2298
|
...options.readOnly === void 0 ? {} : { readOnly: options.readOnly },
|
|
2299
|
+
...options.recipes === void 0 ? {} : { recipes: options.recipes },
|
|
2298
2300
|
...options.recipeIds ? { recipeIds: options.recipeIds } : {},
|
|
2299
2301
|
...options.extraSkills ? { extraSkills: options.extraSkills } : {},
|
|
2300
2302
|
...options.maxSteps === void 0 ? {} : { maxSteps: options.maxSteps },
|
|
@@ -4011,6 +4013,9 @@ var TheseusRuntimeEngine = class {
|
|
|
4011
4013
|
prompt: metadata.prompt,
|
|
4012
4014
|
signal: active.abort.signal,
|
|
4013
4015
|
readOnly: metadata.readOnly,
|
|
4016
|
+
// A review-role session is read-only and still runs the proof; a planner
|
|
4017
|
+
// marked read-only by its payload runs nothing.
|
|
4018
|
+
recipes: metadata.role === "review" || !metadata.readOnly,
|
|
4014
4019
|
recipeIds: this.options.recipes.map((recipe2) => recipe2.id),
|
|
4015
4020
|
...extraSkills.length ? { extraSkills } : {}
|
|
4016
4021
|
});
|