@oneharness/sdk 0.23.1 → 0.25.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/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
package/dist/generated/zod.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import type { ConfigOptions } from "./config-options.js";
|
|
3
|
-
import type { ConfigReport, Field, Field10, Field2, Field3, Field4, Field5, Field6, Field7, Field8, Field9, HarnessReport, HookEntry, VariantReport } from "./config-report.js";
|
|
4
|
-
import type { ActionEvent, BatchReport, ControlEvent, ControlReason, ControlReport, ControlVerb, ExecutionTelemetry, FailureKind, FallThrough, FallThroughReason, FallbackReport, RunReport, RunResult, RunWork, SessionReport, Status, TimingSource, ToolCallStatus, Usage, UtcInstant } from "./contracts.js";
|
|
3
|
+
import type { AppServerMode, ConfigReport, Field, Field10, Field11, Field2, Field3, Field4, Field5, Field6, Field7, Field8, Field9, HarnessReport, HookEntry, VariantReport } from "./config-report.js";
|
|
4
|
+
import type { ActionEvent, AppServerReport, BatchReport, ControlEvent, ControlReason, ControlReport, ControlVerb, ExecutionTelemetry, FailureKind, FallThrough, FallThroughReason, FallbackReport, RunReport, RunResult, RunWork, SessionReport, Status, TimingSource, ToolCallStatus, Usage, UtcInstant } from "./contracts.js";
|
|
5
5
|
import type { DetectOptions } from "./detect-options.js";
|
|
6
6
|
import type { DetectInfo, DetectReport } from "./detection.js";
|
|
7
7
|
import type { GateOptions } from "./gate-options.js";
|
|
@@ -43,6 +43,8 @@ export type SessionPhase = SessionReport["phase"];
|
|
|
43
43
|
export type UsedPercent = number;
|
|
44
44
|
export declare const AbsolutePathSchema: z.ZodType<AbsolutePath>;
|
|
45
45
|
export declare const ActionEventSchema: z.ZodType<ActionEvent>;
|
|
46
|
+
export declare const AppServerModeSchema: z.ZodType<AppServerMode>;
|
|
47
|
+
export declare const AppServerReportSchema: z.ZodType<AppServerReport>;
|
|
46
48
|
export declare const AuthModeSchema: z.ZodType<AuthMode>;
|
|
47
49
|
export declare const BatchReportSchema: z.ZodType<BatchReport>;
|
|
48
50
|
export declare const BatchStrategySchema: z.ZodType<BatchStrategy>;
|
|
@@ -63,6 +65,7 @@ export declare const FallThroughReasonSchema: z.ZodType<FallThroughReason>;
|
|
|
63
65
|
export declare const FallbackReportSchema: z.ZodType<FallbackReport>;
|
|
64
66
|
export declare const FieldSchema: z.ZodType<Field>;
|
|
65
67
|
export declare const Field10Schema: z.ZodType<Field10>;
|
|
68
|
+
export declare const Field11Schema: z.ZodType<Field11>;
|
|
66
69
|
export declare const Field2Schema: z.ZodType<Field2>;
|
|
67
70
|
export declare const Field3Schema: z.ZodType<Field3>;
|
|
68
71
|
export declare const Field4Schema: z.ZodType<Field4>;
|
package/dist/generated/zod.js
CHANGED
|
@@ -19,6 +19,19 @@ export const ActionEventSchema = z.looseObject({
|
|
|
19
19
|
timing_source: z.union([z.lazy(() => TimingSourceSchema), z.null()]).optional(),
|
|
20
20
|
tool_call_id: z.union([z.string(), z.null()]).refine((value) => value !== undefined, { message: "Required" }),
|
|
21
21
|
});
|
|
22
|
+
export const AppServerModeSchema = z.union([z.literal("shared"), z.literal("per-dispatch")]);
|
|
23
|
+
export const AppServerReportSchema = z.looseObject({
|
|
24
|
+
pid: z
|
|
25
|
+
.int()
|
|
26
|
+
.gte(1)
|
|
27
|
+
.refine((value) => value !== undefined, { message: "Required" }),
|
|
28
|
+
pool_key: z
|
|
29
|
+
.string()
|
|
30
|
+
.min(1)
|
|
31
|
+
.regex(new RegExp("^[A-Za-z0-9_-]+$", "u"))
|
|
32
|
+
.refine((value) => [...value].length <= 128, { message: "Too long: expected at most 128 characters" })
|
|
33
|
+
.refine((value) => value !== undefined, { message: "Required" }),
|
|
34
|
+
});
|
|
22
35
|
export const AuthModeSchema = z.union([
|
|
23
36
|
z.literal("subscription"),
|
|
24
37
|
z.literal("api_key"),
|
|
@@ -97,6 +110,7 @@ export const ControlReasonSchema = z.union([
|
|
|
97
110
|
z.literal("not_running"),
|
|
98
111
|
]);
|
|
99
112
|
export const ControlReportSchema = z.looseObject({
|
|
113
|
+
app_server: z.union([z.lazy(() => AppServerReportSchema), z.null()]).optional(),
|
|
100
114
|
interrupts: z.array(z.lazy(() => ControlEventSchema)).refine((value) => value !== undefined, { message: "Required" }),
|
|
101
115
|
mechanism: z.lazy(() => ControlShapeSchema).refine((value) => value !== undefined, { message: "Required" }),
|
|
102
116
|
socket: z.lazy(() => AbsolutePathSchema).refine((value) => value !== undefined, { message: "Required" }),
|
|
@@ -177,6 +191,7 @@ export const FailureKindSchema = z.union([
|
|
|
177
191
|
z.literal("input_too_large"),
|
|
178
192
|
z.literal("model_mismatch"),
|
|
179
193
|
z.literal("server_overloaded"),
|
|
194
|
+
z.literal("app_server_lost"),
|
|
180
195
|
]);
|
|
181
196
|
export const FallThroughSchema = z.looseObject({
|
|
182
197
|
detail: z.union([z.string(), z.null()]).refine((value) => value !== undefined, { message: "Required" }),
|
|
@@ -195,6 +210,7 @@ export const FallThroughReasonSchema = z.union([
|
|
|
195
210
|
z.literal("model-not-found"),
|
|
196
211
|
z.literal("rate-limit"),
|
|
197
212
|
z.literal("server-overloaded"),
|
|
213
|
+
z.literal("app-server-lost"),
|
|
198
214
|
]);
|
|
199
215
|
export const FallbackReportSchema = z.looseObject({
|
|
200
216
|
fell_through: z
|
|
@@ -213,6 +229,12 @@ export const Field10Schema = z.looseObject({
|
|
|
213
229
|
.union([z.array(z.lazy(() => HookEntrySchema)), z.null()])
|
|
214
230
|
.refine((value) => value !== undefined, { message: "Required" }),
|
|
215
231
|
});
|
|
232
|
+
export const Field11Schema = z.looseObject({
|
|
233
|
+
source: z.union([z.string(), z.null()]).refine((value) => value !== undefined, { message: "Required" }),
|
|
234
|
+
value: z
|
|
235
|
+
.union([z.lazy(() => AppServerModeSchema), z.null()])
|
|
236
|
+
.refine((value) => value !== undefined, { message: "Required" }),
|
|
237
|
+
});
|
|
216
238
|
export const Field2Schema = z.looseObject({
|
|
217
239
|
source: z.union([z.string(), z.null()]).refine((value) => value !== undefined, { message: "Required" }),
|
|
218
240
|
value: z.union([z.array(z.string()), z.null()]).refine((value) => value !== undefined, { message: "Required" }),
|
|
@@ -294,6 +316,9 @@ export const HarnessInfoSchema = z.looseObject({
|
|
|
294
316
|
});
|
|
295
317
|
export const HarnessReportSchema = z.looseObject({
|
|
296
318
|
allowed_tools: z.lazy(() => Field2Schema).refine((value) => value !== undefined, { message: "Required" }),
|
|
319
|
+
analytics: z.union([z.lazy(() => FieldSchema), z.null()]).optional(),
|
|
320
|
+
app_server: z.union([z.lazy(() => Field11Schema), z.null()]).optional(),
|
|
321
|
+
apps: z.union([z.lazy(() => FieldSchema), z.null()]).optional(),
|
|
297
322
|
args: z.lazy(() => Field2Schema).refine((value) => value !== undefined, { message: "Required" }),
|
|
298
323
|
bin: z.lazy(() => Field3Schema).refine((value) => value !== undefined, { message: "Required" }),
|
|
299
324
|
denied_tools: z.lazy(() => Field2Schema).refine((value) => value !== undefined, { message: "Required" }),
|
|
@@ -302,9 +327,11 @@ export const HarnessReportSchema = z.looseObject({
|
|
|
302
327
|
.refine((value) => value !== undefined, { message: "Required" }),
|
|
303
328
|
hooks: z.looseObject({}).refine((value) => value !== undefined, { message: "Required" }),
|
|
304
329
|
model: z.lazy(() => Field3Schema).refine((value) => value !== undefined, { message: "Required" }),
|
|
330
|
+
model_catalog_refresh_seconds: z.union([z.lazy(() => Field5Schema), z.null()]).optional(),
|
|
305
331
|
plugins: z.union([z.lazy(() => FieldSchema), z.null()]).optional(),
|
|
306
332
|
reasoning: z.lazy(() => Field3Schema).refine((value) => value !== undefined, { message: "Required" }),
|
|
307
333
|
settings: z.looseObject({}).refine((value) => value !== undefined, { message: "Required" }),
|
|
334
|
+
shared_model_catalog: z.union([z.lazy(() => FieldSchema), z.null()]).optional(),
|
|
308
335
|
variant: z
|
|
309
336
|
.record(z.string(), z.lazy(() => VariantReportSchema))
|
|
310
337
|
.refine((value) => value !== undefined, { message: "Required" }),
|
|
@@ -359,6 +386,7 @@ export const HistoryEventLineSchema = z.union([
|
|
|
359
386
|
z.literal("1.7"),
|
|
360
387
|
z.literal("1.8"),
|
|
361
388
|
z.literal("1.9"),
|
|
389
|
+
z.literal("1.10"),
|
|
362
390
|
])
|
|
363
391
|
.refine((value) => value !== undefined, { message: "Required" }),
|
|
364
392
|
session_name: z
|
|
@@ -440,6 +468,7 @@ export const HistoryLineSchema = z.union([
|
|
|
440
468
|
z.literal("1.7"),
|
|
441
469
|
z.literal("1.8"),
|
|
442
470
|
z.literal("1.9"),
|
|
471
|
+
z.literal("1.10"),
|
|
443
472
|
])
|
|
444
473
|
.refine((value) => value !== undefined, { message: "Required" }),
|
|
445
474
|
session_name: z
|
|
@@ -544,6 +573,7 @@ export const HistoryLineSchema = z.union([
|
|
|
544
573
|
z.literal("1.7"),
|
|
545
574
|
z.literal("1.8"),
|
|
546
575
|
z.literal("1.9"),
|
|
576
|
+
z.literal("1.10"),
|
|
547
577
|
])
|
|
548
578
|
.refine((value) => value !== undefined, { message: "Required" }),
|
|
549
579
|
session: z.string().refine((value) => value !== undefined, { message: "Required" }),
|
|
@@ -629,6 +659,7 @@ export const HistoryLineSchema = z.union([
|
|
|
629
659
|
z.literal("1.7"),
|
|
630
660
|
z.literal("1.8"),
|
|
631
661
|
z.literal("1.9"),
|
|
662
|
+
z.literal("1.10"),
|
|
632
663
|
])
|
|
633
664
|
.refine((value) => value !== undefined, { message: "Required" }),
|
|
634
665
|
session: z.string().refine((value) => value !== undefined, { message: "Required" }),
|
|
@@ -716,6 +747,7 @@ export const HistoryLineSchema = z.union([
|
|
|
716
747
|
z.literal("1.7"),
|
|
717
748
|
z.literal("1.8"),
|
|
718
749
|
z.literal("1.9"),
|
|
750
|
+
z.literal("1.10"),
|
|
719
751
|
])
|
|
720
752
|
.refine((value) => value !== undefined, { message: "Required" }),
|
|
721
753
|
session: z.string().refine((value) => value !== undefined, { message: "Required" }),
|
|
@@ -787,6 +819,7 @@ export const HistoryLineSchema = z.union([
|
|
|
787
819
|
z.literal("1.7"),
|
|
788
820
|
z.literal("1.8"),
|
|
789
821
|
z.literal("1.9"),
|
|
822
|
+
z.literal("1.10"),
|
|
790
823
|
])
|
|
791
824
|
.refine((value) => value !== undefined, { message: "Required" }),
|
|
792
825
|
session: z.string().refine((value) => value !== undefined, { message: "Required" }),
|
|
@@ -864,6 +897,7 @@ export const HistoryLineSchema = z.union([
|
|
|
864
897
|
z.literal("1.7"),
|
|
865
898
|
z.literal("1.8"),
|
|
866
899
|
z.literal("1.9"),
|
|
900
|
+
z.literal("1.10"),
|
|
867
901
|
])
|
|
868
902
|
.refine((value) => value !== undefined, { message: "Required" }),
|
|
869
903
|
session: z.string().refine((value) => value !== undefined, { message: "Required" }),
|
|
@@ -946,6 +980,7 @@ export const HistoryLineSchema = z.union([
|
|
|
946
980
|
z.literal("1.7"),
|
|
947
981
|
z.literal("1.8"),
|
|
948
982
|
z.literal("1.9"),
|
|
983
|
+
z.literal("1.10"),
|
|
949
984
|
])
|
|
950
985
|
.refine((value) => value !== undefined, { message: "Required" }),
|
|
951
986
|
session: z.string().refine((value) => value !== undefined, { message: "Required" }),
|
|
@@ -983,6 +1018,7 @@ export const HistoryLineSchema = z.union([
|
|
|
983
1018
|
z.literal("1.7"),
|
|
984
1019
|
z.literal("1.8"),
|
|
985
1020
|
z.literal("1.9"),
|
|
1021
|
+
z.literal("1.10"),
|
|
986
1022
|
])
|
|
987
1023
|
.optional(),
|
|
988
1024
|
}), z.union([
|
|
@@ -1008,7 +1044,9 @@ export const HistoryLineSchema = z.union([
|
|
|
1008
1044
|
work: z.null().optional(),
|
|
1009
1045
|
}),
|
|
1010
1046
|
z.looseObject({
|
|
1011
|
-
schema_version: z
|
|
1047
|
+
schema_version: z
|
|
1048
|
+
.union([z.literal("1.7"), z.literal("1.8"), z.literal("1.9"), z.literal("1.10")])
|
|
1049
|
+
.optional(),
|
|
1012
1050
|
status: z.union([z.literal("nonzero"), z.literal("timeout"), z.literal("cancelled")]).optional(),
|
|
1013
1051
|
work: z
|
|
1014
1052
|
.union([z.literal("done"), z.literal("none")])
|
|
@@ -1020,7 +1058,7 @@ export const HistoryLineSchema = z.union([
|
|
|
1020
1058
|
}),
|
|
1021
1059
|
z.looseObject({
|
|
1022
1060
|
observed_model: z.string().refine((value) => value !== undefined, { message: "Required" }),
|
|
1023
|
-
schema_version: z.union([z.literal("1.8"), z.literal("1.9")]).optional(),
|
|
1061
|
+
schema_version: z.union([z.literal("1.8"), z.literal("1.9"), z.literal("1.10")]).optional(),
|
|
1024
1062
|
}),
|
|
1025
1063
|
])), z.union([
|
|
1026
1064
|
z.looseObject({
|
|
@@ -1044,10 +1082,11 @@ export const HistoryLineSchema = z.union([
|
|
|
1044
1082
|
z.literal("1.7"),
|
|
1045
1083
|
z.literal("1.8"),
|
|
1046
1084
|
z.literal("1.9"),
|
|
1085
|
+
z.literal("1.10"),
|
|
1047
1086
|
])
|
|
1048
1087
|
.optional(),
|
|
1049
1088
|
}),
|
|
1050
|
-
])), z.intersection(z.intersection(z.intersection(z.union([
|
|
1089
|
+
])), z.intersection(z.intersection(z.intersection(z.intersection(z.union([
|
|
1051
1090
|
z.looseObject({
|
|
1052
1091
|
failure_kind: z
|
|
1053
1092
|
.union([
|
|
@@ -1060,13 +1099,21 @@ export const HistoryLineSchema = z.union([
|
|
|
1060
1099
|
z.literal("input_too_large"),
|
|
1061
1100
|
z.literal("model_mismatch"),
|
|
1062
1101
|
z.literal("server_overloaded"),
|
|
1102
|
+
z.literal("app_server_lost"),
|
|
1063
1103
|
z.literal(null),
|
|
1064
1104
|
])
|
|
1065
1105
|
.optional(),
|
|
1066
1106
|
}),
|
|
1067
1107
|
z.looseObject({
|
|
1068
1108
|
schema_version: z
|
|
1069
|
-
.union([
|
|
1109
|
+
.union([
|
|
1110
|
+
z.literal("1.5"),
|
|
1111
|
+
z.literal("1.6"),
|
|
1112
|
+
z.literal("1.7"),
|
|
1113
|
+
z.literal("1.8"),
|
|
1114
|
+
z.literal("1.9"),
|
|
1115
|
+
z.literal("1.10"),
|
|
1116
|
+
])
|
|
1070
1117
|
.optional(),
|
|
1071
1118
|
}),
|
|
1072
1119
|
]), z.union([
|
|
@@ -1081,13 +1128,14 @@ export const HistoryLineSchema = z.union([
|
|
|
1081
1128
|
z.literal("tool_deferred"),
|
|
1082
1129
|
z.literal("model_mismatch"),
|
|
1083
1130
|
z.literal("server_overloaded"),
|
|
1131
|
+
z.literal("app_server_lost"),
|
|
1084
1132
|
z.literal(null),
|
|
1085
1133
|
])
|
|
1086
1134
|
.optional(),
|
|
1087
1135
|
}),
|
|
1088
1136
|
z.looseObject({
|
|
1089
1137
|
schema_version: z
|
|
1090
|
-
.union([z.literal("1.6"), z.literal("1.7"), z.literal("1.8"), z.literal("1.9")])
|
|
1138
|
+
.union([z.literal("1.6"), z.literal("1.7"), z.literal("1.8"), z.literal("1.9"), z.literal("1.10")])
|
|
1091
1139
|
.optional(),
|
|
1092
1140
|
}),
|
|
1093
1141
|
])), z.union([
|
|
@@ -1103,12 +1151,34 @@ export const HistoryLineSchema = z.union([
|
|
|
1103
1151
|
z.literal("untrusted_directory"),
|
|
1104
1152
|
z.literal("input_too_large"),
|
|
1105
1153
|
z.literal("server_overloaded"),
|
|
1154
|
+
z.literal("app_server_lost"),
|
|
1155
|
+
z.literal(null),
|
|
1156
|
+
])
|
|
1157
|
+
.optional(),
|
|
1158
|
+
}),
|
|
1159
|
+
z.looseObject({
|
|
1160
|
+
schema_version: z.union([z.literal("1.8"), z.literal("1.9"), z.literal("1.10")]).optional(),
|
|
1161
|
+
}),
|
|
1162
|
+
])), z.union([
|
|
1163
|
+
z.looseObject({
|
|
1164
|
+
failure_kind: z
|
|
1165
|
+
.union([
|
|
1166
|
+
z.literal("auth"),
|
|
1167
|
+
z.literal("rate_limit"),
|
|
1168
|
+
z.literal("model_not_found"),
|
|
1169
|
+
z.literal("quota"),
|
|
1170
|
+
z.literal("session_not_found"),
|
|
1171
|
+
z.literal("tool_deferred"),
|
|
1172
|
+
z.literal("untrusted_directory"),
|
|
1173
|
+
z.literal("input_too_large"),
|
|
1174
|
+
z.literal("model_mismatch"),
|
|
1175
|
+
z.literal("app_server_lost"),
|
|
1106
1176
|
z.literal(null),
|
|
1107
1177
|
])
|
|
1108
1178
|
.optional(),
|
|
1109
1179
|
}),
|
|
1110
1180
|
z.looseObject({
|
|
1111
|
-
schema_version: z.union([z.literal("1.
|
|
1181
|
+
schema_version: z.union([z.literal("1.9"), z.literal("1.10")]).optional(),
|
|
1112
1182
|
}),
|
|
1113
1183
|
])), z.union([
|
|
1114
1184
|
z.looseObject({
|
|
@@ -1123,12 +1193,13 @@ export const HistoryLineSchema = z.union([
|
|
|
1123
1193
|
z.literal("untrusted_directory"),
|
|
1124
1194
|
z.literal("input_too_large"),
|
|
1125
1195
|
z.literal("model_mismatch"),
|
|
1196
|
+
z.literal("server_overloaded"),
|
|
1126
1197
|
z.literal(null),
|
|
1127
1198
|
])
|
|
1128
1199
|
.optional(),
|
|
1129
1200
|
}),
|
|
1130
1201
|
z.looseObject({
|
|
1131
|
-
schema_version: z.literal("1.
|
|
1202
|
+
schema_version: z.literal("1.10").optional(),
|
|
1132
1203
|
}),
|
|
1133
1204
|
]))),
|
|
1134
1205
|
]);
|
|
@@ -1335,6 +1406,7 @@ export const HistoryRecordSchema = z.intersection(z.intersection(z.intersection(
|
|
|
1335
1406
|
z.literal("1.7"),
|
|
1336
1407
|
z.literal("1.8"),
|
|
1337
1408
|
z.literal("1.9"),
|
|
1409
|
+
z.literal("1.10"),
|
|
1338
1410
|
])
|
|
1339
1411
|
.refine((value) => value !== undefined, { message: "Required" }),
|
|
1340
1412
|
session: z.string().refine((value) => value !== undefined, { message: "Required" }),
|
|
@@ -1579,6 +1651,7 @@ export const HistoryRecordSchema = z.intersection(z.intersection(z.intersection(
|
|
|
1579
1651
|
z.literal("1.7"),
|
|
1580
1652
|
z.literal("1.8"),
|
|
1581
1653
|
z.literal("1.9"),
|
|
1654
|
+
z.literal("1.10"),
|
|
1582
1655
|
])
|
|
1583
1656
|
.refine((value) => value !== undefined, { message: "Required" }),
|
|
1584
1657
|
session: z.string().refine((value) => value !== undefined, { message: "Required" }),
|
|
@@ -1656,6 +1729,7 @@ export const HistoryRecordSchema = z.intersection(z.intersection(z.intersection(
|
|
|
1656
1729
|
z.literal("1.7"),
|
|
1657
1730
|
z.literal("1.8"),
|
|
1658
1731
|
z.literal("1.9"),
|
|
1732
|
+
z.literal("1.10"),
|
|
1659
1733
|
])
|
|
1660
1734
|
.refine((value) => value !== undefined, { message: "Required" }),
|
|
1661
1735
|
session: z.string().refine((value) => value !== undefined, { message: "Required" }),
|
|
@@ -1727,6 +1801,7 @@ export const HistoryRecordSchema = z.intersection(z.intersection(z.intersection(
|
|
|
1727
1801
|
z.literal("1.7"),
|
|
1728
1802
|
z.literal("1.8"),
|
|
1729
1803
|
z.literal("1.9"),
|
|
1804
|
+
z.literal("1.10"),
|
|
1730
1805
|
])
|
|
1731
1806
|
.refine((value) => value !== undefined, { message: "Required" }),
|
|
1732
1807
|
session: z.string().refine((value) => value !== undefined, { message: "Required" }),
|
|
@@ -1806,6 +1881,7 @@ export const HistoryRecordSchema = z.intersection(z.intersection(z.intersection(
|
|
|
1806
1881
|
z.literal("1.7"),
|
|
1807
1882
|
z.literal("1.8"),
|
|
1808
1883
|
z.literal("1.9"),
|
|
1884
|
+
z.literal("1.10"),
|
|
1809
1885
|
])
|
|
1810
1886
|
.refine((value) => value !== undefined, { message: "Required" }),
|
|
1811
1887
|
session: z.string().refine((value) => value !== undefined, { message: "Required" }),
|
|
@@ -2091,6 +2167,7 @@ export const HistoryRecordSchema = z.intersection(z.intersection(z.intersection(
|
|
|
2091
2167
|
z.literal("1.7"),
|
|
2092
2168
|
z.literal("1.8"),
|
|
2093
2169
|
z.literal("1.9"),
|
|
2170
|
+
z.literal("1.10"),
|
|
2094
2171
|
])
|
|
2095
2172
|
.optional(),
|
|
2096
2173
|
}), z.union([
|
|
@@ -2116,7 +2193,9 @@ export const HistoryRecordSchema = z.intersection(z.intersection(z.intersection(
|
|
|
2116
2193
|
work: z.null().optional(),
|
|
2117
2194
|
}),
|
|
2118
2195
|
z.looseObject({
|
|
2119
|
-
schema_version: z
|
|
2196
|
+
schema_version: z
|
|
2197
|
+
.union([z.literal("1.7"), z.literal("1.8"), z.literal("1.9"), z.literal("1.10")])
|
|
2198
|
+
.optional(),
|
|
2120
2199
|
status: z.union([z.literal("nonzero"), z.literal("timeout"), z.literal("cancelled")]).optional(),
|
|
2121
2200
|
work: z
|
|
2122
2201
|
.union([z.literal("done"), z.literal("none")])
|
|
@@ -2128,7 +2207,7 @@ export const HistoryRecordSchema = z.intersection(z.intersection(z.intersection(
|
|
|
2128
2207
|
}),
|
|
2129
2208
|
z.looseObject({
|
|
2130
2209
|
observed_model: z.string().refine((value) => value !== undefined, { message: "Required" }),
|
|
2131
|
-
schema_version: z.union([z.literal("1.8"), z.literal("1.9")]).optional(),
|
|
2210
|
+
schema_version: z.union([z.literal("1.8"), z.literal("1.9"), z.literal("1.10")]).optional(),
|
|
2132
2211
|
}),
|
|
2133
2212
|
])), z.union([
|
|
2134
2213
|
z.looseObject({
|
|
@@ -2152,10 +2231,11 @@ export const HistoryRecordSchema = z.intersection(z.intersection(z.intersection(
|
|
|
2152
2231
|
z.literal("1.7"),
|
|
2153
2232
|
z.literal("1.8"),
|
|
2154
2233
|
z.literal("1.9"),
|
|
2234
|
+
z.literal("1.10"),
|
|
2155
2235
|
])
|
|
2156
2236
|
.optional(),
|
|
2157
2237
|
}),
|
|
2158
|
-
])), z.intersection(z.intersection(z.intersection(z.union([
|
|
2238
|
+
])), z.intersection(z.intersection(z.intersection(z.intersection(z.union([
|
|
2159
2239
|
z.looseObject({
|
|
2160
2240
|
failure_kind: z
|
|
2161
2241
|
.union([
|
|
@@ -2168,13 +2248,21 @@ export const HistoryRecordSchema = z.intersection(z.intersection(z.intersection(
|
|
|
2168
2248
|
z.literal("input_too_large"),
|
|
2169
2249
|
z.literal("model_mismatch"),
|
|
2170
2250
|
z.literal("server_overloaded"),
|
|
2251
|
+
z.literal("app_server_lost"),
|
|
2171
2252
|
z.literal(null),
|
|
2172
2253
|
])
|
|
2173
2254
|
.optional(),
|
|
2174
2255
|
}),
|
|
2175
2256
|
z.looseObject({
|
|
2176
2257
|
schema_version: z
|
|
2177
|
-
.union([
|
|
2258
|
+
.union([
|
|
2259
|
+
z.literal("1.5"),
|
|
2260
|
+
z.literal("1.6"),
|
|
2261
|
+
z.literal("1.7"),
|
|
2262
|
+
z.literal("1.8"),
|
|
2263
|
+
z.literal("1.9"),
|
|
2264
|
+
z.literal("1.10"),
|
|
2265
|
+
])
|
|
2178
2266
|
.optional(),
|
|
2179
2267
|
}),
|
|
2180
2268
|
]), z.union([
|
|
@@ -2189,13 +2277,14 @@ export const HistoryRecordSchema = z.intersection(z.intersection(z.intersection(
|
|
|
2189
2277
|
z.literal("tool_deferred"),
|
|
2190
2278
|
z.literal("model_mismatch"),
|
|
2191
2279
|
z.literal("server_overloaded"),
|
|
2280
|
+
z.literal("app_server_lost"),
|
|
2192
2281
|
z.literal(null),
|
|
2193
2282
|
])
|
|
2194
2283
|
.optional(),
|
|
2195
2284
|
}),
|
|
2196
2285
|
z.looseObject({
|
|
2197
2286
|
schema_version: z
|
|
2198
|
-
.union([z.literal("1.6"), z.literal("1.7"), z.literal("1.8"), z.literal("1.9")])
|
|
2287
|
+
.union([z.literal("1.6"), z.literal("1.7"), z.literal("1.8"), z.literal("1.9"), z.literal("1.10")])
|
|
2199
2288
|
.optional(),
|
|
2200
2289
|
}),
|
|
2201
2290
|
])), z.union([
|
|
@@ -2211,12 +2300,34 @@ export const HistoryRecordSchema = z.intersection(z.intersection(z.intersection(
|
|
|
2211
2300
|
z.literal("untrusted_directory"),
|
|
2212
2301
|
z.literal("input_too_large"),
|
|
2213
2302
|
z.literal("server_overloaded"),
|
|
2303
|
+
z.literal("app_server_lost"),
|
|
2304
|
+
z.literal(null),
|
|
2305
|
+
])
|
|
2306
|
+
.optional(),
|
|
2307
|
+
}),
|
|
2308
|
+
z.looseObject({
|
|
2309
|
+
schema_version: z.union([z.literal("1.8"), z.literal("1.9"), z.literal("1.10")]).optional(),
|
|
2310
|
+
}),
|
|
2311
|
+
])), z.union([
|
|
2312
|
+
z.looseObject({
|
|
2313
|
+
failure_kind: z
|
|
2314
|
+
.union([
|
|
2315
|
+
z.literal("auth"),
|
|
2316
|
+
z.literal("rate_limit"),
|
|
2317
|
+
z.literal("model_not_found"),
|
|
2318
|
+
z.literal("quota"),
|
|
2319
|
+
z.literal("session_not_found"),
|
|
2320
|
+
z.literal("tool_deferred"),
|
|
2321
|
+
z.literal("untrusted_directory"),
|
|
2322
|
+
z.literal("input_too_large"),
|
|
2323
|
+
z.literal("model_mismatch"),
|
|
2324
|
+
z.literal("app_server_lost"),
|
|
2214
2325
|
z.literal(null),
|
|
2215
2326
|
])
|
|
2216
2327
|
.optional(),
|
|
2217
2328
|
}),
|
|
2218
2329
|
z.looseObject({
|
|
2219
|
-
schema_version: z.union([z.literal("1.
|
|
2330
|
+
schema_version: z.union([z.literal("1.9"), z.literal("1.10")]).optional(),
|
|
2220
2331
|
}),
|
|
2221
2332
|
])), z.union([
|
|
2222
2333
|
z.looseObject({
|
|
@@ -2231,12 +2342,13 @@ export const HistoryRecordSchema = z.intersection(z.intersection(z.intersection(
|
|
|
2231
2342
|
z.literal("untrusted_directory"),
|
|
2232
2343
|
z.literal("input_too_large"),
|
|
2233
2344
|
z.literal("model_mismatch"),
|
|
2345
|
+
z.literal("server_overloaded"),
|
|
2234
2346
|
z.literal(null),
|
|
2235
2347
|
])
|
|
2236
2348
|
.optional(),
|
|
2237
2349
|
}),
|
|
2238
2350
|
z.looseObject({
|
|
2239
|
-
schema_version: z.literal("1.
|
|
2351
|
+
schema_version: z.literal("1.10").optional(),
|
|
2240
2352
|
}),
|
|
2241
2353
|
])));
|
|
2242
2354
|
export const HistoryReindexOptionsSchema = z.strictObject({
|
|
@@ -2833,6 +2945,9 @@ export const VariantInfoSchema = z.looseObject({
|
|
|
2833
2945
|
});
|
|
2834
2946
|
export const VariantReportSchema = z.looseObject({
|
|
2835
2947
|
allowed_tools: z.lazy(() => Field2Schema).refine((value) => value !== undefined, { message: "Required" }),
|
|
2948
|
+
analytics: z.union([z.lazy(() => FieldSchema), z.null()]).optional(),
|
|
2949
|
+
app_server: z.union([z.lazy(() => Field11Schema), z.null()]).optional(),
|
|
2950
|
+
apps: z.union([z.lazy(() => FieldSchema), z.null()]).optional(),
|
|
2836
2951
|
args: z.lazy(() => Field2Schema).refine((value) => value !== undefined, { message: "Required" }),
|
|
2837
2952
|
bin: z.lazy(() => Field3Schema).refine((value) => value !== undefined, { message: "Required" }),
|
|
2838
2953
|
denied_tools: z.lazy(() => Field2Schema).refine((value) => value !== undefined, { message: "Required" }),
|
|
@@ -2845,9 +2960,11 @@ export const VariantReportSchema = z.looseObject({
|
|
|
2845
2960
|
.refine((value) => value !== undefined, { message: "Required" }),
|
|
2846
2961
|
hooks: z.looseObject({}).refine((value) => value !== undefined, { message: "Required" }),
|
|
2847
2962
|
model: z.lazy(() => Field3Schema).refine((value) => value !== undefined, { message: "Required" }),
|
|
2963
|
+
model_catalog_refresh_seconds: z.union([z.lazy(() => Field5Schema), z.null()]).optional(),
|
|
2848
2964
|
plugins: z.union([z.lazy(() => FieldSchema), z.null()]).optional(),
|
|
2849
2965
|
reasoning: z.lazy(() => Field3Schema).refine((value) => value !== undefined, { message: "Required" }),
|
|
2850
2966
|
settings: z.looseObject({}).refine((value) => value !== undefined, { message: "Required" }),
|
|
2967
|
+
shared_model_catalog: z.union([z.lazy(() => FieldSchema), z.null()]).optional(),
|
|
2851
2968
|
unset_env: z.lazy(() => Field2Schema).refine((value) => value !== undefined, { message: "Required" }),
|
|
2852
2969
|
});
|
|
2853
2970
|
export const WindowUsageSchema = z.union([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oneharness/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.1",
|
|
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.
|
|
22
|
+
"oneharness-cli": "0.25.1",
|
|
23
23
|
"zod": "^4.4.3"
|
|
24
24
|
}
|
|
25
25
|
}
|