@odla-ai/harness 0.5.1 → 0.6.0

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/node.d.cts CHANGED
@@ -379,6 +379,7 @@ interface CodeSkillOpts {
379
379
  tool: HarnessToolName;
380
380
  ok: boolean;
381
381
  durationMs: number;
382
+ error?: string;
382
383
  }): void;
383
384
  }
384
385
  /**
@@ -406,6 +407,7 @@ interface CodeAgentAttemptOptions {
406
407
  tool: HarnessToolName;
407
408
  ok: boolean;
408
409
  durationMs: number;
410
+ error?: string;
409
411
  }): void;
410
412
  }
411
413
  /** Whether one attempt completed, and the text it ended on. */
@@ -644,6 +646,9 @@ interface CodeToolCallRecord {
644
646
  tool: HarnessToolName;
645
647
  ok: boolean;
646
648
  durationMs: number;
649
+ /** Why it failed, bounded, when it did — the same phrasing the model was
650
+ * given. Absent on success. */
651
+ error?: string;
647
652
  }
648
653
  /** One coding run: which tool surface, which model, and what it may spend. */
649
654
  interface RunCodeAgentOptions {
@@ -714,7 +719,6 @@ declare function runCodeAgent(options: RunCodeAgentOptions): Promise<CodeAgentRu
714
719
  */
715
720
  interface CodeInteractionBudgetState {
716
721
  tokens: number;
717
- noticeEmitted: boolean;
718
722
  costUsd: number;
719
723
  costKnown: boolean;
720
724
  }
package/dist/node.d.ts CHANGED
@@ -379,6 +379,7 @@ interface CodeSkillOpts {
379
379
  tool: HarnessToolName;
380
380
  ok: boolean;
381
381
  durationMs: number;
382
+ error?: string;
382
383
  }): void;
383
384
  }
384
385
  /**
@@ -406,6 +407,7 @@ interface CodeAgentAttemptOptions {
406
407
  tool: HarnessToolName;
407
408
  ok: boolean;
408
409
  durationMs: number;
410
+ error?: string;
409
411
  }): void;
410
412
  }
411
413
  /** Whether one attempt completed, and the text it ended on. */
@@ -644,6 +646,9 @@ interface CodeToolCallRecord {
644
646
  tool: HarnessToolName;
645
647
  ok: boolean;
646
648
  durationMs: number;
649
+ /** Why it failed, bounded, when it did — the same phrasing the model was
650
+ * given. Absent on success. */
651
+ error?: string;
647
652
  }
648
653
  /** One coding run: which tool surface, which model, and what it may spend. */
649
654
  interface RunCodeAgentOptions {
@@ -714,7 +719,6 @@ declare function runCodeAgent(options: RunCodeAgentOptions): Promise<CodeAgentRu
714
719
  */
715
720
  interface CodeInteractionBudgetState {
716
721
  tokens: number;
717
- noticeEmitted: boolean;
718
722
  costUsd: number;
719
723
  costKnown: boolean;
720
724
  }
package/dist/node.js CHANGED
@@ -44,7 +44,7 @@ import {
44
44
  validateMemory,
45
45
  validateRelativePath,
46
46
  verifyCodeCandidate
47
- } from "./chunk-L2T3LPEF.js";
47
+ } from "./chunk-ZYNGL5SC.js";
48
48
  import {
49
49
  assertPinnedImage,
50
50
  buildContainerRunArgs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odla-ai/harness",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
4
4
  "description": "Safe, inspectable coding-task protocol and credentialless container runner for odla Studio.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://odla.ai/docs/packages/harness",