@tangle-network/sandbox 1.0.219 → 1.0.220
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/agent/index.d.ts +4 -4
- package/dist/agent/index.js +5 -5
- package/dist/agent/preview.d.ts +1 -1
- package/dist/agent/preview.js +1 -1
- package/dist/{agent-run-outcome-DW_S8f-u.d.ts → agent-run-outcome-DAN_EtGZ.d.ts} +2 -2
- package/dist/{api-request-D2LC0l2F.js → api-request-BTdRjI3w.js} +1 -1
- package/dist/{browser-interactive-control-controller-s9d82qc9.d.ts → browser-interactive-control-controller-ow-Ebkd1.d.ts} +1 -1
- package/dist/{chunked-upload-BqjKs2uB.js → chunked-upload-CAzx8Ijy.js} +1 -1
- package/dist/{chunked-upload-file-CxKU6yTt.js → chunked-upload-file-WZPpuUE0.js} +1 -1
- package/dist/{client-CSMb6fHz.d.ts → client-CiFnarzL.d.ts} +9 -61
- package/dist/{client-CSUTe70Z.js → client-ronGvKYn.js} +74 -86
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-Bv22hvgZ.js → collaboration-BEGUYvm7.js} +1 -1
- package/dist/{core-B6Ma53O9.js → core-CmGAuOS3.js} +2 -2
- package/dist/core.d.ts +6 -6
- package/dist/core.js +5 -5
- package/dist/{errors-Bh1udpJ0.js → errors-Bprs6YnT.js} +1 -84
- package/dist/{file-download-B9UceD-P.js → file-download-DHpnw8of.js} +1 -1
- package/dist/{index-DB4MbfIb.d.ts → index-B1kH9ptD.d.ts} +5 -5
- package/dist/index.d.ts +10 -10
- package/dist/index.js +9 -9
- package/dist/intelligence/index.js +3 -3
- package/dist/interactive-control.d.ts +1 -1
- package/dist/{interactive-controller-D8QKEwjM.js → interactive-controller-YdvqdSm5.js} +2 -2
- package/dist/{interactive-controller-Cl9Ablmg.d.ts → interactive-controller-ZoRprm7c.d.ts} +3 -3
- package/dist/{lines-DvSNh5dD.js → lines-C06U-ma3.js} +1 -1
- package/dist/{lines-DXdAUnUf.d.ts → lines-stVnnbw8.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/lines.js +1 -1
- package/dist/{mcp-local-FNH3uRiu.js → mcp-local-Ck7jH01_.js} +2 -2
- package/dist/{preview-DhFcCERz.d.ts → preview-DTqp8fY5.d.ts} +3 -3
- package/dist/{public-templates-D0QpNlni.d.ts → public-templates-CaJoEbFK.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/public-templates.js +1 -1
- package/dist/{raw-evidence-archive-DCQgYdIF.js → raw-evidence-archive-DD9clPQd.js} +1 -1
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +4 -4
- package/dist/{sandbox-DAQl7rIK.js → sandbox-CSV_5JRt.js} +9 -9
- package/dist/select-seat-command.d.ts +1 -1
- package/dist/select-seat-command.js +1 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-o6oHKdr-.js → tangle-D5604U4K.js} +2 -2
- package/dist/{terminal-stream-types-B74nb8jV.d.ts → terminal-stream-types-77ia9qZ8.d.ts} +1468 -407
- package/dist/{types-DzB-PS9p.d.ts → types-C0hvqGim.d.ts} +5 -1126
- package/package.json +5 -5
|
@@ -1,394 +1,923 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
|
-
//#region ../../../packages/runtime-contracts/dist/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
readonly
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
readonly
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
readonly
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
readonly
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
readonly
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
readonly
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
3
|
+
//#region ../../../packages/runtime-contracts/dist/batch-events.d.ts
|
|
4
|
+
/** Token and tool usage emitted when one batch task completes. */
|
|
5
|
+
declare const batchTaskUsageSchema: z.ZodObject<{
|
|
6
|
+
inputTokens: z.ZodNumber;
|
|
7
|
+
outputTokens: z.ZodNumber;
|
|
8
|
+
cacheReadTokens: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
toolCallCount: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
cost: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
}, z.core.$strict>;
|
|
14
|
+
type BatchTaskUsage = z.infer<typeof batchTaskUsageSchema>;
|
|
15
|
+
/** Per-backend aggregate emitted by `batch.completed`. */
|
|
16
|
+
declare const batchBackendStatsSchema: z.ZodObject<{
|
|
17
|
+
success: z.ZodNumber;
|
|
18
|
+
failure: z.ZodNumber;
|
|
19
|
+
retries: z.ZodNumber;
|
|
20
|
+
successRate: z.ZodNumber;
|
|
21
|
+
backendId: z.ZodString;
|
|
22
|
+
backendType: z.ZodEnum<{
|
|
23
|
+
"claude-code": "claude-code";
|
|
24
|
+
nanoclaw: "nanoclaw";
|
|
25
|
+
codex: "codex";
|
|
26
|
+
opencode: "opencode";
|
|
27
|
+
"kimi-code": "kimi-code";
|
|
28
|
+
pi: "pi";
|
|
29
|
+
prime: "prime";
|
|
30
|
+
hermes: "hermes";
|
|
31
|
+
openclaw: "openclaw";
|
|
32
|
+
amp: "amp";
|
|
33
|
+
"factory-droids": "factory-droids";
|
|
34
|
+
cursor: "cursor";
|
|
35
|
+
grok: "grok";
|
|
36
|
+
acp: "acp";
|
|
37
|
+
"cli-base": "cli-base";
|
|
38
|
+
}>;
|
|
39
|
+
backendLabel: z.ZodOptional<z.ZodString>;
|
|
40
|
+
backendModel: z.ZodOptional<z.ZodString>;
|
|
41
|
+
}, z.core.$strict>;
|
|
42
|
+
type BatchBackendStats = z.infer<typeof batchBackendStatsSchema>;
|
|
43
|
+
/** One sidecar allocated to a backend group. */
|
|
44
|
+
declare const batchSidecarGroupSchema: z.ZodObject<{
|
|
45
|
+
backendType: z.ZodEnum<{
|
|
46
|
+
"claude-code": "claude-code";
|
|
47
|
+
nanoclaw: "nanoclaw";
|
|
48
|
+
codex: "codex";
|
|
49
|
+
opencode: "opencode";
|
|
50
|
+
"kimi-code": "kimi-code";
|
|
51
|
+
pi: "pi";
|
|
52
|
+
prime: "prime";
|
|
53
|
+
hermes: "hermes";
|
|
54
|
+
openclaw: "openclaw";
|
|
55
|
+
amp: "amp";
|
|
56
|
+
"factory-droids": "factory-droids";
|
|
57
|
+
cursor: "cursor";
|
|
58
|
+
grok: "grok";
|
|
59
|
+
acp: "acp";
|
|
60
|
+
"cli-base": "cli-base";
|
|
61
|
+
}>;
|
|
62
|
+
backendIds: z.ZodArray<z.ZodString>;
|
|
63
|
+
sidecarId: z.ZodString;
|
|
64
|
+
variants: z.ZodNumber;
|
|
65
|
+
}, z.core.$strict>;
|
|
66
|
+
type BatchSidecarGroup = z.infer<typeof batchSidecarGroupSchema>;
|
|
67
|
+
declare const batchEventDataSchemas: {
|
|
68
|
+
readonly "batch.provisioning": z.ZodObject<{
|
|
69
|
+
desiredCapacity: z.ZodNumber;
|
|
70
|
+
currentCapacity: z.ZodNumber;
|
|
71
|
+
provisionTimeoutMs: z.ZodNumber;
|
|
72
|
+
}, z.core.$strict>;
|
|
73
|
+
readonly "batch.provisioned": z.ZodObject<{
|
|
74
|
+
capacity: z.ZodNumber;
|
|
75
|
+
}, z.core.$strict>;
|
|
76
|
+
readonly "batch.started": z.ZodObject<{
|
|
77
|
+
taskCount: z.ZodNumber;
|
|
78
|
+
backendCount: z.ZodNumber;
|
|
79
|
+
totalExecutions: z.ZodNumber;
|
|
80
|
+
backendIds: z.ZodArray<z.ZodString>;
|
|
81
|
+
backendTypes: z.ZodArray<z.ZodEnum<{
|
|
82
|
+
"claude-code": "claude-code";
|
|
83
|
+
nanoclaw: "nanoclaw";
|
|
84
|
+
codex: "codex";
|
|
85
|
+
opencode: "opencode";
|
|
86
|
+
"kimi-code": "kimi-code";
|
|
87
|
+
pi: "pi";
|
|
88
|
+
prime: "prime";
|
|
89
|
+
hermes: "hermes";
|
|
90
|
+
openclaw: "openclaw";
|
|
91
|
+
amp: "amp";
|
|
92
|
+
"factory-droids": "factory-droids";
|
|
93
|
+
cursor: "cursor";
|
|
94
|
+
grok: "grok";
|
|
95
|
+
acp: "acp";
|
|
96
|
+
"cli-base": "cli-base";
|
|
97
|
+
}>>;
|
|
98
|
+
backendGroups: z.ZodNumber;
|
|
99
|
+
executionClass: z.ZodEnum<{
|
|
100
|
+
project: "project";
|
|
101
|
+
simulation: "simulation";
|
|
102
|
+
background: "background";
|
|
103
|
+
}>;
|
|
104
|
+
maxConcurrentPerSidecar: z.ZodNumber;
|
|
105
|
+
maxSidecarsTotal: z.ZodNumber;
|
|
106
|
+
driverCapacity: z.ZodNumber;
|
|
107
|
+
policyMaxConcurrentPerSidecar: z.ZodNullable<z.ZodNumber>;
|
|
108
|
+
}, z.core.$strict>;
|
|
109
|
+
readonly "sidecars.allocated": z.ZodObject<{
|
|
110
|
+
count: z.ZodNumber;
|
|
111
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
112
|
+
backendType: z.ZodEnum<{
|
|
113
|
+
"claude-code": "claude-code";
|
|
114
|
+
nanoclaw: "nanoclaw";
|
|
115
|
+
codex: "codex";
|
|
116
|
+
opencode: "opencode";
|
|
117
|
+
"kimi-code": "kimi-code";
|
|
118
|
+
pi: "pi";
|
|
119
|
+
prime: "prime";
|
|
120
|
+
hermes: "hermes";
|
|
121
|
+
openclaw: "openclaw";
|
|
122
|
+
amp: "amp";
|
|
123
|
+
"factory-droids": "factory-droids";
|
|
124
|
+
cursor: "cursor";
|
|
125
|
+
grok: "grok";
|
|
126
|
+
acp: "acp";
|
|
127
|
+
"cli-base": "cli-base";
|
|
128
|
+
}>;
|
|
129
|
+
backendIds: z.ZodArray<z.ZodString>;
|
|
130
|
+
sidecarId: z.ZodString;
|
|
131
|
+
variants: z.ZodNumber;
|
|
132
|
+
}, z.core.$strict>>;
|
|
133
|
+
executionClass: z.ZodEnum<{
|
|
134
|
+
project: "project";
|
|
135
|
+
simulation: "simulation";
|
|
136
|
+
background: "background";
|
|
137
|
+
}>;
|
|
138
|
+
maxConcurrentPerSidecar: z.ZodNumber;
|
|
139
|
+
maxSidecarsTotal: z.ZodNumber;
|
|
140
|
+
driverCapacity: z.ZodNumber;
|
|
141
|
+
policyMaxConcurrentPerSidecar: z.ZodNullable<z.ZodNumber>;
|
|
142
|
+
}, z.core.$strict>;
|
|
143
|
+
readonly "batch.completed": z.ZodObject<{
|
|
144
|
+
taskCount: z.ZodNumber;
|
|
145
|
+
backendCount: z.ZodNumber;
|
|
146
|
+
totalExecutions: z.ZodNumber;
|
|
147
|
+
totalSuccess: z.ZodNumber;
|
|
148
|
+
totalFailure: z.ZodNumber;
|
|
149
|
+
totalRetries: z.ZodNumber;
|
|
150
|
+
successRate: z.ZodNumber;
|
|
151
|
+
byBackend: z.ZodArray<z.ZodObject<{
|
|
152
|
+
success: z.ZodNumber;
|
|
153
|
+
failure: z.ZodNumber;
|
|
154
|
+
retries: z.ZodNumber;
|
|
155
|
+
successRate: z.ZodNumber;
|
|
156
|
+
backendId: z.ZodString;
|
|
157
|
+
backendType: z.ZodEnum<{
|
|
158
|
+
"claude-code": "claude-code";
|
|
159
|
+
nanoclaw: "nanoclaw";
|
|
160
|
+
codex: "codex";
|
|
161
|
+
opencode: "opencode";
|
|
162
|
+
"kimi-code": "kimi-code";
|
|
163
|
+
pi: "pi";
|
|
164
|
+
prime: "prime";
|
|
165
|
+
hermes: "hermes";
|
|
166
|
+
openclaw: "openclaw";
|
|
167
|
+
amp: "amp";
|
|
168
|
+
"factory-droids": "factory-droids";
|
|
169
|
+
cursor: "cursor";
|
|
170
|
+
grok: "grok";
|
|
171
|
+
acp: "acp";
|
|
172
|
+
"cli-base": "cli-base";
|
|
173
|
+
}>;
|
|
174
|
+
backendLabel: z.ZodOptional<z.ZodString>;
|
|
175
|
+
backendModel: z.ZodOptional<z.ZodString>;
|
|
176
|
+
}, z.core.$strict>>;
|
|
177
|
+
}, z.core.$strict>;
|
|
178
|
+
readonly "batch.failed": z.ZodObject<{
|
|
179
|
+
error: z.ZodString;
|
|
180
|
+
cleanup: z.ZodOptional<z.ZodObject<{
|
|
181
|
+
isComplete: z.ZodBoolean;
|
|
182
|
+
pendingJobIds: z.ZodArray<z.ZodString>;
|
|
183
|
+
}, z.core.$strict>>;
|
|
184
|
+
backendIds: z.ZodArray<z.ZodString>;
|
|
185
|
+
}, z.core.$strict>;
|
|
186
|
+
readonly "batch.persistent": z.ZodObject<{
|
|
187
|
+
message: z.ZodString;
|
|
188
|
+
sidecarCount: z.ZodNumber;
|
|
189
|
+
}, z.core.$strict>;
|
|
190
|
+
readonly "batch.grace_period": z.ZodObject<{
|
|
191
|
+
message: z.ZodString;
|
|
192
|
+
sidecarCount: z.ZodNumber;
|
|
193
|
+
graceMs: z.ZodNumber;
|
|
194
|
+
sidecarIds: z.ZodArray<z.ZodString>;
|
|
195
|
+
}, z.core.$strict>;
|
|
196
|
+
readonly "task.started": z.ZodObject<{
|
|
197
|
+
index: z.ZodNumber;
|
|
198
|
+
total: z.ZodNumber;
|
|
199
|
+
attempt: z.ZodNumber;
|
|
200
|
+
retries: z.ZodNumber;
|
|
201
|
+
sidecarId: z.ZodString;
|
|
202
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
203
|
+
backendId: z.ZodString;
|
|
204
|
+
backendType: z.ZodEnum<{
|
|
205
|
+
"claude-code": "claude-code";
|
|
206
|
+
nanoclaw: "nanoclaw";
|
|
207
|
+
codex: "codex";
|
|
208
|
+
opencode: "opencode";
|
|
209
|
+
"kimi-code": "kimi-code";
|
|
210
|
+
pi: "pi";
|
|
211
|
+
prime: "prime";
|
|
212
|
+
hermes: "hermes";
|
|
213
|
+
openclaw: "openclaw";
|
|
214
|
+
amp: "amp";
|
|
215
|
+
"factory-droids": "factory-droids";
|
|
216
|
+
cursor: "cursor";
|
|
217
|
+
grok: "grok";
|
|
218
|
+
acp: "acp";
|
|
219
|
+
"cli-base": "cli-base";
|
|
220
|
+
}>;
|
|
221
|
+
backendLabel: z.ZodOptional<z.ZodString>;
|
|
222
|
+
backendModel: z.ZodOptional<z.ZodString>;
|
|
223
|
+
taskId: z.ZodString;
|
|
224
|
+
}, z.core.$strict>;
|
|
225
|
+
readonly "task.message.delta": z.ZodObject<{
|
|
226
|
+
sidecarId: z.ZodString;
|
|
227
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
228
|
+
value: z.ZodString;
|
|
229
|
+
valueMode: z.ZodEnum<{
|
|
230
|
+
delta: "delta";
|
|
231
|
+
snapshot: "snapshot";
|
|
232
|
+
}>;
|
|
233
|
+
part: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
234
|
+
backendId: z.ZodString;
|
|
235
|
+
backendType: z.ZodEnum<{
|
|
236
|
+
"claude-code": "claude-code";
|
|
237
|
+
nanoclaw: "nanoclaw";
|
|
238
|
+
codex: "codex";
|
|
239
|
+
opencode: "opencode";
|
|
240
|
+
"kimi-code": "kimi-code";
|
|
241
|
+
pi: "pi";
|
|
242
|
+
prime: "prime";
|
|
243
|
+
hermes: "hermes";
|
|
244
|
+
openclaw: "openclaw";
|
|
245
|
+
amp: "amp";
|
|
246
|
+
"factory-droids": "factory-droids";
|
|
247
|
+
cursor: "cursor";
|
|
248
|
+
grok: "grok";
|
|
249
|
+
acp: "acp";
|
|
250
|
+
"cli-base": "cli-base";
|
|
251
|
+
}>;
|
|
252
|
+
backendLabel: z.ZodOptional<z.ZodString>;
|
|
253
|
+
backendModel: z.ZodOptional<z.ZodString>;
|
|
254
|
+
taskId: z.ZodString;
|
|
255
|
+
}, z.core.$strict>;
|
|
256
|
+
readonly "task.reasoning": z.ZodObject<{
|
|
257
|
+
sidecarId: z.ZodString;
|
|
258
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
259
|
+
value: z.ZodString;
|
|
260
|
+
valueMode: z.ZodEnum<{
|
|
261
|
+
delta: "delta";
|
|
262
|
+
snapshot: "snapshot";
|
|
263
|
+
}>;
|
|
264
|
+
part: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
265
|
+
backendId: z.ZodString;
|
|
266
|
+
backendType: z.ZodEnum<{
|
|
267
|
+
"claude-code": "claude-code";
|
|
268
|
+
nanoclaw: "nanoclaw";
|
|
269
|
+
codex: "codex";
|
|
270
|
+
opencode: "opencode";
|
|
271
|
+
"kimi-code": "kimi-code";
|
|
272
|
+
pi: "pi";
|
|
273
|
+
prime: "prime";
|
|
274
|
+
hermes: "hermes";
|
|
275
|
+
openclaw: "openclaw";
|
|
276
|
+
amp: "amp";
|
|
277
|
+
"factory-droids": "factory-droids";
|
|
278
|
+
cursor: "cursor";
|
|
279
|
+
grok: "grok";
|
|
280
|
+
acp: "acp";
|
|
281
|
+
"cli-base": "cli-base";
|
|
282
|
+
}>;
|
|
283
|
+
backendLabel: z.ZodOptional<z.ZodString>;
|
|
284
|
+
backendModel: z.ZodOptional<z.ZodString>;
|
|
285
|
+
taskId: z.ZodString;
|
|
286
|
+
}, z.core.$strict>;
|
|
287
|
+
readonly "task.tool.updated": z.ZodObject<{
|
|
288
|
+
sidecarId: z.ZodString;
|
|
289
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
290
|
+
part: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
291
|
+
backendId: z.ZodString;
|
|
292
|
+
backendType: z.ZodEnum<{
|
|
293
|
+
"claude-code": "claude-code";
|
|
294
|
+
nanoclaw: "nanoclaw";
|
|
295
|
+
codex: "codex";
|
|
296
|
+
opencode: "opencode";
|
|
297
|
+
"kimi-code": "kimi-code";
|
|
298
|
+
pi: "pi";
|
|
299
|
+
prime: "prime";
|
|
300
|
+
hermes: "hermes";
|
|
301
|
+
openclaw: "openclaw";
|
|
302
|
+
amp: "amp";
|
|
303
|
+
"factory-droids": "factory-droids";
|
|
304
|
+
cursor: "cursor";
|
|
305
|
+
grok: "grok";
|
|
306
|
+
acp: "acp";
|
|
307
|
+
"cli-base": "cli-base";
|
|
308
|
+
}>;
|
|
309
|
+
backendLabel: z.ZodOptional<z.ZodString>;
|
|
310
|
+
backendModel: z.ZodOptional<z.ZodString>;
|
|
311
|
+
taskId: z.ZodString;
|
|
312
|
+
}, z.core.$strict>;
|
|
313
|
+
readonly "task.completed": z.ZodObject<{
|
|
314
|
+
durationMs: z.ZodNumber;
|
|
315
|
+
attempt: z.ZodNumber;
|
|
316
|
+
retries: z.ZodNumber;
|
|
317
|
+
sidecarId: z.ZodString;
|
|
318
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
319
|
+
resultSummary: z.ZodOptional<z.ZodString>;
|
|
320
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
321
|
+
usage: z.ZodObject<{
|
|
322
|
+
inputTokens: z.ZodNumber;
|
|
323
|
+
outputTokens: z.ZodNumber;
|
|
324
|
+
cacheReadTokens: z.ZodOptional<z.ZodNumber>;
|
|
325
|
+
cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
|
|
326
|
+
toolCallCount: z.ZodOptional<z.ZodNumber>;
|
|
327
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
328
|
+
cost: z.ZodOptional<z.ZodNumber>;
|
|
329
|
+
}, z.core.$strict>;
|
|
330
|
+
backendId: z.ZodString;
|
|
331
|
+
backendType: z.ZodEnum<{
|
|
332
|
+
"claude-code": "claude-code";
|
|
333
|
+
nanoclaw: "nanoclaw";
|
|
334
|
+
codex: "codex";
|
|
335
|
+
opencode: "opencode";
|
|
336
|
+
"kimi-code": "kimi-code";
|
|
337
|
+
pi: "pi";
|
|
338
|
+
prime: "prime";
|
|
339
|
+
hermes: "hermes";
|
|
340
|
+
openclaw: "openclaw";
|
|
341
|
+
amp: "amp";
|
|
342
|
+
"factory-droids": "factory-droids";
|
|
343
|
+
cursor: "cursor";
|
|
344
|
+
grok: "grok";
|
|
345
|
+
acp: "acp";
|
|
346
|
+
"cli-base": "cli-base";
|
|
347
|
+
}>;
|
|
348
|
+
backendLabel: z.ZodOptional<z.ZodString>;
|
|
349
|
+
backendModel: z.ZodOptional<z.ZodString>;
|
|
350
|
+
taskId: z.ZodString;
|
|
351
|
+
}, z.core.$strict>;
|
|
352
|
+
readonly "task.failed": z.ZodObject<{
|
|
353
|
+
durationMs: z.ZodNumber;
|
|
354
|
+
attempt: z.ZodNumber;
|
|
355
|
+
retries: z.ZodNumber;
|
|
356
|
+
error: z.ZodString;
|
|
357
|
+
sidecarId: z.ZodOptional<z.ZodString>;
|
|
358
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
359
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
360
|
+
inputTokens: z.ZodNumber;
|
|
361
|
+
outputTokens: z.ZodNumber;
|
|
362
|
+
cacheReadTokens: z.ZodOptional<z.ZodNumber>;
|
|
363
|
+
cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
|
|
364
|
+
toolCallCount: z.ZodOptional<z.ZodNumber>;
|
|
365
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
366
|
+
cost: z.ZodOptional<z.ZodNumber>;
|
|
367
|
+
}, z.core.$strict>>;
|
|
368
|
+
backendId: z.ZodString;
|
|
369
|
+
backendType: z.ZodEnum<{
|
|
370
|
+
"claude-code": "claude-code";
|
|
371
|
+
nanoclaw: "nanoclaw";
|
|
372
|
+
codex: "codex";
|
|
373
|
+
opencode: "opencode";
|
|
374
|
+
"kimi-code": "kimi-code";
|
|
375
|
+
pi: "pi";
|
|
376
|
+
prime: "prime";
|
|
377
|
+
hermes: "hermes";
|
|
378
|
+
openclaw: "openclaw";
|
|
379
|
+
amp: "amp";
|
|
380
|
+
"factory-droids": "factory-droids";
|
|
381
|
+
cursor: "cursor";
|
|
382
|
+
grok: "grok";
|
|
383
|
+
acp: "acp";
|
|
384
|
+
"cli-base": "cli-base";
|
|
385
|
+
}>;
|
|
386
|
+
backendLabel: z.ZodOptional<z.ZodString>;
|
|
387
|
+
backendModel: z.ZodOptional<z.ZodString>;
|
|
388
|
+
taskId: z.ZodString;
|
|
389
|
+
}, z.core.$strict>;
|
|
390
|
+
readonly "task.retry": z.ZodObject<{
|
|
391
|
+
attempt: z.ZodNumber;
|
|
392
|
+
maxRetries: z.ZodNumber;
|
|
393
|
+
error: z.ZodString;
|
|
394
|
+
delayMs: z.ZodNumber;
|
|
395
|
+
executionClass: z.ZodEnum<{
|
|
396
|
+
project: "project";
|
|
397
|
+
simulation: "simulation";
|
|
398
|
+
background: "background";
|
|
399
|
+
}>;
|
|
400
|
+
sidecarId: z.ZodString;
|
|
401
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
402
|
+
backendId: z.ZodString;
|
|
403
|
+
backendType: z.ZodEnum<{
|
|
404
|
+
"claude-code": "claude-code";
|
|
405
|
+
nanoclaw: "nanoclaw";
|
|
406
|
+
codex: "codex";
|
|
407
|
+
opencode: "opencode";
|
|
408
|
+
"kimi-code": "kimi-code";
|
|
409
|
+
pi: "pi";
|
|
410
|
+
prime: "prime";
|
|
411
|
+
hermes: "hermes";
|
|
412
|
+
openclaw: "openclaw";
|
|
413
|
+
amp: "amp";
|
|
414
|
+
"factory-droids": "factory-droids";
|
|
415
|
+
cursor: "cursor";
|
|
416
|
+
grok: "grok";
|
|
417
|
+
acp: "acp";
|
|
418
|
+
"cli-base": "cli-base";
|
|
419
|
+
}>;
|
|
420
|
+
backendLabel: z.ZodOptional<z.ZodString>;
|
|
421
|
+
backendModel: z.ZodOptional<z.ZodString>;
|
|
422
|
+
taskId: z.ZodString;
|
|
423
|
+
}, z.core.$strict>;
|
|
424
|
+
readonly "backend.completed": z.ZodObject<{
|
|
425
|
+
sidecarIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
426
|
+
success: z.ZodNumber;
|
|
427
|
+
failure: z.ZodNumber;
|
|
428
|
+
retries: z.ZodNumber;
|
|
429
|
+
successRate: z.ZodNumber;
|
|
430
|
+
backendId: z.ZodString;
|
|
431
|
+
backendType: z.ZodEnum<{
|
|
432
|
+
"claude-code": "claude-code";
|
|
433
|
+
nanoclaw: "nanoclaw";
|
|
434
|
+
codex: "codex";
|
|
435
|
+
opencode: "opencode";
|
|
436
|
+
"kimi-code": "kimi-code";
|
|
437
|
+
pi: "pi";
|
|
438
|
+
prime: "prime";
|
|
439
|
+
hermes: "hermes";
|
|
440
|
+
openclaw: "openclaw";
|
|
441
|
+
amp: "amp";
|
|
442
|
+
"factory-droids": "factory-droids";
|
|
443
|
+
cursor: "cursor";
|
|
444
|
+
grok: "grok";
|
|
445
|
+
acp: "acp";
|
|
446
|
+
"cli-base": "cli-base";
|
|
447
|
+
}>;
|
|
448
|
+
backendLabel: z.ZodOptional<z.ZodString>;
|
|
449
|
+
backendModel: z.ZodOptional<z.ZodString>;
|
|
450
|
+
}, z.core.$strict>;
|
|
451
|
+
readonly "sidecar.releasing": z.ZodObject<{
|
|
452
|
+
sidecarId: z.ZodString;
|
|
453
|
+
}, z.core.$strict>;
|
|
454
|
+
readonly "sidecar.released": z.ZodObject<{
|
|
455
|
+
sidecarId: z.ZodString;
|
|
456
|
+
}, z.core.$strict>;
|
|
457
|
+
readonly "sidecar.release_pending": z.ZodObject<{
|
|
458
|
+
sidecarId: z.ZodString;
|
|
459
|
+
cleanupJobId: z.ZodOptional<z.ZodString>;
|
|
460
|
+
attempt: z.ZodNumber;
|
|
461
|
+
retryInMs: z.ZodNumber;
|
|
462
|
+
}, z.core.$strict>;
|
|
463
|
+
};
|
|
464
|
+
/** Data payloads keyed by the SSE event name emitted by `/batch/run`. */
|
|
465
|
+
type BatchEventDataMap = { [K in keyof typeof batchEventDataSchemas]: z.infer<(typeof batchEventDataSchemas)[K]> };
|
|
466
|
+
/** Runtime parser and discriminated type for one batch SSE event. */
|
|
467
|
+
declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
468
|
+
type: z.ZodLiteral<"batch.provisioning">;
|
|
469
|
+
data: z.ZodObject<{
|
|
470
|
+
desiredCapacity: z.ZodNumber;
|
|
471
|
+
currentCapacity: z.ZodNumber;
|
|
472
|
+
provisionTimeoutMs: z.ZodNumber;
|
|
473
|
+
}, z.core.$strict>;
|
|
474
|
+
id: z.ZodOptional<z.ZodString>;
|
|
475
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
476
|
+
type: z.ZodLiteral<"batch.provisioned">;
|
|
477
|
+
data: z.ZodObject<{
|
|
478
|
+
capacity: z.ZodNumber;
|
|
479
|
+
}, z.core.$strict>;
|
|
480
|
+
id: z.ZodOptional<z.ZodString>;
|
|
481
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
482
|
+
type: z.ZodLiteral<"batch.started">;
|
|
483
|
+
data: z.ZodObject<{
|
|
484
|
+
taskCount: z.ZodNumber;
|
|
485
|
+
backendCount: z.ZodNumber;
|
|
486
|
+
totalExecutions: z.ZodNumber;
|
|
487
|
+
backendIds: z.ZodArray<z.ZodString>;
|
|
488
|
+
backendTypes: z.ZodArray<z.ZodEnum<{
|
|
489
|
+
"claude-code": "claude-code";
|
|
490
|
+
nanoclaw: "nanoclaw";
|
|
491
|
+
codex: "codex";
|
|
492
|
+
opencode: "opencode";
|
|
493
|
+
"kimi-code": "kimi-code";
|
|
494
|
+
pi: "pi";
|
|
495
|
+
prime: "prime";
|
|
496
|
+
hermes: "hermes";
|
|
497
|
+
openclaw: "openclaw";
|
|
498
|
+
amp: "amp";
|
|
499
|
+
"factory-droids": "factory-droids";
|
|
500
|
+
cursor: "cursor";
|
|
501
|
+
grok: "grok";
|
|
502
|
+
acp: "acp";
|
|
503
|
+
"cli-base": "cli-base";
|
|
504
|
+
}>>;
|
|
505
|
+
backendGroups: z.ZodNumber;
|
|
506
|
+
executionClass: z.ZodEnum<{
|
|
507
|
+
project: "project";
|
|
508
|
+
simulation: "simulation";
|
|
509
|
+
background: "background";
|
|
510
|
+
}>;
|
|
511
|
+
maxConcurrentPerSidecar: z.ZodNumber;
|
|
512
|
+
maxSidecarsTotal: z.ZodNumber;
|
|
513
|
+
driverCapacity: z.ZodNumber;
|
|
514
|
+
policyMaxConcurrentPerSidecar: z.ZodNullable<z.ZodNumber>;
|
|
515
|
+
}, z.core.$strict>;
|
|
516
|
+
id: z.ZodOptional<z.ZodString>;
|
|
517
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
518
|
+
type: z.ZodLiteral<"sidecars.allocated">;
|
|
519
|
+
data: z.ZodObject<{
|
|
520
|
+
count: z.ZodNumber;
|
|
521
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
522
|
+
backendType: z.ZodEnum<{
|
|
523
|
+
"claude-code": "claude-code";
|
|
524
|
+
nanoclaw: "nanoclaw";
|
|
525
|
+
codex: "codex";
|
|
526
|
+
opencode: "opencode";
|
|
527
|
+
"kimi-code": "kimi-code";
|
|
528
|
+
pi: "pi";
|
|
529
|
+
prime: "prime";
|
|
530
|
+
hermes: "hermes";
|
|
531
|
+
openclaw: "openclaw";
|
|
532
|
+
amp: "amp";
|
|
533
|
+
"factory-droids": "factory-droids";
|
|
534
|
+
cursor: "cursor";
|
|
535
|
+
grok: "grok";
|
|
536
|
+
acp: "acp";
|
|
537
|
+
"cli-base": "cli-base";
|
|
538
|
+
}>;
|
|
539
|
+
backendIds: z.ZodArray<z.ZodString>;
|
|
540
|
+
sidecarId: z.ZodString;
|
|
541
|
+
variants: z.ZodNumber;
|
|
542
|
+
}, z.core.$strict>>;
|
|
543
|
+
executionClass: z.ZodEnum<{
|
|
544
|
+
project: "project";
|
|
545
|
+
simulation: "simulation";
|
|
546
|
+
background: "background";
|
|
547
|
+
}>;
|
|
548
|
+
maxConcurrentPerSidecar: z.ZodNumber;
|
|
549
|
+
maxSidecarsTotal: z.ZodNumber;
|
|
550
|
+
driverCapacity: z.ZodNumber;
|
|
551
|
+
policyMaxConcurrentPerSidecar: z.ZodNullable<z.ZodNumber>;
|
|
552
|
+
}, z.core.$strict>;
|
|
553
|
+
id: z.ZodOptional<z.ZodString>;
|
|
554
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
555
|
+
type: z.ZodLiteral<"batch.completed">;
|
|
556
|
+
data: z.ZodObject<{
|
|
557
|
+
taskCount: z.ZodNumber;
|
|
558
|
+
backendCount: z.ZodNumber;
|
|
559
|
+
totalExecutions: z.ZodNumber;
|
|
560
|
+
totalSuccess: z.ZodNumber;
|
|
561
|
+
totalFailure: z.ZodNumber;
|
|
562
|
+
totalRetries: z.ZodNumber;
|
|
563
|
+
successRate: z.ZodNumber;
|
|
564
|
+
byBackend: z.ZodArray<z.ZodObject<{
|
|
565
|
+
success: z.ZodNumber;
|
|
566
|
+
failure: z.ZodNumber;
|
|
567
|
+
retries: z.ZodNumber;
|
|
568
|
+
successRate: z.ZodNumber;
|
|
569
|
+
backendId: z.ZodString;
|
|
570
|
+
backendType: z.ZodEnum<{
|
|
571
|
+
"claude-code": "claude-code";
|
|
572
|
+
nanoclaw: "nanoclaw";
|
|
573
|
+
codex: "codex";
|
|
574
|
+
opencode: "opencode";
|
|
575
|
+
"kimi-code": "kimi-code";
|
|
576
|
+
pi: "pi";
|
|
577
|
+
prime: "prime";
|
|
578
|
+
hermes: "hermes";
|
|
579
|
+
openclaw: "openclaw";
|
|
580
|
+
amp: "amp";
|
|
581
|
+
"factory-droids": "factory-droids";
|
|
582
|
+
cursor: "cursor";
|
|
583
|
+
grok: "grok";
|
|
584
|
+
acp: "acp";
|
|
585
|
+
"cli-base": "cli-base";
|
|
586
|
+
}>;
|
|
587
|
+
backendLabel: z.ZodOptional<z.ZodString>;
|
|
588
|
+
backendModel: z.ZodOptional<z.ZodString>;
|
|
589
|
+
}, z.core.$strict>>;
|
|
590
|
+
}, z.core.$strict>;
|
|
591
|
+
id: z.ZodOptional<z.ZodString>;
|
|
592
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
593
|
+
type: z.ZodLiteral<"batch.failed">;
|
|
594
|
+
data: z.ZodObject<{
|
|
595
|
+
error: z.ZodString;
|
|
596
|
+
cleanup: z.ZodOptional<z.ZodObject<{
|
|
597
|
+
isComplete: z.ZodBoolean;
|
|
598
|
+
pendingJobIds: z.ZodArray<z.ZodString>;
|
|
599
|
+
}, z.core.$strict>>;
|
|
600
|
+
backendIds: z.ZodArray<z.ZodString>;
|
|
601
|
+
}, z.core.$strict>;
|
|
602
|
+
id: z.ZodOptional<z.ZodString>;
|
|
603
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
604
|
+
type: z.ZodLiteral<"batch.persistent">;
|
|
605
|
+
data: z.ZodObject<{
|
|
606
|
+
message: z.ZodString;
|
|
607
|
+
sidecarCount: z.ZodNumber;
|
|
608
|
+
}, z.core.$strict>;
|
|
609
|
+
id: z.ZodOptional<z.ZodString>;
|
|
610
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
611
|
+
type: z.ZodLiteral<"batch.grace_period">;
|
|
612
|
+
data: z.ZodObject<{
|
|
613
|
+
message: z.ZodString;
|
|
614
|
+
sidecarCount: z.ZodNumber;
|
|
615
|
+
graceMs: z.ZodNumber;
|
|
616
|
+
sidecarIds: z.ZodArray<z.ZodString>;
|
|
617
|
+
}, z.core.$strict>;
|
|
618
|
+
id: z.ZodOptional<z.ZodString>;
|
|
619
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
620
|
+
type: z.ZodLiteral<"task.started">;
|
|
621
|
+
data: z.ZodObject<{
|
|
622
|
+
index: z.ZodNumber;
|
|
623
|
+
total: z.ZodNumber;
|
|
624
|
+
attempt: z.ZodNumber;
|
|
625
|
+
retries: z.ZodNumber;
|
|
626
|
+
sidecarId: z.ZodString;
|
|
627
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
628
|
+
backendId: z.ZodString;
|
|
629
|
+
backendType: z.ZodEnum<{
|
|
630
|
+
"claude-code": "claude-code";
|
|
631
|
+
nanoclaw: "nanoclaw";
|
|
632
|
+
codex: "codex";
|
|
633
|
+
opencode: "opencode";
|
|
634
|
+
"kimi-code": "kimi-code";
|
|
635
|
+
pi: "pi";
|
|
636
|
+
prime: "prime";
|
|
637
|
+
hermes: "hermes";
|
|
638
|
+
openclaw: "openclaw";
|
|
639
|
+
amp: "amp";
|
|
640
|
+
"factory-droids": "factory-droids";
|
|
641
|
+
cursor: "cursor";
|
|
642
|
+
grok: "grok";
|
|
643
|
+
acp: "acp";
|
|
644
|
+
"cli-base": "cli-base";
|
|
645
|
+
}>;
|
|
646
|
+
backendLabel: z.ZodOptional<z.ZodString>;
|
|
647
|
+
backendModel: z.ZodOptional<z.ZodString>;
|
|
648
|
+
taskId: z.ZodString;
|
|
649
|
+
}, z.core.$strict>;
|
|
650
|
+
id: z.ZodOptional<z.ZodString>;
|
|
651
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
652
|
+
type: z.ZodLiteral<"task.message.delta">;
|
|
653
|
+
data: z.ZodObject<{
|
|
654
|
+
sidecarId: z.ZodString;
|
|
655
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
656
|
+
value: z.ZodString;
|
|
657
|
+
valueMode: z.ZodEnum<{
|
|
658
|
+
delta: "delta";
|
|
659
|
+
snapshot: "snapshot";
|
|
660
|
+
}>;
|
|
661
|
+
part: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
662
|
+
backendId: z.ZodString;
|
|
663
|
+
backendType: z.ZodEnum<{
|
|
664
|
+
"claude-code": "claude-code";
|
|
665
|
+
nanoclaw: "nanoclaw";
|
|
666
|
+
codex: "codex";
|
|
667
|
+
opencode: "opencode";
|
|
668
|
+
"kimi-code": "kimi-code";
|
|
669
|
+
pi: "pi";
|
|
670
|
+
prime: "prime";
|
|
671
|
+
hermes: "hermes";
|
|
672
|
+
openclaw: "openclaw";
|
|
673
|
+
amp: "amp";
|
|
674
|
+
"factory-droids": "factory-droids";
|
|
675
|
+
cursor: "cursor";
|
|
676
|
+
grok: "grok";
|
|
677
|
+
acp: "acp";
|
|
678
|
+
"cli-base": "cli-base";
|
|
679
|
+
}>;
|
|
680
|
+
backendLabel: z.ZodOptional<z.ZodString>;
|
|
681
|
+
backendModel: z.ZodOptional<z.ZodString>;
|
|
682
|
+
taskId: z.ZodString;
|
|
683
|
+
}, z.core.$strict>;
|
|
684
|
+
id: z.ZodOptional<z.ZodString>;
|
|
685
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
686
|
+
type: z.ZodLiteral<"task.reasoning">;
|
|
687
|
+
data: z.ZodObject<{
|
|
688
|
+
sidecarId: z.ZodString;
|
|
689
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
690
|
+
value: z.ZodString;
|
|
691
|
+
valueMode: z.ZodEnum<{
|
|
692
|
+
delta: "delta";
|
|
693
|
+
snapshot: "snapshot";
|
|
694
|
+
}>;
|
|
695
|
+
part: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
696
|
+
backendId: z.ZodString;
|
|
697
|
+
backendType: z.ZodEnum<{
|
|
698
|
+
"claude-code": "claude-code";
|
|
699
|
+
nanoclaw: "nanoclaw";
|
|
700
|
+
codex: "codex";
|
|
701
|
+
opencode: "opencode";
|
|
702
|
+
"kimi-code": "kimi-code";
|
|
703
|
+
pi: "pi";
|
|
704
|
+
prime: "prime";
|
|
705
|
+
hermes: "hermes";
|
|
706
|
+
openclaw: "openclaw";
|
|
707
|
+
amp: "amp";
|
|
708
|
+
"factory-droids": "factory-droids";
|
|
709
|
+
cursor: "cursor";
|
|
710
|
+
grok: "grok";
|
|
711
|
+
acp: "acp";
|
|
712
|
+
"cli-base": "cli-base";
|
|
713
|
+
}>;
|
|
714
|
+
backendLabel: z.ZodOptional<z.ZodString>;
|
|
715
|
+
backendModel: z.ZodOptional<z.ZodString>;
|
|
716
|
+
taskId: z.ZodString;
|
|
717
|
+
}, z.core.$strict>;
|
|
718
|
+
id: z.ZodOptional<z.ZodString>;
|
|
719
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
720
|
+
type: z.ZodLiteral<"task.tool.updated">;
|
|
721
|
+
data: z.ZodObject<{
|
|
722
|
+
sidecarId: z.ZodString;
|
|
723
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
724
|
+
part: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
725
|
+
backendId: z.ZodString;
|
|
726
|
+
backendType: z.ZodEnum<{
|
|
727
|
+
"claude-code": "claude-code";
|
|
728
|
+
nanoclaw: "nanoclaw";
|
|
729
|
+
codex: "codex";
|
|
730
|
+
opencode: "opencode";
|
|
731
|
+
"kimi-code": "kimi-code";
|
|
732
|
+
pi: "pi";
|
|
733
|
+
prime: "prime";
|
|
734
|
+
hermes: "hermes";
|
|
735
|
+
openclaw: "openclaw";
|
|
736
|
+
amp: "amp";
|
|
737
|
+
"factory-droids": "factory-droids";
|
|
738
|
+
cursor: "cursor";
|
|
739
|
+
grok: "grok";
|
|
740
|
+
acp: "acp";
|
|
741
|
+
"cli-base": "cli-base";
|
|
742
|
+
}>;
|
|
743
|
+
backendLabel: z.ZodOptional<z.ZodString>;
|
|
744
|
+
backendModel: z.ZodOptional<z.ZodString>;
|
|
745
|
+
taskId: z.ZodString;
|
|
746
|
+
}, z.core.$strict>;
|
|
747
|
+
id: z.ZodOptional<z.ZodString>;
|
|
748
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
749
|
+
type: z.ZodLiteral<"task.completed">;
|
|
750
|
+
data: z.ZodObject<{
|
|
751
|
+
durationMs: z.ZodNumber;
|
|
752
|
+
attempt: z.ZodNumber;
|
|
753
|
+
retries: z.ZodNumber;
|
|
754
|
+
sidecarId: z.ZodString;
|
|
755
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
756
|
+
resultSummary: z.ZodOptional<z.ZodString>;
|
|
757
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
758
|
+
usage: z.ZodObject<{
|
|
759
|
+
inputTokens: z.ZodNumber;
|
|
760
|
+
outputTokens: z.ZodNumber;
|
|
761
|
+
cacheReadTokens: z.ZodOptional<z.ZodNumber>;
|
|
762
|
+
cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
|
|
763
|
+
toolCallCount: z.ZodOptional<z.ZodNumber>;
|
|
764
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
765
|
+
cost: z.ZodOptional<z.ZodNumber>;
|
|
766
|
+
}, z.core.$strict>;
|
|
767
|
+
backendId: z.ZodString;
|
|
768
|
+
backendType: z.ZodEnum<{
|
|
769
|
+
"claude-code": "claude-code";
|
|
770
|
+
nanoclaw: "nanoclaw";
|
|
771
|
+
codex: "codex";
|
|
772
|
+
opencode: "opencode";
|
|
773
|
+
"kimi-code": "kimi-code";
|
|
774
|
+
pi: "pi";
|
|
775
|
+
prime: "prime";
|
|
776
|
+
hermes: "hermes";
|
|
777
|
+
openclaw: "openclaw";
|
|
778
|
+
amp: "amp";
|
|
779
|
+
"factory-droids": "factory-droids";
|
|
780
|
+
cursor: "cursor";
|
|
781
|
+
grok: "grok";
|
|
782
|
+
acp: "acp";
|
|
783
|
+
"cli-base": "cli-base";
|
|
784
|
+
}>;
|
|
785
|
+
backendLabel: z.ZodOptional<z.ZodString>;
|
|
786
|
+
backendModel: z.ZodOptional<z.ZodString>;
|
|
787
|
+
taskId: z.ZodString;
|
|
788
|
+
}, z.core.$strict>;
|
|
789
|
+
id: z.ZodOptional<z.ZodString>;
|
|
790
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
791
|
+
type: z.ZodLiteral<"task.failed">;
|
|
792
|
+
data: z.ZodObject<{
|
|
793
|
+
durationMs: z.ZodNumber;
|
|
794
|
+
attempt: z.ZodNumber;
|
|
795
|
+
retries: z.ZodNumber;
|
|
796
|
+
error: z.ZodString;
|
|
797
|
+
sidecarId: z.ZodOptional<z.ZodString>;
|
|
798
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
799
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
800
|
+
inputTokens: z.ZodNumber;
|
|
801
|
+
outputTokens: z.ZodNumber;
|
|
802
|
+
cacheReadTokens: z.ZodOptional<z.ZodNumber>;
|
|
803
|
+
cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
|
|
804
|
+
toolCallCount: z.ZodOptional<z.ZodNumber>;
|
|
805
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
806
|
+
cost: z.ZodOptional<z.ZodNumber>;
|
|
807
|
+
}, z.core.$strict>>;
|
|
808
|
+
backendId: z.ZodString;
|
|
809
|
+
backendType: z.ZodEnum<{
|
|
810
|
+
"claude-code": "claude-code";
|
|
811
|
+
nanoclaw: "nanoclaw";
|
|
812
|
+
codex: "codex";
|
|
813
|
+
opencode: "opencode";
|
|
814
|
+
"kimi-code": "kimi-code";
|
|
815
|
+
pi: "pi";
|
|
816
|
+
prime: "prime";
|
|
817
|
+
hermes: "hermes";
|
|
818
|
+
openclaw: "openclaw";
|
|
819
|
+
amp: "amp";
|
|
820
|
+
"factory-droids": "factory-droids";
|
|
821
|
+
cursor: "cursor";
|
|
822
|
+
grok: "grok";
|
|
823
|
+
acp: "acp";
|
|
824
|
+
"cli-base": "cli-base";
|
|
825
|
+
}>;
|
|
826
|
+
backendLabel: z.ZodOptional<z.ZodString>;
|
|
827
|
+
backendModel: z.ZodOptional<z.ZodString>;
|
|
828
|
+
taskId: z.ZodString;
|
|
829
|
+
}, z.core.$strict>;
|
|
830
|
+
id: z.ZodOptional<z.ZodString>;
|
|
831
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
832
|
+
type: z.ZodLiteral<"task.retry">;
|
|
833
|
+
data: z.ZodObject<{
|
|
834
|
+
attempt: z.ZodNumber;
|
|
835
|
+
maxRetries: z.ZodNumber;
|
|
836
|
+
error: z.ZodString;
|
|
837
|
+
delayMs: z.ZodNumber;
|
|
838
|
+
executionClass: z.ZodEnum<{
|
|
839
|
+
project: "project";
|
|
840
|
+
simulation: "simulation";
|
|
841
|
+
background: "background";
|
|
842
|
+
}>;
|
|
843
|
+
sidecarId: z.ZodString;
|
|
844
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
845
|
+
backendId: z.ZodString;
|
|
846
|
+
backendType: z.ZodEnum<{
|
|
847
|
+
"claude-code": "claude-code";
|
|
848
|
+
nanoclaw: "nanoclaw";
|
|
849
|
+
codex: "codex";
|
|
850
|
+
opencode: "opencode";
|
|
851
|
+
"kimi-code": "kimi-code";
|
|
852
|
+
pi: "pi";
|
|
853
|
+
prime: "prime";
|
|
854
|
+
hermes: "hermes";
|
|
855
|
+
openclaw: "openclaw";
|
|
856
|
+
amp: "amp";
|
|
857
|
+
"factory-droids": "factory-droids";
|
|
858
|
+
cursor: "cursor";
|
|
859
|
+
grok: "grok";
|
|
860
|
+
acp: "acp";
|
|
861
|
+
"cli-base": "cli-base";
|
|
862
|
+
}>;
|
|
863
|
+
backendLabel: z.ZodOptional<z.ZodString>;
|
|
864
|
+
backendModel: z.ZodOptional<z.ZodString>;
|
|
865
|
+
taskId: z.ZodString;
|
|
866
|
+
}, z.core.$strict>;
|
|
867
|
+
id: z.ZodOptional<z.ZodString>;
|
|
868
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
869
|
+
type: z.ZodLiteral<"backend.completed">;
|
|
870
|
+
data: z.ZodObject<{
|
|
871
|
+
sidecarIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
872
|
+
success: z.ZodNumber;
|
|
873
|
+
failure: z.ZodNumber;
|
|
874
|
+
retries: z.ZodNumber;
|
|
875
|
+
successRate: z.ZodNumber;
|
|
876
|
+
backendId: z.ZodString;
|
|
877
|
+
backendType: z.ZodEnum<{
|
|
878
|
+
"claude-code": "claude-code";
|
|
879
|
+
nanoclaw: "nanoclaw";
|
|
880
|
+
codex: "codex";
|
|
881
|
+
opencode: "opencode";
|
|
882
|
+
"kimi-code": "kimi-code";
|
|
883
|
+
pi: "pi";
|
|
884
|
+
prime: "prime";
|
|
885
|
+
hermes: "hermes";
|
|
886
|
+
openclaw: "openclaw";
|
|
887
|
+
amp: "amp";
|
|
888
|
+
"factory-droids": "factory-droids";
|
|
889
|
+
cursor: "cursor";
|
|
890
|
+
grok: "grok";
|
|
891
|
+
acp: "acp";
|
|
892
|
+
"cli-base": "cli-base";
|
|
893
|
+
}>;
|
|
894
|
+
backendLabel: z.ZodOptional<z.ZodString>;
|
|
895
|
+
backendModel: z.ZodOptional<z.ZodString>;
|
|
896
|
+
}, z.core.$strict>;
|
|
897
|
+
id: z.ZodOptional<z.ZodString>;
|
|
898
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
899
|
+
type: z.ZodLiteral<"sidecar.releasing">;
|
|
900
|
+
data: z.ZodObject<{
|
|
901
|
+
sidecarId: z.ZodString;
|
|
902
|
+
}, z.core.$strict>;
|
|
903
|
+
id: z.ZodOptional<z.ZodString>;
|
|
904
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
905
|
+
type: z.ZodLiteral<"sidecar.released">;
|
|
906
|
+
data: z.ZodObject<{
|
|
907
|
+
sidecarId: z.ZodString;
|
|
908
|
+
}, z.core.$strict>;
|
|
909
|
+
id: z.ZodOptional<z.ZodString>;
|
|
910
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
911
|
+
type: z.ZodLiteral<"sidecar.release_pending">;
|
|
912
|
+
data: z.ZodObject<{
|
|
913
|
+
sidecarId: z.ZodString;
|
|
914
|
+
cleanupJobId: z.ZodOptional<z.ZodString>;
|
|
915
|
+
attempt: z.ZodNumber;
|
|
916
|
+
retryInMs: z.ZodNumber;
|
|
917
|
+
}, z.core.$strict>;
|
|
918
|
+
id: z.ZodOptional<z.ZodString>;
|
|
919
|
+
}, z.core.$strict>], "type">;
|
|
920
|
+
type BatchEvent = z.infer<typeof batchEventSchema>;
|
|
392
921
|
//#endregion
|
|
393
922
|
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.13/node_modules/@tangle-network/agent-interface/dist/plan.d.ts
|
|
394
923
|
/**
|
|
@@ -2514,29 +3043,561 @@ interface AgentRuntimeAttachments {
|
|
|
2514
3043
|
mcp: Record<string, AgentProfileMcpServer>;
|
|
2515
3044
|
}
|
|
2516
3045
|
//#endregion
|
|
2517
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.13/node_modules/@tangle-network/agent-interface/dist/sandbox-size.d.ts
|
|
3046
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.13/node_modules/@tangle-network/agent-interface/dist/sandbox-size.d.ts
|
|
3047
|
+
/**
|
|
3048
|
+
* Portable sandbox size vocabulary.
|
|
3049
|
+
*
|
|
3050
|
+
* A size preset is a provider-neutral NAME for a compute tier (cpu / memory /
|
|
3051
|
+
* disk). This module owns only the vocabulary — the names and their smallest→
|
|
3052
|
+
* largest ordering — so the lowest shared layer can reference a size without
|
|
3053
|
+
* depending on the sandbox SDK (`Capability.recommendedSize` lives here, and
|
|
3054
|
+
* agent-interface must not depend on `@tangle-network/sandbox`).
|
|
3055
|
+
*
|
|
3056
|
+
* The concrete cpu/memory/disk numbers for each preset are the sandbox SDK's
|
|
3057
|
+
* single source of truth (`@tangle-network/sandbox` → `SANDBOX_SIZE_PRESETS`),
|
|
3058
|
+
* which imports these names. Mirrors how this package owns the `ReasoningEffort`
|
|
3059
|
+
* vocabulary while backends own its native mapping.
|
|
3060
|
+
*/
|
|
3061
|
+
/** Compute tiers, ordered smallest → largest. */
|
|
3062
|
+
declare const SANDBOX_SIZE_PRESET_NAMES: readonly ["nano", "small", "medium", "large"];
|
|
3063
|
+
/**
|
|
3064
|
+
* A named compute tier for a sandbox. `nano` suits thin glue work (a single API
|
|
3065
|
+
* call, a notify); `large` suits heavy builds over big repositories. Sizing is a
|
|
3066
|
+
* per-task decision — a thin workflow step should not provision a maxed box.
|
|
3067
|
+
*/
|
|
3068
|
+
type SandboxSizePreset = (typeof SANDBOX_SIZE_PRESET_NAMES)[number];
|
|
3069
|
+
//#endregion
|
|
3070
|
+
//#region ../../../packages/runtime-contracts/dist/batch-request.d.ts
|
|
3071
|
+
declare const batchTaskSchema: z.ZodObject<{
|
|
3072
|
+
id: z.ZodString;
|
|
3073
|
+
message: z.ZodString;
|
|
3074
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3075
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
3076
|
+
}, z.core.$strict>;
|
|
3077
|
+
declare const batchBackendSchema: z.ZodObject<{
|
|
3078
|
+
id: z.ZodString;
|
|
3079
|
+
type: z.ZodEnum<{
|
|
3080
|
+
"claude-code": "claude-code";
|
|
3081
|
+
nanoclaw: "nanoclaw";
|
|
3082
|
+
codex: "codex";
|
|
3083
|
+
opencode: "opencode";
|
|
3084
|
+
"kimi-code": "kimi-code";
|
|
3085
|
+
pi: "pi";
|
|
3086
|
+
prime: "prime";
|
|
3087
|
+
hermes: "hermes";
|
|
3088
|
+
openclaw: "openclaw";
|
|
3089
|
+
amp: "amp";
|
|
3090
|
+
"factory-droids": "factory-droids";
|
|
3091
|
+
cursor: "cursor";
|
|
3092
|
+
grok: "grok";
|
|
3093
|
+
acp: "acp";
|
|
3094
|
+
"cli-base": "cli-base";
|
|
3095
|
+
}>;
|
|
3096
|
+
model: z.ZodOptional<z.ZodObject<{
|
|
3097
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
3098
|
+
model: z.ZodOptional<z.ZodString>;
|
|
3099
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
3100
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
3101
|
+
maxThinkingTokens: z.ZodOptional<z.ZodNumber>;
|
|
3102
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
3103
|
+
cli: "cli";
|
|
3104
|
+
api: "api";
|
|
3105
|
+
}>>;
|
|
3106
|
+
}, z.core.$strict>>;
|
|
3107
|
+
server: z.ZodOptional<z.ZodObject<{
|
|
3108
|
+
hostname: z.ZodOptional<z.ZodString>;
|
|
3109
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
3110
|
+
}, z.core.$strict>>;
|
|
3111
|
+
profile: z.ZodOptional<z.ZodType<AgentProfile, unknown, z.core.$ZodTypeInternals<AgentProfile, unknown>>>;
|
|
3112
|
+
}, z.core.$strict>;
|
|
3113
|
+
/** Public callers control work only. Identity and capacity are server-owned. */
|
|
3114
|
+
declare const publicBatchRunRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3115
|
+
persistent: z.ZodDefault<z.ZodLiteral<false>>;
|
|
3116
|
+
graceMs: z.ZodOptional<z.ZodNumber>;
|
|
3117
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
3118
|
+
id: z.ZodString;
|
|
3119
|
+
message: z.ZodString;
|
|
3120
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3121
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
3122
|
+
}, z.core.$strict>>;
|
|
3123
|
+
backends: z.ZodArray<z.ZodObject<{
|
|
3124
|
+
id: z.ZodString;
|
|
3125
|
+
type: z.ZodEnum<{
|
|
3126
|
+
"claude-code": "claude-code";
|
|
3127
|
+
nanoclaw: "nanoclaw";
|
|
3128
|
+
codex: "codex";
|
|
3129
|
+
opencode: "opencode";
|
|
3130
|
+
"kimi-code": "kimi-code";
|
|
3131
|
+
pi: "pi";
|
|
3132
|
+
prime: "prime";
|
|
3133
|
+
hermes: "hermes";
|
|
3134
|
+
openclaw: "openclaw";
|
|
3135
|
+
amp: "amp";
|
|
3136
|
+
"factory-droids": "factory-droids";
|
|
3137
|
+
cursor: "cursor";
|
|
3138
|
+
grok: "grok";
|
|
3139
|
+
acp: "acp";
|
|
3140
|
+
"cli-base": "cli-base";
|
|
3141
|
+
}>;
|
|
3142
|
+
model: z.ZodOptional<z.ZodObject<{
|
|
3143
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
3144
|
+
model: z.ZodOptional<z.ZodString>;
|
|
3145
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
3146
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
3147
|
+
maxThinkingTokens: z.ZodOptional<z.ZodNumber>;
|
|
3148
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
3149
|
+
cli: "cli";
|
|
3150
|
+
api: "api";
|
|
3151
|
+
}>>;
|
|
3152
|
+
}, z.core.$strict>>;
|
|
3153
|
+
server: z.ZodOptional<z.ZodObject<{
|
|
3154
|
+
hostname: z.ZodOptional<z.ZodString>;
|
|
3155
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
3156
|
+
}, z.core.$strict>>;
|
|
3157
|
+
profile: z.ZodOptional<z.ZodType<AgentProfile, unknown, z.core.$ZodTypeInternals<AgentProfile, unknown>>>;
|
|
3158
|
+
}, z.core.$strict>>;
|
|
3159
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
3160
|
+
executionClass: z.ZodDefault<z.ZodEnum<{
|
|
3161
|
+
project: "project";
|
|
3162
|
+
simulation: "simulation";
|
|
3163
|
+
background: "background";
|
|
3164
|
+
}>>;
|
|
3165
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3166
|
+
persistent: z.ZodLiteral<true>;
|
|
3167
|
+
reuseKey: z.ZodString;
|
|
3168
|
+
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
3169
|
+
idleTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
3170
|
+
coldTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
3171
|
+
}, z.core.$strict>>;
|
|
3172
|
+
git: z.ZodOptional<z.ZodObject<{
|
|
3173
|
+
url: z.ZodString;
|
|
3174
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3175
|
+
depth: z.ZodOptional<z.ZodNumber>;
|
|
3176
|
+
sparse: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3177
|
+
auth: z.ZodOptional<z.ZodObject<{
|
|
3178
|
+
token: z.ZodOptional<z.ZodString>;
|
|
3179
|
+
}, z.core.$strict>>;
|
|
3180
|
+
}, z.core.$strict>>;
|
|
3181
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
3182
|
+
id: z.ZodString;
|
|
3183
|
+
message: z.ZodString;
|
|
3184
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3185
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
3186
|
+
}, z.core.$strict>>;
|
|
3187
|
+
backends: z.ZodArray<z.ZodObject<{
|
|
3188
|
+
id: z.ZodString;
|
|
3189
|
+
type: z.ZodEnum<{
|
|
3190
|
+
"claude-code": "claude-code";
|
|
3191
|
+
nanoclaw: "nanoclaw";
|
|
3192
|
+
codex: "codex";
|
|
3193
|
+
opencode: "opencode";
|
|
3194
|
+
"kimi-code": "kimi-code";
|
|
3195
|
+
pi: "pi";
|
|
3196
|
+
prime: "prime";
|
|
3197
|
+
hermes: "hermes";
|
|
3198
|
+
openclaw: "openclaw";
|
|
3199
|
+
amp: "amp";
|
|
3200
|
+
"factory-droids": "factory-droids";
|
|
3201
|
+
cursor: "cursor";
|
|
3202
|
+
grok: "grok";
|
|
3203
|
+
acp: "acp";
|
|
3204
|
+
"cli-base": "cli-base";
|
|
3205
|
+
}>;
|
|
3206
|
+
model: z.ZodOptional<z.ZodObject<{
|
|
3207
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
3208
|
+
model: z.ZodOptional<z.ZodString>;
|
|
3209
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
3210
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
3211
|
+
maxThinkingTokens: z.ZodOptional<z.ZodNumber>;
|
|
3212
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
3213
|
+
cli: "cli";
|
|
3214
|
+
api: "api";
|
|
3215
|
+
}>>;
|
|
3216
|
+
}, z.core.$strict>>;
|
|
3217
|
+
server: z.ZodOptional<z.ZodObject<{
|
|
3218
|
+
hostname: z.ZodOptional<z.ZodString>;
|
|
3219
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
3220
|
+
}, z.core.$strict>>;
|
|
3221
|
+
profile: z.ZodOptional<z.ZodType<AgentProfile, unknown, z.core.$ZodTypeInternals<AgentProfile, unknown>>>;
|
|
3222
|
+
}, z.core.$strict>>;
|
|
3223
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
3224
|
+
executionClass: z.ZodDefault<z.ZodEnum<{
|
|
3225
|
+
project: "project";
|
|
3226
|
+
simulation: "simulation";
|
|
3227
|
+
background: "background";
|
|
3228
|
+
}>>;
|
|
3229
|
+
}, z.core.$strict>]>;
|
|
3230
|
+
type BatchTaskInput = z.input<typeof batchTaskSchema>;
|
|
3231
|
+
type BatchBackendInput = z.input<typeof batchBackendSchema>;
|
|
3232
|
+
type PublicBatchRunRequestInput = z.input<typeof publicBatchRunRequestSchema>;
|
|
3233
|
+
type PublicBatchRunRequest = z.output<typeof publicBatchRunRequestSchema>;
|
|
3234
|
+
//#endregion
|
|
3235
|
+
//#region ../../../packages/runtime-contracts/dist/batch-stream.d.ts
|
|
3236
|
+
type BatchTaskResult = (BatchEventDataMap["task.completed"] & {
|
|
3237
|
+
success: true;
|
|
3238
|
+
}) | (BatchEventDataMap["task.failed"] & {
|
|
3239
|
+
success: false;
|
|
3240
|
+
});
|
|
3241
|
+
type BatchBackendResult = BatchEventDataMap["backend.completed"] & {
|
|
3242
|
+
sidecarIds: string[];
|
|
3243
|
+
};
|
|
3244
|
+
type BatchCleanupResult = ({
|
|
3245
|
+
mode: "persistent";
|
|
3246
|
+
} & BatchEventDataMap["batch.persistent"]) | ({
|
|
3247
|
+
mode: "grace";
|
|
3248
|
+
} & BatchEventDataMap["batch.grace_period"]) | {
|
|
3249
|
+
mode: "release";
|
|
3250
|
+
releasedSidecarIds: string[];
|
|
3251
|
+
pendingSidecarIds: string[];
|
|
3252
|
+
pendingCleanupJobIds?: string[];
|
|
3253
|
+
isComplete: boolean;
|
|
3254
|
+
};
|
|
3255
|
+
/** Observed work ownership; unknown acceptance never authorizes a new run. */
|
|
3256
|
+
interface BatchCustody {
|
|
3257
|
+
acceptance: "accepted" | "unknown";
|
|
3258
|
+
idempotencyKey?: string;
|
|
3259
|
+
sidecarIds: string[];
|
|
3260
|
+
terminal?: "completed" | "failed";
|
|
3261
|
+
cleanup?: BatchCleanupResult;
|
|
3262
|
+
}
|
|
3263
|
+
interface BatchResult {
|
|
3264
|
+
totalTasks: number;
|
|
3265
|
+
totalBackends: number;
|
|
3266
|
+
totalExecutions: number;
|
|
3267
|
+
totalSuccess: number;
|
|
3268
|
+
totalFailure: number;
|
|
3269
|
+
totalRetries: number;
|
|
3270
|
+
successRate: number;
|
|
3271
|
+
byBackend: BatchBackendResult[];
|
|
3272
|
+
results: BatchTaskResult[];
|
|
3273
|
+
execution: {
|
|
3274
|
+
provisioning?: {
|
|
3275
|
+
requested: BatchEventDataMap["batch.provisioning"];
|
|
3276
|
+
provisioned: BatchEventDataMap["batch.provisioned"];
|
|
3277
|
+
};
|
|
3278
|
+
started: BatchEventDataMap["batch.started"];
|
|
3279
|
+
sidecars: BatchEventDataMap["sidecars.allocated"];
|
|
3280
|
+
completion: BatchEventDataMap["batch.completed"];
|
|
3281
|
+
cleanup: BatchCleanupResult;
|
|
3282
|
+
};
|
|
3283
|
+
}
|
|
3284
|
+
//#endregion
|
|
3285
|
+
//#region ../../../packages/runtime-contracts/dist/error-catalog.d.ts
|
|
3286
|
+
declare const ERROR_CATALOG: {
|
|
3287
|
+
readonly VALIDATION_ERROR: "400 final | The request is malformed or a field is invalid. | Fix the field the message names and send the request again.";
|
|
3288
|
+
readonly INVALID_REQUEST: "400 final | The request is malformed or a field is invalid. | Fix the field the message names and send the request again.";
|
|
3289
|
+
readonly INVALID_TEXT_PART: "400 final | A text part is missing its text or is not base64-encoded UTF-8. | Base64-encode every text part, then send the request again.";
|
|
3290
|
+
readonly UNAUTHORIZED: "401 final | The credential is missing, invalid or expired. | Sign in again or send a valid API key.";
|
|
3291
|
+
readonly PAYMENT_REQUIRED: "402 final | The account has no balance, credit or plan for this request. | Add credit or a paid seat at https://id.tangle.tools/app/billing, then retry.";
|
|
3292
|
+
readonly FORBIDDEN: "403 final | The caller is authenticated but not allowed to do this. | Use a credential with the role or scope the message names.";
|
|
3293
|
+
readonly FEATURE_DISABLED: "403 final | This capability is switched off for this deployment or account. | Ask the operator to enable it.";
|
|
3294
|
+
readonly NOT_FOUND: "404 final | The resource does not exist or this account cannot see it. | Check the id and the account or team that owns it.";
|
|
3295
|
+
readonly SIDECAR_NOT_FOUND: "404 final | The sandbox runtime does not exist or this account cannot see it. | Check the sandbox id, or create the sandbox again.";
|
|
3296
|
+
readonly CONFLICT: "409 final | The request conflicts with an existing resource or an earlier request. | Read the existing resource, or use a new name or idempotency key.";
|
|
3297
|
+
readonly STALE_STATE: "409 final | The caller's view of the resource is stale. | Read the resource again and repeat the request against its current state.";
|
|
3298
|
+
readonly INVALID_STATE: "409 final | The resource is in the wrong state for this operation. | Bring it to the state the message names, then retry.";
|
|
3299
|
+
readonly IN_PROGRESS: "409 retry | Another operation holds this resource. | Wait for that operation to finish, then retry.";
|
|
3300
|
+
readonly EGRESS_PROXY_RECOVERY_REQUIRED: "409 final | The egress proxy lost the credentials it serves. | Recreate the sandbox to rematerialize its egress credentials.";
|
|
3301
|
+
readonly EGRESS_PROXY_SECRETS_UNAVAILABLE: "409 final | The egress proxy rebuild found no value for secrets the box still references. | Send the missing secrets the response names in one retry, or recreate the sandbox.";
|
|
3302
|
+
readonly EGRESS_IN_PLACE_RELOAD_UNAVAILABLE: "409 final | The egress proxy cannot be re-keyed without a restart. | Re-key once no agent turn is streaming, allowing a proxy restart.";
|
|
3303
|
+
readonly EXPIRED: "410 final | The token, decision or grant has expired. | Request a new one.";
|
|
3304
|
+
readonly PAYLOAD_TOO_LARGE: "413 final | The body or artifact is over its size limit. | Send a smaller body, or split it.";
|
|
3305
|
+
readonly NOT_CONNECTED: "424 final | A required integration connection is missing. | Connect the integration the message names, then retry.";
|
|
3306
|
+
readonly QUOTA_EXCEEDED: "429 final | A plan or concurrency quota is reached. | Stop or delete resources, or raise the quota.";
|
|
3307
|
+
readonly RATE_LIMITED: "429 retry | Too many requests in the current window. | Wait for the Retry-After interval, then retry.";
|
|
3308
|
+
readonly RATE_LIMIT_EXCEEDED: "429 retry | Too many requests in the current window. | Wait for the Retry-After interval, then retry.";
|
|
3309
|
+
readonly INTERNAL_ERROR: "500 final | The server failed for a reason it did not classify. | Report the request id; the request itself did not cause it.";
|
|
3310
|
+
readonly OPERATION_FAILED: "500 final | A server-side operation failed. | Report the request id with the operation the message names.";
|
|
3311
|
+
readonly CONFIGURATION_ERROR: "500 final | The deployment is missing configuration or has an invalid value. | The operator sets the configuration key the message names.";
|
|
3312
|
+
readonly AGENT_EXECUTION_FAILED: "500 final | The agent run failed inside the sandbox. | Read the cause in the message; fix the prompt, model or credential it names.";
|
|
3313
|
+
readonly BACKEND_START_FAILED: "500 final | The agent backend cannot start, and a retry fails the same way. | Fix the configuration, credential or session the cause names.";
|
|
3314
|
+
readonly MESSAGE_RETRIEVAL_FAILED: "500 final | Message storage cannot serve this read. | Report the request id; the stored session needs repair.";
|
|
3315
|
+
readonly UNSUPPORTED: "501 final | This operation is not supported for this runtime, harness or driver. | Choose a runtime or option that supports it.";
|
|
3316
|
+
readonly UPSTREAM_ERROR: "502 retry | An upstream service failed or answered outside its contract. | Retry with backoff; report the request id if it persists.";
|
|
3317
|
+
readonly UNAVAILABLE: "503 retry | A dependency or capacity is temporarily unavailable. | Retry after the Retry-After interval.";
|
|
3318
|
+
readonly NOT_READY: "503 retry | The target is starting, restarting, recovering or draining. | Retry after the Retry-After interval.";
|
|
3319
|
+
readonly BACKEND_UNAVAILABLE: "503 retry | The agent backend did not answer. | Retry after the Retry-After interval.";
|
|
3320
|
+
readonly MESSAGE_RETRIEVAL_UNAVAILABLE: "503 retry | Message storage did not answer. | Retry after the Retry-After interval.";
|
|
3321
|
+
readonly TIMEOUT: "504 retry | The operation exceeded its deadline. | Retry; if it repeats, raise the timeout or split the work.";
|
|
3322
|
+
readonly KV_VALUE_TOO_LARGE: "413 final | A workflow KV value is over the per-value size cap. | Store a smaller value, or put the data in an artifact and keep its id in KV.";
|
|
3323
|
+
readonly KV_KEY_LIMIT: "409 final | The workflow has reached its KV key cap. | Delete keys the workflow no longer reads, then write again.";
|
|
3324
|
+
readonly KV_VERSION_CONFLICT: "409 final | Another writer changed the KV key since it was read. | Read the key again and retry the compare-and-swap against its current version.";
|
|
3325
|
+
readonly PRECONDITION_FAILED: "412 final | The stored version no longer matches the request's precondition. | Read the current version or etag and send it with the request.";
|
|
3326
|
+
readonly UNPROCESSABLE: "422 final | The input has nothing usable for this operation. | Record the history the message names, then ask again.";
|
|
3327
|
+
readonly BASE_IMAGE_NOT_FOUND: "400 final | The requested image does not exist. | Check the image name and tag, then create again.";
|
|
3328
|
+
readonly BASE_IMAGE_MISSING_BEFORE_CREATE: "400 final | The requested image does not exist; the host proved it before creating anything. | Check the image name and tag, then create again.";
|
|
3329
|
+
readonly UNSUPPORTED_EGRESS_POLICY: "400 final | This runtime cannot enforce the requested egress policy. | Choose a policy the runtime supports, or another runtime.";
|
|
3330
|
+
readonly UNSUPPORTED_FOR_RUNTIME: "400 final | The requested runtime cannot honour a create input. | Remove the input the message names, or choose another runtime.";
|
|
3331
|
+
readonly ROOT_USER_FORBIDDEN: "403 final | The sandbox may not run as root. | Run the workload as a non-root user.";
|
|
3332
|
+
readonly EGRESS_DOMAIN_NOT_ALLOWED: "403 final | The sandbox egress allowlist does not include this host. | Add the host to egressPolicy.allowDomains with box.egress.update.";
|
|
3333
|
+
readonly EGRESS_REQUEST_REFUSED: "403 final | The sandbox egress policy refused this request. | Read box.egress.denials() for the rule that refused it.";
|
|
3334
|
+
readonly NOT_MANAGED: "404 final | This host does not manage the named container. | Check the sandbox id; the platform resolves its host again on retry.";
|
|
3335
|
+
readonly SNAPSHOT_NOT_FOUND: "404 final | The snapshot does not exist or this account cannot see it. | List the sandbox snapshots and use an id from that list.";
|
|
3336
|
+
readonly BRANCH_PARENT_NOT_RUNNING: "409 final | The branch parent is not running. | Resume the parent sandbox, then branch again.";
|
|
3337
|
+
readonly CONTAINER_RESERVATION_CONFLICT: "409 retry | Another lifecycle operation holds this sandbox. | Wait for that operation to finish, then retry.";
|
|
3338
|
+
readonly CONTAINER_NETWORK_MISSING: "409 final | The stopped sandbox lost its network, so it cannot start in place; its files remain. | Resume the sandbox so the platform recreates it.";
|
|
3339
|
+
readonly EGRESS_DISABLED: "409 final | Egress is not enabled on this host. | Place the sandbox on a host with egress enabled.";
|
|
3340
|
+
readonly NATIVE_CAPTURE_UNAVAILABLE: "409 final | The host cannot prove the native capture image this create requires. | Retry on another host, or create without native capture.";
|
|
3341
|
+
readonly NETWORK_ISOLATION_REQUIRED: "409 final | The create requires its own network, and the host did not place one. | Retry on a host that supports network isolation.";
|
|
3342
|
+
readonly SESSION_CLAIM_MISMATCH: "409 final | The request names a session other than the one bound to this container. | Use the session id the container was created for.";
|
|
3343
|
+
readonly SNAPSHOT_NOT_SYNCED: "409 retry | The snapshot has not finished uploading. | Retry after the upload completes.";
|
|
3344
|
+
readonly WARM_CLAIM_REMOVED: "409 final | Another lifecycle operation removed the claimed warm sandbox. | Create the sandbox again.";
|
|
3345
|
+
readonly WORKSPACE_STORAGE_MISSING: "409 final | The stopped sandbox storage is gone or replaced, so the host refused to start it. | Restore the sandbox from a snapshot.";
|
|
3346
|
+
readonly RESTORE_QUOTA_EXCEEDED: "413 final | The snapshot is larger than the workspace quota. | Create with a larger disk, or restore a smaller snapshot.";
|
|
3347
|
+
readonly GIT_CLONE_REFUSED: "422 final | The repository refused the clone credential, or the credential cannot see it. | Fix the git credential or repository URL, then create again.";
|
|
3348
|
+
readonly BRANCH_FAILED: "500 final | The live branch of a running sandbox failed. | Report the request id; branch from a snapshot instead.";
|
|
3349
|
+
readonly CONTAINER_START_FAILED: "500 retry | The host started the sandbox and its runtime failed. | Retry; if it repeats, recreate the sandbox from a snapshot.";
|
|
3350
|
+
readonly GIT_CLONE_FAILED: "500 retry | Cloning the repository failed. | Retry; if it repeats, check that the repository URL is reachable.";
|
|
3351
|
+
readonly GIT_CLONE_TIMEOUT: "500 retry | Cloning the repository exceeded its deadline. | Retry, or clone a smaller repository.";
|
|
3352
|
+
readonly HOST_CLEANUP_UNCONFIRMED: "500 retry | The host cannot prove it removed what a failed create made. | Retry; the platform reconciles the earlier attempt first.";
|
|
3353
|
+
readonly HOST_RESERVATION_COMMIT_FAILED: "500 retry | The host could not record the create after cleaning it up. | Retry the create.";
|
|
3354
|
+
readonly MISSING_SIDECAR_AUTH_TOKEN: "500 final | The sandbox has no runtime auth token, so its host cannot route to it. | Recreate the sandbox.";
|
|
3355
|
+
readonly SNAPSHOT_RESTORE_FAILED: "500 final | Restoring the snapshot into the sandbox failed; no empty workspace was served. | Report the request id, or restore another snapshot.";
|
|
3356
|
+
readonly VM_START_FAILED: "500 retry | The microVM failed to start. | Retry; if it repeats, recreate the sandbox.";
|
|
3357
|
+
readonly SIDECAR_UPSTREAM_UNAVAILABLE: "502 retry | The host could not reach the sandbox runtime. | Retry; the request may have reached the sandbox.";
|
|
3358
|
+
readonly BRANCH_UFFD_UNAVAILABLE: "503 retry | The parent host cannot fork live memory now. | Retry, or branch from a snapshot.";
|
|
3359
|
+
readonly CAPACITY_EXHAUSTED: "503 retry | No host has room for this sandbox now. | Retry after the Retry-After interval.";
|
|
3360
|
+
readonly COMPLIANCE_CAPACITY_UNAVAILABLE: "503 retry | No verified compliance-scope host can take this sandbox now. | Retry after the Retry-After interval.";
|
|
3361
|
+
readonly FIRECRACKER_IMAGE_UNAVAILABLE: "503 final | No host carries the requested Firecracker image. | Choose an image the Firecracker hosts carry, or the Docker runtime.";
|
|
3362
|
+
readonly HOST_UNAVAILABLE: "503 retry | The host did not answer; the sandbox and its files remain. | Retry after the Retry-After interval.";
|
|
3363
|
+
readonly HOST_PRESSURE: "503 retry | The host was too busy to create the sandbox and created nothing. | Retry after the Retry-After interval.";
|
|
3364
|
+
readonly IN_BOX_DOCKER_UNAVAILABLE: "503 retry | Docker inside the sandbox is not available. | Retry, or create the sandbox with in-box Docker enabled.";
|
|
3365
|
+
readonly NO_IP: "503 retry | The sandbox has no network address yet. | Retry after the Retry-After interval.";
|
|
3366
|
+
readonly ROUTE_LOOKUP_FAILED: "503 retry | The host could not look up the sandbox route. | Retry after the Retry-After interval.";
|
|
3367
|
+
readonly SNAPSHOT_STORAGE_UNAVAILABLE: "503 retry | Snapshot storage did not answer. | Retry after the Retry-After interval.";
|
|
3368
|
+
readonly THIN_POOL_HEADROOM: "503 final | The sandbox host cannot grow this workspace. | Recreate the sandbox from a snapshot so it lands on another host.";
|
|
3369
|
+
readonly WARM_RECONNECT_MISS: "503 retry | The warm restore path is unavailable. | Retry; the platform restores through the cold path.";
|
|
3370
|
+
readonly WORKSPACE_IMAGE_BUILDER_BUSY: "503 retry | The workspace image builder is busy. | Retry after the Retry-After interval.";
|
|
3371
|
+
readonly WORKSPACE_IMAGE_BUILDER_UNAVAILABLE: "503 retry | The workspace image builder is unavailable. | Retry after the Retry-After interval.";
|
|
3372
|
+
readonly SIDECAR_HEALTH_TIMEOUT: "504 retry | The sandbox runtime did not become ready within its boot attempts. | Retry; if it repeats, recreate the sandbox.";
|
|
3373
|
+
readonly rate_limit_error: "429 retry | The model provider rate-limited this turn. | Wait for the provider's window, then send the turn again.";
|
|
3374
|
+
readonly provider_quota_exhausted: "429 final | The harness subscription quota is spent until its resetAt. | Wait until resetAt, or send the turn with another credential.";
|
|
3375
|
+
readonly native_api_error: "502 final | The harness's model API refused the turn; the message carries its answer. | Fix what the provider's answer names, then send the turn again.";
|
|
3376
|
+
readonly empty_visible_output: "502 retry | The turn ended without visible output from the model. | Send the turn again; if it repeats, change the model or the prompt.";
|
|
3377
|
+
readonly session_rehydration_failed: "409 final | The session's stored transcript cannot be replayed into a new harness session. | Start a new session; this one cannot resume.";
|
|
3378
|
+
readonly SESSION_DIED: "500 final | The harness session process died during the turn; the message says why. | Send the turn again in a new session.";
|
|
3379
|
+
readonly MEMORY_LIMIT_KILLED: "500 final | The harness ran out of memory and was killed. | Give the sandbox more memory or split the work, then send the turn again.";
|
|
3380
|
+
readonly PROCESS_OUTPUT_GAP: "410 final | A process log reader fell behind the spool, so output was evicted before it was read. | Read faster or redirect output to a file; missedBytes says how much.";
|
|
3381
|
+
readonly SESSION_CREDENTIAL_NOT_RETAINED: "409 final | A restored session's model credential is not kept in session storage. | Send the model credential with the turn.";
|
|
3382
|
+
readonly interaction_kind_unsupported: "400 final | The turn asks for an interaction kind this harness cannot originate. | Drop the interaction toggle or choose a harness that supports it.";
|
|
3383
|
+
readonly invalid_attachment: "400 final | An attachment has no url or path, or content the harness cannot take. | Fix the attachment the message names, then send the turn again.";
|
|
3384
|
+
readonly PROFILE_UNSUPPORTED: "422 final | The profile asks for controls its harness cannot run, so no box is worth starting. | Remove the controls the message names, or choose a harness that runs them.";
|
|
3385
|
+
readonly PROFILE_NOT_CACHED: "409 final | The turn names a profile by hash that this runtime does not hold. | Send the full profile object instead of its hash.";
|
|
3386
|
+
readonly MODEL_CALL_LIMIT_REACHED: "400 final | The bounded turn needed more model calls than it allowed. | Raise the turn's model-call limit or split the task.";
|
|
3387
|
+
readonly MODEL_CALL_LIMIT_UNSUPPORTED: "400 final | This harness's model calls cannot be counted, so a call limit cannot hold. | Drop the limit or choose a harness that supports it.";
|
|
3388
|
+
readonly TOOL_DISABLED_TURN_UNSUPPORTED: "400 final | This harness cannot run a turn with its tools disabled. | Allow tools, or choose a harness that supports tool-free turns.";
|
|
3389
|
+
readonly EXECUTION_TTL_EXPIRED: "504 final | The execution ran past its time limit and was stopped. | Raise ttlMs up to the deployment ceiling, or split the work.";
|
|
3390
|
+
readonly EXECUTION_TTL_EXCEEDS_LIMIT: "400 final | The requested execution time limit is above this deployment's ceiling. | Send a ttlMs at or below the ceiling the message names.";
|
|
3391
|
+
readonly MESSAGE_ADMISSION_EXPIRED: "409 final | The message's admission deadline passed before the harness was invoked. | Dispatch the message again with a new deadline.";
|
|
3392
|
+
readonly BACKEND_HARNESS_CONFLICT: "400 final | Running the turn would run a harness other than the one the caller named. | Name one harness for the session and its turns.";
|
|
3393
|
+
readonly HARNESS_MODEL_UNSUPPORTED: "400 final | The named harness cannot run the named model. | Choose a model the harness supports, or another harness.";
|
|
3394
|
+
readonly HARNESS_RUNTIME_UNAVAILABLE: "503 retry | The harness's local daemon exited before it could serve the session. | Retry after the Retry-After interval; the message carries the daemon's reason.";
|
|
3395
|
+
readonly GPU_PROVIDER_NOT_CONFIGURED: "503 final | No GPU provider is configured for this deployment. | Create the sandbox without a GPU, or ask the operator to configure a provider.";
|
|
3396
|
+
readonly COMPLIANCE_NOT_ENTITLED: "403 final | The account is not entitled to the requested compliance placement. | Enable the compliance plan for the account, or create without it.";
|
|
3397
|
+
readonly COMPLIANCE_CELL_UNAVAILABLE: "503 final | No cell serves the requested compliance placement. | Choose another region or compliance mode, or ask the operator.";
|
|
3398
|
+
readonly NETWORK_ERROR: "503 retry | The request did not reach the platform, or its answer was lost. | Check connectivity, then retry; a keyed create joins its earlier attempt.";
|
|
3399
|
+
readonly EXECUTION_INTERRUPTED: "503 retry | The sandbox runtime restarted during the run, before the run produced a terminal event; the run cannot resume. | Run the turn again.";
|
|
3400
|
+
readonly STREAM_INTERRUPTED: "503 retry | The execution's stream ended without its terminal event; its outcome is unknown. | Rejoin with its executionId and lastEventId, or read the session status.";
|
|
3401
|
+
readonly PUBLIC_PROFILE_PIN_REFUSED: "400 final | The runtime refused the pinned public profile revision this turn named. | Send the turn with the revision and digest the profile has now.";
|
|
3402
|
+
readonly model_credential_refused: "403 final | The account owner refused the model credential for this seat. | Reconnect or replace that seat's credential, or choose another seat.";
|
|
3403
|
+
readonly TEMPLATE_PUBLICATION_WAIT_INTERRUPTED: "504 retry | The SDK stopped waiting for a template publication; the job keeps running. | Resume the wait with resumeJobId instead of publishing again.";
|
|
3404
|
+
};
|
|
3405
|
+
type ErrorCode = keyof typeof ERROR_CATALOG;
|
|
3406
|
+
//#endregion
|
|
3407
|
+
//#region src/create-receipt-types.d.ts
|
|
3408
|
+
/** Create admission evidence shared by SDK errors and public sandbox types.
|
|
3409
|
+
* This contract has no SDK implementation imports. */
|
|
2518
3410
|
/**
|
|
2519
|
-
*
|
|
3411
|
+
* What one `create()` call did to the sandbox environment.
|
|
2520
3412
|
*
|
|
2521
|
-
*
|
|
2522
|
-
*
|
|
2523
|
-
*
|
|
2524
|
-
*
|
|
2525
|
-
*
|
|
3413
|
+
* - `created`: the call allocated the environment. The platform states this
|
|
3414
|
+
* only when the create identity belonged to the call alone.
|
|
3415
|
+
* - `idempotent_replay`: the platform returned the environment that an earlier
|
|
3416
|
+
* call with the same idempotency key allocated. The call allocated nothing.
|
|
3417
|
+
* - `unknown`: the platform cannot prove either outcome, so another caller can
|
|
3418
|
+
* hold the environment.
|
|
3419
|
+
*/
|
|
3420
|
+
type SandboxCreateOutcome = "created" | "idempotent_replay" | "unknown";
|
|
3421
|
+
/**
|
|
3422
|
+
* The platform verdict for one create call.
|
|
2526
3423
|
*
|
|
2527
|
-
*
|
|
2528
|
-
*
|
|
2529
|
-
*
|
|
2530
|
-
* vocabulary while backends own its native mapping.
|
|
3424
|
+
* Delete the environment only on a `created` outcome. `idempotencyKeyApplied`
|
|
3425
|
+
* reports whether the idempotency key selected the environment: a false value
|
|
3426
|
+
* means a retry of the same request allocates a second sandbox.
|
|
2531
3427
|
*/
|
|
2532
|
-
|
|
2533
|
-
|
|
3428
|
+
interface SandboxCreateReceipt {
|
|
3429
|
+
outcome: SandboxCreateOutcome;
|
|
3430
|
+
idempotencyKeyApplied: boolean;
|
|
3431
|
+
/** Host-confirmed credential-inheritance policy, not a VM-isolation or
|
|
3432
|
+
* privacy-from-operator attestation. Missing on older hosts and on unverified
|
|
3433
|
+
* replays; isolated creation requires an explicit isolated verdict. */
|
|
3434
|
+
ownerContext?: "inherit" | "isolated";
|
|
3435
|
+
/**
|
|
3436
|
+
* Sorted names this call decrypted, including script-only names.
|
|
3437
|
+
* Bound names carry placeholders; names alone do not prove raw exposure.
|
|
3438
|
+
* Absent on an idempotent replay or older platform.
|
|
3439
|
+
*/
|
|
3440
|
+
injectedSecrets?: string[];
|
|
3441
|
+
/** Stored deliveries without an explicit saved/requested binding. */
|
|
3442
|
+
unboundSecretDeliveries?: number;
|
|
3443
|
+
/** Host-confirmed identity of the container whose native rollout is retained. */
|
|
3444
|
+
captureProof?: {
|
|
3445
|
+
hostId: string;
|
|
3446
|
+
containerId: string;
|
|
3447
|
+
imageId: string;
|
|
3448
|
+
bundleRevision: string;
|
|
3449
|
+
bundleChecksum: string;
|
|
3450
|
+
};
|
|
3451
|
+
}
|
|
3452
|
+
//#endregion
|
|
3453
|
+
//#region src/error-classes.d.ts
|
|
3454
|
+
type SandboxErrorOrigin = "sidecar" | "sandbox-api" | "control-plane" | "runtime" | "unknown";
|
|
3455
|
+
type SandboxErrorJson = string | number | boolean | null | {
|
|
3456
|
+
[key: string]: SandboxErrorJson;
|
|
3457
|
+
} | SandboxErrorJson[];
|
|
3458
|
+
type SandboxFailureDetail = {
|
|
3459
|
+
[key: string]: SandboxErrorJson;
|
|
3460
|
+
};
|
|
3461
|
+
interface GpuProviderRequirement {
|
|
3462
|
+
provider: string;
|
|
3463
|
+
/** `ready`, `credential-invalid`, `unverified`, `not-configured`, `disabled`. */
|
|
3464
|
+
state: string;
|
|
3465
|
+
/** Orchestrator environment variables it needs (`A|B`: either). */
|
|
3466
|
+
envVars: string[];
|
|
3467
|
+
}
|
|
3468
|
+
type StreamInterruptionReason = /** The caller's reconnect window elapsed while the execution stayed unreachable. */"reconnect-window-elapsed" /** The sandbox is stopped, failed, expired or deleted; the run cannot resume. */ | "sandbox-not-running" /** The runtime kept answering that it has no such execution. */ | "execution-not-found";
|
|
3469
|
+
interface SandboxErrorMetadata {
|
|
3470
|
+
/** The wire code, or a code the SDK names; `SandboxError.catalogCode` is its catalog code. */
|
|
3471
|
+
code?: string;
|
|
3472
|
+
/** HTTP status the server answered; absent means the catalog's status. */
|
|
3473
|
+
status?: number;
|
|
3474
|
+
cause?: unknown;
|
|
3475
|
+
origin?: SandboxErrorOrigin;
|
|
3476
|
+
endpoint?: string;
|
|
3477
|
+
retryAfterMs?: number;
|
|
3478
|
+
sidecarVersion?: string;
|
|
3479
|
+
containerImage?: string;
|
|
3480
|
+
/** Cell-measured capacity wait; retryAfterMs only paces retries. */
|
|
3481
|
+
etaSeconds?: number;
|
|
3482
|
+
elapsedMs?: number;
|
|
3483
|
+
/** Proves no sandbox was admitted; absence is unknown. */
|
|
3484
|
+
createFailureDisposition?: "not-admitted";
|
|
3485
|
+
capacityHold?: "customer_floor";
|
|
3486
|
+
resourceType?: string;
|
|
3487
|
+
resourceId?: string;
|
|
3488
|
+
quotaType?: string;
|
|
3489
|
+
current?: number;
|
|
3490
|
+
limit?: number;
|
|
3491
|
+
capability?: string;
|
|
3492
|
+
providers?: GpuProviderRequirement[];
|
|
3493
|
+
failures?: SandboxFailureDetail[];
|
|
3494
|
+
allocationId?: string;
|
|
3495
|
+
idempotencyKey?: string;
|
|
3496
|
+
createReceipt?: SandboxCreateReceipt | null;
|
|
3497
|
+
batchCustody?: BatchCustody;
|
|
3498
|
+
fields?: Record<string, string>;
|
|
3499
|
+
path?: string;
|
|
3500
|
+
currentState?: string;
|
|
3501
|
+
requiredState?: string;
|
|
3502
|
+
edgeStatus?: "pending" | "failed";
|
|
3503
|
+
expectedHash?: string;
|
|
3504
|
+
currentHash?: string | null;
|
|
3505
|
+
currentMtime?: number | null;
|
|
3506
|
+
keyId?: string;
|
|
3507
|
+
budgetUsd?: number;
|
|
3508
|
+
spentUsd?: number;
|
|
3509
|
+
reservedUsd?: number;
|
|
3510
|
+
missingEnvKeys?: readonly string[];
|
|
3511
|
+
maxChildren?: number;
|
|
3512
|
+
requestedChildren?: number;
|
|
3513
|
+
timeoutMs?: number;
|
|
3514
|
+
executionId?: string;
|
|
3515
|
+
sessionId?: string;
|
|
3516
|
+
lastEventId?: string;
|
|
3517
|
+
reason?: string;
|
|
3518
|
+
lastReplayStatus?: number;
|
|
3519
|
+
lastExecutionStatus?: string;
|
|
3520
|
+
beforeOpen?: boolean;
|
|
3521
|
+
}
|
|
3522
|
+
interface SandboxError extends Readonly<Omit<SandboxErrorMetadata, "code" | "status" | "cause">> {}
|
|
3523
|
+
declare class SandboxError extends Error {
|
|
3524
|
+
readonly code: string;
|
|
3525
|
+
readonly catalogCode: ErrorCode;
|
|
3526
|
+
/** HTTP status the server answered, else the catalog status of `catalogCode`. */
|
|
3527
|
+
readonly status: number;
|
|
3528
|
+
readonly retryable: boolean;
|
|
3529
|
+
readonly nextStep: string;
|
|
3530
|
+
readonly docs: string;
|
|
3531
|
+
constructor(message: string, metadata?: SandboxErrorMetadata);
|
|
3532
|
+
/** @deprecated Shipped in 1.0.191–1.0.195; removed in 2.0.0. Read `code`. */
|
|
3533
|
+
get wireCode(): string;
|
|
3534
|
+
}
|
|
3535
|
+
/** @deprecated Removed in 2.0.0; check `catalogCode === "UNAUTHORIZED"`. */
|
|
3536
|
+
declare class AuthError extends SandboxError {}
|
|
3537
|
+
/** @deprecated Removed in 2.0.0; check `catalogCode === "NOT_FOUND"`. */
|
|
3538
|
+
declare class NotFoundError extends SandboxError {}
|
|
3539
|
+
/** @deprecated Removed in 2.0.0; check `catalogCode === "QUOTA_EXCEEDED"` or `"RATE_LIMITED"`. */
|
|
3540
|
+
declare class QuotaError extends SandboxError {}
|
|
3541
|
+
/** @deprecated Removed in 2.0.0; check `catalogCode === "UNSUPPORTED"` or `"FEATURE_DISABLED"`. */
|
|
3542
|
+
declare class CapabilityError extends SandboxError {}
|
|
3543
|
+
/** @deprecated Removed in 2.0.0; check `code === "GPU_PROVIDER_NOT_CONFIGURED"`. */
|
|
3544
|
+
declare class GpuProviderNotConfiguredError extends CapabilityError {}
|
|
3545
|
+
/** @deprecated Removed in 2.0.0; check `code` for `COMPLIANCE_NOT_ENTITLED` or `COMPLIANCE_CELL_UNAVAILABLE`. */
|
|
3546
|
+
declare class CompliancePlacementError extends SandboxError {}
|
|
3547
|
+
/** @deprecated Removed in 2.0.0; read `failures`. */
|
|
3548
|
+
declare class PartialFailureError extends SandboxError {}
|
|
3549
|
+
/** @deprecated Removed in 2.0.0; check `catalogCode === "VALIDATION_ERROR"`. */
|
|
3550
|
+
declare class ValidationError extends SandboxError {}
|
|
3551
|
+
/** @deprecated Removed in 2.0.0; check `code` and read `path`. */
|
|
3552
|
+
declare class ProfileFileMountPathError extends SandboxError {}
|
|
3553
|
+
/** @deprecated Removed in 2.0.0; check `catalogCode === "INVALID_STATE"`. */
|
|
3554
|
+
declare class StateError extends SandboxError {}
|
|
3555
|
+
/** @deprecated Removed in 2.0.0; check `code === "EDGE_NOT_READY"`. */
|
|
3556
|
+
declare class EdgeNotReadyError extends SandboxError {}
|
|
3557
|
+
/** @deprecated Removed in 2.0.0; check `code === "FILE_WRITE_CONFLICT"`. */
|
|
3558
|
+
declare class FileWriteConflictError extends SandboxError {}
|
|
3559
|
+
/** @deprecated Removed in 2.0.0; check `code === "KEY_BUDGET_EXHAUSTED"`. */
|
|
3560
|
+
declare class KeyBudgetExhaustedError extends SandboxError {}
|
|
3561
|
+
/** @deprecated Removed in 2.0.0; check `code === "EGRESS_PROXY_RECOVERY_REQUIRED"`. */
|
|
3562
|
+
declare class EgressProxyRecoveryError extends SandboxError {}
|
|
3563
|
+
/** @deprecated Removed in 2.0.0; check `code === "RESUME_ENV_REQUIRED"` and read `missingEnvKeys`. */
|
|
3564
|
+
declare class ResumeEnvRequiredError extends SandboxError {}
|
|
3565
|
+
/** @deprecated Removed in 2.0.0; check `code === "BRANCH_FANOUT_EXCEEDS_HOST"` and read `maxChildren`. */
|
|
3566
|
+
declare class BranchFanoutExceedsHostError extends SandboxError {}
|
|
3567
|
+
/** @deprecated Removed in 2.0.0; check `catalogCode === "TIMEOUT"`. */
|
|
3568
|
+
declare class TimeoutError extends SandboxError {}
|
|
3569
|
+
/** @deprecated Removed in 2.0.0; check `catalogCode === "NETWORK_ERROR"`. */
|
|
3570
|
+
declare class NetworkError extends SandboxError {}
|
|
2534
3571
|
/**
|
|
2535
|
-
*
|
|
2536
|
-
*
|
|
2537
|
-
*
|
|
3572
|
+
* The stream of an admitted execution ended without its terminal event and
|
|
3573
|
+
* the SDK could not rejoin it. The outcome is UNKNOWN, never a failure
|
|
3574
|
+
* verdict: rejoin with `streamPrompt(message, { executionId, lastEventId,
|
|
3575
|
+
* sessionId })`, or read the session status.
|
|
3576
|
+
* @deprecated Removed in 2.0.0; check `code === "STREAM_INTERRUPTED"`.
|
|
2538
3577
|
*/
|
|
2539
|
-
|
|
3578
|
+
declare class StreamInterruptedError extends SandboxError {}
|
|
3579
|
+
/** @deprecated Removed in 2.0.0; check `status >= 500`. */
|
|
3580
|
+
declare class ServerError extends SandboxError {}
|
|
3581
|
+
//#endregion
|
|
3582
|
+
//#region src/errors.d.ts
|
|
3583
|
+
/**
|
|
3584
|
+
* Parse an error response from the API.
|
|
3585
|
+
* @param status - HTTP status code
|
|
3586
|
+
* @param body - Response body text
|
|
3587
|
+
* @param context - Optional request context for better error messages
|
|
3588
|
+
*/
|
|
3589
|
+
declare function parseErrorResponse(status: number, body: string, context?: {
|
|
3590
|
+
method?: string;
|
|
3591
|
+
path?: string;
|
|
3592
|
+
allPreviousCreateAttemptsRefused?: boolean;
|
|
3593
|
+
}, headers?: Headers): SandboxError;
|
|
3594
|
+
/**
|
|
3595
|
+
* A terminal protocol `error` frame (`code` is its protocol code, e.g.
|
|
3596
|
+
* `INIT_FAILED`) or a socket fault (`TRANSPORT`). `beforeOpen` is true when
|
|
3597
|
+
* the socket never reached OPEN, so no PTY work started on this dial.
|
|
3598
|
+
* @deprecated Removed in 2.0.0; check `code`.
|
|
3599
|
+
*/
|
|
3600
|
+
declare class TerminalStreamError extends SandboxError {}
|
|
2540
3601
|
//#endregion
|
|
2541
3602
|
//#region ../../../packages/runtime-contracts/dist/terminal-websocket.d.ts
|
|
2542
3603
|
/** Non-credential protocol selected during a successful terminal handshake. */
|
|
@@ -2823,4 +3884,4 @@ interface TerminalStreamOptions {
|
|
|
2823
3884
|
mintMs?: number;
|
|
2824
3885
|
}
|
|
2825
3886
|
//#endregion
|
|
2826
|
-
export {
|
|
3887
|
+
export { PublicBatchRunRequest as $, KeyBudgetExhaustedError as A, AgentProfileMcpServer as At, ServerError as B, BatchEvent as Bt, CapabilityError as C, InteractionRequest as Ct, FileWriteConflictError as D, AgentProfileConfidential as Dt, EgressProxyRecoveryError as E, AgentProfileCapabilities as Et, QuotaError as F, HarnessType as Ft, ValidationError as G, StreamInterruptedError as H, BatchSidecarGroup as Ht, ResumeEnvRequiredError as I, ProxySecretReceipt as It, BatchCustody as J, SandboxCreateOutcome as K, SandboxError as L, InteractionData as Lt, NotFoundError as M, AgentProfileSeat as Mt, PartialFailureError as N, AgentProfileValidationResult as Nt, GpuProviderNotConfiguredError as O, AgentProfileConfigValue as Ot, ProfileFileMountPathError as P, ReasoningEffort as Pt, BatchTaskInput as Q, SandboxErrorJson as R, PlanContinuation as Rt, BranchFanoutExceedsHostError as S, InteractionAcknowledgement as St, EdgeNotReadyError as T, AgentProfile as Tt, StreamInterruptionReason as U, BatchTaskUsage as Ut, StateError as V, BatchEventDataMap as Vt, TimeoutError as W, BatchTaskResult as X, BatchResult as Y, BatchBackendInput as Z, TerminalReadyTimings as _, TerminalOutputEvent as _t, TerminalStreamOptions as a, AgentInteractiveSessionAttach as at, parseErrorResponse as b, AgentRunCancellationAcknowledgement as bt, MintInteractiveSessionTokenOptions as c, AgentInteractiveSessionControlClaimRequest as ct, ScopedTokenScope as d, AgentInteractiveSessionRef as dt, PublicBatchRunRequestInput as et, TERMINAL_WS_ECHO_SUBPROTOCOL as f, AgentInteractiveSessionStatus as ft, TerminalReadyInfo as g, agentInteractiveSessionPromptRequestDigest as gt, TerminalOutputMessage as h, AgentInteractiveTerminalSession as ht, TerminalStreamHandlers as i, AgentInteractiveSessionStart as it, NetworkError as j, AgentProfileMetadata as jt, GpuProviderRequirement as k, AgentProfileFileMount as kt, MintScopedTokenOptions as l, AgentInteractiveSessionPromptAcknowledgement as lt, TerminalInteractiveSessionIdentity as m, AgentInteractiveSessionStopCommand as mt, TerminalStreamApiKey as n, SandboxSizePreset as nt, TerminalStreamReconnectAuthority as o, AgentInteractiveSessionControlClaim as ot, TerminalExitInfo as p, AgentInteractiveSessionStopAcknowledgement as pt, SandboxCreateReceipt as q, TerminalStreamBearerToken as r, AgentRuntimeAttachments as rt, TerminalStreamToken as s, AgentInteractiveSessionControlClaimAcknowledgement as st, TerminalAttachTimings as t, SANDBOX_SIZE_PRESET_NAMES as tt, ScopedToken as u, AgentInteractiveSessionPromptCommand as ut, TerminalStreamAuthFormat as v, TerminalReplayWindow as vt, CompliancePlacementError as w, InteractionResponseCommand as wt, AuthError as x, AgentRunCancellationRequest as xt, TerminalStreamError as y, AgentExactRunControlRef as yt, SandboxFailureDetail as z, BatchBackendStats as zt };
|