@zhixuan92/multi-model-agent-core 3.12.1 → 3.12.3
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/README.md +1 -1
- package/dist/cost/compute.d.ts +33 -0
- package/dist/cost/compute.d.ts.map +1 -0
- package/dist/cost/compute.js +67 -0
- package/dist/cost/compute.js.map +1 -0
- package/dist/cost/rollup.d.ts +18 -0
- package/dist/cost/rollup.d.ts.map +1 -0
- package/dist/cost/rollup.js +43 -0
- package/dist/cost/rollup.js.map +1 -0
- package/dist/heartbeat.d.ts +7 -0
- package/dist/heartbeat.d.ts.map +1 -1
- package/dist/heartbeat.js +18 -5
- package/dist/heartbeat.js.map +1 -1
- package/dist/model-profiles.json +6 -6
- package/dist/observability/events.d.ts +3 -3
- package/dist/routing/model-profiles.d.ts +4 -3
- package/dist/routing/model-profiles.d.ts.map +1 -1
- package/dist/routing/model-profiles.js +12 -6
- package/dist/routing/model-profiles.js.map +1 -1
- package/dist/run-tasks/reviewed-lifecycle.d.ts.map +1 -1
- package/dist/run-tasks/reviewed-lifecycle.js +71 -17
- package/dist/run-tasks/reviewed-lifecycle.js.map +1 -1
- package/dist/runners/base/result-builders.d.ts +2 -0
- package/dist/runners/base/result-builders.d.ts.map +1 -1
- package/dist/runners/base/result-builders.js +2 -0
- package/dist/runners/base/result-builders.js.map +1 -1
- package/dist/runners/base/usage-accumulator.d.ts +2 -10
- package/dist/runners/base/usage-accumulator.d.ts.map +1 -1
- package/dist/runners/base/usage-accumulator.js +14 -25
- package/dist/runners/base/usage-accumulator.js.map +1 -1
- package/dist/runners/claude-runner.d.ts.map +1 -1
- package/dist/runners/claude-runner.js +123 -26
- package/dist/runners/claude-runner.js.map +1 -1
- package/dist/runners/codex-runner.d.ts.map +1 -1
- package/dist/runners/codex-runner.js +114 -28
- package/dist/runners/codex-runner.js.map +1 -1
- package/dist/runners/openai-runner.d.ts.map +1 -1
- package/dist/runners/openai-runner.js +149 -56
- package/dist/runners/openai-runner.js.map +1 -1
- package/dist/runners/types.d.ts +7 -0
- package/dist/runners/types.d.ts.map +1 -1
- package/dist/telemetry/event-builder.d.ts.map +1 -1
- package/dist/telemetry/event-builder.js +48 -15
- package/dist/telemetry/event-builder.js.map +1 -1
- package/dist/telemetry/field-coverage.d.ts.map +1 -1
- package/dist/telemetry/field-coverage.js +15 -7
- package/dist/telemetry/field-coverage.js.map +1 -1
- package/dist/telemetry/types.d.ts +358 -164
- package/dist/telemetry/types.d.ts.map +1 -1
- package/dist/telemetry/types.js +63 -37
- package/dist/telemetry/types.js.map +1 -1
- package/dist/types.d.ts +0 -24
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +0 -73
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const SCHEMA_VERSION =
|
|
2
|
+
export declare const SCHEMA_VERSION = 4;
|
|
3
3
|
export declare const STRICT_ID_REGEX: RegExp;
|
|
4
4
|
export declare const Os: z.ZodEnum<{
|
|
5
5
|
darwin: "darwin";
|
|
@@ -8,7 +8,7 @@ export declare const Os: z.ZodEnum<{
|
|
|
8
8
|
other: "other";
|
|
9
9
|
}>;
|
|
10
10
|
export declare const BatchWrapperSchema: z.ZodObject<{
|
|
11
|
-
schemaVersion: z.ZodLiteral<
|
|
11
|
+
schemaVersion: z.ZodLiteral<4>;
|
|
12
12
|
installId: z.ZodString;
|
|
13
13
|
mmagentVersion: z.ZodString;
|
|
14
14
|
os: z.ZodEnum<{
|
|
@@ -38,8 +38,8 @@ export declare const ConcernCategory: z.ZodEnum<{
|
|
|
38
38
|
export declare const ErrorCode: z.ZodEnum<{
|
|
39
39
|
api_error: "api_error";
|
|
40
40
|
network_error: "network_error";
|
|
41
|
-
other: "other";
|
|
42
41
|
dirty_worktree: "dirty_worktree";
|
|
42
|
+
other: "other";
|
|
43
43
|
reviewer_separation_unsatisfiable: "reviewer_separation_unsatisfiable";
|
|
44
44
|
verify_command_error: "verify_command_error";
|
|
45
45
|
commit_metadata_invalid: "commit_metadata_invalid";
|
|
@@ -62,7 +62,56 @@ export declare const FindingsBySeveritySchema: z.ZodObject<{
|
|
|
62
62
|
medium: z.ZodNumber;
|
|
63
63
|
low: z.ZodNumber;
|
|
64
64
|
}, z.core.$strict>;
|
|
65
|
+
export declare const TokenCountsSchema: z.ZodObject<{
|
|
66
|
+
inputTokens: z.ZodNumber;
|
|
67
|
+
outputTokens: z.ZodNumber;
|
|
68
|
+
cachedReadTokens: z.ZodNumber;
|
|
69
|
+
cachedCreationTokens: z.ZodNumber;
|
|
70
|
+
reasoningTokens: z.ZodNumber;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
export declare const TierUsageSchema: z.ZodObject<{
|
|
73
|
+
inputTokens: z.ZodNumber;
|
|
74
|
+
outputTokens: z.ZodNumber;
|
|
75
|
+
cachedReadTokens: z.ZodNumber;
|
|
76
|
+
cachedCreationTokens: z.ZodNumber;
|
|
77
|
+
reasoningTokens: z.ZodNumber;
|
|
78
|
+
model: z.ZodString;
|
|
79
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
export declare const StageEntryBase: z.ZodObject<{
|
|
82
|
+
name: z.ZodEnum<{
|
|
83
|
+
implementing: "implementing";
|
|
84
|
+
spec_review: "spec_review";
|
|
85
|
+
spec_rework: "spec_rework";
|
|
86
|
+
quality_review: "quality_review";
|
|
87
|
+
quality_rework: "quality_rework";
|
|
88
|
+
verifying: "verifying";
|
|
89
|
+
diff_review: "diff_review";
|
|
90
|
+
committing: "committing";
|
|
91
|
+
}>;
|
|
92
|
+
round: z.ZodNumber;
|
|
93
|
+
model: z.ZodString;
|
|
94
|
+
tier: z.ZodEnum<{
|
|
95
|
+
standard: "standard";
|
|
96
|
+
complex: "complex";
|
|
97
|
+
main: "main";
|
|
98
|
+
}>;
|
|
99
|
+
durationMs: z.ZodNumber;
|
|
100
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
101
|
+
inputTokens: z.ZodNumber;
|
|
102
|
+
outputTokens: z.ZodNumber;
|
|
103
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
104
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
105
|
+
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
106
|
+
toolCallCount: z.ZodNumber;
|
|
107
|
+
filesReadCount: z.ZodNumber;
|
|
108
|
+
filesWrittenCount: z.ZodNumber;
|
|
109
|
+
turnCount: z.ZodNumber;
|
|
110
|
+
maxIdleMs: z.ZodNumber;
|
|
111
|
+
totalIdleMs: z.ZodNumber;
|
|
112
|
+
}, z.core.$strip>;
|
|
65
113
|
export declare const ReviewStageEntrySchema: z.ZodObject<{
|
|
114
|
+
round: z.ZodNumber;
|
|
66
115
|
model: z.ZodString;
|
|
67
116
|
tier: z.ZodEnum<{
|
|
68
117
|
standard: "standard";
|
|
@@ -70,10 +119,11 @@ export declare const ReviewStageEntrySchema: z.ZodObject<{
|
|
|
70
119
|
main: "main";
|
|
71
120
|
}>;
|
|
72
121
|
durationMs: z.ZodNumber;
|
|
73
|
-
costUSD: z.ZodNumber
|
|
122
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
74
123
|
inputTokens: z.ZodNumber;
|
|
75
124
|
outputTokens: z.ZodNumber;
|
|
76
|
-
|
|
125
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
126
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
77
127
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
78
128
|
toolCallCount: z.ZodNumber;
|
|
79
129
|
filesReadCount: z.ZodNumber;
|
|
@@ -120,6 +170,7 @@ export declare const ReviewStageEntrySchema: z.ZodObject<{
|
|
|
120
170
|
}, z.core.$strict>;
|
|
121
171
|
}, z.core.$strict>;
|
|
122
172
|
export declare const ReworkStageEntrySchema: z.ZodObject<{
|
|
173
|
+
round: z.ZodNumber;
|
|
123
174
|
model: z.ZodString;
|
|
124
175
|
tier: z.ZodEnum<{
|
|
125
176
|
standard: "standard";
|
|
@@ -127,10 +178,11 @@ export declare const ReworkStageEntrySchema: z.ZodObject<{
|
|
|
127
178
|
main: "main";
|
|
128
179
|
}>;
|
|
129
180
|
durationMs: z.ZodNumber;
|
|
130
|
-
costUSD: z.ZodNumber
|
|
181
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
131
182
|
inputTokens: z.ZodNumber;
|
|
132
183
|
outputTokens: z.ZodNumber;
|
|
133
|
-
|
|
184
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
185
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
134
186
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
135
187
|
toolCallCount: z.ZodNumber;
|
|
136
188
|
filesReadCount: z.ZodNumber;
|
|
@@ -160,6 +212,7 @@ export declare const ReworkStageEntrySchema: z.ZodObject<{
|
|
|
160
212
|
}>>;
|
|
161
213
|
}, z.core.$strict>;
|
|
162
214
|
export declare const VerifyStageEntrySchema: z.ZodObject<{
|
|
215
|
+
round: z.ZodNumber;
|
|
163
216
|
model: z.ZodString;
|
|
164
217
|
tier: z.ZodEnum<{
|
|
165
218
|
standard: "standard";
|
|
@@ -167,10 +220,11 @@ export declare const VerifyStageEntrySchema: z.ZodObject<{
|
|
|
167
220
|
main: "main";
|
|
168
221
|
}>;
|
|
169
222
|
durationMs: z.ZodNumber;
|
|
170
|
-
costUSD: z.ZodNumber
|
|
223
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
171
224
|
inputTokens: z.ZodNumber;
|
|
172
225
|
outputTokens: z.ZodNumber;
|
|
173
|
-
|
|
226
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
227
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
174
228
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
175
229
|
toolCallCount: z.ZodNumber;
|
|
176
230
|
filesReadCount: z.ZodNumber;
|
|
@@ -187,12 +241,13 @@ export declare const VerifyStageEntrySchema: z.ZodObject<{
|
|
|
187
241
|
}>;
|
|
188
242
|
skipReason: z.ZodNullable<z.ZodEnum<{
|
|
189
243
|
no_command: "no_command";
|
|
190
|
-
other: "other";
|
|
191
244
|
not_applicable: "not_applicable";
|
|
192
245
|
dirty_worktree: "dirty_worktree";
|
|
246
|
+
other: "other";
|
|
193
247
|
}>>;
|
|
194
248
|
}, z.core.$strict>;
|
|
195
249
|
export declare const CommitStageEntrySchema: z.ZodObject<{
|
|
250
|
+
round: z.ZodNumber;
|
|
196
251
|
model: z.ZodString;
|
|
197
252
|
tier: z.ZodEnum<{
|
|
198
253
|
standard: "standard";
|
|
@@ -200,10 +255,11 @@ export declare const CommitStageEntrySchema: z.ZodObject<{
|
|
|
200
255
|
main: "main";
|
|
201
256
|
}>;
|
|
202
257
|
durationMs: z.ZodNumber;
|
|
203
|
-
costUSD: z.ZodNumber
|
|
258
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
204
259
|
inputTokens: z.ZodNumber;
|
|
205
260
|
outputTokens: z.ZodNumber;
|
|
206
|
-
|
|
261
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
262
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
207
263
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
208
264
|
toolCallCount: z.ZodNumber;
|
|
209
265
|
filesReadCount: z.ZodNumber;
|
|
@@ -216,6 +272,7 @@ export declare const CommitStageEntrySchema: z.ZodObject<{
|
|
|
216
272
|
branchCreated: z.ZodBoolean;
|
|
217
273
|
}, z.core.$strict>;
|
|
218
274
|
export declare const ImplementStageEntrySchema: z.ZodObject<{
|
|
275
|
+
round: z.ZodNumber;
|
|
219
276
|
model: z.ZodString;
|
|
220
277
|
tier: z.ZodEnum<{
|
|
221
278
|
standard: "standard";
|
|
@@ -223,10 +280,11 @@ export declare const ImplementStageEntrySchema: z.ZodObject<{
|
|
|
223
280
|
main: "main";
|
|
224
281
|
}>;
|
|
225
282
|
durationMs: z.ZodNumber;
|
|
226
|
-
costUSD: z.ZodNumber
|
|
283
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
227
284
|
inputTokens: z.ZodNumber;
|
|
228
285
|
outputTokens: z.ZodNumber;
|
|
229
|
-
|
|
286
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
287
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
230
288
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
231
289
|
toolCallCount: z.ZodNumber;
|
|
232
290
|
filesReadCount: z.ZodNumber;
|
|
@@ -237,6 +295,7 @@ export declare const ImplementStageEntrySchema: z.ZodObject<{
|
|
|
237
295
|
name: z.ZodLiteral<"implementing">;
|
|
238
296
|
}, z.core.$strict>;
|
|
239
297
|
export declare const StageEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
298
|
+
round: z.ZodNumber;
|
|
240
299
|
model: z.ZodString;
|
|
241
300
|
tier: z.ZodEnum<{
|
|
242
301
|
standard: "standard";
|
|
@@ -244,10 +303,11 @@ export declare const StageEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
244
303
|
main: "main";
|
|
245
304
|
}>;
|
|
246
305
|
durationMs: z.ZodNumber;
|
|
247
|
-
costUSD: z.ZodNumber
|
|
306
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
248
307
|
inputTokens: z.ZodNumber;
|
|
249
308
|
outputTokens: z.ZodNumber;
|
|
250
|
-
|
|
309
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
310
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
251
311
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
252
312
|
toolCallCount: z.ZodNumber;
|
|
253
313
|
filesReadCount: z.ZodNumber;
|
|
@@ -257,6 +317,7 @@ export declare const StageEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
257
317
|
totalIdleMs: z.ZodNumber;
|
|
258
318
|
name: z.ZodLiteral<"implementing">;
|
|
259
319
|
}, z.core.$strict>, z.ZodObject<{
|
|
320
|
+
round: z.ZodNumber;
|
|
260
321
|
model: z.ZodString;
|
|
261
322
|
tier: z.ZodEnum<{
|
|
262
323
|
standard: "standard";
|
|
@@ -264,10 +325,11 @@ export declare const StageEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
264
325
|
main: "main";
|
|
265
326
|
}>;
|
|
266
327
|
durationMs: z.ZodNumber;
|
|
267
|
-
costUSD: z.ZodNumber
|
|
328
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
268
329
|
inputTokens: z.ZodNumber;
|
|
269
330
|
outputTokens: z.ZodNumber;
|
|
270
|
-
|
|
331
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
332
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
271
333
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
272
334
|
toolCallCount: z.ZodNumber;
|
|
273
335
|
filesReadCount: z.ZodNumber;
|
|
@@ -313,6 +375,7 @@ export declare const StageEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
313
375
|
low: z.ZodNumber;
|
|
314
376
|
}, z.core.$strict>;
|
|
315
377
|
}, z.core.$strict>, z.ZodObject<{
|
|
378
|
+
round: z.ZodNumber;
|
|
316
379
|
model: z.ZodString;
|
|
317
380
|
tier: z.ZodEnum<{
|
|
318
381
|
standard: "standard";
|
|
@@ -320,10 +383,11 @@ export declare const StageEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
320
383
|
main: "main";
|
|
321
384
|
}>;
|
|
322
385
|
durationMs: z.ZodNumber;
|
|
323
|
-
costUSD: z.ZodNumber
|
|
386
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
324
387
|
inputTokens: z.ZodNumber;
|
|
325
388
|
outputTokens: z.ZodNumber;
|
|
326
|
-
|
|
389
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
390
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
327
391
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
328
392
|
toolCallCount: z.ZodNumber;
|
|
329
393
|
filesReadCount: z.ZodNumber;
|
|
@@ -352,6 +416,7 @@ export declare const StageEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
352
416
|
queue_hygiene: "queue_hygiene";
|
|
353
417
|
}>>;
|
|
354
418
|
}, z.core.$strict>, z.ZodObject<{
|
|
419
|
+
round: z.ZodNumber;
|
|
355
420
|
model: z.ZodString;
|
|
356
421
|
tier: z.ZodEnum<{
|
|
357
422
|
standard: "standard";
|
|
@@ -359,10 +424,11 @@ export declare const StageEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
359
424
|
main: "main";
|
|
360
425
|
}>;
|
|
361
426
|
durationMs: z.ZodNumber;
|
|
362
|
-
costUSD: z.ZodNumber
|
|
427
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
363
428
|
inputTokens: z.ZodNumber;
|
|
364
429
|
outputTokens: z.ZodNumber;
|
|
365
|
-
|
|
430
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
431
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
366
432
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
367
433
|
toolCallCount: z.ZodNumber;
|
|
368
434
|
filesReadCount: z.ZodNumber;
|
|
@@ -379,11 +445,12 @@ export declare const StageEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
379
445
|
}>;
|
|
380
446
|
skipReason: z.ZodNullable<z.ZodEnum<{
|
|
381
447
|
no_command: "no_command";
|
|
382
|
-
other: "other";
|
|
383
448
|
not_applicable: "not_applicable";
|
|
384
449
|
dirty_worktree: "dirty_worktree";
|
|
450
|
+
other: "other";
|
|
385
451
|
}>>;
|
|
386
452
|
}, z.core.$strict>, z.ZodObject<{
|
|
453
|
+
round: z.ZodNumber;
|
|
387
454
|
model: z.ZodString;
|
|
388
455
|
tier: z.ZodEnum<{
|
|
389
456
|
standard: "standard";
|
|
@@ -391,10 +458,11 @@ export declare const StageEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
391
458
|
main: "main";
|
|
392
459
|
}>;
|
|
393
460
|
durationMs: z.ZodNumber;
|
|
394
|
-
costUSD: z.ZodNumber
|
|
461
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
395
462
|
inputTokens: z.ZodNumber;
|
|
396
463
|
outputTokens: z.ZodNumber;
|
|
397
|
-
|
|
464
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
465
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
398
466
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
399
467
|
toolCallCount: z.ZodNumber;
|
|
400
468
|
filesReadCount: z.ZodNumber;
|
|
@@ -447,40 +515,10 @@ export declare const TaskCompletedEventSchema: z.ZodObject<{
|
|
|
447
515
|
complex: "complex";
|
|
448
516
|
main: "main";
|
|
449
517
|
}>;
|
|
450
|
-
|
|
451
|
-
error: "error";
|
|
452
|
-
ok: "ok";
|
|
453
|
-
incomplete: "incomplete";
|
|
454
|
-
timeout: "timeout";
|
|
455
|
-
brief_too_vague: "brief_too_vague";
|
|
456
|
-
cost_exceeded: "cost_exceeded";
|
|
457
|
-
unavailable: "unavailable";
|
|
458
|
-
}>;
|
|
459
|
-
workerStatus: z.ZodEnum<{
|
|
460
|
-
failed: "failed";
|
|
461
|
-
done: "done";
|
|
462
|
-
done_with_concerns: "done_with_concerns";
|
|
463
|
-
needs_context: "needs_context";
|
|
464
|
-
blocked: "blocked";
|
|
465
|
-
review_loop_aborted: "review_loop_aborted";
|
|
466
|
-
}>;
|
|
467
|
-
errorCode: z.ZodNullable<z.ZodEnum<{
|
|
468
|
-
api_error: "api_error";
|
|
469
|
-
network_error: "network_error";
|
|
470
|
-
other: "other";
|
|
471
|
-
dirty_worktree: "dirty_worktree";
|
|
472
|
-
reviewer_separation_unsatisfiable: "reviewer_separation_unsatisfiable";
|
|
473
|
-
verify_command_error: "verify_command_error";
|
|
474
|
-
commit_metadata_invalid: "commit_metadata_invalid";
|
|
475
|
-
commit_metadata_repair_modified_files: "commit_metadata_repair_modified_files";
|
|
476
|
-
diff_review_rejected: "diff_review_rejected";
|
|
477
|
-
runner_crash: "runner_crash";
|
|
478
|
-
rate_limit_exceeded: "rate_limit_exceeded";
|
|
479
|
-
executor_error: "executor_error";
|
|
480
|
-
incomplete_no_summary: "incomplete_no_summary";
|
|
481
|
-
}>>;
|
|
518
|
+
parentModel: z.ZodNullable<z.ZodString>;
|
|
482
519
|
parentModelFamily: z.ZodEnum<{
|
|
483
520
|
claude: "claude";
|
|
521
|
+
other: "other";
|
|
484
522
|
openai: "openai";
|
|
485
523
|
gemini: "gemini";
|
|
486
524
|
grok: "grok";
|
|
@@ -512,14 +550,76 @@ export declare const TaskCompletedEventSchema: z.ZodObject<{
|
|
|
512
550
|
vicuna: "vicuna";
|
|
513
551
|
internlm: "internlm";
|
|
514
552
|
baichuan: "baichuan";
|
|
515
|
-
other: "other";
|
|
516
553
|
}>;
|
|
554
|
+
tierUsage: z.ZodObject<{
|
|
555
|
+
standard: z.ZodOptional<z.ZodObject<{
|
|
556
|
+
inputTokens: z.ZodNumber;
|
|
557
|
+
outputTokens: z.ZodNumber;
|
|
558
|
+
cachedReadTokens: z.ZodNumber;
|
|
559
|
+
cachedCreationTokens: z.ZodNumber;
|
|
560
|
+
reasoningTokens: z.ZodNumber;
|
|
561
|
+
model: z.ZodString;
|
|
562
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
563
|
+
}, z.core.$strip>>;
|
|
564
|
+
complex: z.ZodOptional<z.ZodObject<{
|
|
565
|
+
inputTokens: z.ZodNumber;
|
|
566
|
+
outputTokens: z.ZodNumber;
|
|
567
|
+
cachedReadTokens: z.ZodNumber;
|
|
568
|
+
cachedCreationTokens: z.ZodNumber;
|
|
569
|
+
reasoningTokens: z.ZodNumber;
|
|
570
|
+
model: z.ZodString;
|
|
571
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
572
|
+
}, z.core.$strip>>;
|
|
573
|
+
main: z.ZodOptional<z.ZodObject<{
|
|
574
|
+
inputTokens: z.ZodNumber;
|
|
575
|
+
outputTokens: z.ZodNumber;
|
|
576
|
+
cachedReadTokens: z.ZodNumber;
|
|
577
|
+
cachedCreationTokens: z.ZodNumber;
|
|
578
|
+
reasoningTokens: z.ZodNumber;
|
|
579
|
+
model: z.ZodString;
|
|
580
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
581
|
+
}, z.core.$strip>>;
|
|
582
|
+
}, z.core.$strip>;
|
|
583
|
+
terminalStatus: z.ZodEnum<{
|
|
584
|
+
error: "error";
|
|
585
|
+
ok: "ok";
|
|
586
|
+
incomplete: "incomplete";
|
|
587
|
+
timeout: "timeout";
|
|
588
|
+
brief_too_vague: "brief_too_vague";
|
|
589
|
+
cost_exceeded: "cost_exceeded";
|
|
590
|
+
unavailable: "unavailable";
|
|
591
|
+
}>;
|
|
592
|
+
workerStatus: z.ZodEnum<{
|
|
593
|
+
failed: "failed";
|
|
594
|
+
done: "done";
|
|
595
|
+
done_with_concerns: "done_with_concerns";
|
|
596
|
+
needs_context: "needs_context";
|
|
597
|
+
blocked: "blocked";
|
|
598
|
+
review_loop_aborted: "review_loop_aborted";
|
|
599
|
+
}>;
|
|
600
|
+
errorCode: z.ZodNullable<z.ZodEnum<{
|
|
601
|
+
api_error: "api_error";
|
|
602
|
+
network_error: "network_error";
|
|
603
|
+
dirty_worktree: "dirty_worktree";
|
|
604
|
+
other: "other";
|
|
605
|
+
reviewer_separation_unsatisfiable: "reviewer_separation_unsatisfiable";
|
|
606
|
+
verify_command_error: "verify_command_error";
|
|
607
|
+
commit_metadata_invalid: "commit_metadata_invalid";
|
|
608
|
+
commit_metadata_repair_modified_files: "commit_metadata_repair_modified_files";
|
|
609
|
+
diff_review_rejected: "diff_review_rejected";
|
|
610
|
+
runner_crash: "runner_crash";
|
|
611
|
+
rate_limit_exceeded: "rate_limit_exceeded";
|
|
612
|
+
executor_error: "executor_error";
|
|
613
|
+
incomplete_no_summary: "incomplete_no_summary";
|
|
614
|
+
}>>;
|
|
517
615
|
inputTokens: z.ZodNumber;
|
|
518
616
|
outputTokens: z.ZodNumber;
|
|
519
|
-
|
|
617
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
618
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
520
619
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
521
620
|
totalDurationMs: z.ZodNumber;
|
|
522
|
-
totalCostUSD: z.ZodNumber
|
|
621
|
+
totalCostUSD: z.ZodNullable<z.ZodNumber>;
|
|
622
|
+
parentEquivalentCostUSD: z.ZodNullable<z.ZodNumber>;
|
|
523
623
|
costDeltaVsParentUSD: z.ZodNullable<z.ZodNumber>;
|
|
524
624
|
concernCount: z.ZodNumber;
|
|
525
625
|
escalationCount: z.ZodNumber;
|
|
@@ -530,6 +630,7 @@ export declare const TaskCompletedEventSchema: z.ZodObject<{
|
|
|
530
630
|
briefQualityWarningCount: z.ZodNumber;
|
|
531
631
|
sandboxViolationCount: z.ZodNumber;
|
|
532
632
|
stages: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
633
|
+
round: z.ZodNumber;
|
|
533
634
|
model: z.ZodString;
|
|
534
635
|
tier: z.ZodEnum<{
|
|
535
636
|
standard: "standard";
|
|
@@ -537,10 +638,11 @@ export declare const TaskCompletedEventSchema: z.ZodObject<{
|
|
|
537
638
|
main: "main";
|
|
538
639
|
}>;
|
|
539
640
|
durationMs: z.ZodNumber;
|
|
540
|
-
costUSD: z.ZodNumber
|
|
641
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
541
642
|
inputTokens: z.ZodNumber;
|
|
542
643
|
outputTokens: z.ZodNumber;
|
|
543
|
-
|
|
644
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
645
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
544
646
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
545
647
|
toolCallCount: z.ZodNumber;
|
|
546
648
|
filesReadCount: z.ZodNumber;
|
|
@@ -550,6 +652,7 @@ export declare const TaskCompletedEventSchema: z.ZodObject<{
|
|
|
550
652
|
totalIdleMs: z.ZodNumber;
|
|
551
653
|
name: z.ZodLiteral<"implementing">;
|
|
552
654
|
}, z.core.$strict>, z.ZodObject<{
|
|
655
|
+
round: z.ZodNumber;
|
|
553
656
|
model: z.ZodString;
|
|
554
657
|
tier: z.ZodEnum<{
|
|
555
658
|
standard: "standard";
|
|
@@ -557,10 +660,11 @@ export declare const TaskCompletedEventSchema: z.ZodObject<{
|
|
|
557
660
|
main: "main";
|
|
558
661
|
}>;
|
|
559
662
|
durationMs: z.ZodNumber;
|
|
560
|
-
costUSD: z.ZodNumber
|
|
663
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
561
664
|
inputTokens: z.ZodNumber;
|
|
562
665
|
outputTokens: z.ZodNumber;
|
|
563
|
-
|
|
666
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
667
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
564
668
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
565
669
|
toolCallCount: z.ZodNumber;
|
|
566
670
|
filesReadCount: z.ZodNumber;
|
|
@@ -606,6 +710,7 @@ export declare const TaskCompletedEventSchema: z.ZodObject<{
|
|
|
606
710
|
low: z.ZodNumber;
|
|
607
711
|
}, z.core.$strict>;
|
|
608
712
|
}, z.core.$strict>, z.ZodObject<{
|
|
713
|
+
round: z.ZodNumber;
|
|
609
714
|
model: z.ZodString;
|
|
610
715
|
tier: z.ZodEnum<{
|
|
611
716
|
standard: "standard";
|
|
@@ -613,10 +718,11 @@ export declare const TaskCompletedEventSchema: z.ZodObject<{
|
|
|
613
718
|
main: "main";
|
|
614
719
|
}>;
|
|
615
720
|
durationMs: z.ZodNumber;
|
|
616
|
-
costUSD: z.ZodNumber
|
|
721
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
617
722
|
inputTokens: z.ZodNumber;
|
|
618
723
|
outputTokens: z.ZodNumber;
|
|
619
|
-
|
|
724
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
725
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
620
726
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
621
727
|
toolCallCount: z.ZodNumber;
|
|
622
728
|
filesReadCount: z.ZodNumber;
|
|
@@ -645,6 +751,7 @@ export declare const TaskCompletedEventSchema: z.ZodObject<{
|
|
|
645
751
|
queue_hygiene: "queue_hygiene";
|
|
646
752
|
}>>;
|
|
647
753
|
}, z.core.$strict>, z.ZodObject<{
|
|
754
|
+
round: z.ZodNumber;
|
|
648
755
|
model: z.ZodString;
|
|
649
756
|
tier: z.ZodEnum<{
|
|
650
757
|
standard: "standard";
|
|
@@ -652,10 +759,11 @@ export declare const TaskCompletedEventSchema: z.ZodObject<{
|
|
|
652
759
|
main: "main";
|
|
653
760
|
}>;
|
|
654
761
|
durationMs: z.ZodNumber;
|
|
655
|
-
costUSD: z.ZodNumber
|
|
762
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
656
763
|
inputTokens: z.ZodNumber;
|
|
657
764
|
outputTokens: z.ZodNumber;
|
|
658
|
-
|
|
765
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
766
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
659
767
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
660
768
|
toolCallCount: z.ZodNumber;
|
|
661
769
|
filesReadCount: z.ZodNumber;
|
|
@@ -672,11 +780,12 @@ export declare const TaskCompletedEventSchema: z.ZodObject<{
|
|
|
672
780
|
}>;
|
|
673
781
|
skipReason: z.ZodNullable<z.ZodEnum<{
|
|
674
782
|
no_command: "no_command";
|
|
675
|
-
other: "other";
|
|
676
783
|
not_applicable: "not_applicable";
|
|
677
784
|
dirty_worktree: "dirty_worktree";
|
|
785
|
+
other: "other";
|
|
678
786
|
}>>;
|
|
679
787
|
}, z.core.$strict>, z.ZodObject<{
|
|
788
|
+
round: z.ZodNumber;
|
|
680
789
|
model: z.ZodString;
|
|
681
790
|
tier: z.ZodEnum<{
|
|
682
791
|
standard: "standard";
|
|
@@ -684,10 +793,11 @@ export declare const TaskCompletedEventSchema: z.ZodObject<{
|
|
|
684
793
|
main: "main";
|
|
685
794
|
}>;
|
|
686
795
|
durationMs: z.ZodNumber;
|
|
687
|
-
costUSD: z.ZodNumber
|
|
796
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
688
797
|
inputTokens: z.ZodNumber;
|
|
689
798
|
outputTokens: z.ZodNumber;
|
|
690
|
-
|
|
799
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
800
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
691
801
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
692
802
|
toolCallCount: z.ZodNumber;
|
|
693
803
|
filesReadCount: z.ZodNumber;
|
|
@@ -705,7 +815,7 @@ export declare const TaskCompletedEventSchema: z.ZodObject<{
|
|
|
705
815
|
}, z.core.$strip>>>;
|
|
706
816
|
}, z.core.$strict>;
|
|
707
817
|
export declare const UploadBatchSchema: z.ZodObject<{
|
|
708
|
-
schemaVersion: z.ZodLiteral<
|
|
818
|
+
schemaVersion: z.ZodLiteral<4>;
|
|
709
819
|
installId: z.ZodString;
|
|
710
820
|
mmagentVersion: z.ZodString;
|
|
711
821
|
os: z.ZodEnum<{
|
|
@@ -757,40 +867,10 @@ export declare const UploadBatchSchema: z.ZodObject<{
|
|
|
757
867
|
complex: "complex";
|
|
758
868
|
main: "main";
|
|
759
869
|
}>;
|
|
760
|
-
|
|
761
|
-
error: "error";
|
|
762
|
-
ok: "ok";
|
|
763
|
-
incomplete: "incomplete";
|
|
764
|
-
timeout: "timeout";
|
|
765
|
-
brief_too_vague: "brief_too_vague";
|
|
766
|
-
cost_exceeded: "cost_exceeded";
|
|
767
|
-
unavailable: "unavailable";
|
|
768
|
-
}>;
|
|
769
|
-
workerStatus: z.ZodEnum<{
|
|
770
|
-
failed: "failed";
|
|
771
|
-
done: "done";
|
|
772
|
-
done_with_concerns: "done_with_concerns";
|
|
773
|
-
needs_context: "needs_context";
|
|
774
|
-
blocked: "blocked";
|
|
775
|
-
review_loop_aborted: "review_loop_aborted";
|
|
776
|
-
}>;
|
|
777
|
-
errorCode: z.ZodNullable<z.ZodEnum<{
|
|
778
|
-
api_error: "api_error";
|
|
779
|
-
network_error: "network_error";
|
|
780
|
-
other: "other";
|
|
781
|
-
dirty_worktree: "dirty_worktree";
|
|
782
|
-
reviewer_separation_unsatisfiable: "reviewer_separation_unsatisfiable";
|
|
783
|
-
verify_command_error: "verify_command_error";
|
|
784
|
-
commit_metadata_invalid: "commit_metadata_invalid";
|
|
785
|
-
commit_metadata_repair_modified_files: "commit_metadata_repair_modified_files";
|
|
786
|
-
diff_review_rejected: "diff_review_rejected";
|
|
787
|
-
runner_crash: "runner_crash";
|
|
788
|
-
rate_limit_exceeded: "rate_limit_exceeded";
|
|
789
|
-
executor_error: "executor_error";
|
|
790
|
-
incomplete_no_summary: "incomplete_no_summary";
|
|
791
|
-
}>>;
|
|
870
|
+
parentModel: z.ZodNullable<z.ZodString>;
|
|
792
871
|
parentModelFamily: z.ZodEnum<{
|
|
793
872
|
claude: "claude";
|
|
873
|
+
other: "other";
|
|
794
874
|
openai: "openai";
|
|
795
875
|
gemini: "gemini";
|
|
796
876
|
grok: "grok";
|
|
@@ -822,14 +902,76 @@ export declare const UploadBatchSchema: z.ZodObject<{
|
|
|
822
902
|
vicuna: "vicuna";
|
|
823
903
|
internlm: "internlm";
|
|
824
904
|
baichuan: "baichuan";
|
|
825
|
-
other: "other";
|
|
826
905
|
}>;
|
|
906
|
+
tierUsage: z.ZodObject<{
|
|
907
|
+
standard: z.ZodOptional<z.ZodObject<{
|
|
908
|
+
inputTokens: z.ZodNumber;
|
|
909
|
+
outputTokens: z.ZodNumber;
|
|
910
|
+
cachedReadTokens: z.ZodNumber;
|
|
911
|
+
cachedCreationTokens: z.ZodNumber;
|
|
912
|
+
reasoningTokens: z.ZodNumber;
|
|
913
|
+
model: z.ZodString;
|
|
914
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
915
|
+
}, z.core.$strip>>;
|
|
916
|
+
complex: z.ZodOptional<z.ZodObject<{
|
|
917
|
+
inputTokens: z.ZodNumber;
|
|
918
|
+
outputTokens: z.ZodNumber;
|
|
919
|
+
cachedReadTokens: z.ZodNumber;
|
|
920
|
+
cachedCreationTokens: z.ZodNumber;
|
|
921
|
+
reasoningTokens: z.ZodNumber;
|
|
922
|
+
model: z.ZodString;
|
|
923
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
924
|
+
}, z.core.$strip>>;
|
|
925
|
+
main: z.ZodOptional<z.ZodObject<{
|
|
926
|
+
inputTokens: z.ZodNumber;
|
|
927
|
+
outputTokens: z.ZodNumber;
|
|
928
|
+
cachedReadTokens: z.ZodNumber;
|
|
929
|
+
cachedCreationTokens: z.ZodNumber;
|
|
930
|
+
reasoningTokens: z.ZodNumber;
|
|
931
|
+
model: z.ZodString;
|
|
932
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
933
|
+
}, z.core.$strip>>;
|
|
934
|
+
}, z.core.$strip>;
|
|
935
|
+
terminalStatus: z.ZodEnum<{
|
|
936
|
+
error: "error";
|
|
937
|
+
ok: "ok";
|
|
938
|
+
incomplete: "incomplete";
|
|
939
|
+
timeout: "timeout";
|
|
940
|
+
brief_too_vague: "brief_too_vague";
|
|
941
|
+
cost_exceeded: "cost_exceeded";
|
|
942
|
+
unavailable: "unavailable";
|
|
943
|
+
}>;
|
|
944
|
+
workerStatus: z.ZodEnum<{
|
|
945
|
+
failed: "failed";
|
|
946
|
+
done: "done";
|
|
947
|
+
done_with_concerns: "done_with_concerns";
|
|
948
|
+
needs_context: "needs_context";
|
|
949
|
+
blocked: "blocked";
|
|
950
|
+
review_loop_aborted: "review_loop_aborted";
|
|
951
|
+
}>;
|
|
952
|
+
errorCode: z.ZodNullable<z.ZodEnum<{
|
|
953
|
+
api_error: "api_error";
|
|
954
|
+
network_error: "network_error";
|
|
955
|
+
dirty_worktree: "dirty_worktree";
|
|
956
|
+
other: "other";
|
|
957
|
+
reviewer_separation_unsatisfiable: "reviewer_separation_unsatisfiable";
|
|
958
|
+
verify_command_error: "verify_command_error";
|
|
959
|
+
commit_metadata_invalid: "commit_metadata_invalid";
|
|
960
|
+
commit_metadata_repair_modified_files: "commit_metadata_repair_modified_files";
|
|
961
|
+
diff_review_rejected: "diff_review_rejected";
|
|
962
|
+
runner_crash: "runner_crash";
|
|
963
|
+
rate_limit_exceeded: "rate_limit_exceeded";
|
|
964
|
+
executor_error: "executor_error";
|
|
965
|
+
incomplete_no_summary: "incomplete_no_summary";
|
|
966
|
+
}>>;
|
|
827
967
|
inputTokens: z.ZodNumber;
|
|
828
968
|
outputTokens: z.ZodNumber;
|
|
829
|
-
|
|
969
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
970
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
830
971
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
831
972
|
totalDurationMs: z.ZodNumber;
|
|
832
|
-
totalCostUSD: z.ZodNumber
|
|
973
|
+
totalCostUSD: z.ZodNullable<z.ZodNumber>;
|
|
974
|
+
parentEquivalentCostUSD: z.ZodNullable<z.ZodNumber>;
|
|
833
975
|
costDeltaVsParentUSD: z.ZodNullable<z.ZodNumber>;
|
|
834
976
|
concernCount: z.ZodNumber;
|
|
835
977
|
escalationCount: z.ZodNumber;
|
|
@@ -840,6 +982,7 @@ export declare const UploadBatchSchema: z.ZodObject<{
|
|
|
840
982
|
briefQualityWarningCount: z.ZodNumber;
|
|
841
983
|
sandboxViolationCount: z.ZodNumber;
|
|
842
984
|
stages: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
985
|
+
round: z.ZodNumber;
|
|
843
986
|
model: z.ZodString;
|
|
844
987
|
tier: z.ZodEnum<{
|
|
845
988
|
standard: "standard";
|
|
@@ -847,10 +990,11 @@ export declare const UploadBatchSchema: z.ZodObject<{
|
|
|
847
990
|
main: "main";
|
|
848
991
|
}>;
|
|
849
992
|
durationMs: z.ZodNumber;
|
|
850
|
-
costUSD: z.ZodNumber
|
|
993
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
851
994
|
inputTokens: z.ZodNumber;
|
|
852
995
|
outputTokens: z.ZodNumber;
|
|
853
|
-
|
|
996
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
997
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
854
998
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
855
999
|
toolCallCount: z.ZodNumber;
|
|
856
1000
|
filesReadCount: z.ZodNumber;
|
|
@@ -860,6 +1004,7 @@ export declare const UploadBatchSchema: z.ZodObject<{
|
|
|
860
1004
|
totalIdleMs: z.ZodNumber;
|
|
861
1005
|
name: z.ZodLiteral<"implementing">;
|
|
862
1006
|
}, z.core.$strict>, z.ZodObject<{
|
|
1007
|
+
round: z.ZodNumber;
|
|
863
1008
|
model: z.ZodString;
|
|
864
1009
|
tier: z.ZodEnum<{
|
|
865
1010
|
standard: "standard";
|
|
@@ -867,10 +1012,11 @@ export declare const UploadBatchSchema: z.ZodObject<{
|
|
|
867
1012
|
main: "main";
|
|
868
1013
|
}>;
|
|
869
1014
|
durationMs: z.ZodNumber;
|
|
870
|
-
costUSD: z.ZodNumber
|
|
1015
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
871
1016
|
inputTokens: z.ZodNumber;
|
|
872
1017
|
outputTokens: z.ZodNumber;
|
|
873
|
-
|
|
1018
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
1019
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
874
1020
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
875
1021
|
toolCallCount: z.ZodNumber;
|
|
876
1022
|
filesReadCount: z.ZodNumber;
|
|
@@ -916,6 +1062,7 @@ export declare const UploadBatchSchema: z.ZodObject<{
|
|
|
916
1062
|
low: z.ZodNumber;
|
|
917
1063
|
}, z.core.$strict>;
|
|
918
1064
|
}, z.core.$strict>, z.ZodObject<{
|
|
1065
|
+
round: z.ZodNumber;
|
|
919
1066
|
model: z.ZodString;
|
|
920
1067
|
tier: z.ZodEnum<{
|
|
921
1068
|
standard: "standard";
|
|
@@ -923,10 +1070,11 @@ export declare const UploadBatchSchema: z.ZodObject<{
|
|
|
923
1070
|
main: "main";
|
|
924
1071
|
}>;
|
|
925
1072
|
durationMs: z.ZodNumber;
|
|
926
|
-
costUSD: z.ZodNumber
|
|
1073
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
927
1074
|
inputTokens: z.ZodNumber;
|
|
928
1075
|
outputTokens: z.ZodNumber;
|
|
929
|
-
|
|
1076
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
1077
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
930
1078
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
931
1079
|
toolCallCount: z.ZodNumber;
|
|
932
1080
|
filesReadCount: z.ZodNumber;
|
|
@@ -955,6 +1103,7 @@ export declare const UploadBatchSchema: z.ZodObject<{
|
|
|
955
1103
|
queue_hygiene: "queue_hygiene";
|
|
956
1104
|
}>>;
|
|
957
1105
|
}, z.core.$strict>, z.ZodObject<{
|
|
1106
|
+
round: z.ZodNumber;
|
|
958
1107
|
model: z.ZodString;
|
|
959
1108
|
tier: z.ZodEnum<{
|
|
960
1109
|
standard: "standard";
|
|
@@ -962,10 +1111,11 @@ export declare const UploadBatchSchema: z.ZodObject<{
|
|
|
962
1111
|
main: "main";
|
|
963
1112
|
}>;
|
|
964
1113
|
durationMs: z.ZodNumber;
|
|
965
|
-
costUSD: z.ZodNumber
|
|
1114
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
966
1115
|
inputTokens: z.ZodNumber;
|
|
967
1116
|
outputTokens: z.ZodNumber;
|
|
968
|
-
|
|
1117
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
1118
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
969
1119
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
970
1120
|
toolCallCount: z.ZodNumber;
|
|
971
1121
|
filesReadCount: z.ZodNumber;
|
|
@@ -982,11 +1132,12 @@ export declare const UploadBatchSchema: z.ZodObject<{
|
|
|
982
1132
|
}>;
|
|
983
1133
|
skipReason: z.ZodNullable<z.ZodEnum<{
|
|
984
1134
|
no_command: "no_command";
|
|
985
|
-
other: "other";
|
|
986
1135
|
not_applicable: "not_applicable";
|
|
987
1136
|
dirty_worktree: "dirty_worktree";
|
|
1137
|
+
other: "other";
|
|
988
1138
|
}>>;
|
|
989
1139
|
}, z.core.$strict>, z.ZodObject<{
|
|
1140
|
+
round: z.ZodNumber;
|
|
990
1141
|
model: z.ZodString;
|
|
991
1142
|
tier: z.ZodEnum<{
|
|
992
1143
|
standard: "standard";
|
|
@@ -994,10 +1145,11 @@ export declare const UploadBatchSchema: z.ZodObject<{
|
|
|
994
1145
|
main: "main";
|
|
995
1146
|
}>;
|
|
996
1147
|
durationMs: z.ZodNumber;
|
|
997
|
-
costUSD: z.ZodNumber
|
|
1148
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
998
1149
|
inputTokens: z.ZodNumber;
|
|
999
1150
|
outputTokens: z.ZodNumber;
|
|
1000
|
-
|
|
1151
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
1152
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
1001
1153
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
1002
1154
|
toolCallCount: z.ZodNumber;
|
|
1003
1155
|
filesReadCount: z.ZodNumber;
|
|
@@ -1056,40 +1208,10 @@ export declare const ValidatedTaskCompletedEventSchema: z.ZodObject<{
|
|
|
1056
1208
|
complex: "complex";
|
|
1057
1209
|
main: "main";
|
|
1058
1210
|
}>;
|
|
1059
|
-
|
|
1060
|
-
error: "error";
|
|
1061
|
-
ok: "ok";
|
|
1062
|
-
incomplete: "incomplete";
|
|
1063
|
-
timeout: "timeout";
|
|
1064
|
-
brief_too_vague: "brief_too_vague";
|
|
1065
|
-
cost_exceeded: "cost_exceeded";
|
|
1066
|
-
unavailable: "unavailable";
|
|
1067
|
-
}>;
|
|
1068
|
-
workerStatus: z.ZodEnum<{
|
|
1069
|
-
failed: "failed";
|
|
1070
|
-
done: "done";
|
|
1071
|
-
done_with_concerns: "done_with_concerns";
|
|
1072
|
-
needs_context: "needs_context";
|
|
1073
|
-
blocked: "blocked";
|
|
1074
|
-
review_loop_aborted: "review_loop_aborted";
|
|
1075
|
-
}>;
|
|
1076
|
-
errorCode: z.ZodNullable<z.ZodEnum<{
|
|
1077
|
-
api_error: "api_error";
|
|
1078
|
-
network_error: "network_error";
|
|
1079
|
-
other: "other";
|
|
1080
|
-
dirty_worktree: "dirty_worktree";
|
|
1081
|
-
reviewer_separation_unsatisfiable: "reviewer_separation_unsatisfiable";
|
|
1082
|
-
verify_command_error: "verify_command_error";
|
|
1083
|
-
commit_metadata_invalid: "commit_metadata_invalid";
|
|
1084
|
-
commit_metadata_repair_modified_files: "commit_metadata_repair_modified_files";
|
|
1085
|
-
diff_review_rejected: "diff_review_rejected";
|
|
1086
|
-
runner_crash: "runner_crash";
|
|
1087
|
-
rate_limit_exceeded: "rate_limit_exceeded";
|
|
1088
|
-
executor_error: "executor_error";
|
|
1089
|
-
incomplete_no_summary: "incomplete_no_summary";
|
|
1090
|
-
}>>;
|
|
1211
|
+
parentModel: z.ZodNullable<z.ZodString>;
|
|
1091
1212
|
parentModelFamily: z.ZodEnum<{
|
|
1092
1213
|
claude: "claude";
|
|
1214
|
+
other: "other";
|
|
1093
1215
|
openai: "openai";
|
|
1094
1216
|
gemini: "gemini";
|
|
1095
1217
|
grok: "grok";
|
|
@@ -1121,14 +1243,76 @@ export declare const ValidatedTaskCompletedEventSchema: z.ZodObject<{
|
|
|
1121
1243
|
vicuna: "vicuna";
|
|
1122
1244
|
internlm: "internlm";
|
|
1123
1245
|
baichuan: "baichuan";
|
|
1124
|
-
other: "other";
|
|
1125
1246
|
}>;
|
|
1247
|
+
tierUsage: z.ZodObject<{
|
|
1248
|
+
standard: z.ZodOptional<z.ZodObject<{
|
|
1249
|
+
inputTokens: z.ZodNumber;
|
|
1250
|
+
outputTokens: z.ZodNumber;
|
|
1251
|
+
cachedReadTokens: z.ZodNumber;
|
|
1252
|
+
cachedCreationTokens: z.ZodNumber;
|
|
1253
|
+
reasoningTokens: z.ZodNumber;
|
|
1254
|
+
model: z.ZodString;
|
|
1255
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
1256
|
+
}, z.core.$strip>>;
|
|
1257
|
+
complex: z.ZodOptional<z.ZodObject<{
|
|
1258
|
+
inputTokens: z.ZodNumber;
|
|
1259
|
+
outputTokens: z.ZodNumber;
|
|
1260
|
+
cachedReadTokens: z.ZodNumber;
|
|
1261
|
+
cachedCreationTokens: z.ZodNumber;
|
|
1262
|
+
reasoningTokens: z.ZodNumber;
|
|
1263
|
+
model: z.ZodString;
|
|
1264
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
1265
|
+
}, z.core.$strip>>;
|
|
1266
|
+
main: z.ZodOptional<z.ZodObject<{
|
|
1267
|
+
inputTokens: z.ZodNumber;
|
|
1268
|
+
outputTokens: z.ZodNumber;
|
|
1269
|
+
cachedReadTokens: z.ZodNumber;
|
|
1270
|
+
cachedCreationTokens: z.ZodNumber;
|
|
1271
|
+
reasoningTokens: z.ZodNumber;
|
|
1272
|
+
model: z.ZodString;
|
|
1273
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
1274
|
+
}, z.core.$strip>>;
|
|
1275
|
+
}, z.core.$strip>;
|
|
1276
|
+
terminalStatus: z.ZodEnum<{
|
|
1277
|
+
error: "error";
|
|
1278
|
+
ok: "ok";
|
|
1279
|
+
incomplete: "incomplete";
|
|
1280
|
+
timeout: "timeout";
|
|
1281
|
+
brief_too_vague: "brief_too_vague";
|
|
1282
|
+
cost_exceeded: "cost_exceeded";
|
|
1283
|
+
unavailable: "unavailable";
|
|
1284
|
+
}>;
|
|
1285
|
+
workerStatus: z.ZodEnum<{
|
|
1286
|
+
failed: "failed";
|
|
1287
|
+
done: "done";
|
|
1288
|
+
done_with_concerns: "done_with_concerns";
|
|
1289
|
+
needs_context: "needs_context";
|
|
1290
|
+
blocked: "blocked";
|
|
1291
|
+
review_loop_aborted: "review_loop_aborted";
|
|
1292
|
+
}>;
|
|
1293
|
+
errorCode: z.ZodNullable<z.ZodEnum<{
|
|
1294
|
+
api_error: "api_error";
|
|
1295
|
+
network_error: "network_error";
|
|
1296
|
+
dirty_worktree: "dirty_worktree";
|
|
1297
|
+
other: "other";
|
|
1298
|
+
reviewer_separation_unsatisfiable: "reviewer_separation_unsatisfiable";
|
|
1299
|
+
verify_command_error: "verify_command_error";
|
|
1300
|
+
commit_metadata_invalid: "commit_metadata_invalid";
|
|
1301
|
+
commit_metadata_repair_modified_files: "commit_metadata_repair_modified_files";
|
|
1302
|
+
diff_review_rejected: "diff_review_rejected";
|
|
1303
|
+
runner_crash: "runner_crash";
|
|
1304
|
+
rate_limit_exceeded: "rate_limit_exceeded";
|
|
1305
|
+
executor_error: "executor_error";
|
|
1306
|
+
incomplete_no_summary: "incomplete_no_summary";
|
|
1307
|
+
}>>;
|
|
1126
1308
|
inputTokens: z.ZodNumber;
|
|
1127
1309
|
outputTokens: z.ZodNumber;
|
|
1128
|
-
|
|
1310
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
1311
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
1129
1312
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
1130
1313
|
totalDurationMs: z.ZodNumber;
|
|
1131
|
-
totalCostUSD: z.ZodNumber
|
|
1314
|
+
totalCostUSD: z.ZodNullable<z.ZodNumber>;
|
|
1315
|
+
parentEquivalentCostUSD: z.ZodNullable<z.ZodNumber>;
|
|
1132
1316
|
costDeltaVsParentUSD: z.ZodNullable<z.ZodNumber>;
|
|
1133
1317
|
concernCount: z.ZodNumber;
|
|
1134
1318
|
escalationCount: z.ZodNumber;
|
|
@@ -1139,6 +1323,7 @@ export declare const ValidatedTaskCompletedEventSchema: z.ZodObject<{
|
|
|
1139
1323
|
briefQualityWarningCount: z.ZodNumber;
|
|
1140
1324
|
sandboxViolationCount: z.ZodNumber;
|
|
1141
1325
|
stages: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1326
|
+
round: z.ZodNumber;
|
|
1142
1327
|
model: z.ZodString;
|
|
1143
1328
|
tier: z.ZodEnum<{
|
|
1144
1329
|
standard: "standard";
|
|
@@ -1146,10 +1331,11 @@ export declare const ValidatedTaskCompletedEventSchema: z.ZodObject<{
|
|
|
1146
1331
|
main: "main";
|
|
1147
1332
|
}>;
|
|
1148
1333
|
durationMs: z.ZodNumber;
|
|
1149
|
-
costUSD: z.ZodNumber
|
|
1334
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
1150
1335
|
inputTokens: z.ZodNumber;
|
|
1151
1336
|
outputTokens: z.ZodNumber;
|
|
1152
|
-
|
|
1337
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
1338
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
1153
1339
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
1154
1340
|
toolCallCount: z.ZodNumber;
|
|
1155
1341
|
filesReadCount: z.ZodNumber;
|
|
@@ -1159,6 +1345,7 @@ export declare const ValidatedTaskCompletedEventSchema: z.ZodObject<{
|
|
|
1159
1345
|
totalIdleMs: z.ZodNumber;
|
|
1160
1346
|
name: z.ZodLiteral<"implementing">;
|
|
1161
1347
|
}, z.core.$strict>, z.ZodObject<{
|
|
1348
|
+
round: z.ZodNumber;
|
|
1162
1349
|
model: z.ZodString;
|
|
1163
1350
|
tier: z.ZodEnum<{
|
|
1164
1351
|
standard: "standard";
|
|
@@ -1166,10 +1353,11 @@ export declare const ValidatedTaskCompletedEventSchema: z.ZodObject<{
|
|
|
1166
1353
|
main: "main";
|
|
1167
1354
|
}>;
|
|
1168
1355
|
durationMs: z.ZodNumber;
|
|
1169
|
-
costUSD: z.ZodNumber
|
|
1356
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
1170
1357
|
inputTokens: z.ZodNumber;
|
|
1171
1358
|
outputTokens: z.ZodNumber;
|
|
1172
|
-
|
|
1359
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
1360
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
1173
1361
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
1174
1362
|
toolCallCount: z.ZodNumber;
|
|
1175
1363
|
filesReadCount: z.ZodNumber;
|
|
@@ -1215,6 +1403,7 @@ export declare const ValidatedTaskCompletedEventSchema: z.ZodObject<{
|
|
|
1215
1403
|
low: z.ZodNumber;
|
|
1216
1404
|
}, z.core.$strict>;
|
|
1217
1405
|
}, z.core.$strict>, z.ZodObject<{
|
|
1406
|
+
round: z.ZodNumber;
|
|
1218
1407
|
model: z.ZodString;
|
|
1219
1408
|
tier: z.ZodEnum<{
|
|
1220
1409
|
standard: "standard";
|
|
@@ -1222,10 +1411,11 @@ export declare const ValidatedTaskCompletedEventSchema: z.ZodObject<{
|
|
|
1222
1411
|
main: "main";
|
|
1223
1412
|
}>;
|
|
1224
1413
|
durationMs: z.ZodNumber;
|
|
1225
|
-
costUSD: z.ZodNumber
|
|
1414
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
1226
1415
|
inputTokens: z.ZodNumber;
|
|
1227
1416
|
outputTokens: z.ZodNumber;
|
|
1228
|
-
|
|
1417
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
1418
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
1229
1419
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
1230
1420
|
toolCallCount: z.ZodNumber;
|
|
1231
1421
|
filesReadCount: z.ZodNumber;
|
|
@@ -1254,6 +1444,7 @@ export declare const ValidatedTaskCompletedEventSchema: z.ZodObject<{
|
|
|
1254
1444
|
queue_hygiene: "queue_hygiene";
|
|
1255
1445
|
}>>;
|
|
1256
1446
|
}, z.core.$strict>, z.ZodObject<{
|
|
1447
|
+
round: z.ZodNumber;
|
|
1257
1448
|
model: z.ZodString;
|
|
1258
1449
|
tier: z.ZodEnum<{
|
|
1259
1450
|
standard: "standard";
|
|
@@ -1261,10 +1452,11 @@ export declare const ValidatedTaskCompletedEventSchema: z.ZodObject<{
|
|
|
1261
1452
|
main: "main";
|
|
1262
1453
|
}>;
|
|
1263
1454
|
durationMs: z.ZodNumber;
|
|
1264
|
-
costUSD: z.ZodNumber
|
|
1455
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
1265
1456
|
inputTokens: z.ZodNumber;
|
|
1266
1457
|
outputTokens: z.ZodNumber;
|
|
1267
|
-
|
|
1458
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
1459
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
1268
1460
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
1269
1461
|
toolCallCount: z.ZodNumber;
|
|
1270
1462
|
filesReadCount: z.ZodNumber;
|
|
@@ -1281,11 +1473,12 @@ export declare const ValidatedTaskCompletedEventSchema: z.ZodObject<{
|
|
|
1281
1473
|
}>;
|
|
1282
1474
|
skipReason: z.ZodNullable<z.ZodEnum<{
|
|
1283
1475
|
no_command: "no_command";
|
|
1284
|
-
other: "other";
|
|
1285
1476
|
not_applicable: "not_applicable";
|
|
1286
1477
|
dirty_worktree: "dirty_worktree";
|
|
1478
|
+
other: "other";
|
|
1287
1479
|
}>>;
|
|
1288
1480
|
}, z.core.$strict>, z.ZodObject<{
|
|
1481
|
+
round: z.ZodNumber;
|
|
1289
1482
|
model: z.ZodString;
|
|
1290
1483
|
tier: z.ZodEnum<{
|
|
1291
1484
|
standard: "standard";
|
|
@@ -1293,10 +1486,11 @@ export declare const ValidatedTaskCompletedEventSchema: z.ZodObject<{
|
|
|
1293
1486
|
main: "main";
|
|
1294
1487
|
}>;
|
|
1295
1488
|
durationMs: z.ZodNumber;
|
|
1296
|
-
costUSD: z.ZodNumber
|
|
1489
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
1297
1490
|
inputTokens: z.ZodNumber;
|
|
1298
1491
|
outputTokens: z.ZodNumber;
|
|
1299
|
-
|
|
1492
|
+
cachedReadTokens: z.ZodNullable<z.ZodNumber>;
|
|
1493
|
+
cachedCreationTokens: z.ZodNullable<z.ZodNumber>;
|
|
1300
1494
|
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
1301
1495
|
toolCallCount: z.ZodNumber;
|
|
1302
1496
|
filesReadCount: z.ZodNumber;
|