@odla-ai/harness 0.8.0 → 0.8.1

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.
@@ -6,7 +6,7 @@ import {
6
6
  assertCodeBuildRecipe,
7
7
  createCodeRuntimeControlClient,
8
8
  runCodeRuntimeHeartbeatLoop
9
- } from "./chunk-ISR434K7.js";
9
+ } from "./chunk-IWVGSWY6.js";
10
10
  import {
11
11
  assertPinnedImage,
12
12
  selectContainerEngine
package/dist/node.cjs CHANGED
@@ -2208,6 +2208,7 @@ async function runCodeAgentAttempt(options) {
2208
2208
  model: "brokered",
2209
2209
  surface,
2210
2210
  ...options.recipeIds ? { recipeIds: options.recipeIds } : {},
2211
+ ...options.extraSkills ? { extraSkills: options.extraSkills } : {},
2211
2212
  ...options.maxSteps === void 0 ? {} : { maxSteps: options.maxSteps },
2212
2213
  ...options.budget ? { budget: options.budget } : {},
2213
2214
  ...options.signal ? { signal: options.signal } : {},
@@ -2239,6 +2240,18 @@ Finish with a concise, non-empty answer to the owner. Do not call tools or promi
2239
2240
  }
2240
2241
  }
2241
2242
 
2243
+ // src/code-runtime-session-skills.ts
2244
+ async function sessionSkillsFor(options, command) {
2245
+ try {
2246
+ return await options.sessionSkills?.(command) ?? [];
2247
+ } catch (cause) {
2248
+ options.onDiagnostic?.(
2249
+ `session skills unavailable, continuing with code tools only: ${cause instanceof Error ? cause.message : String(cause)}`
2250
+ );
2251
+ return [];
2252
+ }
2253
+ }
2254
+
2242
2255
  // src/code-runtime-inference.ts
2243
2256
  async function handleCodeRuntimeInference(input) {
2244
2257
  const { command, request, state } = input;
@@ -3651,6 +3664,7 @@ var TheseusRuntimeEngine = class {
3651
3664
  event: (event) => this.#event(command, event, active.conversationRefs)
3652
3665
  });
3653
3666
  await this.#event(command, { type: "status", status: "running" }, active.conversationRefs);
3667
+ const extraSkills = await sessionSkillsFor(this.options, command);
3654
3668
  const result = await this.#attempt({
3655
3669
  inference,
3656
3670
  broker,
@@ -3658,7 +3672,8 @@ var TheseusRuntimeEngine = class {
3658
3672
  workspaceDir: active.workspace.workspaceDir,
3659
3673
  prompt: metadata.prompt,
3660
3674
  signal: active.abort.signal,
3661
- recipeIds: this.options.recipes.map((recipe2) => recipe2.id)
3675
+ recipeIds: this.options.recipes.map((recipe2) => recipe2.id),
3676
+ ...extraSkills.length ? { extraSkills } : {}
3662
3677
  });
3663
3678
  const closing = result.finalText.trim();
3664
3679
  const completed = result.status === "completed" && Boolean(closing);