@oneharness/sdk 0.23.1 → 0.25.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.
- package/dist/generated/config-report.d.ts +79 -10
- package/dist/generated/contracts.d.ts +25 -3
- package/dist/generated/history-line.d.ts +27 -21
- package/dist/generated/history-show-entries.d.ts +25 -19
- package/dist/generated/history-stream-envelope.d.ts +26 -20
- package/dist/generated/history.d.ts +25 -19
- package/dist/generated/run-stream-envelope.d.ts +25 -3
- package/dist/generated/schemas.json +531 -61
- package/dist/generated/zod.d.ts +5 -2
- package/dist/generated/zod.js +131 -14
- package/package.json +2 -2
|
@@ -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" | undefined;
|
|
11
|
+
schema_version?: "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | 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" | undefined;
|
|
23
|
+
schema_version?: "1.7" | "1.8" | "1.9" | "1.10" | undefined;
|
|
24
24
|
status?: "nonzero" | "timeout" | "cancelled" | undefined;
|
|
25
25
|
work: "done" | "none";
|
|
26
26
|
[k: string]: unknown;
|
|
@@ -29,37 +29,43 @@ export type HistoryRecord = ({
|
|
|
29
29
|
[k: string]: unknown;
|
|
30
30
|
} | {
|
|
31
31
|
observed_model: string;
|
|
32
|
-
schema_version?: "1.8" | "1.9" | undefined;
|
|
32
|
+
schema_version?: "1.8" | "1.9" | "1.10" | 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" | undefined;
|
|
38
|
+
schema_version?: "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | undefined;
|
|
39
39
|
[k: string]: unknown;
|
|
40
40
|
}) & (({
|
|
41
|
-
failure_kind?: "auth" | "rate_limit" | "model_not_found" | "quota" | "tool_deferred" | "untrusted_directory" | "input_too_large" | "model_mismatch" | "server_overloaded" | null;
|
|
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" | undefined;
|
|
44
|
+
schema_version?: "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | undefined;
|
|
45
45
|
[k: string]: unknown;
|
|
46
46
|
}) & ({
|
|
47
|
-
failure_kind?: "auth" | "rate_limit" | "model_not_found" | "quota" | "session_not_found" | "tool_deferred" | "model_mismatch" | "server_overloaded" | null;
|
|
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" | undefined;
|
|
50
|
+
schema_version?: "1.6" | "1.7" | "1.8" | "1.9" | "1.10" | undefined;
|
|
51
51
|
[k: string]: unknown;
|
|
52
52
|
}) & ({
|
|
53
|
-
failure_kind?: "auth" | "rate_limit" | "model_not_found" | "quota" | "session_not_found" | "tool_deferred" | "untrusted_directory" | "input_too_large" | "server_overloaded" | null;
|
|
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" | undefined;
|
|
56
|
+
schema_version?: "1.8" | "1.9" | "1.10" | undefined;
|
|
57
57
|
[k: string]: unknown;
|
|
58
58
|
}) & ({
|
|
59
|
-
failure_kind?: "auth" | "rate_limit" | "model_not_found" | "quota" | "session_not_found" | "tool_deferred" | "untrusted_directory" | "input_too_large" | "model_mismatch" | null;
|
|
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" | undefined;
|
|
62
|
+
schema_version?: "1.9" | "1.10" | undefined;
|
|
63
|
+
[k: string]: unknown;
|
|
64
|
+
}) & ({
|
|
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
|
+
[k: string]: unknown;
|
|
67
|
+
} | {
|
|
68
|
+
schema_version?: "1.10" | undefined;
|
|
63
69
|
[k: string]: unknown;
|
|
64
70
|
})) & ({
|
|
65
71
|
duration_ms: number;
|
|
@@ -178,7 +184,7 @@ export type HistoryRecord = ({
|
|
|
178
184
|
* run's single prompt).
|
|
179
185
|
*/
|
|
180
186
|
prompt: string;
|
|
181
|
-
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9";
|
|
187
|
+
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
182
188
|
/**
|
|
183
189
|
* The oneharness session id this run belongs to (the history file's stem).
|
|
184
190
|
*/
|
|
@@ -481,7 +487,7 @@ export type HistoryRecord = ({
|
|
|
481
487
|
* run's single prompt).
|
|
482
488
|
*/
|
|
483
489
|
prompt: string;
|
|
484
|
-
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9";
|
|
490
|
+
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
485
491
|
/**
|
|
486
492
|
* The oneharness session id this run belongs to (the history file's stem).
|
|
487
493
|
*/
|
|
@@ -608,7 +614,7 @@ export type HistoryRecord = ({
|
|
|
608
614
|
* run's single prompt).
|
|
609
615
|
*/
|
|
610
616
|
prompt: string;
|
|
611
|
-
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9";
|
|
617
|
+
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
612
618
|
/**
|
|
613
619
|
* The oneharness session id this run belongs to (the history file's stem).
|
|
614
620
|
*/
|
|
@@ -735,7 +741,7 @@ export type HistoryRecord = ({
|
|
|
735
741
|
* run's single prompt).
|
|
736
742
|
*/
|
|
737
743
|
prompt: string;
|
|
738
|
-
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9";
|
|
744
|
+
schema_version: "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
739
745
|
/**
|
|
740
746
|
* The oneharness session id this run belongs to (the history file's stem).
|
|
741
747
|
*/
|
|
@@ -862,7 +868,7 @@ export type HistoryRecord = ({
|
|
|
862
868
|
* run's single prompt).
|
|
863
869
|
*/
|
|
864
870
|
prompt: string;
|
|
865
|
-
schema_version: "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9";
|
|
871
|
+
schema_version: "1.3" | "1.4" | "1.5" | "1.6" | "1.7" | "1.8" | "1.9" | "1.10";
|
|
866
872
|
/**
|
|
867
873
|
* The oneharness session id this run belongs to (the history file's stem).
|
|
868
874
|
*/
|
|
@@ -1329,13 +1335,13 @@ export type TimingSource = "provider_measured" | "stdout_observed";
|
|
|
1329
1335
|
* harness's output. It is the single source for the `failure_kind` contract
|
|
1330
1336
|
* value: serialized as the snake_case token a consumer reads in the report
|
|
1331
1337
|
* (`auth`, `rate_limit`, `model_not_found`, `quota`, `session_not_found`,
|
|
1332
|
-
* `tool_deferred`, `server_overloaded`), so the wire shape is unchanged — modeling it as an enum
|
|
1338
|
+
* `tool_deferred`, `server_overloaded`, `app_server_lost`), so the wire shape is unchanged — modeling it as an enum
|
|
1333
1339
|
* keeps a misspelled or invalid kind unrepresentable and gives every
|
|
1334
1340
|
* producer/consumer (classifier, `is_failure`, the fallback fall-through rule,
|
|
1335
1341
|
* the report, history) one definition to share instead of scattered string
|
|
1336
1342
|
* literals.
|
|
1337
1343
|
*/
|
|
1338
|
-
export type FailureKind = "auth" | "rate_limit" | "model_not_found" | "quota" | "session_not_found" | "tool_deferred" | "untrusted_directory" | "input_too_large" | "model_mismatch" | "server_overloaded";
|
|
1344
|
+
export type FailureKind = "auth" | "rate_limit" | "model_not_found" | "quota" | "session_not_found" | "tool_deferred" | "untrusted_directory" | "input_too_large" | "model_mismatch" | "server_overloaded" | "app_server_lost";
|
|
1339
1345
|
/**
|
|
1340
1346
|
* The outcome of attempting to run one harness.
|
|
1341
1347
|
*/
|
|
@@ -80,19 +80,19 @@ export type ControlVerb = "interrupt";
|
|
|
80
80
|
* new variant is a report `schema_version` bump like any other enum value, since
|
|
81
81
|
* a consumer matching exhaustively learns of it only from the version.
|
|
82
82
|
*/
|
|
83
|
-
export type FallThroughReason = "not-installed" | "spawn-error" | "auth" | "quota" | "session-not-found" | "untrusted-directory" | "input-too-large" | "model-mismatch" | "model-not-found" | "rate-limit" | "server-overloaded";
|
|
83
|
+
export type FallThroughReason = "not-installed" | "spawn-error" | "auth" | "quota" | "session-not-found" | "untrusted-directory" | "input-too-large" | "model-mismatch" | "model-not-found" | "rate-limit" | "server-overloaded" | "app-server-lost";
|
|
84
84
|
/**
|
|
85
85
|
* The normalized, closed set of failure reasons oneharness can classify from a
|
|
86
86
|
* harness's output. It is the single source for the `failure_kind` contract
|
|
87
87
|
* value: serialized as the snake_case token a consumer reads in the report
|
|
88
88
|
* (`auth`, `rate_limit`, `model_not_found`, `quota`, `session_not_found`,
|
|
89
|
-
* `tool_deferred`, `server_overloaded`), so the wire shape is unchanged — modeling it as an enum
|
|
89
|
+
* `tool_deferred`, `server_overloaded`, `app_server_lost`), so the wire shape is unchanged — modeling it as an enum
|
|
90
90
|
* keeps a misspelled or invalid kind unrepresentable and gives every
|
|
91
91
|
* producer/consumer (classifier, `is_failure`, the fallback fall-through rule,
|
|
92
92
|
* the report, history) one definition to share instead of scattered string
|
|
93
93
|
* literals.
|
|
94
94
|
*/
|
|
95
|
-
export type FailureKind = "auth" | "rate_limit" | "model_not_found" | "quota" | "session_not_found" | "tool_deferred" | "untrusted_directory" | "input_too_large" | "model_mismatch" | "server_overloaded";
|
|
95
|
+
export type FailureKind = "auth" | "rate_limit" | "model_not_found" | "quota" | "session_not_found" | "tool_deferred" | "untrusted_directory" | "input_too_large" | "model_mismatch" | "server_overloaded" | "app_server_lost";
|
|
96
96
|
/**
|
|
97
97
|
* How a harness emits its result, which decides how `text` is extracted.
|
|
98
98
|
*
|
|
@@ -372,6 +372,12 @@ export interface BatchReport {
|
|
|
372
372
|
* backed it, and every request served over the run's lifetime.
|
|
373
373
|
*/
|
|
374
374
|
export interface ControlReport {
|
|
375
|
+
/**
|
|
376
|
+
* The shared Codex app-server the run's turn ran on, when it ran on one
|
|
377
|
+
* (`app_server = "shared"`). Absent for every other mechanism and for a
|
|
378
|
+
* dispatch's own `codex app-server` child.
|
|
379
|
+
*/
|
|
380
|
+
app_server?: AppServerReport | null | undefined;
|
|
375
381
|
/**
|
|
376
382
|
* Every control request served, in order.
|
|
377
383
|
*/
|
|
@@ -386,6 +392,22 @@ export interface ControlReport {
|
|
|
386
392
|
socket: string;
|
|
387
393
|
[k: string]: unknown;
|
|
388
394
|
}
|
|
395
|
+
/**
|
|
396
|
+
* Which shared Codex app-server a pooled dispatch's turn ran on.
|
|
397
|
+
*/
|
|
398
|
+
export interface AppServerReport {
|
|
399
|
+
/**
|
|
400
|
+
* The pid the pool recorded for the server (its `server.json`): the
|
|
401
|
+
* process it launched, which is the launcher shim when Codex is one.
|
|
402
|
+
*/
|
|
403
|
+
pid: number;
|
|
404
|
+
/**
|
|
405
|
+
* The pool entry the server belongs to — equal for every dispatch that
|
|
406
|
+
* shared it.
|
|
407
|
+
*/
|
|
408
|
+
pool_key: string;
|
|
409
|
+
[k: string]: unknown;
|
|
410
|
+
}
|
|
389
411
|
/**
|
|
390
412
|
* Metadata for a fallback run (harnesses tried in priority order until one
|
|
391
413
|
* runs). Present on [`RunReport::fallback`] only in that mode. The per-harness
|