@oneharness/sdk 0.25.10 → 0.26.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.
- package/dist/generated/history-line.d.ts +29 -17
- package/dist/generated/history-show-entries.d.ts +14 -14
- package/dist/generated/history-stream-envelope.d.ts +15 -15
- package/dist/generated/history.d.ts +14 -14
- package/dist/generated/run-stream-envelope.d.ts +8 -0
- package/dist/generated/schemas.json +221 -59
- package/dist/generated/zod.js +109 -12
- package/package.json +2 -2
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* One event-sourced history JSONL line.
|
|
3
3
|
*/
|
|
4
|
-
export type HistoryLine =
|
|
4
|
+
export type HistoryLine = {
|
|
5
|
+
harness_id: string;
|
|
6
|
+
history_id: string;
|
|
7
|
+
prompt: string;
|
|
8
|
+
schema_version: "1.11";
|
|
9
|
+
started: UtcInstant;
|
|
10
|
+
type: "run-started";
|
|
11
|
+
[k: string]: unknown;
|
|
12
|
+
} | ({
|
|
5
13
|
event: ActionEvent;
|
|
6
14
|
harness: string;
|
|
7
15
|
harness_id?: string | null | undefined;
|
|
8
16
|
run_id: string;
|
|
9
|
-
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
17
|
+
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11";
|
|
10
18
|
/**
|
|
11
19
|
* The name of the session this line belongs to — the `name` its run's
|
|
12
20
|
* closing `run` line will carry — so a run still in progress (events but
|
|
@@ -43,7 +51,7 @@ export type HistoryLine = ({
|
|
|
43
51
|
[k: string]: unknown;
|
|
44
52
|
} | ({
|
|
45
53
|
error: string;
|
|
46
|
-
schema_version?: "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | undefined;
|
|
54
|
+
schema_version?: "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
47
55
|
[k: string]: unknown;
|
|
48
56
|
} & ({
|
|
49
57
|
status?: "nonzero" | "timeout" | "cancelled" | "spawn-error" | "skipped" | undefined;
|
|
@@ -55,7 +63,7 @@ export type HistoryLine = ({
|
|
|
55
63
|
work?: null | undefined;
|
|
56
64
|
[k: string]: unknown;
|
|
57
65
|
} | {
|
|
58
|
-
schema_version?: "1.7" | "1.8" | "1.9" | "1.10" | undefined;
|
|
66
|
+
schema_version?: "1.7" | "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
59
67
|
status?: "nonzero" | "timeout" | "cancelled" | undefined;
|
|
60
68
|
work: "done" | "none";
|
|
61
69
|
[k: string]: unknown;
|
|
@@ -64,43 +72,43 @@ export type HistoryLine = ({
|
|
|
64
72
|
[k: string]: unknown;
|
|
65
73
|
} | {
|
|
66
74
|
observed_model: string;
|
|
67
|
-
schema_version?: "1.8" | "1.9" | "1.10" | undefined;
|
|
75
|
+
schema_version?: "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
68
76
|
[k: string]: unknown;
|
|
69
77
|
}) & ({
|
|
70
78
|
status?: "ok" | "nonzero" | "timeout" | "spawn-error" | "skipped" | "planned" | undefined;
|
|
71
79
|
[k: string]: unknown;
|
|
72
80
|
} | {
|
|
73
|
-
schema_version?: "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | undefined;
|
|
81
|
+
schema_version?: "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
74
82
|
[k: string]: unknown;
|
|
75
83
|
}) & (({
|
|
76
84
|
failure_kind?: "auth" | "rate_limit" | "model_not_found" | "quota" | "tool_deferred" | "untrusted_directory" | "input_too_large" | "model_mismatch" | "server_overloaded" | "app_server_lost" | null;
|
|
77
85
|
[k: string]: unknown;
|
|
78
86
|
} | {
|
|
79
|
-
schema_version?: "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | undefined;
|
|
87
|
+
schema_version?: "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
80
88
|
[k: string]: unknown;
|
|
81
89
|
}) & ({
|
|
82
90
|
failure_kind?: "auth" | "rate_limit" | "model_not_found" | "quota" | "session_not_found" | "tool_deferred" | "model_mismatch" | "server_overloaded" | "app_server_lost" | null;
|
|
83
91
|
[k: string]: unknown;
|
|
84
92
|
} | {
|
|
85
|
-
schema_version?: "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | undefined;
|
|
93
|
+
schema_version?: "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
86
94
|
[k: string]: unknown;
|
|
87
95
|
}) & ({
|
|
88
96
|
failure_kind?: "auth" | "rate_limit" | "model_not_found" | "quota" | "session_not_found" | "tool_deferred" | "untrusted_directory" | "input_too_large" | "server_overloaded" | "app_server_lost" | null;
|
|
89
97
|
[k: string]: unknown;
|
|
90
98
|
} | {
|
|
91
|
-
schema_version?: "1.8" | "1.9" | "1.10" | undefined;
|
|
99
|
+
schema_version?: "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
92
100
|
[k: string]: unknown;
|
|
93
101
|
}) & ({
|
|
94
102
|
failure_kind?: "auth" | "rate_limit" | "model_not_found" | "quota" | "session_not_found" | "tool_deferred" | "untrusted_directory" | "input_too_large" | "model_mismatch" | "app_server_lost" | null;
|
|
95
103
|
[k: string]: unknown;
|
|
96
104
|
} | {
|
|
97
|
-
schema_version?: "1.9" | "1.10" | undefined;
|
|
105
|
+
schema_version?: "1.9" | "1.10" | "1.11" | undefined;
|
|
98
106
|
[k: string]: unknown;
|
|
99
107
|
}) & ({
|
|
100
108
|
failure_kind?: "auth" | "rate_limit" | "model_not_found" | "quota" | "session_not_found" | "tool_deferred" | "untrusted_directory" | "input_too_large" | "model_mismatch" | "server_overloaded" | null;
|
|
101
109
|
[k: string]: unknown;
|
|
102
110
|
} | {
|
|
103
|
-
schema_version?: "1.10" | undefined;
|
|
111
|
+
schema_version?: "1.10" | "1.11" | undefined;
|
|
104
112
|
[k: string]: unknown;
|
|
105
113
|
})) & ({
|
|
106
114
|
duration_ms: number;
|
|
@@ -128,7 +136,7 @@ export type HistoryLine = ({
|
|
|
128
136
|
permission_mode: PermissionMode;
|
|
129
137
|
project: string;
|
|
130
138
|
prompt: string;
|
|
131
|
-
schema_version: "1.0" | "1.1" | "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
139
|
+
schema_version: "1.0" | "1.1" | "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11";
|
|
132
140
|
session: string;
|
|
133
141
|
session_id: string | null;
|
|
134
142
|
started_at: string;
|
|
@@ -173,7 +181,7 @@ export type HistoryLine = ({
|
|
|
173
181
|
permission_mode: PermissionMode;
|
|
174
182
|
project: string;
|
|
175
183
|
prompt: string;
|
|
176
|
-
schema_version: "1.0" | "1.1" | "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
184
|
+
schema_version: "1.0" | "1.1" | "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11";
|
|
177
185
|
session: string;
|
|
178
186
|
session_id: string | null;
|
|
179
187
|
started_at: string;
|
|
@@ -218,7 +226,7 @@ export type HistoryLine = ({
|
|
|
218
226
|
permission_mode: PermissionMode;
|
|
219
227
|
project: string;
|
|
220
228
|
prompt: string;
|
|
221
|
-
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
229
|
+
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11";
|
|
222
230
|
session: string;
|
|
223
231
|
session_id: string | null;
|
|
224
232
|
started_at?: never | undefined;
|
|
@@ -263,7 +271,7 @@ export type HistoryLine = ({
|
|
|
263
271
|
permission_mode: PermissionMode;
|
|
264
272
|
project: string;
|
|
265
273
|
prompt: string;
|
|
266
|
-
schema_version: "1.0" | "1.1" | "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
274
|
+
schema_version: "1.0" | "1.1" | "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11";
|
|
267
275
|
session: string;
|
|
268
276
|
session_id: string | null;
|
|
269
277
|
started_at?: never | undefined;
|
|
@@ -308,7 +316,7 @@ export type HistoryLine = ({
|
|
|
308
316
|
permission_mode: PermissionMode;
|
|
309
317
|
project: string;
|
|
310
318
|
prompt: string;
|
|
311
|
-
schema_version: "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
319
|
+
schema_version: "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11";
|
|
312
320
|
session: string;
|
|
313
321
|
session_id: string | null;
|
|
314
322
|
started_at: string;
|
|
@@ -353,7 +361,7 @@ export type HistoryLine = ({
|
|
|
353
361
|
permission_mode: PermissionMode;
|
|
354
362
|
project: string;
|
|
355
363
|
prompt: string;
|
|
356
|
-
schema_version: "1.0" | "1.1" | "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
364
|
+
schema_version: "1.0" | "1.1" | "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11";
|
|
357
365
|
session: string;
|
|
358
366
|
session_id: string | null;
|
|
359
367
|
started_at?: never | undefined;
|
|
@@ -373,6 +381,10 @@ export type HistoryLine = ({
|
|
|
373
381
|
work?: RunWork | null | undefined;
|
|
374
382
|
[k: string]: unknown;
|
|
375
383
|
}));
|
|
384
|
+
/**
|
|
385
|
+
* An RFC 3339 timestamp in UTC (`Z`), in oneharness's canonical spelling.
|
|
386
|
+
*/
|
|
387
|
+
export type UtcInstant = string;
|
|
376
388
|
export type ToolCallStatus = "completed" | "failed" | "timeout" | "interrupted";
|
|
377
389
|
/**
|
|
378
390
|
* How a normalized tool interval was obtained.
|
|
@@ -7,7 +7,7 @@ export type HistoryShowEntry = (({
|
|
|
7
7
|
[k: string]: unknown;
|
|
8
8
|
} | ({
|
|
9
9
|
error: string;
|
|
10
|
-
schema_version?: "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | undefined;
|
|
10
|
+
schema_version?: "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
11
11
|
[k: string]: unknown;
|
|
12
12
|
} & ({
|
|
13
13
|
status?: "nonzero" | "timeout" | "cancelled" | "spawn-error" | "skipped" | undefined;
|
|
@@ -19,7 +19,7 @@ export type HistoryShowEntry = (({
|
|
|
19
19
|
work?: null | undefined;
|
|
20
20
|
[k: string]: unknown;
|
|
21
21
|
} | {
|
|
22
|
-
schema_version?: "1.7" | "1.8" | "1.9" | "1.10" | undefined;
|
|
22
|
+
schema_version?: "1.7" | "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
23
23
|
status?: "nonzero" | "timeout" | "cancelled" | undefined;
|
|
24
24
|
work: "done" | "none";
|
|
25
25
|
[k: string]: unknown;
|
|
@@ -28,43 +28,43 @@ export type HistoryShowEntry = (({
|
|
|
28
28
|
[k: string]: unknown;
|
|
29
29
|
} | {
|
|
30
30
|
observed_model: string;
|
|
31
|
-
schema_version?: "1.8" | "1.9" | "1.10" | undefined;
|
|
31
|
+
schema_version?: "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
32
32
|
[k: string]: unknown;
|
|
33
33
|
}) & ({
|
|
34
34
|
status?: "ok" | "nonzero" | "timeout" | "spawn-error" | "skipped" | "planned" | undefined;
|
|
35
35
|
[k: string]: unknown;
|
|
36
36
|
} | {
|
|
37
|
-
schema_version?: "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | undefined;
|
|
37
|
+
schema_version?: "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
38
38
|
[k: string]: unknown;
|
|
39
39
|
}) & (({
|
|
40
40
|
failure_kind?: "auth" | "rate_limit" | "model_not_found" | "quota" | "tool_deferred" | "untrusted_directory" | "input_too_large" | "model_mismatch" | "server_overloaded" | "app_server_lost" | null;
|
|
41
41
|
[k: string]: unknown;
|
|
42
42
|
} | {
|
|
43
|
-
schema_version?: "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | undefined;
|
|
43
|
+
schema_version?: "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
44
44
|
[k: string]: unknown;
|
|
45
45
|
}) & ({
|
|
46
46
|
failure_kind?: "auth" | "rate_limit" | "model_not_found" | "quota" | "session_not_found" | "tool_deferred" | "model_mismatch" | "server_overloaded" | "app_server_lost" | null;
|
|
47
47
|
[k: string]: unknown;
|
|
48
48
|
} | {
|
|
49
|
-
schema_version?: "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | undefined;
|
|
49
|
+
schema_version?: "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
50
50
|
[k: string]: unknown;
|
|
51
51
|
}) & ({
|
|
52
52
|
failure_kind?: "auth" | "rate_limit" | "model_not_found" | "quota" | "session_not_found" | "tool_deferred" | "untrusted_directory" | "input_too_large" | "server_overloaded" | "app_server_lost" | null;
|
|
53
53
|
[k: string]: unknown;
|
|
54
54
|
} | {
|
|
55
|
-
schema_version?: "1.8" | "1.9" | "1.10" | undefined;
|
|
55
|
+
schema_version?: "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
56
56
|
[k: string]: unknown;
|
|
57
57
|
}) & ({
|
|
58
58
|
failure_kind?: "auth" | "rate_limit" | "model_not_found" | "quota" | "session_not_found" | "tool_deferred" | "untrusted_directory" | "input_too_large" | "model_mismatch" | "app_server_lost" | null;
|
|
59
59
|
[k: string]: unknown;
|
|
60
60
|
} | {
|
|
61
|
-
schema_version?: "1.9" | "1.10" | undefined;
|
|
61
|
+
schema_version?: "1.9" | "1.10" | "1.11" | undefined;
|
|
62
62
|
[k: string]: unknown;
|
|
63
63
|
}) & ({
|
|
64
64
|
failure_kind?: "auth" | "rate_limit" | "model_not_found" | "quota" | "session_not_found" | "tool_deferred" | "untrusted_directory" | "input_too_large" | "model_mismatch" | "server_overloaded" | null;
|
|
65
65
|
[k: string]: unknown;
|
|
66
66
|
} | {
|
|
67
|
-
schema_version?: "1.10" | undefined;
|
|
67
|
+
schema_version?: "1.10" | "1.11" | undefined;
|
|
68
68
|
[k: string]: unknown;
|
|
69
69
|
})) & ({
|
|
70
70
|
duration_ms: number;
|
|
@@ -183,7 +183,7 @@ export type HistoryShowEntry = (({
|
|
|
183
183
|
* run's single prompt).
|
|
184
184
|
*/
|
|
185
185
|
prompt: string;
|
|
186
|
-
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
186
|
+
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11";
|
|
187
187
|
/**
|
|
188
188
|
* The oneharness session id this run belongs to (the history file's stem).
|
|
189
189
|
*/
|
|
@@ -486,7 +486,7 @@ export type HistoryShowEntry = (({
|
|
|
486
486
|
* run's single prompt).
|
|
487
487
|
*/
|
|
488
488
|
prompt: string;
|
|
489
|
-
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
489
|
+
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11";
|
|
490
490
|
/**
|
|
491
491
|
* The oneharness session id this run belongs to (the history file's stem).
|
|
492
492
|
*/
|
|
@@ -613,7 +613,7 @@ export type HistoryShowEntry = (({
|
|
|
613
613
|
* run's single prompt).
|
|
614
614
|
*/
|
|
615
615
|
prompt: string;
|
|
616
|
-
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
616
|
+
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11";
|
|
617
617
|
/**
|
|
618
618
|
* The oneharness session id this run belongs to (the history file's stem).
|
|
619
619
|
*/
|
|
@@ -740,7 +740,7 @@ export type HistoryShowEntry = (({
|
|
|
740
740
|
* run's single prompt).
|
|
741
741
|
*/
|
|
742
742
|
prompt: string;
|
|
743
|
-
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
743
|
+
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11";
|
|
744
744
|
/**
|
|
745
745
|
* The oneharness session id this run belongs to (the history file's stem).
|
|
746
746
|
*/
|
|
@@ -867,7 +867,7 @@ export type HistoryShowEntry = (({
|
|
|
867
867
|
* run's single prompt).
|
|
868
868
|
*/
|
|
869
869
|
prompt: string;
|
|
870
|
-
schema_version: "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
870
|
+
schema_version: "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11";
|
|
871
871
|
/**
|
|
872
872
|
* The oneharness session id this run belongs to (the history file's stem).
|
|
873
873
|
*/
|
|
@@ -14,7 +14,7 @@ export type HistoryStreamEnvelope = {
|
|
|
14
14
|
[k: string]: unknown;
|
|
15
15
|
} | ({
|
|
16
16
|
error: string;
|
|
17
|
-
schema_version?: "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | undefined;
|
|
17
|
+
schema_version?: "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
18
18
|
[k: string]: unknown;
|
|
19
19
|
} & ({
|
|
20
20
|
status?: "nonzero" | "timeout" | "cancelled" | "spawn-error" | "skipped" | undefined;
|
|
@@ -26,7 +26,7 @@ export type HistoryStreamEnvelope = {
|
|
|
26
26
|
work?: null | undefined;
|
|
27
27
|
[k: string]: unknown;
|
|
28
28
|
} | {
|
|
29
|
-
schema_version?: "1.7" | "1.8" | "1.9" | "1.10" | undefined;
|
|
29
|
+
schema_version?: "1.7" | "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
30
30
|
status?: "nonzero" | "timeout" | "cancelled" | undefined;
|
|
31
31
|
work: "done" | "none";
|
|
32
32
|
[k: string]: unknown;
|
|
@@ -35,43 +35,43 @@ export type HistoryStreamEnvelope = {
|
|
|
35
35
|
[k: string]: unknown;
|
|
36
36
|
} | {
|
|
37
37
|
observed_model: string;
|
|
38
|
-
schema_version?: "1.8" | "1.9" | "1.10" | undefined;
|
|
38
|
+
schema_version?: "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
39
39
|
[k: string]: unknown;
|
|
40
40
|
}) & ({
|
|
41
41
|
status?: "ok" | "nonzero" | "timeout" | "spawn-error" | "skipped" | "planned" | undefined;
|
|
42
42
|
[k: string]: unknown;
|
|
43
43
|
} | {
|
|
44
|
-
schema_version?: "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | undefined;
|
|
44
|
+
schema_version?: "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
45
45
|
[k: string]: unknown;
|
|
46
46
|
}) & (({
|
|
47
47
|
failure_kind?: "auth" | "rate_limit" | "model_not_found" | "quota" | "tool_deferred" | "untrusted_directory" | "input_too_large" | "model_mismatch" | "server_overloaded" | "app_server_lost" | null;
|
|
48
48
|
[k: string]: unknown;
|
|
49
49
|
} | {
|
|
50
|
-
schema_version?: "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | undefined;
|
|
50
|
+
schema_version?: "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
51
51
|
[k: string]: unknown;
|
|
52
52
|
}) & ({
|
|
53
53
|
failure_kind?: "auth" | "rate_limit" | "model_not_found" | "quota" | "session_not_found" | "tool_deferred" | "model_mismatch" | "server_overloaded" | "app_server_lost" | null;
|
|
54
54
|
[k: string]: unknown;
|
|
55
55
|
} | {
|
|
56
|
-
schema_version?: "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | undefined;
|
|
56
|
+
schema_version?: "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
57
57
|
[k: string]: unknown;
|
|
58
58
|
}) & ({
|
|
59
59
|
failure_kind?: "auth" | "rate_limit" | "model_not_found" | "quota" | "session_not_found" | "tool_deferred" | "untrusted_directory" | "input_too_large" | "server_overloaded" | "app_server_lost" | null;
|
|
60
60
|
[k: string]: unknown;
|
|
61
61
|
} | {
|
|
62
|
-
schema_version?: "1.8" | "1.9" | "1.10" | undefined;
|
|
62
|
+
schema_version?: "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
63
63
|
[k: string]: unknown;
|
|
64
64
|
}) & ({
|
|
65
65
|
failure_kind?: "auth" | "rate_limit" | "model_not_found" | "quota" | "session_not_found" | "tool_deferred" | "untrusted_directory" | "input_too_large" | "model_mismatch" | "app_server_lost" | null;
|
|
66
66
|
[k: string]: unknown;
|
|
67
67
|
} | {
|
|
68
|
-
schema_version?: "1.9" | "1.10" | undefined;
|
|
68
|
+
schema_version?: "1.9" | "1.10" | "1.11" | undefined;
|
|
69
69
|
[k: string]: unknown;
|
|
70
70
|
}) & ({
|
|
71
71
|
failure_kind?: "auth" | "rate_limit" | "model_not_found" | "quota" | "session_not_found" | "tool_deferred" | "untrusted_directory" | "input_too_large" | "model_mismatch" | "server_overloaded" | null;
|
|
72
72
|
[k: string]: unknown;
|
|
73
73
|
} | {
|
|
74
|
-
schema_version?: "1.10" | undefined;
|
|
74
|
+
schema_version?: "1.10" | "1.11" | undefined;
|
|
75
75
|
[k: string]: unknown;
|
|
76
76
|
})) & HistoryRecord;
|
|
77
77
|
type: "record";
|
|
@@ -198,7 +198,7 @@ export type HistoryRecord = {
|
|
|
198
198
|
* run's single prompt).
|
|
199
199
|
*/
|
|
200
200
|
prompt: string;
|
|
201
|
-
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
201
|
+
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11";
|
|
202
202
|
/**
|
|
203
203
|
* The oneharness session id this run belongs to (the history file's stem).
|
|
204
204
|
*/
|
|
@@ -501,7 +501,7 @@ export type HistoryRecord = {
|
|
|
501
501
|
* run's single prompt).
|
|
502
502
|
*/
|
|
503
503
|
prompt: string;
|
|
504
|
-
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
504
|
+
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11";
|
|
505
505
|
/**
|
|
506
506
|
* The oneharness session id this run belongs to (the history file's stem).
|
|
507
507
|
*/
|
|
@@ -628,7 +628,7 @@ export type HistoryRecord = {
|
|
|
628
628
|
* run's single prompt).
|
|
629
629
|
*/
|
|
630
630
|
prompt: string;
|
|
631
|
-
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
631
|
+
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11";
|
|
632
632
|
/**
|
|
633
633
|
* The oneharness session id this run belongs to (the history file's stem).
|
|
634
634
|
*/
|
|
@@ -755,7 +755,7 @@ export type HistoryRecord = {
|
|
|
755
755
|
* run's single prompt).
|
|
756
756
|
*/
|
|
757
757
|
prompt: string;
|
|
758
|
-
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
758
|
+
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11";
|
|
759
759
|
/**
|
|
760
760
|
* The oneharness session id this run belongs to (the history file's stem).
|
|
761
761
|
*/
|
|
@@ -882,7 +882,7 @@ export type HistoryRecord = {
|
|
|
882
882
|
* run's single prompt).
|
|
883
883
|
*/
|
|
884
884
|
prompt: string;
|
|
885
|
-
schema_version: "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
885
|
+
schema_version: "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11";
|
|
886
886
|
/**
|
|
887
887
|
* The oneharness session id this run belongs to (the history file's stem).
|
|
888
888
|
*/
|
|
@@ -1386,7 +1386,7 @@ export type HistoryEventLine = {
|
|
|
1386
1386
|
harness: string;
|
|
1387
1387
|
harness_id?: string | null | undefined;
|
|
1388
1388
|
run_id: string;
|
|
1389
|
-
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
1389
|
+
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11";
|
|
1390
1390
|
/**
|
|
1391
1391
|
* The name of the session this line belongs to — the `name` its run's
|
|
1392
1392
|
* closing `run` line will carry — so a run still in progress (events but
|
|
@@ -8,7 +8,7 @@ export type HistoryRecord = ({
|
|
|
8
8
|
[k: string]: unknown;
|
|
9
9
|
} | ({
|
|
10
10
|
error: string;
|
|
11
|
-
schema_version?: "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | undefined;
|
|
11
|
+
schema_version?: "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
12
12
|
[k: string]: unknown;
|
|
13
13
|
} & ({
|
|
14
14
|
status?: "nonzero" | "timeout" | "cancelled" | "spawn-error" | "skipped" | undefined;
|
|
@@ -20,7 +20,7 @@ export type HistoryRecord = ({
|
|
|
20
20
|
work?: null | undefined;
|
|
21
21
|
[k: string]: unknown;
|
|
22
22
|
} | {
|
|
23
|
-
schema_version?: "1.7" | "1.8" | "1.9" | "1.10" | undefined;
|
|
23
|
+
schema_version?: "1.7" | "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
24
24
|
status?: "nonzero" | "timeout" | "cancelled" | undefined;
|
|
25
25
|
work: "done" | "none";
|
|
26
26
|
[k: string]: unknown;
|
|
@@ -29,43 +29,43 @@ export type HistoryRecord = ({
|
|
|
29
29
|
[k: string]: unknown;
|
|
30
30
|
} | {
|
|
31
31
|
observed_model: string;
|
|
32
|
-
schema_version?: "1.8" | "1.9" | "1.10" | undefined;
|
|
32
|
+
schema_version?: "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
33
33
|
[k: string]: unknown;
|
|
34
34
|
}) & ({
|
|
35
35
|
status?: "ok" | "nonzero" | "timeout" | "spawn-error" | "skipped" | "planned" | undefined;
|
|
36
36
|
[k: string]: unknown;
|
|
37
37
|
} | {
|
|
38
|
-
schema_version?: "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | undefined;
|
|
38
|
+
schema_version?: "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
39
39
|
[k: string]: unknown;
|
|
40
40
|
}) & (({
|
|
41
41
|
failure_kind?: "auth" | "rate_limit" | "model_not_found" | "quota" | "tool_deferred" | "untrusted_directory" | "input_too_large" | "model_mismatch" | "server_overloaded" | "app_server_lost" | null;
|
|
42
42
|
[k: string]: unknown;
|
|
43
43
|
} | {
|
|
44
|
-
schema_version?: "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | undefined;
|
|
44
|
+
schema_version?: "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
45
45
|
[k: string]: unknown;
|
|
46
46
|
}) & ({
|
|
47
47
|
failure_kind?: "auth" | "rate_limit" | "model_not_found" | "quota" | "session_not_found" | "tool_deferred" | "model_mismatch" | "server_overloaded" | "app_server_lost" | null;
|
|
48
48
|
[k: string]: unknown;
|
|
49
49
|
} | {
|
|
50
|
-
schema_version?: "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | undefined;
|
|
50
|
+
schema_version?: "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
51
51
|
[k: string]: unknown;
|
|
52
52
|
}) & ({
|
|
53
53
|
failure_kind?: "auth" | "rate_limit" | "model_not_found" | "quota" | "session_not_found" | "tool_deferred" | "untrusted_directory" | "input_too_large" | "server_overloaded" | "app_server_lost" | null;
|
|
54
54
|
[k: string]: unknown;
|
|
55
55
|
} | {
|
|
56
|
-
schema_version?: "1.8" | "1.9" | "1.10" | undefined;
|
|
56
|
+
schema_version?: "1.8" | "1.9" | "1.10" | "1.11" | undefined;
|
|
57
57
|
[k: string]: unknown;
|
|
58
58
|
}) & ({
|
|
59
59
|
failure_kind?: "auth" | "rate_limit" | "model_not_found" | "quota" | "session_not_found" | "tool_deferred" | "untrusted_directory" | "input_too_large" | "model_mismatch" | "app_server_lost" | null;
|
|
60
60
|
[k: string]: unknown;
|
|
61
61
|
} | {
|
|
62
|
-
schema_version?: "1.9" | "1.10" | undefined;
|
|
62
|
+
schema_version?: "1.9" | "1.10" | "1.11" | undefined;
|
|
63
63
|
[k: string]: unknown;
|
|
64
64
|
}) & ({
|
|
65
65
|
failure_kind?: "auth" | "rate_limit" | "model_not_found" | "quota" | "session_not_found" | "tool_deferred" | "untrusted_directory" | "input_too_large" | "model_mismatch" | "server_overloaded" | null;
|
|
66
66
|
[k: string]: unknown;
|
|
67
67
|
} | {
|
|
68
|
-
schema_version?: "1.10" | undefined;
|
|
68
|
+
schema_version?: "1.10" | "1.11" | undefined;
|
|
69
69
|
[k: string]: unknown;
|
|
70
70
|
})) & ({
|
|
71
71
|
duration_ms: number;
|
|
@@ -184,7 +184,7 @@ export type HistoryRecord = ({
|
|
|
184
184
|
* run's single prompt).
|
|
185
185
|
*/
|
|
186
186
|
prompt: string;
|
|
187
|
-
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
187
|
+
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11";
|
|
188
188
|
/**
|
|
189
189
|
* The oneharness session id this run belongs to (the history file's stem).
|
|
190
190
|
*/
|
|
@@ -487,7 +487,7 @@ export type HistoryRecord = ({
|
|
|
487
487
|
* run's single prompt).
|
|
488
488
|
*/
|
|
489
489
|
prompt: string;
|
|
490
|
-
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
490
|
+
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11";
|
|
491
491
|
/**
|
|
492
492
|
* The oneharness session id this run belongs to (the history file's stem).
|
|
493
493
|
*/
|
|
@@ -614,7 +614,7 @@ export type HistoryRecord = ({
|
|
|
614
614
|
* run's single prompt).
|
|
615
615
|
*/
|
|
616
616
|
prompt: string;
|
|
617
|
-
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
617
|
+
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11";
|
|
618
618
|
/**
|
|
619
619
|
* The oneharness session id this run belongs to (the history file's stem).
|
|
620
620
|
*/
|
|
@@ -741,7 +741,7 @@ export type HistoryRecord = ({
|
|
|
741
741
|
* run's single prompt).
|
|
742
742
|
*/
|
|
743
743
|
prompt: string;
|
|
744
|
-
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
744
|
+
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11";
|
|
745
745
|
/**
|
|
746
746
|
* The oneharness session id this run belongs to (the history file's stem).
|
|
747
747
|
*/
|
|
@@ -868,7 +868,7 @@ export type HistoryRecord = ({
|
|
|
868
868
|
* run's single prompt).
|
|
869
869
|
*/
|
|
870
870
|
prompt: string;
|
|
871
|
-
schema_version: "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
871
|
+
schema_version: "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | "1.11";
|
|
872
872
|
/**
|
|
873
873
|
* The oneharness session id this run belongs to (the history file's stem).
|
|
874
874
|
*/
|
|
@@ -8,6 +8,14 @@
|
|
|
8
8
|
* tolerates additive fields from newer producers.
|
|
9
9
|
*/
|
|
10
10
|
export type RunStreamEnvelope = {
|
|
11
|
+
harness_id: string;
|
|
12
|
+
history_dir: string;
|
|
13
|
+
history_id: string;
|
|
14
|
+
history_project: string;
|
|
15
|
+
history_session: string;
|
|
16
|
+
type: "run-started";
|
|
17
|
+
[k: string]: unknown;
|
|
18
|
+
} | {
|
|
11
19
|
event: ActionEvent;
|
|
12
20
|
type: "event";
|
|
13
21
|
[k: string]: unknown;
|