@tangle-network/sandbox 0.13.0-develop.20260727091103.289ad8d → 0.13.0-develop.20260727130113.8ef847a

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.
@@ -1,174 +1,7 @@
1
1
  import { AgentProfile, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileValidationResult } from "@tangle-network/agent-interface";
2
2
  import { z } from "zod";
3
3
 
4
- //#region ../../../packages/runtime-contracts/dist/batch-events.d.ts
5
- /** Token and tool usage emitted when one batch task completes. */
6
- interface BatchTaskUsage {
7
- inputTokens: number;
8
- outputTokens: number;
9
- cacheReadTokens?: number;
10
- cacheWriteTokens?: number;
11
- toolCallCount?: number;
12
- reasoningTokens?: number;
13
- cost?: number;
14
- }
15
- /** Per-backend aggregate emitted by `batch.completed`. */
16
- interface BatchBackendStats {
17
- backend: string;
18
- backendLabel?: string;
19
- backendModel?: string;
20
- success: number;
21
- failure: number;
22
- retries: number;
23
- successRate: number;
24
- }
25
- /** One sidecar allocated to a backend group. */
26
- interface BatchSidecarGroup {
27
- backend: string;
28
- sidecarId: string;
29
- variants: number;
30
- }
31
- interface BatchTaskEventIdentity {
32
- taskId: string;
33
- backend: string;
34
- backendLabel?: string;
35
- backendModel?: string;
36
- }
37
- /** Whether a streamed text value appends to or replaces prior text. */
38
- type BatchTextValueMode = "delta" | "snapshot";
39
- /** Data payloads keyed by the SSE event name emitted by `/batch/run`. */
40
- interface BatchEventDataMap {
41
- "batch.provisioning": {
42
- desiredCapacity: number;
43
- currentCapacity: number;
44
- provisionTimeoutMs: number;
45
- };
46
- "batch.provisioned": {
47
- capacity: number;
48
- };
49
- "batch.started": {
50
- taskCount: number;
51
- backendCount: number;
52
- totalExecutions: number;
53
- backends: string[];
54
- backendGroups: number;
55
- executionClass: string;
56
- maxConcurrentPerSidecar: number;
57
- maxSidecarsTotal: number;
58
- driverCapacity: number;
59
- policyMaxConcurrentPerSidecar: number | null;
60
- policyMaxSidecarsPerHost: number | null;
61
- };
62
- "sidecars.allocated": {
63
- count: number;
64
- groups: BatchSidecarGroup[];
65
- executionClass: string;
66
- maxConcurrentPerSidecar: number;
67
- maxSidecarsTotal: number;
68
- driverCapacity: number;
69
- policyMaxConcurrentPerSidecar: number | null;
70
- policyMaxSidecarsPerHost: number | null;
71
- };
72
- "batch.completed": {
73
- taskCount: number;
74
- backendCount: number;
75
- totalExecutions: number;
76
- totalSuccess: number;
77
- totalFailure: number;
78
- totalRetries: number;
79
- successRate: number;
80
- byBackend: BatchBackendStats[];
81
- };
82
- "batch.failed": {
83
- error: string;
84
- backends?: string[];
85
- };
86
- "batch.persistent": {
87
- message: string;
88
- sidecarCount: number;
89
- };
90
- "batch.grace_period": {
91
- message: string;
92
- sidecarCount: number;
93
- graceMs: number;
94
- sidecarIds: string[];
95
- };
96
- "task.started": BatchTaskEventIdentity & {
97
- index: number;
98
- total: number;
99
- attempt: number;
100
- retries: number;
101
- sidecarId: string;
102
- projectRef?: string;
103
- };
104
- "task.message.delta": BatchTaskEventIdentity & {
105
- sidecarId: string;
106
- projectRef?: string;
107
- value: string;
108
- valueMode: BatchTextValueMode;
109
- part: Record<string, unknown>;
110
- };
111
- "task.reasoning": BatchTaskEventIdentity & {
112
- sidecarId: string;
113
- projectRef?: string;
114
- value: string;
115
- valueMode: BatchTextValueMode;
116
- part: Record<string, unknown>;
117
- };
118
- "task.tool.updated": BatchTaskEventIdentity & {
119
- sidecarId: string;
120
- projectRef?: string;
121
- part: Record<string, unknown>;
122
- };
123
- "task.completed": BatchTaskEventIdentity & {
124
- durationMs: number;
125
- attempt: number;
126
- retries: number;
127
- sidecarId: string;
128
- projectRef?: string;
129
- resultSummary?: string;
130
- sessionId?: string;
131
- usage: BatchTaskUsage;
132
- };
133
- "task.failed": BatchTaskEventIdentity & {
134
- durationMs: number;
135
- attempt: number;
136
- retries: number;
137
- error: string;
138
- sidecarId?: string;
139
- projectRef?: string;
140
- };
141
- "task.retry": BatchTaskEventIdentity & {
142
- attempt: number;
143
- maxRetries: number;
144
- error: string;
145
- delayMs: number;
146
- executionClass: string;
147
- sidecarId: string;
148
- projectRef?: string;
149
- };
150
- "backend.completed": {
151
- backend: string;
152
- backendLabel?: string;
153
- backendModel?: string;
154
- sidecarIds?: string[];
155
- success: number;
156
- failure: number;
157
- retries: number;
158
- successRate: number;
159
- };
160
- "sidecar.releasing": {
161
- sidecarId: string;
162
- };
163
- }
164
- /** Discriminated SSE event from a batch execution. */
165
- type BatchEvent = { [K in keyof BatchEventDataMap]: {
166
- type: K;
167
- data: BatchEventDataMap[K]; /** Optional SSE id used by reconnecting consumers. */
168
- id?: string;
169
- } }[keyof BatchEventDataMap];
170
- //#endregion
171
- //#region ../../../packages/cli-agent-registry/src/backend-types.d.ts
4
+ //#region ../../../packages/runtime-contracts/dist/backend-types.d.ts
172
5
  declare const BACKEND_TYPE: {
173
6
  readonly OPENCODE: "opencode";
174
7
  readonly CLAUDE_CODE: "claude-code";
@@ -185,7 +18,1095 @@ declare const BACKEND_TYPE: {
185
18
  readonly CURSOR: "cursor";
186
19
  readonly CLI_BASE: "cli-base";
187
20
  };
188
- type BackendType$1 = (typeof BACKEND_TYPE)[keyof typeof BACKEND_TYPE];
21
+ type BackendType = (typeof BACKEND_TYPE)[keyof typeof BACKEND_TYPE];
22
+ //#endregion
23
+ //#region ../../../packages/runtime-contracts/dist/batch-request.d.ts
24
+ declare const batchTaskSchema: z.ZodObject<{
25
+ id: z.ZodString;
26
+ message: z.ZodString;
27
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
28
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
29
+ }, z.core.$strict>;
30
+ declare const batchBackendSchema: z.ZodObject<{
31
+ id: z.ZodString;
32
+ type: z.ZodEnum<{
33
+ opencode: "opencode";
34
+ "claude-code": "claude-code";
35
+ "kimi-code": "kimi-code";
36
+ codex: "codex";
37
+ amp: "amp";
38
+ "factory-droids": "factory-droids";
39
+ pi: "pi";
40
+ hermes: "hermes";
41
+ forge: "forge";
42
+ openclaw: "openclaw";
43
+ nanoclaw: "nanoclaw";
44
+ acp: "acp";
45
+ cursor: "cursor";
46
+ "cli-base": "cli-base";
47
+ }>;
48
+ model: z.ZodOptional<z.ZodObject<{
49
+ provider: z.ZodOptional<z.ZodString>;
50
+ model: z.ZodOptional<z.ZodString>;
51
+ apiKey: z.ZodOptional<z.ZodString>;
52
+ baseUrl: z.ZodOptional<z.ZodString>;
53
+ maxThinkingTokens: z.ZodOptional<z.ZodNumber>;
54
+ mode: z.ZodOptional<z.ZodEnum<{
55
+ api: "api";
56
+ cli: "cli";
57
+ }>>;
58
+ }, z.core.$strict>>;
59
+ server: z.ZodOptional<z.ZodObject<{
60
+ hostname: z.ZodOptional<z.ZodString>;
61
+ port: z.ZodOptional<z.ZodNumber>;
62
+ }, z.core.$strict>>;
63
+ profile: z.ZodOptional<z.ZodType<AgentProfile, unknown, z.core.$ZodTypeInternals<AgentProfile, unknown>>>;
64
+ }, z.core.$strict>;
65
+ /** Public callers control work only. Identity and capacity are server-owned. */
66
+ declare const publicBatchRunRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
67
+ persistent: z.ZodDefault<z.ZodLiteral<false>>;
68
+ graceMs: z.ZodOptional<z.ZodNumber>;
69
+ tasks: z.ZodArray<z.ZodObject<{
70
+ id: z.ZodString;
71
+ message: z.ZodString;
72
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
73
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
74
+ }, z.core.$strict>>;
75
+ backends: z.ZodArray<z.ZodObject<{
76
+ id: z.ZodString;
77
+ type: z.ZodEnum<{
78
+ opencode: "opencode";
79
+ "claude-code": "claude-code";
80
+ "kimi-code": "kimi-code";
81
+ codex: "codex";
82
+ amp: "amp";
83
+ "factory-droids": "factory-droids";
84
+ pi: "pi";
85
+ hermes: "hermes";
86
+ forge: "forge";
87
+ openclaw: "openclaw";
88
+ nanoclaw: "nanoclaw";
89
+ acp: "acp";
90
+ cursor: "cursor";
91
+ "cli-base": "cli-base";
92
+ }>;
93
+ model: z.ZodOptional<z.ZodObject<{
94
+ provider: z.ZodOptional<z.ZodString>;
95
+ model: z.ZodOptional<z.ZodString>;
96
+ apiKey: z.ZodOptional<z.ZodString>;
97
+ baseUrl: z.ZodOptional<z.ZodString>;
98
+ maxThinkingTokens: z.ZodOptional<z.ZodNumber>;
99
+ mode: z.ZodOptional<z.ZodEnum<{
100
+ api: "api";
101
+ cli: "cli";
102
+ }>>;
103
+ }, z.core.$strict>>;
104
+ server: z.ZodOptional<z.ZodObject<{
105
+ hostname: z.ZodOptional<z.ZodString>;
106
+ port: z.ZodOptional<z.ZodNumber>;
107
+ }, z.core.$strict>>;
108
+ profile: z.ZodOptional<z.ZodType<AgentProfile, unknown, z.core.$ZodTypeInternals<AgentProfile, unknown>>>;
109
+ }, z.core.$strict>>;
110
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
111
+ executionClass: z.ZodDefault<z.ZodEnum<{
112
+ project: "project";
113
+ simulation: "simulation";
114
+ background: "background";
115
+ }>>;
116
+ }, z.core.$strict>, z.ZodObject<{
117
+ persistent: z.ZodLiteral<true>;
118
+ reuseKey: z.ZodString;
119
+ lifecycle: z.ZodOptional<z.ZodObject<{
120
+ idleTimeoutMs: z.ZodDefault<z.ZodNumber>;
121
+ coldTimeoutMs: z.ZodDefault<z.ZodNumber>;
122
+ }, z.core.$strict>>;
123
+ git: z.ZodOptional<z.ZodObject<{
124
+ url: z.ZodString;
125
+ ref: z.ZodOptional<z.ZodString>;
126
+ depth: z.ZodOptional<z.ZodNumber>;
127
+ sparse: z.ZodOptional<z.ZodArray<z.ZodString>>;
128
+ auth: z.ZodOptional<z.ZodObject<{
129
+ token: z.ZodOptional<z.ZodString>;
130
+ }, z.core.$strict>>;
131
+ }, z.core.$strict>>;
132
+ tasks: z.ZodArray<z.ZodObject<{
133
+ id: z.ZodString;
134
+ message: z.ZodString;
135
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
136
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
137
+ }, z.core.$strict>>;
138
+ backends: z.ZodArray<z.ZodObject<{
139
+ id: z.ZodString;
140
+ type: z.ZodEnum<{
141
+ opencode: "opencode";
142
+ "claude-code": "claude-code";
143
+ "kimi-code": "kimi-code";
144
+ codex: "codex";
145
+ amp: "amp";
146
+ "factory-droids": "factory-droids";
147
+ pi: "pi";
148
+ hermes: "hermes";
149
+ forge: "forge";
150
+ openclaw: "openclaw";
151
+ nanoclaw: "nanoclaw";
152
+ acp: "acp";
153
+ cursor: "cursor";
154
+ "cli-base": "cli-base";
155
+ }>;
156
+ model: z.ZodOptional<z.ZodObject<{
157
+ provider: z.ZodOptional<z.ZodString>;
158
+ model: z.ZodOptional<z.ZodString>;
159
+ apiKey: z.ZodOptional<z.ZodString>;
160
+ baseUrl: z.ZodOptional<z.ZodString>;
161
+ maxThinkingTokens: z.ZodOptional<z.ZodNumber>;
162
+ mode: z.ZodOptional<z.ZodEnum<{
163
+ api: "api";
164
+ cli: "cli";
165
+ }>>;
166
+ }, z.core.$strict>>;
167
+ server: z.ZodOptional<z.ZodObject<{
168
+ hostname: z.ZodOptional<z.ZodString>;
169
+ port: z.ZodOptional<z.ZodNumber>;
170
+ }, z.core.$strict>>;
171
+ profile: z.ZodOptional<z.ZodType<AgentProfile, unknown, z.core.$ZodTypeInternals<AgentProfile, unknown>>>;
172
+ }, z.core.$strict>>;
173
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
174
+ executionClass: z.ZodDefault<z.ZodEnum<{
175
+ project: "project";
176
+ simulation: "simulation";
177
+ background: "background";
178
+ }>>;
179
+ }, z.core.$strict>]>;
180
+ type BatchTaskInput = z.input<typeof batchTaskSchema>;
181
+ type BatchBackendInput = z.input<typeof batchBackendSchema>;
182
+ type PublicBatchRunRequestInput = z.input<typeof publicBatchRunRequestSchema>;
183
+ type PublicBatchRunRequest = z.output<typeof publicBatchRunRequestSchema>;
184
+ //#endregion
185
+ //#region ../../../packages/runtime-contracts/dist/batch-events.d.ts
186
+ /** Token and tool usage emitted when one batch task completes. */
187
+ declare const batchTaskUsageSchema: z.ZodObject<{
188
+ inputTokens: z.ZodNumber;
189
+ outputTokens: z.ZodNumber;
190
+ cacheReadTokens: z.ZodOptional<z.ZodNumber>;
191
+ cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
192
+ toolCallCount: z.ZodOptional<z.ZodNumber>;
193
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
194
+ cost: z.ZodOptional<z.ZodNumber>;
195
+ }, z.core.$strict>;
196
+ type BatchTaskUsage = z.infer<typeof batchTaskUsageSchema>;
197
+ /** Per-backend aggregate emitted by `batch.completed`. */
198
+ declare const batchBackendStatsSchema: z.ZodObject<{
199
+ success: z.ZodNumber;
200
+ failure: z.ZodNumber;
201
+ retries: z.ZodNumber;
202
+ successRate: z.ZodNumber;
203
+ backendId: z.ZodString;
204
+ backendType: z.ZodEnum<{
205
+ opencode: "opencode";
206
+ "claude-code": "claude-code";
207
+ "kimi-code": "kimi-code";
208
+ codex: "codex";
209
+ amp: "amp";
210
+ "factory-droids": "factory-droids";
211
+ pi: "pi";
212
+ hermes: "hermes";
213
+ forge: "forge";
214
+ openclaw: "openclaw";
215
+ nanoclaw: "nanoclaw";
216
+ acp: "acp";
217
+ cursor: "cursor";
218
+ "cli-base": "cli-base";
219
+ }>;
220
+ backendLabel: z.ZodOptional<z.ZodString>;
221
+ backendModel: z.ZodOptional<z.ZodString>;
222
+ }, z.core.$strict>;
223
+ type BatchBackendStats = z.infer<typeof batchBackendStatsSchema>;
224
+ /** One sidecar allocated to a backend group. */
225
+ declare const batchSidecarGroupSchema: z.ZodObject<{
226
+ backendType: z.ZodEnum<{
227
+ opencode: "opencode";
228
+ "claude-code": "claude-code";
229
+ "kimi-code": "kimi-code";
230
+ codex: "codex";
231
+ amp: "amp";
232
+ "factory-droids": "factory-droids";
233
+ pi: "pi";
234
+ hermes: "hermes";
235
+ forge: "forge";
236
+ openclaw: "openclaw";
237
+ nanoclaw: "nanoclaw";
238
+ acp: "acp";
239
+ cursor: "cursor";
240
+ "cli-base": "cli-base";
241
+ }>;
242
+ backendIds: z.ZodArray<z.ZodString>;
243
+ sidecarId: z.ZodString;
244
+ variants: z.ZodNumber;
245
+ }, z.core.$strict>;
246
+ type BatchSidecarGroup = z.infer<typeof batchSidecarGroupSchema>;
247
+ declare const batchEventDataSchemas: {
248
+ readonly "batch.provisioning": z.ZodObject<{
249
+ desiredCapacity: z.ZodNumber;
250
+ currentCapacity: z.ZodNumber;
251
+ provisionTimeoutMs: z.ZodNumber;
252
+ }, z.core.$strict>;
253
+ readonly "batch.provisioned": z.ZodObject<{
254
+ capacity: z.ZodNumber;
255
+ }, z.core.$strict>;
256
+ readonly "batch.started": z.ZodObject<{
257
+ taskCount: z.ZodNumber;
258
+ backendCount: z.ZodNumber;
259
+ totalExecutions: z.ZodNumber;
260
+ backendIds: z.ZodArray<z.ZodString>;
261
+ backendTypes: z.ZodArray<z.ZodEnum<{
262
+ opencode: "opencode";
263
+ "claude-code": "claude-code";
264
+ "kimi-code": "kimi-code";
265
+ codex: "codex";
266
+ amp: "amp";
267
+ "factory-droids": "factory-droids";
268
+ pi: "pi";
269
+ hermes: "hermes";
270
+ forge: "forge";
271
+ openclaw: "openclaw";
272
+ nanoclaw: "nanoclaw";
273
+ acp: "acp";
274
+ cursor: "cursor";
275
+ "cli-base": "cli-base";
276
+ }>>;
277
+ backendGroups: z.ZodNumber;
278
+ executionClass: z.ZodEnum<{
279
+ project: "project";
280
+ simulation: "simulation";
281
+ background: "background";
282
+ }>;
283
+ maxConcurrentPerSidecar: z.ZodNumber;
284
+ maxSidecarsTotal: z.ZodNumber;
285
+ driverCapacity: z.ZodNumber;
286
+ policyMaxConcurrentPerSidecar: z.ZodNullable<z.ZodNumber>;
287
+ }, z.core.$strict>;
288
+ readonly "sidecars.allocated": z.ZodObject<{
289
+ count: z.ZodNumber;
290
+ groups: z.ZodArray<z.ZodObject<{
291
+ backendType: z.ZodEnum<{
292
+ opencode: "opencode";
293
+ "claude-code": "claude-code";
294
+ "kimi-code": "kimi-code";
295
+ codex: "codex";
296
+ amp: "amp";
297
+ "factory-droids": "factory-droids";
298
+ pi: "pi";
299
+ hermes: "hermes";
300
+ forge: "forge";
301
+ openclaw: "openclaw";
302
+ nanoclaw: "nanoclaw";
303
+ acp: "acp";
304
+ cursor: "cursor";
305
+ "cli-base": "cli-base";
306
+ }>;
307
+ backendIds: z.ZodArray<z.ZodString>;
308
+ sidecarId: z.ZodString;
309
+ variants: z.ZodNumber;
310
+ }, z.core.$strict>>;
311
+ executionClass: z.ZodEnum<{
312
+ project: "project";
313
+ simulation: "simulation";
314
+ background: "background";
315
+ }>;
316
+ maxConcurrentPerSidecar: z.ZodNumber;
317
+ maxSidecarsTotal: z.ZodNumber;
318
+ driverCapacity: z.ZodNumber;
319
+ policyMaxConcurrentPerSidecar: z.ZodNullable<z.ZodNumber>;
320
+ }, z.core.$strict>;
321
+ readonly "batch.completed": z.ZodObject<{
322
+ taskCount: z.ZodNumber;
323
+ backendCount: z.ZodNumber;
324
+ totalExecutions: z.ZodNumber;
325
+ totalSuccess: z.ZodNumber;
326
+ totalFailure: z.ZodNumber;
327
+ totalRetries: z.ZodNumber;
328
+ successRate: z.ZodNumber;
329
+ byBackend: z.ZodArray<z.ZodObject<{
330
+ success: z.ZodNumber;
331
+ failure: z.ZodNumber;
332
+ retries: z.ZodNumber;
333
+ successRate: z.ZodNumber;
334
+ backendId: z.ZodString;
335
+ backendType: z.ZodEnum<{
336
+ opencode: "opencode";
337
+ "claude-code": "claude-code";
338
+ "kimi-code": "kimi-code";
339
+ codex: "codex";
340
+ amp: "amp";
341
+ "factory-droids": "factory-droids";
342
+ pi: "pi";
343
+ hermes: "hermes";
344
+ forge: "forge";
345
+ openclaw: "openclaw";
346
+ nanoclaw: "nanoclaw";
347
+ acp: "acp";
348
+ cursor: "cursor";
349
+ "cli-base": "cli-base";
350
+ }>;
351
+ backendLabel: z.ZodOptional<z.ZodString>;
352
+ backendModel: z.ZodOptional<z.ZodString>;
353
+ }, z.core.$strict>>;
354
+ }, z.core.$strict>;
355
+ readonly "batch.failed": z.ZodObject<{
356
+ error: z.ZodString;
357
+ backendIds: z.ZodArray<z.ZodString>;
358
+ }, z.core.$strict>;
359
+ readonly "batch.persistent": z.ZodObject<{
360
+ message: z.ZodString;
361
+ sidecarCount: z.ZodNumber;
362
+ }, z.core.$strict>;
363
+ readonly "batch.grace_period": z.ZodObject<{
364
+ message: z.ZodString;
365
+ sidecarCount: z.ZodNumber;
366
+ graceMs: z.ZodNumber;
367
+ sidecarIds: z.ZodArray<z.ZodString>;
368
+ }, z.core.$strict>;
369
+ readonly "task.started": z.ZodObject<{
370
+ index: z.ZodNumber;
371
+ total: z.ZodNumber;
372
+ attempt: z.ZodNumber;
373
+ retries: z.ZodNumber;
374
+ sidecarId: z.ZodString;
375
+ projectRef: z.ZodOptional<z.ZodString>;
376
+ backendId: z.ZodString;
377
+ backendType: z.ZodEnum<{
378
+ opencode: "opencode";
379
+ "claude-code": "claude-code";
380
+ "kimi-code": "kimi-code";
381
+ codex: "codex";
382
+ amp: "amp";
383
+ "factory-droids": "factory-droids";
384
+ pi: "pi";
385
+ hermes: "hermes";
386
+ forge: "forge";
387
+ openclaw: "openclaw";
388
+ nanoclaw: "nanoclaw";
389
+ acp: "acp";
390
+ cursor: "cursor";
391
+ "cli-base": "cli-base";
392
+ }>;
393
+ backendLabel: z.ZodOptional<z.ZodString>;
394
+ backendModel: z.ZodOptional<z.ZodString>;
395
+ taskId: z.ZodString;
396
+ }, z.core.$strict>;
397
+ readonly "task.message.delta": z.ZodObject<{
398
+ sidecarId: z.ZodString;
399
+ projectRef: z.ZodOptional<z.ZodString>;
400
+ value: z.ZodString;
401
+ valueMode: z.ZodEnum<{
402
+ delta: "delta";
403
+ snapshot: "snapshot";
404
+ }>;
405
+ part: z.ZodRecord<z.ZodString, z.ZodUnknown>;
406
+ backendId: z.ZodString;
407
+ backendType: z.ZodEnum<{
408
+ opencode: "opencode";
409
+ "claude-code": "claude-code";
410
+ "kimi-code": "kimi-code";
411
+ codex: "codex";
412
+ amp: "amp";
413
+ "factory-droids": "factory-droids";
414
+ pi: "pi";
415
+ hermes: "hermes";
416
+ forge: "forge";
417
+ openclaw: "openclaw";
418
+ nanoclaw: "nanoclaw";
419
+ acp: "acp";
420
+ cursor: "cursor";
421
+ "cli-base": "cli-base";
422
+ }>;
423
+ backendLabel: z.ZodOptional<z.ZodString>;
424
+ backendModel: z.ZodOptional<z.ZodString>;
425
+ taskId: z.ZodString;
426
+ }, z.core.$strict>;
427
+ readonly "task.reasoning": z.ZodObject<{
428
+ sidecarId: z.ZodString;
429
+ projectRef: z.ZodOptional<z.ZodString>;
430
+ value: z.ZodString;
431
+ valueMode: z.ZodEnum<{
432
+ delta: "delta";
433
+ snapshot: "snapshot";
434
+ }>;
435
+ part: z.ZodRecord<z.ZodString, z.ZodUnknown>;
436
+ backendId: z.ZodString;
437
+ backendType: z.ZodEnum<{
438
+ opencode: "opencode";
439
+ "claude-code": "claude-code";
440
+ "kimi-code": "kimi-code";
441
+ codex: "codex";
442
+ amp: "amp";
443
+ "factory-droids": "factory-droids";
444
+ pi: "pi";
445
+ hermes: "hermes";
446
+ forge: "forge";
447
+ openclaw: "openclaw";
448
+ nanoclaw: "nanoclaw";
449
+ acp: "acp";
450
+ cursor: "cursor";
451
+ "cli-base": "cli-base";
452
+ }>;
453
+ backendLabel: z.ZodOptional<z.ZodString>;
454
+ backendModel: z.ZodOptional<z.ZodString>;
455
+ taskId: z.ZodString;
456
+ }, z.core.$strict>;
457
+ readonly "task.tool.updated": z.ZodObject<{
458
+ sidecarId: z.ZodString;
459
+ projectRef: z.ZodOptional<z.ZodString>;
460
+ part: z.ZodRecord<z.ZodString, z.ZodUnknown>;
461
+ backendId: z.ZodString;
462
+ backendType: z.ZodEnum<{
463
+ opencode: "opencode";
464
+ "claude-code": "claude-code";
465
+ "kimi-code": "kimi-code";
466
+ codex: "codex";
467
+ amp: "amp";
468
+ "factory-droids": "factory-droids";
469
+ pi: "pi";
470
+ hermes: "hermes";
471
+ forge: "forge";
472
+ openclaw: "openclaw";
473
+ nanoclaw: "nanoclaw";
474
+ acp: "acp";
475
+ cursor: "cursor";
476
+ "cli-base": "cli-base";
477
+ }>;
478
+ backendLabel: z.ZodOptional<z.ZodString>;
479
+ backendModel: z.ZodOptional<z.ZodString>;
480
+ taskId: z.ZodString;
481
+ }, z.core.$strict>;
482
+ readonly "task.completed": z.ZodObject<{
483
+ durationMs: z.ZodNumber;
484
+ attempt: z.ZodNumber;
485
+ retries: z.ZodNumber;
486
+ sidecarId: z.ZodString;
487
+ projectRef: z.ZodOptional<z.ZodString>;
488
+ resultSummary: z.ZodOptional<z.ZodString>;
489
+ sessionId: z.ZodOptional<z.ZodString>;
490
+ usage: z.ZodObject<{
491
+ inputTokens: z.ZodNumber;
492
+ outputTokens: z.ZodNumber;
493
+ cacheReadTokens: z.ZodOptional<z.ZodNumber>;
494
+ cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
495
+ toolCallCount: z.ZodOptional<z.ZodNumber>;
496
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
497
+ cost: z.ZodOptional<z.ZodNumber>;
498
+ }, z.core.$strict>;
499
+ backendId: z.ZodString;
500
+ backendType: z.ZodEnum<{
501
+ opencode: "opencode";
502
+ "claude-code": "claude-code";
503
+ "kimi-code": "kimi-code";
504
+ codex: "codex";
505
+ amp: "amp";
506
+ "factory-droids": "factory-droids";
507
+ pi: "pi";
508
+ hermes: "hermes";
509
+ forge: "forge";
510
+ openclaw: "openclaw";
511
+ nanoclaw: "nanoclaw";
512
+ acp: "acp";
513
+ cursor: "cursor";
514
+ "cli-base": "cli-base";
515
+ }>;
516
+ backendLabel: z.ZodOptional<z.ZodString>;
517
+ backendModel: z.ZodOptional<z.ZodString>;
518
+ taskId: z.ZodString;
519
+ }, z.core.$strict>;
520
+ readonly "task.failed": z.ZodObject<{
521
+ durationMs: z.ZodNumber;
522
+ attempt: z.ZodNumber;
523
+ retries: z.ZodNumber;
524
+ error: z.ZodString;
525
+ sidecarId: z.ZodOptional<z.ZodString>;
526
+ projectRef: z.ZodOptional<z.ZodString>;
527
+ usage: z.ZodOptional<z.ZodObject<{
528
+ inputTokens: z.ZodNumber;
529
+ outputTokens: z.ZodNumber;
530
+ cacheReadTokens: z.ZodOptional<z.ZodNumber>;
531
+ cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
532
+ toolCallCount: z.ZodOptional<z.ZodNumber>;
533
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
534
+ cost: z.ZodOptional<z.ZodNumber>;
535
+ }, z.core.$strict>>;
536
+ backendId: z.ZodString;
537
+ backendType: z.ZodEnum<{
538
+ opencode: "opencode";
539
+ "claude-code": "claude-code";
540
+ "kimi-code": "kimi-code";
541
+ codex: "codex";
542
+ amp: "amp";
543
+ "factory-droids": "factory-droids";
544
+ pi: "pi";
545
+ hermes: "hermes";
546
+ forge: "forge";
547
+ openclaw: "openclaw";
548
+ nanoclaw: "nanoclaw";
549
+ acp: "acp";
550
+ cursor: "cursor";
551
+ "cli-base": "cli-base";
552
+ }>;
553
+ backendLabel: z.ZodOptional<z.ZodString>;
554
+ backendModel: z.ZodOptional<z.ZodString>;
555
+ taskId: z.ZodString;
556
+ }, z.core.$strict>;
557
+ readonly "task.retry": z.ZodObject<{
558
+ attempt: z.ZodNumber;
559
+ maxRetries: z.ZodNumber;
560
+ error: z.ZodString;
561
+ delayMs: z.ZodNumber;
562
+ executionClass: z.ZodEnum<{
563
+ project: "project";
564
+ simulation: "simulation";
565
+ background: "background";
566
+ }>;
567
+ sidecarId: z.ZodString;
568
+ projectRef: z.ZodOptional<z.ZodString>;
569
+ backendId: z.ZodString;
570
+ backendType: z.ZodEnum<{
571
+ opencode: "opencode";
572
+ "claude-code": "claude-code";
573
+ "kimi-code": "kimi-code";
574
+ codex: "codex";
575
+ amp: "amp";
576
+ "factory-droids": "factory-droids";
577
+ pi: "pi";
578
+ hermes: "hermes";
579
+ forge: "forge";
580
+ openclaw: "openclaw";
581
+ nanoclaw: "nanoclaw";
582
+ acp: "acp";
583
+ cursor: "cursor";
584
+ "cli-base": "cli-base";
585
+ }>;
586
+ backendLabel: z.ZodOptional<z.ZodString>;
587
+ backendModel: z.ZodOptional<z.ZodString>;
588
+ taskId: z.ZodString;
589
+ }, z.core.$strict>;
590
+ readonly "backend.completed": z.ZodObject<{
591
+ sidecarIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
592
+ success: z.ZodNumber;
593
+ failure: z.ZodNumber;
594
+ retries: z.ZodNumber;
595
+ successRate: z.ZodNumber;
596
+ backendId: z.ZodString;
597
+ backendType: z.ZodEnum<{
598
+ opencode: "opencode";
599
+ "claude-code": "claude-code";
600
+ "kimi-code": "kimi-code";
601
+ codex: "codex";
602
+ amp: "amp";
603
+ "factory-droids": "factory-droids";
604
+ pi: "pi";
605
+ hermes: "hermes";
606
+ forge: "forge";
607
+ openclaw: "openclaw";
608
+ nanoclaw: "nanoclaw";
609
+ acp: "acp";
610
+ cursor: "cursor";
611
+ "cli-base": "cli-base";
612
+ }>;
613
+ backendLabel: z.ZodOptional<z.ZodString>;
614
+ backendModel: z.ZodOptional<z.ZodString>;
615
+ }, z.core.$strict>;
616
+ readonly "sidecar.releasing": z.ZodObject<{
617
+ sidecarId: z.ZodString;
618
+ }, z.core.$strict>;
619
+ readonly "sidecar.released": z.ZodObject<{
620
+ sidecarId: z.ZodString;
621
+ }, z.core.$strict>;
622
+ readonly "sidecar.release_pending": z.ZodObject<{
623
+ sidecarId: z.ZodString;
624
+ attempt: z.ZodNumber;
625
+ retryInMs: z.ZodNumber;
626
+ }, z.core.$strict>;
627
+ };
628
+ /** Data payloads keyed by the SSE event name emitted by `/batch/run`. */
629
+ type BatchEventDataMap = { [K in keyof typeof batchEventDataSchemas]: z.infer<(typeof batchEventDataSchemas)[K]> };
630
+ /** Runtime parser and discriminated type for one batch SSE event. */
631
+ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
632
+ type: z.ZodLiteral<"batch.provisioning">;
633
+ data: z.ZodObject<{
634
+ desiredCapacity: z.ZodNumber;
635
+ currentCapacity: z.ZodNumber;
636
+ provisionTimeoutMs: z.ZodNumber;
637
+ }, z.core.$strict>;
638
+ id: z.ZodOptional<z.ZodString>;
639
+ }, z.core.$strict>, z.ZodObject<{
640
+ type: z.ZodLiteral<"batch.provisioned">;
641
+ data: z.ZodObject<{
642
+ capacity: z.ZodNumber;
643
+ }, z.core.$strict>;
644
+ id: z.ZodOptional<z.ZodString>;
645
+ }, z.core.$strict>, z.ZodObject<{
646
+ type: z.ZodLiteral<"batch.started">;
647
+ data: z.ZodObject<{
648
+ taskCount: z.ZodNumber;
649
+ backendCount: z.ZodNumber;
650
+ totalExecutions: z.ZodNumber;
651
+ backendIds: z.ZodArray<z.ZodString>;
652
+ backendTypes: z.ZodArray<z.ZodEnum<{
653
+ opencode: "opencode";
654
+ "claude-code": "claude-code";
655
+ "kimi-code": "kimi-code";
656
+ codex: "codex";
657
+ amp: "amp";
658
+ "factory-droids": "factory-droids";
659
+ pi: "pi";
660
+ hermes: "hermes";
661
+ forge: "forge";
662
+ openclaw: "openclaw";
663
+ nanoclaw: "nanoclaw";
664
+ acp: "acp";
665
+ cursor: "cursor";
666
+ "cli-base": "cli-base";
667
+ }>>;
668
+ backendGroups: z.ZodNumber;
669
+ executionClass: z.ZodEnum<{
670
+ project: "project";
671
+ simulation: "simulation";
672
+ background: "background";
673
+ }>;
674
+ maxConcurrentPerSidecar: z.ZodNumber;
675
+ maxSidecarsTotal: z.ZodNumber;
676
+ driverCapacity: z.ZodNumber;
677
+ policyMaxConcurrentPerSidecar: z.ZodNullable<z.ZodNumber>;
678
+ }, z.core.$strict>;
679
+ id: z.ZodOptional<z.ZodString>;
680
+ }, z.core.$strict>, z.ZodObject<{
681
+ type: z.ZodLiteral<"sidecars.allocated">;
682
+ data: z.ZodObject<{
683
+ count: z.ZodNumber;
684
+ groups: z.ZodArray<z.ZodObject<{
685
+ backendType: z.ZodEnum<{
686
+ opencode: "opencode";
687
+ "claude-code": "claude-code";
688
+ "kimi-code": "kimi-code";
689
+ codex: "codex";
690
+ amp: "amp";
691
+ "factory-droids": "factory-droids";
692
+ pi: "pi";
693
+ hermes: "hermes";
694
+ forge: "forge";
695
+ openclaw: "openclaw";
696
+ nanoclaw: "nanoclaw";
697
+ acp: "acp";
698
+ cursor: "cursor";
699
+ "cli-base": "cli-base";
700
+ }>;
701
+ backendIds: z.ZodArray<z.ZodString>;
702
+ sidecarId: z.ZodString;
703
+ variants: z.ZodNumber;
704
+ }, z.core.$strict>>;
705
+ executionClass: z.ZodEnum<{
706
+ project: "project";
707
+ simulation: "simulation";
708
+ background: "background";
709
+ }>;
710
+ maxConcurrentPerSidecar: z.ZodNumber;
711
+ maxSidecarsTotal: z.ZodNumber;
712
+ driverCapacity: z.ZodNumber;
713
+ policyMaxConcurrentPerSidecar: z.ZodNullable<z.ZodNumber>;
714
+ }, z.core.$strict>;
715
+ id: z.ZodOptional<z.ZodString>;
716
+ }, z.core.$strict>, z.ZodObject<{
717
+ type: z.ZodLiteral<"batch.completed">;
718
+ data: z.ZodObject<{
719
+ taskCount: z.ZodNumber;
720
+ backendCount: z.ZodNumber;
721
+ totalExecutions: z.ZodNumber;
722
+ totalSuccess: z.ZodNumber;
723
+ totalFailure: z.ZodNumber;
724
+ totalRetries: z.ZodNumber;
725
+ successRate: z.ZodNumber;
726
+ byBackend: z.ZodArray<z.ZodObject<{
727
+ success: z.ZodNumber;
728
+ failure: z.ZodNumber;
729
+ retries: z.ZodNumber;
730
+ successRate: z.ZodNumber;
731
+ backendId: z.ZodString;
732
+ backendType: z.ZodEnum<{
733
+ opencode: "opencode";
734
+ "claude-code": "claude-code";
735
+ "kimi-code": "kimi-code";
736
+ codex: "codex";
737
+ amp: "amp";
738
+ "factory-droids": "factory-droids";
739
+ pi: "pi";
740
+ hermes: "hermes";
741
+ forge: "forge";
742
+ openclaw: "openclaw";
743
+ nanoclaw: "nanoclaw";
744
+ acp: "acp";
745
+ cursor: "cursor";
746
+ "cli-base": "cli-base";
747
+ }>;
748
+ backendLabel: z.ZodOptional<z.ZodString>;
749
+ backendModel: z.ZodOptional<z.ZodString>;
750
+ }, z.core.$strict>>;
751
+ }, z.core.$strict>;
752
+ id: z.ZodOptional<z.ZodString>;
753
+ }, z.core.$strict>, z.ZodObject<{
754
+ type: z.ZodLiteral<"batch.failed">;
755
+ data: z.ZodObject<{
756
+ error: z.ZodString;
757
+ backendIds: z.ZodArray<z.ZodString>;
758
+ }, z.core.$strict>;
759
+ id: z.ZodOptional<z.ZodString>;
760
+ }, z.core.$strict>, z.ZodObject<{
761
+ type: z.ZodLiteral<"batch.persistent">;
762
+ data: z.ZodObject<{
763
+ message: z.ZodString;
764
+ sidecarCount: z.ZodNumber;
765
+ }, z.core.$strict>;
766
+ id: z.ZodOptional<z.ZodString>;
767
+ }, z.core.$strict>, z.ZodObject<{
768
+ type: z.ZodLiteral<"batch.grace_period">;
769
+ data: z.ZodObject<{
770
+ message: z.ZodString;
771
+ sidecarCount: z.ZodNumber;
772
+ graceMs: z.ZodNumber;
773
+ sidecarIds: z.ZodArray<z.ZodString>;
774
+ }, z.core.$strict>;
775
+ id: z.ZodOptional<z.ZodString>;
776
+ }, z.core.$strict>, z.ZodObject<{
777
+ type: z.ZodLiteral<"task.started">;
778
+ data: z.ZodObject<{
779
+ index: z.ZodNumber;
780
+ total: z.ZodNumber;
781
+ attempt: z.ZodNumber;
782
+ retries: z.ZodNumber;
783
+ sidecarId: z.ZodString;
784
+ projectRef: z.ZodOptional<z.ZodString>;
785
+ backendId: z.ZodString;
786
+ backendType: z.ZodEnum<{
787
+ opencode: "opencode";
788
+ "claude-code": "claude-code";
789
+ "kimi-code": "kimi-code";
790
+ codex: "codex";
791
+ amp: "amp";
792
+ "factory-droids": "factory-droids";
793
+ pi: "pi";
794
+ hermes: "hermes";
795
+ forge: "forge";
796
+ openclaw: "openclaw";
797
+ nanoclaw: "nanoclaw";
798
+ acp: "acp";
799
+ cursor: "cursor";
800
+ "cli-base": "cli-base";
801
+ }>;
802
+ backendLabel: z.ZodOptional<z.ZodString>;
803
+ backendModel: z.ZodOptional<z.ZodString>;
804
+ taskId: z.ZodString;
805
+ }, z.core.$strict>;
806
+ id: z.ZodOptional<z.ZodString>;
807
+ }, z.core.$strict>, z.ZodObject<{
808
+ type: z.ZodLiteral<"task.message.delta">;
809
+ data: z.ZodObject<{
810
+ sidecarId: z.ZodString;
811
+ projectRef: z.ZodOptional<z.ZodString>;
812
+ value: z.ZodString;
813
+ valueMode: z.ZodEnum<{
814
+ delta: "delta";
815
+ snapshot: "snapshot";
816
+ }>;
817
+ part: z.ZodRecord<z.ZodString, z.ZodUnknown>;
818
+ backendId: z.ZodString;
819
+ backendType: z.ZodEnum<{
820
+ opencode: "opencode";
821
+ "claude-code": "claude-code";
822
+ "kimi-code": "kimi-code";
823
+ codex: "codex";
824
+ amp: "amp";
825
+ "factory-droids": "factory-droids";
826
+ pi: "pi";
827
+ hermes: "hermes";
828
+ forge: "forge";
829
+ openclaw: "openclaw";
830
+ nanoclaw: "nanoclaw";
831
+ acp: "acp";
832
+ cursor: "cursor";
833
+ "cli-base": "cli-base";
834
+ }>;
835
+ backendLabel: z.ZodOptional<z.ZodString>;
836
+ backendModel: z.ZodOptional<z.ZodString>;
837
+ taskId: z.ZodString;
838
+ }, z.core.$strict>;
839
+ id: z.ZodOptional<z.ZodString>;
840
+ }, z.core.$strict>, z.ZodObject<{
841
+ type: z.ZodLiteral<"task.reasoning">;
842
+ data: z.ZodObject<{
843
+ sidecarId: z.ZodString;
844
+ projectRef: z.ZodOptional<z.ZodString>;
845
+ value: z.ZodString;
846
+ valueMode: z.ZodEnum<{
847
+ delta: "delta";
848
+ snapshot: "snapshot";
849
+ }>;
850
+ part: z.ZodRecord<z.ZodString, z.ZodUnknown>;
851
+ backendId: z.ZodString;
852
+ backendType: z.ZodEnum<{
853
+ opencode: "opencode";
854
+ "claude-code": "claude-code";
855
+ "kimi-code": "kimi-code";
856
+ codex: "codex";
857
+ amp: "amp";
858
+ "factory-droids": "factory-droids";
859
+ pi: "pi";
860
+ hermes: "hermes";
861
+ forge: "forge";
862
+ openclaw: "openclaw";
863
+ nanoclaw: "nanoclaw";
864
+ acp: "acp";
865
+ cursor: "cursor";
866
+ "cli-base": "cli-base";
867
+ }>;
868
+ backendLabel: z.ZodOptional<z.ZodString>;
869
+ backendModel: z.ZodOptional<z.ZodString>;
870
+ taskId: z.ZodString;
871
+ }, z.core.$strict>;
872
+ id: z.ZodOptional<z.ZodString>;
873
+ }, z.core.$strict>, z.ZodObject<{
874
+ type: z.ZodLiteral<"task.tool.updated">;
875
+ data: z.ZodObject<{
876
+ sidecarId: z.ZodString;
877
+ projectRef: z.ZodOptional<z.ZodString>;
878
+ part: z.ZodRecord<z.ZodString, z.ZodUnknown>;
879
+ backendId: z.ZodString;
880
+ backendType: z.ZodEnum<{
881
+ opencode: "opencode";
882
+ "claude-code": "claude-code";
883
+ "kimi-code": "kimi-code";
884
+ codex: "codex";
885
+ amp: "amp";
886
+ "factory-droids": "factory-droids";
887
+ pi: "pi";
888
+ hermes: "hermes";
889
+ forge: "forge";
890
+ openclaw: "openclaw";
891
+ nanoclaw: "nanoclaw";
892
+ acp: "acp";
893
+ cursor: "cursor";
894
+ "cli-base": "cli-base";
895
+ }>;
896
+ backendLabel: z.ZodOptional<z.ZodString>;
897
+ backendModel: z.ZodOptional<z.ZodString>;
898
+ taskId: z.ZodString;
899
+ }, z.core.$strict>;
900
+ id: z.ZodOptional<z.ZodString>;
901
+ }, z.core.$strict>, z.ZodObject<{
902
+ type: z.ZodLiteral<"task.completed">;
903
+ data: z.ZodObject<{
904
+ durationMs: z.ZodNumber;
905
+ attempt: z.ZodNumber;
906
+ retries: z.ZodNumber;
907
+ sidecarId: z.ZodString;
908
+ projectRef: z.ZodOptional<z.ZodString>;
909
+ resultSummary: z.ZodOptional<z.ZodString>;
910
+ sessionId: z.ZodOptional<z.ZodString>;
911
+ usage: z.ZodObject<{
912
+ inputTokens: z.ZodNumber;
913
+ outputTokens: z.ZodNumber;
914
+ cacheReadTokens: z.ZodOptional<z.ZodNumber>;
915
+ cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
916
+ toolCallCount: z.ZodOptional<z.ZodNumber>;
917
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
918
+ cost: z.ZodOptional<z.ZodNumber>;
919
+ }, z.core.$strict>;
920
+ backendId: z.ZodString;
921
+ backendType: z.ZodEnum<{
922
+ opencode: "opencode";
923
+ "claude-code": "claude-code";
924
+ "kimi-code": "kimi-code";
925
+ codex: "codex";
926
+ amp: "amp";
927
+ "factory-droids": "factory-droids";
928
+ pi: "pi";
929
+ hermes: "hermes";
930
+ forge: "forge";
931
+ openclaw: "openclaw";
932
+ nanoclaw: "nanoclaw";
933
+ acp: "acp";
934
+ cursor: "cursor";
935
+ "cli-base": "cli-base";
936
+ }>;
937
+ backendLabel: z.ZodOptional<z.ZodString>;
938
+ backendModel: z.ZodOptional<z.ZodString>;
939
+ taskId: z.ZodString;
940
+ }, z.core.$strict>;
941
+ id: z.ZodOptional<z.ZodString>;
942
+ }, z.core.$strict>, z.ZodObject<{
943
+ type: z.ZodLiteral<"task.failed">;
944
+ data: z.ZodObject<{
945
+ durationMs: z.ZodNumber;
946
+ attempt: z.ZodNumber;
947
+ retries: z.ZodNumber;
948
+ error: z.ZodString;
949
+ sidecarId: z.ZodOptional<z.ZodString>;
950
+ projectRef: z.ZodOptional<z.ZodString>;
951
+ usage: z.ZodOptional<z.ZodObject<{
952
+ inputTokens: z.ZodNumber;
953
+ outputTokens: z.ZodNumber;
954
+ cacheReadTokens: z.ZodOptional<z.ZodNumber>;
955
+ cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
956
+ toolCallCount: z.ZodOptional<z.ZodNumber>;
957
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
958
+ cost: z.ZodOptional<z.ZodNumber>;
959
+ }, z.core.$strict>>;
960
+ backendId: z.ZodString;
961
+ backendType: z.ZodEnum<{
962
+ opencode: "opencode";
963
+ "claude-code": "claude-code";
964
+ "kimi-code": "kimi-code";
965
+ codex: "codex";
966
+ amp: "amp";
967
+ "factory-droids": "factory-droids";
968
+ pi: "pi";
969
+ hermes: "hermes";
970
+ forge: "forge";
971
+ openclaw: "openclaw";
972
+ nanoclaw: "nanoclaw";
973
+ acp: "acp";
974
+ cursor: "cursor";
975
+ "cli-base": "cli-base";
976
+ }>;
977
+ backendLabel: z.ZodOptional<z.ZodString>;
978
+ backendModel: z.ZodOptional<z.ZodString>;
979
+ taskId: z.ZodString;
980
+ }, z.core.$strict>;
981
+ id: z.ZodOptional<z.ZodString>;
982
+ }, z.core.$strict>, z.ZodObject<{
983
+ type: z.ZodLiteral<"task.retry">;
984
+ data: z.ZodObject<{
985
+ attempt: z.ZodNumber;
986
+ maxRetries: z.ZodNumber;
987
+ error: z.ZodString;
988
+ delayMs: z.ZodNumber;
989
+ executionClass: z.ZodEnum<{
990
+ project: "project";
991
+ simulation: "simulation";
992
+ background: "background";
993
+ }>;
994
+ sidecarId: z.ZodString;
995
+ projectRef: z.ZodOptional<z.ZodString>;
996
+ backendId: z.ZodString;
997
+ backendType: z.ZodEnum<{
998
+ opencode: "opencode";
999
+ "claude-code": "claude-code";
1000
+ "kimi-code": "kimi-code";
1001
+ codex: "codex";
1002
+ amp: "amp";
1003
+ "factory-droids": "factory-droids";
1004
+ pi: "pi";
1005
+ hermes: "hermes";
1006
+ forge: "forge";
1007
+ openclaw: "openclaw";
1008
+ nanoclaw: "nanoclaw";
1009
+ acp: "acp";
1010
+ cursor: "cursor";
1011
+ "cli-base": "cli-base";
1012
+ }>;
1013
+ backendLabel: z.ZodOptional<z.ZodString>;
1014
+ backendModel: z.ZodOptional<z.ZodString>;
1015
+ taskId: z.ZodString;
1016
+ }, z.core.$strict>;
1017
+ id: z.ZodOptional<z.ZodString>;
1018
+ }, z.core.$strict>, z.ZodObject<{
1019
+ type: z.ZodLiteral<"backend.completed">;
1020
+ data: z.ZodObject<{
1021
+ sidecarIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1022
+ success: z.ZodNumber;
1023
+ failure: z.ZodNumber;
1024
+ retries: z.ZodNumber;
1025
+ successRate: z.ZodNumber;
1026
+ backendId: z.ZodString;
1027
+ backendType: z.ZodEnum<{
1028
+ opencode: "opencode";
1029
+ "claude-code": "claude-code";
1030
+ "kimi-code": "kimi-code";
1031
+ codex: "codex";
1032
+ amp: "amp";
1033
+ "factory-droids": "factory-droids";
1034
+ pi: "pi";
1035
+ hermes: "hermes";
1036
+ forge: "forge";
1037
+ openclaw: "openclaw";
1038
+ nanoclaw: "nanoclaw";
1039
+ acp: "acp";
1040
+ cursor: "cursor";
1041
+ "cli-base": "cli-base";
1042
+ }>;
1043
+ backendLabel: z.ZodOptional<z.ZodString>;
1044
+ backendModel: z.ZodOptional<z.ZodString>;
1045
+ }, z.core.$strict>;
1046
+ id: z.ZodOptional<z.ZodString>;
1047
+ }, z.core.$strict>, z.ZodObject<{
1048
+ type: z.ZodLiteral<"sidecar.releasing">;
1049
+ data: z.ZodObject<{
1050
+ sidecarId: z.ZodString;
1051
+ }, z.core.$strict>;
1052
+ id: z.ZodOptional<z.ZodString>;
1053
+ }, z.core.$strict>, z.ZodObject<{
1054
+ type: z.ZodLiteral<"sidecar.released">;
1055
+ data: z.ZodObject<{
1056
+ sidecarId: z.ZodString;
1057
+ }, z.core.$strict>;
1058
+ id: z.ZodOptional<z.ZodString>;
1059
+ }, z.core.$strict>, z.ZodObject<{
1060
+ type: z.ZodLiteral<"sidecar.release_pending">;
1061
+ data: z.ZodObject<{
1062
+ sidecarId: z.ZodString;
1063
+ attempt: z.ZodNumber;
1064
+ retryInMs: z.ZodNumber;
1065
+ }, z.core.$strict>;
1066
+ id: z.ZodOptional<z.ZodString>;
1067
+ }, z.core.$strict>], "type">;
1068
+ type BatchEvent = z.infer<typeof batchEventSchema>;
1069
+ //#endregion
1070
+ //#region ../../../packages/runtime-contracts/dist/batch-stream.d.ts
1071
+ type BatchTaskResult$1 = (BatchEventDataMap["task.completed"] & {
1072
+ success: true;
1073
+ }) | (BatchEventDataMap["task.failed"] & {
1074
+ success: false;
1075
+ });
1076
+ type BatchBackendResult = BatchEventDataMap["backend.completed"] & {
1077
+ sidecarIds: string[];
1078
+ };
1079
+ type BatchCleanupResult = ({
1080
+ mode: "persistent";
1081
+ } & BatchEventDataMap["batch.persistent"]) | ({
1082
+ mode: "grace";
1083
+ } & BatchEventDataMap["batch.grace_period"]) | {
1084
+ mode: "release";
1085
+ releasedSidecarIds: string[];
1086
+ pendingSidecarIds: string[];
1087
+ isComplete: boolean;
1088
+ };
1089
+ interface BatchResult$1 {
1090
+ totalTasks: number;
1091
+ totalBackends: number;
1092
+ totalExecutions: number;
1093
+ totalSuccess: number;
1094
+ totalFailure: number;
1095
+ totalRetries: number;
1096
+ successRate: number;
1097
+ byBackend: BatchBackendResult[];
1098
+ results: BatchTaskResult$1[];
1099
+ execution: {
1100
+ provisioning?: {
1101
+ requested: BatchEventDataMap["batch.provisioning"];
1102
+ provisioned: BatchEventDataMap["batch.provisioned"];
1103
+ };
1104
+ started: BatchEventDataMap["batch.started"];
1105
+ sidecars: BatchEventDataMap["sidecars.allocated"];
1106
+ completion: BatchEventDataMap["batch.completed"];
1107
+ cleanup: BatchCleanupResult;
1108
+ };
1109
+ }
189
1110
  //#endregion
