@oneharness/sdk 0.5.1 → 0.5.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.
@@ -53,7 +53,7 @@ export type HistoryLine = {
53
53
  session: string;
54
54
  session_id: string | null;
55
55
  started_at: string;
56
- status: "timeout" | "spawn_error" | "skipped" | "planned";
56
+ status: "timeout" | "spawn-error" | "skipped" | "planned";
57
57
  text: string | null;
58
58
  text_source: string | null;
59
59
  time_to_first_token_ms?: number | null | undefined;
@@ -2115,7 +2115,7 @@
2115
2115
  "type": "string",
2116
2116
  "enum": [
2117
2117
  "timeout",
2118
- "spawn_error",
2118
+ "spawn-error",
2119
2119
  "skipped",
2120
2120
  "planned"
2121
2121
  ]
@@ -3630,23 +3630,6 @@
3630
3630
  "record"
3631
3631
  ]
3632
3632
  },
3633
- {
3634
- "description": "A normalized action event observed before its run closes.",
3635
- "type": "object",
3636
- "properties": {
3637
- "line": {
3638
- "$ref": "#/$defs/HistoryEventLine"
3639
- },
3640
- "type": {
3641
- "type": "string",
3642
- "const": "event"
3643
- }
3644
- },
3645
- "required": [
3646
- "type",
3647
- "line"
3648
- ]
3649
- },
3650
3633
  {
3651
3634
  "description": "A normalized action event observed before its run closes.",
3652
3635
  "type": "object",
@@ -202,7 +202,7 @@ export const HistoryLineSchema = z.union([
202
202
  .min(1)
203
203
  .refine((value) => value !== undefined, { message: "Required" }),
204
204
  status: z
205
- .union([z.literal("timeout"), z.literal("spawn_error"), z.literal("skipped"), z.literal("planned")])
205
+ .union([z.literal("timeout"), z.literal("spawn-error"), z.literal("skipped"), z.literal("planned")])
206
206
  .refine((value) => value !== undefined, { message: "Required" }),
207
207
  text: z.union([z.string(), z.null()]).refine((value) => value !== undefined, { message: "Required" }),
208
208
  text_source: z.union([z.string(), z.null()]).refine((value) => value !== undefined, { message: "Required" }),
@@ -509,10 +509,6 @@ export const HistoryStreamEnvelopeSchema = z.union([
509
509
  line: z.lazy(() => HistoryEventLineSchema).refine((value) => value !== undefined, { message: "Required" }),
510
510
  type: z.literal("event").refine((value) => value !== undefined, { message: "Required" }),
511
511
  }),
512
- z.looseObject({
513
- line: z.lazy(() => HistoryEventLineSchema).refine((value) => value !== undefined, { message: "Required" }),
514
- type: z.literal("event").refine((value) => value !== undefined, { message: "Required" }),
515
- }),
516
512
  ]);
517
513
  export const HistoryWatchOptionsSchema = z.strictObject({
518
514
  after: z
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneharness/sdk",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Typed Node.js SDK for oneharness",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -19,7 +19,7 @@
19
19
  "node": ">=20"
20
20
  },
21
21
  "dependencies": {
22
- "oneharness-cli": "0.5.1",
22
+ "oneharness-cli": "0.5.2",
23
23
  "zod": "^4.4.3"
24
24
  }
25
25
  }