@odla-ai/harness 0.9.0 → 0.9.2

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.
Files changed (38) hide show
  1. package/dist/{chunk-CR6RE3A2.js → chunk-5LRYJKUI.js} +3 -3
  2. package/dist/chunk-FAN2R3GW.js +166 -0
  3. package/dist/chunk-FAN2R3GW.js.map +1 -0
  4. package/dist/{chunk-NWNBSX56.js → chunk-OZBJNTML.js} +4 -4
  5. package/dist/{chunk-NG7AYYH3.js → chunk-Q4NL5XO3.js} +204 -217
  6. package/dist/chunk-Q4NL5XO3.js.map +1 -0
  7. package/dist/{chunk-RXNHCGWE.js → chunk-U324RQ4N.js} +1 -1
  8. package/dist/{chunk-RXNHCGWE.js.map → chunk-U324RQ4N.js.map} +1 -1
  9. package/dist/{chunk-Q7CKOT7T.js → chunk-VDY5V7ZG.js} +2 -2
  10. package/dist/cli.cjs.map +1 -1
  11. package/dist/cli.js +4 -4
  12. package/dist/code-runtime-cli.cjs +311 -164
  13. package/dist/code-runtime-cli.cjs.map +1 -1
  14. package/dist/code-runtime-cli.js +12 -6
  15. package/dist/code-runtime-cli.js.map +1 -1
  16. package/dist/index.cjs +172 -6
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +24 -3
  19. package/dist/index.d.ts +24 -3
  20. package/dist/index.js +11 -3
  21. package/dist/index.js.map +1 -1
  22. package/dist/node.cjs +308 -162
  23. package/dist/node.cjs.map +1 -1
  24. package/dist/node.d.cts +44 -7
  25. package/dist/node.d.ts +44 -7
  26. package/dist/node.js +10 -5
  27. package/dist/node.js.map +1 -1
  28. package/dist/testing.cjs.map +1 -1
  29. package/dist/testing.d.cts +1 -1
  30. package/dist/testing.d.ts +1 -1
  31. package/dist/testing.js +1 -1
  32. package/dist/{types-BNJikP5h.d.ts → types-_8y8vBDI.d.cts} +19 -1
  33. package/dist/{types-BNJikP5h.d.cts → types-_8y8vBDI.d.ts} +19 -1
  34. package/package.json +1 -1
  35. package/dist/chunk-NG7AYYH3.js.map +0 -1
  36. /package/dist/{chunk-CR6RE3A2.js.map → chunk-5LRYJKUI.js.map} +0 -0
  37. /package/dist/{chunk-NWNBSX56.js.map → chunk-OZBJNTML.js.map} +0 -0
  38. /package/dist/{chunk-Q7CKOT7T.js.map → chunk-VDY5V7ZG.js.map} +0 -0
@@ -198,7 +198,25 @@ type CodeSessionEventData = ({
198
198
  ok: boolean;
199
199
  durationMs: number;
200
200
  operationId?: string;
201
+ /** Why the call failed, bounded. Absent when `ok`. Without this a watcher
202
+ * saw that a tool failed and never why, which is what made an 84%
203
+ * apply_patch failure rate impossible to diagnose (PM bug 515655ec). */
204
+ failureReason?: string;
201
205
  presentation?: CodeToolPresentation;
206
+ } | {
207
+ type: "collaboration";
208
+ phase: "started";
209
+ skill: string;
210
+ tool: string;
211
+ operationId: string;
212
+ } | {
213
+ type: "collaboration";
214
+ phase: "completed";
215
+ skill: string;
216
+ tool: string;
217
+ ok: boolean;
218
+ durationMs: number;
219
+ operationId: string;
202
220
  } | {
203
221
  type: "usage";
204
222
  provider: string;
@@ -311,4 +329,4 @@ interface HarnessToolBroker {
311
329
  }, request: HarnessToolRequest): Promise<HarnessToolResponse>;
312
330
  }
313
331
 
314
- export { type CodeSessionEvent as C, DEFAULT_AI_ROUTE as D, type HarnessControlPlane as H, type HarnessLease as a, type HarnessEventInput as b, type HarnessCompletion as c, type HarnessInferenceRequest as d, type HarnessInferenceResponse as e, type HarnessAgentInput as f, type HarnessAgentOutput as g, type HarnessAiConnection as h, type CodeSessionEventData as i, type CodeToolLocationPreview as j, type CodeToolPresentation as k, HARNESS_PROTOCOL_VERSION as l, type HarnessActor as m, type HarnessAttemptStatus as n, type HarnessAttemptSummary as o, type HarnessEvent as p, type HarnessPolicy as q, type HarnessRunnerView as r, type HarnessTaskDetail as s, type HarnessTaskSpec as t, type HarnessTaskStatus as u, type HarnessTaskSummary as v, type HarnessToolBroker as w, type HarnessToolName as x, type HarnessToolRequest as y, type HarnessToolResponse as z };
332
+ export { type CodeSessionEventData as C, DEFAULT_AI_ROUTE as D, type HarnessControlPlane as H, type HarnessLease as a, type HarnessEventInput as b, type HarnessCompletion as c, type HarnessInferenceRequest as d, type HarnessInferenceResponse as e, type HarnessToolBroker as f, type HarnessToolResponse as g, type HarnessAgentInput as h, type HarnessAgentOutput as i, type HarnessAiConnection as j, type CodeSessionEvent as k, type CodeToolLocationPreview as l, type CodeToolPresentation as m, HARNESS_PROTOCOL_VERSION as n, type HarnessActor as o, type HarnessAttemptStatus as p, type HarnessAttemptSummary as q, type HarnessEvent as r, type HarnessPolicy as s, type HarnessRunnerView as t, type HarnessTaskDetail as u, type HarnessTaskSpec as v, type HarnessTaskStatus as w, type HarnessTaskSummary as x, type HarnessToolName as y, type HarnessToolRequest as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odla-ai/harness",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
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",