190
1111
  //#region src/terminal-stream.d.ts
191
1112
  /**
@@ -2546,133 +3467,32 @@ interface SnapshotInfo {
2546
3467
  /** Size in bytes */
2547
3468
  sizeBytes?: number;
2548
3469
  }
2549
- /**
2550
- * A single task in a batch execution.
2551
- */
2552
- interface BatchTask {
2553
- /** Unique task identifier */
2554
- id: string;
2555
- /** Task prompt/message */
2556
- message: string;
2557
- /** Additional context for this task */
2558
- context?: Record<string, unknown>;
2559
- /** Per-task timeout in milliseconds */
2560
- timeoutMs?: number;
2561
- }
3470
+ /** A single task in a batch execution. */
3471
+ type BatchTask = BatchTaskInput;
2562
3472
  /** Backend configuration accepted by batch execution. */
2563
- type BatchBackend = Omit<Partial<BackendConfig>, "type"> & {
2564
- type?: BackendType;
2565
- };
2566
- /**
2567
- * Options for batch execution.
2568
- */
2569
- interface BatchOptions {
2570
- /** Timeout for entire batch in milliseconds (default: 300000 = 5 min) */
2571
- timeoutMs?: number;
2572
- /** Scaling mode: fastest, balanced, or cheapest (default: balanced) */
2573
- scalingMode?: "fastest" | "balanced" | "cheapest";
3473
+ type BatchBackend = BatchBackendInput;
3474
+ /** Complete request accepted by `runBatch` and `streamBatch`. */
3475
+ type BatchRunRequest = PublicBatchRunRequestInput;
3476
+ /** Per-call controls that are not serialized into a batch request. */
3477
+ interface BatchRunOptions {
2574
3478
  /**
2575
- * Shared backend override for the batch.
2576
- *
2577
- * Use `backend.profile` for an inline provider-neutral `AgentProfile`.
3479
+ * Retry identity for this exact request body. Reuse it only when retrying the
3480
+ * same logical batch. Keyed batches continue after a client disconnect so a
3481
+ * later call can join them. Unkeyed batches stop when the client disconnects.
2578
3482
  */
2579
- backend?: BatchBackend;
2580
- /** Run every task against each backend for comparison. */
2581
- backends?: BatchBackend[];
2582
- /** User identifier attached to the batch for platform attribution. */
2583
- userId?: string;
2584
- /** Partner identifier attached to the batch for credit attribution. */
2585
- partnerId?: string;
2586
- /** Request identifier used in events and metrics. */
2587
- identifier?: string;
2588
- /** Workload class used by capacity and lifecycle policy. */
2589
- executionClass?: "project" | "simulation" | "background";
2590
- /** Capacity to provision before execution starts. */
2591
- desiredCapacity?: number;
2592
- /** Maximum time to wait for requested capacity. */
2593
- provisionTimeoutMs?: number;
2594
- /** Keep sandboxes alive after completion (default: false) */
2595
- persistent?: boolean;
2596
- /** Lifecycle policy for persistent batch sandboxes. */
2597
- lifecycle?: {
2598
- idleTimeoutMs?: number;
2599
- coldTimeoutMs?: number;
2600
- };
2601
- /** Use deterministic mock model responses. Intended for tests. */
2602
- mock?: boolean;
2603
- /** Milliseconds to keep non-persistent batch sandboxes alive after completion. */
2604
- graceMs?: number;
2605
- /** Repository cloned into persistent batch workspaces. */
2606
- git?: GitConfig;
2607
- /** Full replacement for the default agent system prompt. */
2608
- systemPrompt?: string;
2609
- /** Instructions appended to the default agent system prompt. */
2610
- instructions?: string;
3483
+ idempotencyKey?: string;
2611
3484
  /**
2612
- * AbortSignal to cancel the batch mid-stream. When aborted, the HTTP
2613
- * request to `/batch/run` is torn down; the SSE generator stops
2614
- * yielding and `runBatch`/`streamBatch` reject with an `AbortError`.
2615
- *
2616
- * Note: the server-side batch may continue running to completion —
2617
- * the signal is strictly for disconnecting the client from the
2618
- * stream, not for halting server work.
3485
+ * Cancels this client stream. An unkeyed cancellation also stops server
3486
+ * execution; a keyed cancellation detaches while the shared run continues.
2619
3487
  */
2620
3488
  signal?: AbortSignal;
2621
3489
  }
2622
- /** Complete request accepted by `runBatch` and `streamBatch`. */
2623
- interface BatchRunRequest extends Omit<BatchOptions, "signal"> {
2624
- tasks: BatchTask[];
2625
- }
2626
- /** Per-call controls that are not serialized into a batch request. */
2627
- interface BatchRunOptions {
2628
- signal?: AbortSignal;
2629
- }
2630
3490
  /**
2631
3491
  * Result of a single task in a batch.
2632
3492
  */
2633
- interface BatchTaskResult {
2634
- /** Task identifier */
2635
- taskId: string;
2636
- /** Whether the task succeeded */
2637
- success: boolean;
2638
- /** Task result summary if successful */
2639
- resultSummary?: string;
2640
- /** Error message if failed */
2641
- error?: string;
2642
- /** Duration in milliseconds */
2643
- durationMs: number;
2644
- /** Number of retries */
2645
- retries: number;
2646
- /** Token usage if available */
2647
- usage?: BatchTaskUsage;
2648
- /** Backend identifier for multi-backend batches. */
2649
- backend?: string;
2650
- /** Human-readable backend label emitted by the server. */
2651
- backendLabel?: string;
2652
- /** Model identifier emitted by the server. */
2653
- backendModel?: string;
2654
- /** Runtime session created for this task execution. */
2655
- sessionId?: string;
2656
- /** Sandbox used for this task execution. */
2657
- sandboxId?: string;
2658
- }
2659
- /**
2660
- * Summary of batch execution.
2661
- */
2662
- interface BatchResult {
2663
- /** Total tasks executed */
2664
- totalTasks: number;
2665
- /** Number of successful tasks */
2666
- succeeded: number;
2667
- /** Number of failed tasks */
2668
- failed: number;
2669
- /** Total retries across all tasks */
2670
- totalRetries: number;
2671
- /** Success rate (0-100) */
2672
- successRate: number;
2673
- /** Individual task results */
2674
- results: BatchTaskResult[];
2675
- }
3493
+ type BatchTaskResult = BatchTaskResult$1;
3494
+ /** Complete validated batch result. */
3495
+ type BatchResult = BatchResult$1;
2676
3496
  /**
2677
3497
  * Stable worker identifier inside a sandbox fleet.
2678
3498
  *
@@ -3516,13 +4336,6 @@ interface DriverInfo {
3516
4336
  kinds: AcceleratorKind[];
3517
4337
  };
3518
4338
  }
3519
- /**
3520
- * Backend type identifier. Controls which AI agent runtime runs inside the sandbox.
3521
- *
3522
- * Derived from the CLI agent registry so runtime validation and public
3523
- * TypeScript inputs use one canonical provider list.
3524
- */
3525
- type BackendType = BackendType$1;
3526
4339
  /**
3527
4340
  * MCP (Model Context Protocol) server configuration.
3528
4341
  */
@@ -5190,4 +6003,4 @@ interface CodeExecutionOptions {
5190
6003
  idempotencyKey?: string;
5191
6004
  }
5192
6005
  //#endregion
5193
- export { ExactProcessSpawnOptions as $, SandboxFleetDispatchResponse as $n, SessionForkOptions as $r, ListSandboxOptions as $t, CreateRequestOptions as A, WaitForOptions as Ai, ReapExpiredSandboxFleetsResult as An, SandboxStatus as Ar, GitConfig as At, DispatchPromptOptions as B, TerminalStreamError as Bi, RolloutStartResult as Bn, SandboxTraceOptions as Br, GpuLeaseStatus as Bt, CodeExecutionResult as C, TokenRefreshHandler as Ci, ProvisionStatus as Cn, SandboxInfo as Cr, FleetMachineId as Ct, CompletedTurnResult as D, UploadOptions as Di, PublishPublicTemplateOptions as Dn, SandboxResourceUsage as Dr, GitAuth as Dt, CommitTaskSessionOptions as E, UpdateUserOptions as Ei, PublicTemplateVersionInfo as En, SandboxPortPreviewLink as Er, GPU_LEASE_PROVIDER_NAMES as Et, CreateSessionOptions as F, TERMINAL_WS_ECHO_SUBPROTOCOL as Fi, ResumeOptions as Fn, SandboxTerminalRequestOptions as Fr, GpuLeaseCommandResult as Ft, DriverConfig as G, BatchEvent as Gi, SandboxConfig as Gn, SearchOptions as Gr, IntelligenceReportBudget as Gt, DownloadOptions as H, TerminalStreamOptions as Hi, RolloutTurnPart as Hn, ScopedToken as Hr, HostAgentRuntimeBackend as Ht, CreateTaskSessionOptions as I, TerminalExitInfo as Ii, Rollout as In, SandboxTerminals as Ir, GpuLeaseExecOptions as It, DurablePlan as J, BatchTaskUsage as Ji, SandboxEvent as Jn, SendSessionMessageOptions as Jr, IntelligenceReportWindow as Jt, DriverInfo as K, BatchEventDataMap as Ki, SandboxConnection as Kn, SecretInfo as Kr, IntelligenceReportCompareTo as Kt, DeleteOptions as L, TerminalReadyInfo as Li, RolloutChildResult as Ln, SandboxTraceBundle as Lr, GpuLeaseExecResult as Lt, CreateSandboxFleetTokenOptions as M, WriteFileOptions as Mi, ReconcileSandboxFleetsResult as Mn, SandboxTerminalCreateOptions as Mr, GitStatus as Mt, CreateSandboxFleetWithCoordinatorOptions as N, WriteManyFile as Ni, RenameOptions as Nn, SandboxTerminalInfo as Nr, GpuLease as Nt, CreateGpuLeaseOptions as O, UploadProgress as Oi, PublishPublicTemplateVersionOptions as On, SandboxResources as Or, GitBranch as Ot, CreateSandboxOptions as P, WriteManyOptions as Pi, RestoreSnapshotOptions as Pn, SandboxTerminalManager as Pr, GpuLeaseBilling as Pt, EventStreamOptions as Q, SandboxFleetDispatchFailureClass as Qn, SessionEventStreamOptions as Qr, ListSandboxFleetOptions as Qt, DevServerInfo as R, TerminalStream as Ri, RolloutOptions as Rn, SandboxTraceEvent as Rr, GpuLeaseManager as Rt, CodeExecutionOptions as S, TeePublicKeyResponse as Si, ProvisionResult as Sn, SandboxIdentity as Sr, FleetExecDispatchResult as St, CodeResultPart as T, TurnDriveResult as Ti, PublicTemplateInfo as Tn, SandboxPortBinding as Tr, FleetPromptDispatchResult as Tt, DownloadProgress as U, TerminalStreamToken as Ui, SSHCommandDescriptor as Un, ScopedTokenScope as Ur, InstalledTool as Ut, DispatchedSession as V, TerminalStreamHandlers as Vi, RolloutStatus as Vn, SandboxUser as Vr, HostAgentDriverConfig as Vt, DriveTurnOptions as W, BatchBackendStats as Wi, SSHCredentials as Wn, SearchMatch as Wr, IntelligenceReport as Wt, EgressPolicy as X, SandboxFleetArtifactSpec as Xn, SentSessionMessage as Xr, ListMessagesOptions as Xt, EgressManager as Y, SandboxFleetArtifact as Yn, SendSessionMessageRequest as Yr, JsonValue as Yt, EnsureDevServerOptions as Z, SandboxFleetCostEstimate as Zn, SessionBackendCredentials as Zr, ListOptions as Zt, BatchTask as _, TaskSessionProfile as _i, ProcessStatus as _n, SandboxFleetUsage as _r, FleetDispatchResultBufferOptions as _t, AttachSandboxFleetMachineOptions as a, SnapshotInfo as ai, NonHostAgentDriverConfig as an, SandboxFleetMachineMeteredUsage as ar, FileReadError as at, ChunkedUploadOptions as b, TeeAttestationResponse as bi, PromptResult as bn, SandboxFleetWorkspaceRestoreResult as br, FleetDriveTurnRequest as bt, BackendInfo as c, SshKeysManager as ci, PreviewLinkInfo as cn, SandboxFleetManifest as cr, FileSystem as ct, BackendType as d, StorageConfig as di, ProcessInfo as dn, SandboxFleetPolicy as dr, FileTreeResult as dt, SessionInfo as ei, McpServerConfig as en, SandboxFleetDriverCapability as er, ExecOptions as et, BatchBackend as f, SubscriptionInfo as fi, ProcessListOptions as fn, SandboxFleetToken as fr, FileUsageOptions as ft, BatchRunRequest as g, TaskSessionInfo as gi, ProcessSpawnOptions as gn, SandboxFleetTraceOptions as gr, FleetDispatchResultBuffer as gt, BatchRunOptions as h, TaskSessionFileChange as hi, ProcessSignal as hn, SandboxFleetTraceExport as hr, FleetDispatchCancelResult as ht, AttachGpuLeaseOptions as i, SessionStatus as ii, NetworkManager as in, SandboxFleetMachine as ir, FileReadBatchResult as it, CreateSandboxFleetOptions as j, WaitForRolloutOptions as ji, ReconcileSandboxFleetsOptions as jn, SandboxTerminalAttachOptions as jr, GitDiff as jt, CreateIntelligenceReportOptions as k, UsageInfo as ki, ReapExpiredSandboxFleetsOptions as kn, SandboxRuntimeHealth as kr, GitCommit as kt, BackendManager as l, StartupDiagnostics as li, PreviewLinkManager as ln, SandboxFleetManifestMachine as lr, FileTreeFile as lt, BatchResult as m, TaskSessionCommitResult as mi, ProcessManager as mn, SandboxFleetTraceEvent as mr, FileWriteResult as mt, AccessPolicyRule as n, SessionMessage as ni, MkdirOptions as nn, SandboxFleetInfo as nr, FileInfo as nt, BackendCapabilities as o, SnapshotOptions as oi, PermissionLevel as on, SandboxFleetMachineRecord as or, FileReadResult as ot, BatchOptions as p, TaskSessionChanges as pi, ProcessLogEntry as pn, SandboxFleetTraceBundle as pr, FileUsageResult as pt, DriverType as q, BatchSidecarGroup as qi, SandboxEnvironment as qn, SecretsManager as qr, IntelligenceReportSubjectType as qt, AddUserOptions as r, SessionMessageInputPart as ri, NetworkConfig as rn, SandboxFleetIntelligenceEnvelope as rr, FileReadBatchOptions as rt, BackendConfig as s, SnapshotResult as si, PermissionsManager as sn, SandboxFleetMachineSpec as sr, FileRenameResult as st, AcceleratorKind as t, SessionListOptions as ti, MintScopedTokenOptions as tn, SandboxFleetDriverTimings as tr, ExecResult as tt, BackendStatus as u, StartupOperation as ui, Process as un, SandboxFleetOperationsSummary as ur, FileTreeOptions as ut, BatchTaskResult as v, TeeAttestationOptions as vi, PromptInputPart as vn, SandboxFleetWorkspace as vr, FleetDispatchStreamOptions as vt, CodeLanguage as w, TokenUsage as wi, ProvisionStep as wn, SandboxIntelligenceEnvelope as wr, FleetPromptDispatchOptions as wt, ChunkedUploadResult as x, TeePublicKey as xi, ProvisionEvent as xn, SandboxFleetWorkspaceSnapshotResult as xr, FleetExecDispatchOptions as xt, BranchOptions as y, TeeAttestationReport as yi, PromptOptions as yn, SandboxFleetWorkspaceReconcileResult as yr, FleetDriveTurnOutcome as yt, DirectoryPermission as z, TerminalStreamAuthFormat as zi, RolloutScorer as zn, SandboxTraceExport as zr, GpuLeaseProviderName as zt };
6006
+ export { ExecResult as $, SandboxFleetDriverTimings as $n, SessionListOptions as $r, MintScopedTokenOptions as $t, CreateSandboxFleetTokenOptions as A, WriteFileOptions as Ai, ReconcileSandboxFleetsResult as An, SandboxTerminalCreateOptions as Ar, GitStatus as At, DownloadOptions as B, TerminalStreamOptions as Bi, RolloutTurnPart as Bn, ScopedToken as Br, HostAgentRuntimeBackend as Bt, CodeResultPart as C, TurnDriveResult as Ci, PublicTemplateInfo as Cn, SandboxPortBinding as Cr, FleetPromptDispatchResult as Ct, CreateIntelligenceReportOptions as D, UsageInfo as Di, ReapExpiredSandboxFleetsOptions as Dn, SandboxRuntimeHealth as Dr, GitCommit as Dt, CreateGpuLeaseOptions as E, UploadProgress as Ei, PublishPublicTemplateVersionOptions as En, SandboxResources as Er, GitBranch as Et, DeleteOptions as F, TerminalReadyInfo as Fi, RolloutChildResult as Fn, SandboxTraceBundle as Fr, GpuLeaseExecResult as Ft, DriverType as G, BatchSidecarGroup as Gi, SandboxEnvironment as Gn, SecretsManager as Gr, IntelligenceReportSubjectType as Gt, DriveTurnOptions as H, BatchBackendStats as Hi, SSHCredentials as Hn, SearchMatch as Hr, IntelligenceReport as Ht, DevServerInfo as I, TerminalStream as Ii, RolloutOptions as In, SandboxTraceEvent as Ir, GpuLeaseManager as It, EgressPolicy as J, BackendType as Ji, SandboxFleetArtifactSpec as Jn, SentSessionMessage as Jr, ListMessagesOptions as Jt, DurablePlan as K, BatchTaskUsage as Ki, SandboxEvent as Kn, SendSessionMessageOptions as Kr, IntelligenceReportWindow as Kt, DirectoryPermission as L, TerminalStreamAuthFormat as Li, RolloutScorer as Ln, SandboxTraceExport as Lr, GpuLeaseProviderName as Lt, CreateSandboxOptions as M, WriteManyOptions as Mi, RestoreSnapshotOptions as Mn, SandboxTerminalManager as Mr, GpuLeaseBilling as Mt, CreateSessionOptions as N, TERMINAL_WS_ECHO_SUBPROTOCOL as Ni, ResumeOptions as Nn, SandboxTerminalRequestOptions as Nr, GpuLeaseCommandResult as Nt, CreateRequestOptions as O, WaitForOptions as Oi, ReapExpiredSandboxFleetsResult as On, SandboxStatus as Or, GitConfig as Ot, CreateTaskSessionOptions as P, TerminalExitInfo as Pi, Rollout as Pn, SandboxTerminals as Pr, GpuLeaseExecOptions as Pt, ExecOptions as Q, SandboxFleetDriverCapability as Qn, SessionInfo as Qr, McpServerConfig as Qt, DispatchPromptOptions as R, TerminalStreamError as Ri, RolloutStartResult as Rn, SandboxTraceOptions as Rr, GpuLeaseStatus as Rt, CodeLanguage as S, TokenUsage as Si, ProvisionStep as Sn, SandboxIntelligenceEnvelope as Sr, FleetPromptDispatchOptions as St, CompletedTurnResult as T, UploadOptions as Ti, PublishPublicTemplateOptions as Tn, SandboxResourceUsage as Tr, GitAuth as Tt, DriverConfig as U, BatchEvent as Ui, SandboxConfig as Un, SearchOptions as Ur, IntelligenceReportBudget as Ut, DownloadProgress as V, TerminalStreamToken as Vi, SSHCommandDescriptor as Vn, ScopedTokenScope as Vr, InstalledTool as Vt, DriverInfo as W, BatchEventDataMap as Wi, SandboxConnection as Wn, SecretInfo as Wr, IntelligenceReportCompareTo as Wt, EventStreamOptions as X, SandboxFleetDispatchFailureClass as Xn, SessionEventStreamOptions as Xr, ListSandboxFleetOptions as Xt, EnsureDevServerOptions as Y, SandboxFleetCostEstimate as Yn, SessionBackendCredentials as Yr, ListOptions as Yt, ExactProcessSpawnOptions as Z, SandboxFleetDispatchResponse as Zn, SessionForkOptions as Zr, ListSandboxOptions as Zt, BranchOptions as _, TeeAttestationReport as _i, PromptOptions as _n, SandboxFleetWorkspaceReconcileResult as _r, FleetDriveTurnOutcome as _t, AttachSandboxFleetMachineOptions as a, SnapshotResult as ai, PermissionsManager as an, SandboxFleetMachineSpec as ar, FileRenameResult as at, CodeExecutionOptions as b, TeePublicKeyResponse as bi, ProvisionResult as bn, SandboxIdentity as br, FleetExecDispatchResult as bt, BackendInfo as c, StartupOperation as ci, Process as cn, SandboxFleetOperationsSummary as cr, FileTreeOptions as ct, BatchBackend as d, TaskSessionChanges as di, ProcessLogEntry as dn, SandboxFleetTraceBundle as dr, FileUsageResult as dt, SessionMessage as ei, MkdirOptions as en, SandboxFleetInfo as er, FileInfo as et, BatchResult as f, TaskSessionCommitResult as fi, ProcessManager as fn, SandboxFleetTraceEvent as fr, FileWriteResult as ft, BatchTaskResult as g, TeeAttestationOptions as gi, PromptInputPart as gn, SandboxFleetWorkspace as gr, FleetDispatchStreamOptions as gt, BatchTask as h, TaskSessionProfile as hi, ProcessStatus as hn, SandboxFleetUsage as hr, FleetDispatchResultBufferOptions as ht, AttachGpuLeaseOptions as i, SnapshotOptions as ii, PermissionLevel as in, SandboxFleetMachineRecord as ir, FileReadResult as it, CreateSandboxFleetWithCoordinatorOptions as j, WriteManyFile as ji, RenameOptions as jn, SandboxTerminalInfo as jr, GpuLease as jt, CreateSandboxFleetOptions as k, WaitForRolloutOptions as ki, ReconcileSandboxFleetsOptions as kn, SandboxTerminalAttachOptions as kr, GitDiff as kt, BackendManager as l, StorageConfig as li, ProcessInfo as ln, SandboxFleetPolicy as lr, FileTreeResult as lt, BatchRunRequest as m, TaskSessionInfo as mi, ProcessSpawnOptions as mn, SandboxFleetTraceOptions as mr, FleetDispatchResultBuffer as mt, AccessPolicyRule as n, SessionStatus as ni, NetworkManager as nn, SandboxFleetMachine as nr, FileReadBatchResult as nt, BackendCapabilities as o, SshKeysManager as oi, PreviewLinkInfo as on, SandboxFleetManifest as or, FileSystem as ot, BatchRunOptions as p, TaskSessionFileChange as pi, ProcessSignal as pn, SandboxFleetTraceExport as pr, FleetDispatchCancelResult as pt, EgressManager as q, PublicBatchRunRequest as qi, SandboxFleetArtifact as qn, SendSessionMessageRequest as qr, JsonValue as qt, AddUserOptions as r, SnapshotInfo as ri, NonHostAgentDriverConfig as rn, SandboxFleetMachineMeteredUsage as rr, FileReadError as rt, BackendConfig as s, StartupDiagnostics as si, PreviewLinkManager as sn, SandboxFleetManifestMachine as sr, FileTreeFile as st, AcceleratorKind as t, SessionMessageInputPart as ti, NetworkConfig as tn, SandboxFleetIntelligenceEnvelope as tr, FileReadBatchOptions as tt, BackendStatus as u, SubscriptionInfo as ui, ProcessListOptions as un, SandboxFleetToken as ur, FileUsageOptions as ut, ChunkedUploadOptions as v, TeeAttestationResponse as vi, PromptResult as vn, SandboxFleetWorkspaceRestoreResult as vr, FleetDriveTurnRequest as vt, CommitTaskSessionOptions as w, UpdateUserOptions as wi, PublicTemplateVersionInfo as wn, SandboxPortPreviewLink as wr, GPU_LEASE_PROVIDER_NAMES as wt, CodeExecutionResult as x, TokenRefreshHandler as xi, ProvisionStatus as xn, SandboxInfo as xr, FleetMachineId as xt, ChunkedUploadResult as y, TeePublicKey as yi, ProvisionEvent as yn, SandboxFleetWorkspaceSnapshotResult as yr, FleetExecDispatchOptions as yt, DispatchedSession as z, TerminalStreamHandlers as zi, RolloutStatus as zn, SandboxUser as zr, HostAgentDriverConfig as zt };