@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.
@@ -1358,6 +1358,7 @@ async function runCodeAgentAttempt(options) {
1358
1358
  model: "brokered",
1359
1359
  surface,
1360
1360
  ...options.recipeIds ? { recipeIds: options.recipeIds } : {},
1361
+ ...options.extraSkills ? { extraSkills: options.extraSkills } : {},
1361
1362
  ...options.maxSteps === void 0 ? {} : { maxSteps: options.maxSteps },
1362
1363
  ...options.budget ? { budget: options.budget } : {},
1363
1364
  ...options.signal ? { signal: options.signal } : {},
@@ -2323,6 +2324,18 @@ function assertBudget(budget) {
2323
2324
  }
2324
2325
  }
2325
2326
 
2327
+ // src/code-runtime-session-skills.ts
2328
+ async function sessionSkillsFor(options, command) {
2329
+ try {
2330
+ return await options.sessionSkills?.(command) ?? [];
2331
+ } catch (cause) {
2332
+ options.onDiagnostic?.(
2333
+ `session skills unavailable, continuing with code tools only: ${cause instanceof Error ? cause.message : String(cause)}`
2334
+ );
2335
+ return [];
2336
+ }
2337
+ }
2338
+
2326
2339
  // src/code-runtime-broker.ts
2327
2340
  function createCodeRuntimeToolBroker(input, lease, role) {
2328
2341
  const broker = createCodeToolBroker({
@@ -2816,6 +2829,7 @@ var TheseusRuntimeEngine = class {
2816
2829
  event: (event) => this.#event(command, event, active.conversationRefs)
2817
2830
  });
2818
2831
  await this.#event(command, { type: "status", status: "running" }, active.conversationRefs);
2832
+ const extraSkills = await sessionSkillsFor(this.options, command);
2819
2833
  const result = await this.#attempt({
2820
2834
  inference,
2821
2835
  broker,
@@ -2823,7 +2837,8 @@ var TheseusRuntimeEngine = class {
2823
2837
  workspaceDir: active.workspace.workspaceDir,
2824
2838
  prompt: metadata.prompt,
2825
2839
  signal: active.abort.signal,
2826
- recipeIds: this.options.recipes.map((recipe2) => recipe2.id)
2840
+ recipeIds: this.options.recipes.map((recipe2) => recipe2.id),
2841
+ ...extraSkills.length ? { extraSkills } : {}
2827
2842
  });
2828
2843
  const closing = result.finalText.trim();
2829
2844
  const completed = result.status === "completed" && Boolean(closing);
@@ -2954,4 +2969,4 @@ export {
2954
2969
  runGoal,
2955
2970
  TheseusRuntimeEngine
2956
2971
  };
2957
- //# sourceMappingURL=chunk-ISR434K7.js.map
2972
+ //# sourceMappingURL=chunk-IWVGSWY6.js.map