@tangle-network/sandbox 0.15.3-develop.20260731071553.b437581 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -1
- package/dist/agent/index.d.ts +3 -3
- package/dist/{client-B900SHtj.js → client-BKnsOQze.js} +10 -4
- package/dist/{client-C5rri6ua.d.ts → client-CZr3ENPZ.d.ts} +2 -2
- package/dist/core.d.ts +3 -3
- package/dist/core.js +2 -2
- package/dist/{index-Om3UH1DJ.d.ts → index-1b5v8Xeo.d.ts} +2 -2
- package/dist/index.d.ts +76 -76
- package/dist/index.js +5 -5
- package/dist/{runtime-api-BWC3U-qO.js → runtime-api-O5VW0tcU.js} +41 -3
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/dist/{sandbox-CfScdY7m.js → sandbox-BnHquSkr.js} +123 -64
- package/dist/{sandbox-s91ZluKA.d.ts → sandbox-Cbcaqm8c.d.ts} +31 -30
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-DiReWa8T.js → tangle-Dy4tv_Sm.js} +1 -1
- package/dist/{types-DDZCJUWe.d.ts → types-C_Hdq6RK.d.ts} +306 -261
- package/package.json +2 -2
|
@@ -1,24 +1,25 @@
|
|
|
1
|
+
import { AgentProfile, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileValidationResult, HarnessType } from "@tangle-network/agent-interface";
|
|
1
2
|
import { z } from "zod";
|
|
2
|
-
import { AgentProfile, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileValidationResult } from "@tangle-network/agent-interface";
|
|
3
3
|
|
|
4
4
|
//#region ../../../packages/runtime-contracts/dist/backend-types.d.ts
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Canonical harnesses this repo ships no provider adapter for.
|
|
7
|
+
*
|
|
8
|
+
* `gemini` reaches a workspace only as an openclaw/acp sub-agent CLI and through
|
|
9
|
+
* `agent-profile-materialize`; there is no `packages/sdk-provider-gemini`, so naming it as a
|
|
10
|
+
* backend must keep failing closed rather than dispatching to a runner that cannot start.
|
|
11
|
+
*/
|
|
12
|
+
declare const NON_BACKEND_HARNESSES: readonly ["gemini"];
|
|
13
|
+
/**
|
|
14
|
+
* Runners with a provider adapter here (`packages/sdk-provider-forge`,
|
|
15
|
+
* `packages/sdk-provider-cursor`) that the canonical enum does not carry yet. The guard below
|
|
16
|
+
* turns their adoption upstream into a compile error so this list is emptied rather than
|
|
17
|
+
* silently duplicating a canonical id.
|
|
18
|
+
*/
|
|
19
|
+
declare const EXTRA_BACKEND_TYPES: readonly ["forge", "cursor"];
|
|
20
|
+
/** The runners this repo can actually dispatch: the canonical harness set, minus what has no
|
|
21
|
+
* adapter here, plus adapters the canonical set has yet to adopt. */
|
|
22
|
+
type BackendType = Exclude<HarnessType, (typeof NON_BACKEND_HARNESSES)[number]> | (typeof EXTRA_BACKEND_TYPES)[number];
|
|
22
23
|
declare function parseBackendType(value: string): BackendType;
|
|
23
24
|
//#endregion
|
|
24
25
|
//#region ../../../packages/runtime-contracts/dist/batch-request.d.ts
|
|
@@ -31,20 +32,20 @@ declare const batchTaskSchema: z.ZodObject<{
|
|
|
31
32
|
declare const batchBackendSchema: z.ZodObject<{
|
|
32
33
|
id: z.ZodString;
|
|
33
34
|
type: z.ZodEnum<{
|
|
34
|
-
opencode: "opencode";
|
|
35
35
|
"claude-code": "claude-code";
|
|
36
|
-
|
|
36
|
+
nanoclaw: "nanoclaw";
|
|
37
37
|
codex: "codex";
|
|
38
|
-
|
|
39
|
-
"
|
|
38
|
+
opencode: "opencode";
|
|
39
|
+
"kimi-code": "kimi-code";
|
|
40
40
|
pi: "pi";
|
|
41
41
|
hermes: "hermes";
|
|
42
|
-
forge: "forge";
|
|
43
42
|
openclaw: "openclaw";
|
|
44
|
-
|
|
43
|
+
amp: "amp";
|
|
44
|
+
"factory-droids": "factory-droids";
|
|
45
45
|
acp: "acp";
|
|
46
|
-
cursor: "cursor";
|
|
47
46
|
"cli-base": "cli-base";
|
|
47
|
+
forge: "forge";
|
|
48
|
+
cursor: "cursor";
|
|
48
49
|
}>;
|
|
49
50
|
model: z.ZodOptional<z.ZodObject<{
|
|
50
51
|
provider: z.ZodOptional<z.ZodString>;
|
|
@@ -76,20 +77,20 @@ declare const publicBatchRunRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
76
77
|
backends: z.ZodArray<z.ZodObject<{
|
|
77
78
|
id: z.ZodString;
|
|
78
79
|
type: z.ZodEnum<{
|
|
79
|
-
opencode: "opencode";
|
|
80
80
|
"claude-code": "claude-code";
|
|
81
|
-
|
|
81
|
+
nanoclaw: "nanoclaw";
|
|
82
82
|
codex: "codex";
|
|
83
|
-
|
|
84
|
-
"
|
|
83
|
+
opencode: "opencode";
|
|
84
|
+
"kimi-code": "kimi-code";
|
|
85
85
|
pi: "pi";
|
|
86
86
|
hermes: "hermes";
|
|
87
|
-
forge: "forge";
|
|
88
87
|
openclaw: "openclaw";
|
|
89
|
-
|
|
88
|
+
amp: "amp";
|
|
89
|
+
"factory-droids": "factory-droids";
|
|
90
90
|
acp: "acp";
|
|
91
|
-
cursor: "cursor";
|
|
92
91
|
"cli-base": "cli-base";
|
|
92
|
+
forge: "forge";
|
|
93
|
+
cursor: "cursor";
|
|
93
94
|
}>;
|
|
94
95
|
model: z.ZodOptional<z.ZodObject<{
|
|
95
96
|
provider: z.ZodOptional<z.ZodString>;
|
|
@@ -139,20 +140,20 @@ declare const publicBatchRunRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
139
140
|
backends: z.ZodArray<z.ZodObject<{
|
|
140
141
|
id: z.ZodString;
|
|
141
142
|
type: z.ZodEnum<{
|
|
142
|
-
opencode: "opencode";
|
|
143
143
|
"claude-code": "claude-code";
|
|
144
|
-
|
|
144
|
+
nanoclaw: "nanoclaw";
|
|
145
145
|
codex: "codex";
|
|
146
|
-
|
|
147
|
-
"
|
|
146
|
+
opencode: "opencode";
|
|
147
|
+
"kimi-code": "kimi-code";
|
|
148
148
|
pi: "pi";
|
|
149
149
|
hermes: "hermes";
|
|
150
|
-
forge: "forge";
|
|
151
150
|
openclaw: "openclaw";
|
|
152
|
-
|
|
151
|
+
amp: "amp";
|
|
152
|
+
"factory-droids": "factory-droids";
|
|
153
153
|
acp: "acp";
|
|
154
|
-
cursor: "cursor";
|
|
155
154
|
"cli-base": "cli-base";
|
|
155
|
+
forge: "forge";
|
|
156
|
+
cursor: "cursor";
|
|
156
157
|
}>;
|
|
157
158
|
model: z.ZodOptional<z.ZodObject<{
|
|
158
159
|
provider: z.ZodOptional<z.ZodString>;
|
|
@@ -203,20 +204,20 @@ declare const batchBackendStatsSchema: z.ZodObject<{
|
|
|
203
204
|
successRate: z.ZodNumber;
|
|
204
205
|
backendId: z.ZodString;
|
|
205
206
|
backendType: z.ZodEnum<{
|
|
206
|
-
opencode: "opencode";
|
|
207
207
|
"claude-code": "claude-code";
|
|
208
|
-
|
|
208
|
+
nanoclaw: "nanoclaw";
|
|
209
209
|
codex: "codex";
|
|
210
|
-
|
|
211
|
-
"
|
|
210
|
+
opencode: "opencode";
|
|
211
|
+
"kimi-code": "kimi-code";
|
|
212
212
|
pi: "pi";
|
|
213
213
|
hermes: "hermes";
|
|
214
|
-
forge: "forge";
|
|
215
214
|
openclaw: "openclaw";
|
|
216
|
-
|
|
215
|
+
amp: "amp";
|
|
216
|
+
"factory-droids": "factory-droids";
|
|
217
217
|
acp: "acp";
|
|
218
|
-
cursor: "cursor";
|
|
219
218
|
"cli-base": "cli-base";
|
|
219
|
+
forge: "forge";
|
|
220
|
+
cursor: "cursor";
|
|
220
221
|
}>;
|
|
221
222
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
222
223
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -225,20 +226,20 @@ type BatchBackendStats = z.infer<typeof batchBackendStatsSchema>;
|
|
|
225
226
|
/** One sidecar allocated to a backend group. */
|
|
226
227
|
declare const batchSidecarGroupSchema: z.ZodObject<{
|
|
227
228
|
backendType: z.ZodEnum<{
|
|
228
|
-
opencode: "opencode";
|
|
229
229
|
"claude-code": "claude-code";
|
|
230
|
-
|
|
230
|
+
nanoclaw: "nanoclaw";
|
|
231
231
|
codex: "codex";
|
|
232
|
-
|
|
233
|
-
"
|
|
232
|
+
opencode: "opencode";
|
|
233
|
+
"kimi-code": "kimi-code";
|
|
234
234
|
pi: "pi";
|
|
235
235
|
hermes: "hermes";
|
|
236
|
-
forge: "forge";
|
|
237
236
|
openclaw: "openclaw";
|
|
238
|
-
|
|
237
|
+
amp: "amp";
|
|
238
|
+
"factory-droids": "factory-droids";
|
|
239
239
|
acp: "acp";
|
|
240
|
-
cursor: "cursor";
|
|
241
240
|
"cli-base": "cli-base";
|
|
241
|
+
forge: "forge";
|
|
242
|
+
cursor: "cursor";
|
|
242
243
|
}>;
|
|
243
244
|
backendIds: z.ZodArray<z.ZodString>;
|
|
244
245
|
sidecarId: z.ZodString;
|
|
@@ -260,20 +261,20 @@ declare const batchEventDataSchemas: {
|
|
|
260
261
|
totalExecutions: z.ZodNumber;
|
|
261
262
|
backendIds: z.ZodArray<z.ZodString>;
|
|
262
263
|
backendTypes: z.ZodArray<z.ZodEnum<{
|
|
263
|
-
opencode: "opencode";
|
|
264
264
|
"claude-code": "claude-code";
|
|
265
|
-
|
|
265
|
+
nanoclaw: "nanoclaw";
|
|
266
266
|
codex: "codex";
|
|
267
|
-
|
|
268
|
-
"
|
|
267
|
+
opencode: "opencode";
|
|
268
|
+
"kimi-code": "kimi-code";
|
|
269
269
|
pi: "pi";
|
|
270
270
|
hermes: "hermes";
|
|
271
|
-
forge: "forge";
|
|
272
271
|
openclaw: "openclaw";
|
|
273
|
-
|
|
272
|
+
amp: "amp";
|
|
273
|
+
"factory-droids": "factory-droids";
|
|
274
274
|
acp: "acp";
|
|
275
|
-
cursor: "cursor";
|
|
276
275
|
"cli-base": "cli-base";
|
|
276
|
+
forge: "forge";
|
|
277
|
+
cursor: "cursor";
|
|
277
278
|
}>>;
|
|
278
279
|
backendGroups: z.ZodNumber;
|
|
279
280
|
executionClass: z.ZodEnum<{
|
|
@@ -290,20 +291,20 @@ declare const batchEventDataSchemas: {
|
|
|
290
291
|
count: z.ZodNumber;
|
|
291
292
|
groups: z.ZodArray<z.ZodObject<{
|
|
292
293
|
backendType: z.ZodEnum<{
|
|
293
|
-
opencode: "opencode";
|
|
294
294
|
"claude-code": "claude-code";
|
|
295
|
-
|
|
295
|
+
nanoclaw: "nanoclaw";
|
|
296
296
|
codex: "codex";
|
|
297
|
-
|
|
298
|
-
"
|
|
297
|
+
opencode: "opencode";
|
|
298
|
+
"kimi-code": "kimi-code";
|
|
299
299
|
pi: "pi";
|
|
300
300
|
hermes: "hermes";
|
|
301
|
-
forge: "forge";
|
|
302
301
|
openclaw: "openclaw";
|
|
303
|
-
|
|
302
|
+
amp: "amp";
|
|
303
|
+
"factory-droids": "factory-droids";
|
|
304
304
|
acp: "acp";
|
|
305
|
-
cursor: "cursor";
|
|
306
305
|
"cli-base": "cli-base";
|
|
306
|
+
forge: "forge";
|
|
307
|
+
cursor: "cursor";
|
|
307
308
|
}>;
|
|
308
309
|
backendIds: z.ZodArray<z.ZodString>;
|
|
309
310
|
sidecarId: z.ZodString;
|
|
@@ -334,20 +335,20 @@ declare const batchEventDataSchemas: {
|
|
|
334
335
|
successRate: z.ZodNumber;
|
|
335
336
|
backendId: z.ZodString;
|
|
336
337
|
backendType: z.ZodEnum<{
|
|
337
|
-
opencode: "opencode";
|
|
338
338
|
"claude-code": "claude-code";
|
|
339
|
-
|
|
339
|
+
nanoclaw: "nanoclaw";
|
|
340
340
|
codex: "codex";
|
|
341
|
-
|
|
342
|
-
"
|
|
341
|
+
opencode: "opencode";
|
|
342
|
+
"kimi-code": "kimi-code";
|
|
343
343
|
pi: "pi";
|
|
344
344
|
hermes: "hermes";
|
|
345
|
-
forge: "forge";
|
|
346
345
|
openclaw: "openclaw";
|
|
347
|
-
|
|
346
|
+
amp: "amp";
|
|
347
|
+
"factory-droids": "factory-droids";
|
|
348
348
|
acp: "acp";
|
|
349
|
-
cursor: "cursor";
|
|
350
349
|
"cli-base": "cli-base";
|
|
350
|
+
forge: "forge";
|
|
351
|
+
cursor: "cursor";
|
|
351
352
|
}>;
|
|
352
353
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
353
354
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -376,20 +377,20 @@ declare const batchEventDataSchemas: {
|
|
|
376
377
|
projectRef: z.ZodOptional<z.ZodString>;
|
|
377
378
|
backendId: z.ZodString;
|
|
378
379
|
backendType: z.ZodEnum<{
|
|
379
|
-
opencode: "opencode";
|
|
380
380
|
"claude-code": "claude-code";
|
|
381
|
-
|
|
381
|
+
nanoclaw: "nanoclaw";
|
|
382
382
|
codex: "codex";
|
|
383
|
-
|
|
384
|
-
"
|
|
383
|
+
opencode: "opencode";
|
|
384
|
+
"kimi-code": "kimi-code";
|
|
385
385
|
pi: "pi";
|
|
386
386
|
hermes: "hermes";
|
|
387
|
-
forge: "forge";
|
|
388
387
|
openclaw: "openclaw";
|
|
389
|
-
|
|
388
|
+
amp: "amp";
|
|
389
|
+
"factory-droids": "factory-droids";
|
|
390
390
|
acp: "acp";
|
|
391
|
-
cursor: "cursor";
|
|
392
391
|
"cli-base": "cli-base";
|
|
392
|
+
forge: "forge";
|
|
393
|
+
cursor: "cursor";
|
|
393
394
|
}>;
|
|
394
395
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
395
396
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -406,20 +407,20 @@ declare const batchEventDataSchemas: {
|
|
|
406
407
|
part: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
407
408
|
backendId: z.ZodString;
|
|
408
409
|
backendType: z.ZodEnum<{
|
|
409
|
-
opencode: "opencode";
|
|
410
410
|
"claude-code": "claude-code";
|
|
411
|
-
|
|
411
|
+
nanoclaw: "nanoclaw";
|
|
412
412
|
codex: "codex";
|
|
413
|
-
|
|
414
|
-
"
|
|
413
|
+
opencode: "opencode";
|
|
414
|
+
"kimi-code": "kimi-code";
|
|
415
415
|
pi: "pi";
|
|
416
416
|
hermes: "hermes";
|
|
417
|
-
forge: "forge";
|
|
418
417
|
openclaw: "openclaw";
|
|
419
|
-
|
|
418
|
+
amp: "amp";
|
|
419
|
+
"factory-droids": "factory-droids";
|
|
420
420
|
acp: "acp";
|
|
421
|
-
cursor: "cursor";
|
|
422
421
|
"cli-base": "cli-base";
|
|
422
|
+
forge: "forge";
|
|
423
|
+
cursor: "cursor";
|
|
423
424
|
}>;
|
|
424
425
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
425
426
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -436,20 +437,20 @@ declare const batchEventDataSchemas: {
|
|
|
436
437
|
part: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
437
438
|
backendId: z.ZodString;
|
|
438
439
|
backendType: z.ZodEnum<{
|
|
439
|
-
opencode: "opencode";
|
|
440
440
|
"claude-code": "claude-code";
|
|
441
|
-
|
|
441
|
+
nanoclaw: "nanoclaw";
|
|
442
442
|
codex: "codex";
|
|
443
|
-
|
|
444
|
-
"
|
|
443
|
+
opencode: "opencode";
|
|
444
|
+
"kimi-code": "kimi-code";
|
|
445
445
|
pi: "pi";
|
|
446
446
|
hermes: "hermes";
|
|
447
|
-
forge: "forge";
|
|
448
447
|
openclaw: "openclaw";
|
|
449
|
-
|
|
448
|
+
amp: "amp";
|
|
449
|
+
"factory-droids": "factory-droids";
|
|
450
450
|
acp: "acp";
|
|
451
|
-
cursor: "cursor";
|
|
452
451
|
"cli-base": "cli-base";
|
|
452
|
+
forge: "forge";
|
|
453
|
+
cursor: "cursor";
|
|
453
454
|
}>;
|
|
454
455
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
455
456
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -461,20 +462,20 @@ declare const batchEventDataSchemas: {
|
|
|
461
462
|
part: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
462
463
|
backendId: z.ZodString;
|
|
463
464
|
backendType: z.ZodEnum<{
|
|
464
|
-
opencode: "opencode";
|
|
465
465
|
"claude-code": "claude-code";
|
|
466
|
-
|
|
466
|
+
nanoclaw: "nanoclaw";
|
|
467
467
|
codex: "codex";
|
|
468
|
-
|
|
469
|
-
"
|
|
468
|
+
opencode: "opencode";
|
|
469
|
+
"kimi-code": "kimi-code";
|
|
470
470
|
pi: "pi";
|
|
471
471
|
hermes: "hermes";
|
|
472
|
-
forge: "forge";
|
|
473
472
|
openclaw: "openclaw";
|
|
474
|
-
|
|
473
|
+
amp: "amp";
|
|
474
|
+
"factory-droids": "factory-droids";
|
|
475
475
|
acp: "acp";
|
|
476
|
-
cursor: "cursor";
|
|
477
476
|
"cli-base": "cli-base";
|
|
477
|
+
forge: "forge";
|
|
478
|
+
cursor: "cursor";
|
|
478
479
|
}>;
|
|
479
480
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
480
481
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -499,20 +500,20 @@ declare const batchEventDataSchemas: {
|
|
|
499
500
|
}, z.core.$strict>;
|
|
500
501
|
backendId: z.ZodString;
|
|
501
502
|
backendType: z.ZodEnum<{
|
|
502
|
-
opencode: "opencode";
|
|
503
503
|
"claude-code": "claude-code";
|
|
504
|
-
|
|
504
|
+
nanoclaw: "nanoclaw";
|
|
505
505
|
codex: "codex";
|
|
506
|
-
|
|
507
|
-
"
|
|
506
|
+
opencode: "opencode";
|
|
507
|
+
"kimi-code": "kimi-code";
|
|
508
508
|
pi: "pi";
|
|
509
509
|
hermes: "hermes";
|
|
510
|
-
forge: "forge";
|
|
511
510
|
openclaw: "openclaw";
|
|
512
|
-
|
|
511
|
+
amp: "amp";
|
|
512
|
+
"factory-droids": "factory-droids";
|
|
513
513
|
acp: "acp";
|
|
514
|
-
cursor: "cursor";
|
|
515
514
|
"cli-base": "cli-base";
|
|
515
|
+
forge: "forge";
|
|
516
|
+
cursor: "cursor";
|
|
516
517
|
}>;
|
|
517
518
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
518
519
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -536,20 +537,20 @@ declare const batchEventDataSchemas: {
|
|
|
536
537
|
}, z.core.$strict>>;
|
|
537
538
|
backendId: z.ZodString;
|
|
538
539
|
backendType: z.ZodEnum<{
|
|
539
|
-
opencode: "opencode";
|
|
540
540
|
"claude-code": "claude-code";
|
|
541
|
-
|
|
541
|
+
nanoclaw: "nanoclaw";
|
|
542
542
|
codex: "codex";
|
|
543
|
-
|
|
544
|
-
"
|
|
543
|
+
opencode: "opencode";
|
|
544
|
+
"kimi-code": "kimi-code";
|
|
545
545
|
pi: "pi";
|
|
546
546
|
hermes: "hermes";
|
|
547
|
-
forge: "forge";
|
|
548
547
|
openclaw: "openclaw";
|
|
549
|
-
|
|
548
|
+
amp: "amp";
|
|
549
|
+
"factory-droids": "factory-droids";
|
|
550
550
|
acp: "acp";
|
|
551
|
-
cursor: "cursor";
|
|
552
551
|
"cli-base": "cli-base";
|
|
552
|
+
forge: "forge";
|
|
553
|
+
cursor: "cursor";
|
|
553
554
|
}>;
|
|
554
555
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
555
556
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -569,20 +570,20 @@ declare const batchEventDataSchemas: {
|
|
|
569
570
|
projectRef: z.ZodOptional<z.ZodString>;
|
|
570
571
|
backendId: z.ZodString;
|
|
571
572
|
backendType: z.ZodEnum<{
|
|
572
|
-
opencode: "opencode";
|
|
573
573
|
"claude-code": "claude-code";
|
|
574
|
-
|
|
574
|
+
nanoclaw: "nanoclaw";
|
|
575
575
|
codex: "codex";
|
|
576
|
-
|
|
577
|
-
"
|
|
576
|
+
opencode: "opencode";
|
|
577
|
+
"kimi-code": "kimi-code";
|
|
578
578
|
pi: "pi";
|
|
579
579
|
hermes: "hermes";
|
|
580
|
-
forge: "forge";
|
|
581
580
|
openclaw: "openclaw";
|
|
582
|
-
|
|
581
|
+
amp: "amp";
|
|
582
|
+
"factory-droids": "factory-droids";
|
|
583
583
|
acp: "acp";
|
|
584
|
-
cursor: "cursor";
|
|
585
584
|
"cli-base": "cli-base";
|
|
585
|
+
forge: "forge";
|
|
586
|
+
cursor: "cursor";
|
|
586
587
|
}>;
|
|
587
588
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
588
589
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -596,20 +597,20 @@ declare const batchEventDataSchemas: {
|
|
|
596
597
|
successRate: z.ZodNumber;
|
|
597
598
|
backendId: z.ZodString;
|
|
598
599
|
backendType: z.ZodEnum<{
|
|
599
|
-
opencode: "opencode";
|
|
600
600
|
"claude-code": "claude-code";
|
|
601
|
-
|
|
601
|
+
nanoclaw: "nanoclaw";
|
|
602
602
|
codex: "codex";
|
|
603
|
-
|
|
604
|
-
"
|
|
603
|
+
opencode: "opencode";
|
|
604
|
+
"kimi-code": "kimi-code";
|
|
605
605
|
pi: "pi";
|
|
606
606
|
hermes: "hermes";
|
|
607
|
-
forge: "forge";
|
|
608
607
|
openclaw: "openclaw";
|
|
609
|
-
|
|
608
|
+
amp: "amp";
|
|
609
|
+
"factory-droids": "factory-droids";
|
|
610
610
|
acp: "acp";
|
|
611
|
-
cursor: "cursor";
|
|
612
611
|
"cli-base": "cli-base";
|
|
612
|
+
forge: "forge";
|
|
613
|
+
cursor: "cursor";
|
|
613
614
|
}>;
|
|
614
615
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
615
616
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -651,20 +652,20 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
651
652
|
totalExecutions: z.ZodNumber;
|
|
652
653
|
backendIds: z.ZodArray<z.ZodString>;
|
|
653
654
|
backendTypes: z.ZodArray<z.ZodEnum<{
|
|
654
|
-
opencode: "opencode";
|
|
655
655
|
"claude-code": "claude-code";
|
|
656
|
-
|
|
656
|
+
nanoclaw: "nanoclaw";
|
|
657
657
|
codex: "codex";
|
|
658
|
-
|
|
659
|
-
"
|
|
658
|
+
opencode: "opencode";
|
|
659
|
+
"kimi-code": "kimi-code";
|
|
660
660
|
pi: "pi";
|
|
661
661
|
hermes: "hermes";
|
|
662
|
-
forge: "forge";
|
|
663
662
|
openclaw: "openclaw";
|
|
664
|
-
|
|
663
|
+
amp: "amp";
|
|
664
|
+
"factory-droids": "factory-droids";
|
|
665
665
|
acp: "acp";
|
|
666
|
-
cursor: "cursor";
|
|
667
666
|
"cli-base": "cli-base";
|
|
667
|
+
forge: "forge";
|
|
668
|
+
cursor: "cursor";
|
|
668
669
|
}>>;
|
|
669
670
|
backendGroups: z.ZodNumber;
|
|
670
671
|
executionClass: z.ZodEnum<{
|
|
@@ -684,20 +685,20 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
684
685
|
count: z.ZodNumber;
|
|
685
686
|
groups: z.ZodArray<z.ZodObject<{
|
|
686
687
|
backendType: z.ZodEnum<{
|
|
687
|
-
opencode: "opencode";
|
|
688
688
|
"claude-code": "claude-code";
|
|
689
|
-
|
|
689
|
+
nanoclaw: "nanoclaw";
|
|
690
690
|
codex: "codex";
|
|
691
|
-
|
|
692
|
-
"
|
|
691
|
+
opencode: "opencode";
|
|
692
|
+
"kimi-code": "kimi-code";
|
|
693
693
|
pi: "pi";
|
|
694
694
|
hermes: "hermes";
|
|
695
|
-
forge: "forge";
|
|
696
695
|
openclaw: "openclaw";
|
|
697
|
-
|
|
696
|
+
amp: "amp";
|
|
697
|
+
"factory-droids": "factory-droids";
|
|
698
698
|
acp: "acp";
|
|
699
|
-
cursor: "cursor";
|
|
700
699
|
"cli-base": "cli-base";
|
|
700
|
+
forge: "forge";
|
|
701
|
+
cursor: "cursor";
|
|
701
702
|
}>;
|
|
702
703
|
backendIds: z.ZodArray<z.ZodString>;
|
|
703
704
|
sidecarId: z.ZodString;
|
|
@@ -731,20 +732,20 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
731
732
|
successRate: z.ZodNumber;
|
|
732
733
|
backendId: z.ZodString;
|
|
733
734
|
backendType: z.ZodEnum<{
|
|
734
|
-
opencode: "opencode";
|
|
735
735
|
"claude-code": "claude-code";
|
|
736
|
-
|
|
736
|
+
nanoclaw: "nanoclaw";
|
|
737
737
|
codex: "codex";
|
|
738
|
-
|
|
739
|
-
"
|
|
738
|
+
opencode: "opencode";
|
|
739
|
+
"kimi-code": "kimi-code";
|
|
740
740
|
pi: "pi";
|
|
741
741
|
hermes: "hermes";
|
|
742
|
-
forge: "forge";
|
|
743
742
|
openclaw: "openclaw";
|
|
744
|
-
|
|
743
|
+
amp: "amp";
|
|
744
|
+
"factory-droids": "factory-droids";
|
|
745
745
|
acp: "acp";
|
|
746
|
-
cursor: "cursor";
|
|
747
746
|
"cli-base": "cli-base";
|
|
747
|
+
forge: "forge";
|
|
748
|
+
cursor: "cursor";
|
|
748
749
|
}>;
|
|
749
750
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
750
751
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -785,20 +786,20 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
785
786
|
projectRef: z.ZodOptional<z.ZodString>;
|
|
786
787
|
backendId: z.ZodString;
|
|
787
788
|
backendType: z.ZodEnum<{
|
|
788
|
-
opencode: "opencode";
|
|
789
789
|
"claude-code": "claude-code";
|
|
790
|
-
|
|
790
|
+
nanoclaw: "nanoclaw";
|
|
791
791
|
codex: "codex";
|
|
792
|
-
|
|
793
|
-
"
|
|
792
|
+
opencode: "opencode";
|
|
793
|
+
"kimi-code": "kimi-code";
|
|
794
794
|
pi: "pi";
|
|
795
795
|
hermes: "hermes";
|
|
796
|
-
forge: "forge";
|
|
797
796
|
openclaw: "openclaw";
|
|
798
|
-
|
|
797
|
+
amp: "amp";
|
|
798
|
+
"factory-droids": "factory-droids";
|
|
799
799
|
acp: "acp";
|
|
800
|
-
cursor: "cursor";
|
|
801
800
|
"cli-base": "cli-base";
|
|
801
|
+
forge: "forge";
|
|
802
|
+
cursor: "cursor";
|
|
802
803
|
}>;
|
|
803
804
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
804
805
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -818,20 +819,20 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
818
819
|
part: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
819
820
|
backendId: z.ZodString;
|
|
820
821
|
backendType: z.ZodEnum<{
|
|
821
|
-
opencode: "opencode";
|
|
822
822
|
"claude-code": "claude-code";
|
|
823
|
-
|
|
823
|
+
nanoclaw: "nanoclaw";
|
|
824
824
|
codex: "codex";
|
|
825
|
-
|
|
826
|
-
"
|
|
825
|
+
opencode: "opencode";
|
|
826
|
+
"kimi-code": "kimi-code";
|
|
827
827
|
pi: "pi";
|
|
828
828
|
hermes: "hermes";
|
|
829
|
-
forge: "forge";
|
|
830
829
|
openclaw: "openclaw";
|
|
831
|
-
|
|
830
|
+
amp: "amp";
|
|
831
|
+
"factory-droids": "factory-droids";
|
|
832
832
|
acp: "acp";
|
|
833
|
-
cursor: "cursor";
|
|
834
833
|
"cli-base": "cli-base";
|
|
834
|
+
forge: "forge";
|
|
835
|
+
cursor: "cursor";
|
|
835
836
|
}>;
|
|
836
837
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
837
838
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -851,20 +852,20 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
851
852
|
part: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
852
853
|
backendId: z.ZodString;
|
|
853
854
|
backendType: z.ZodEnum<{
|
|
854
|
-
opencode: "opencode";
|
|
855
855
|
"claude-code": "claude-code";
|
|
856
|
-
|
|
856
|
+
nanoclaw: "nanoclaw";
|
|
857
857
|
codex: "codex";
|
|
858
|
-
|
|
859
|
-
"
|
|
858
|
+
opencode: "opencode";
|
|
859
|
+
"kimi-code": "kimi-code";
|
|
860
860
|
pi: "pi";
|
|
861
861
|
hermes: "hermes";
|
|
862
|
-
forge: "forge";
|
|
863
862
|
openclaw: "openclaw";
|
|
864
|
-
|
|
863
|
+
amp: "amp";
|
|
864
|
+
"factory-droids": "factory-droids";
|
|
865
865
|
acp: "acp";
|
|
866
|
-
cursor: "cursor";
|
|
867
866
|
"cli-base": "cli-base";
|
|
867
|
+
forge: "forge";
|
|
868
|
+
cursor: "cursor";
|
|
868
869
|
}>;
|
|
869
870
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
870
871
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -879,20 +880,20 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
879
880
|
part: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
880
881
|
backendId: z.ZodString;
|
|
881
882
|
backendType: z.ZodEnum<{
|
|
882
|
-
opencode: "opencode";
|
|
883
883
|
"claude-code": "claude-code";
|
|
884
|
-
|
|
884
|
+
nanoclaw: "nanoclaw";
|
|
885
885
|
codex: "codex";
|
|
886
|
-
|
|
887
|
-
"
|
|
886
|
+
opencode: "opencode";
|
|
887
|
+
"kimi-code": "kimi-code";
|
|
888
888
|
pi: "pi";
|
|
889
889
|
hermes: "hermes";
|
|
890
|
-
forge: "forge";
|
|
891
890
|
openclaw: "openclaw";
|
|
892
|
-
|
|
891
|
+
amp: "amp";
|
|
892
|
+
"factory-droids": "factory-droids";
|
|
893
893
|
acp: "acp";
|
|
894
|
-
cursor: "cursor";
|
|
895
894
|
"cli-base": "cli-base";
|
|
895
|
+
forge: "forge";
|
|
896
|
+
cursor: "cursor";
|
|
896
897
|
}>;
|
|
897
898
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
898
899
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -920,20 +921,20 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
920
921
|
}, z.core.$strict>;
|
|
921
922
|
backendId: z.ZodString;
|
|
922
923
|
backendType: z.ZodEnum<{
|
|
923
|
-
opencode: "opencode";
|
|
924
924
|
"claude-code": "claude-code";
|
|
925
|
-
|
|
925
|
+
nanoclaw: "nanoclaw";
|
|
926
926
|
codex: "codex";
|
|
927
|
-
|
|
928
|
-
"
|
|
927
|
+
opencode: "opencode";
|
|
928
|
+
"kimi-code": "kimi-code";
|
|
929
929
|
pi: "pi";
|
|
930
930
|
hermes: "hermes";
|
|
931
|
-
forge: "forge";
|
|
932
931
|
openclaw: "openclaw";
|
|
933
|
-
|
|
932
|
+
amp: "amp";
|
|
933
|
+
"factory-droids": "factory-droids";
|
|
934
934
|
acp: "acp";
|
|
935
|
-
cursor: "cursor";
|
|
936
935
|
"cli-base": "cli-base";
|
|
936
|
+
forge: "forge";
|
|
937
|
+
cursor: "cursor";
|
|
937
938
|
}>;
|
|
938
939
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
939
940
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -960,20 +961,20 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
960
961
|
}, z.core.$strict>>;
|
|
961
962
|
backendId: z.ZodString;
|
|
962
963
|
backendType: z.ZodEnum<{
|
|
963
|
-
opencode: "opencode";
|
|
964
964
|
"claude-code": "claude-code";
|
|
965
|
-
|
|
965
|
+
nanoclaw: "nanoclaw";
|
|
966
966
|
codex: "codex";
|
|
967
|
-
|
|
968
|
-
"
|
|
967
|
+
opencode: "opencode";
|
|
968
|
+
"kimi-code": "kimi-code";
|
|
969
969
|
pi: "pi";
|
|
970
970
|
hermes: "hermes";
|
|
971
|
-
forge: "forge";
|
|
972
971
|
openclaw: "openclaw";
|
|
973
|
-
|
|
972
|
+
amp: "amp";
|
|
973
|
+
"factory-droids": "factory-droids";
|
|
974
974
|
acp: "acp";
|
|
975
|
-
cursor: "cursor";
|
|
976
975
|
"cli-base": "cli-base";
|
|
976
|
+
forge: "forge";
|
|
977
|
+
cursor: "cursor";
|
|
977
978
|
}>;
|
|
978
979
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
979
980
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -996,20 +997,20 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
996
997
|
projectRef: z.ZodOptional<z.ZodString>;
|
|
997
998
|
backendId: z.ZodString;
|
|
998
999
|
backendType: z.ZodEnum<{
|
|
999
|
-
opencode: "opencode";
|
|
1000
1000
|
"claude-code": "claude-code";
|
|
1001
|
-
|
|
1001
|
+
nanoclaw: "nanoclaw";
|
|
1002
1002
|
codex: "codex";
|
|
1003
|
-
|
|
1004
|
-
"
|
|
1003
|
+
opencode: "opencode";
|
|
1004
|
+
"kimi-code": "kimi-code";
|
|
1005
1005
|
pi: "pi";
|
|
1006
1006
|
hermes: "hermes";
|
|
1007
|
-
forge: "forge";
|
|
1008
1007
|
openclaw: "openclaw";
|
|
1009
|
-
|
|
1008
|
+
amp: "amp";
|
|
1009
|
+
"factory-droids": "factory-droids";
|
|
1010
1010
|
acp: "acp";
|
|
1011
|
-
cursor: "cursor";
|
|
1012
1011
|
"cli-base": "cli-base";
|
|
1012
|
+
forge: "forge";
|
|
1013
|
+
cursor: "cursor";
|
|
1013
1014
|
}>;
|
|
1014
1015
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
1015
1016
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -1026,20 +1027,20 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1026
1027
|
successRate: z.ZodNumber;
|
|
1027
1028
|
backendId: z.ZodString;
|
|
1028
1029
|
backendType: z.ZodEnum<{
|
|
1029
|
-
opencode: "opencode";
|
|
1030
1030
|
"claude-code": "claude-code";
|
|
1031
|
-
|
|
1031
|
+
nanoclaw: "nanoclaw";
|
|
1032
1032
|
codex: "codex";
|
|
1033
|
-
|
|
1034
|
-
"
|
|
1033
|
+
opencode: "opencode";
|
|
1034
|
+
"kimi-code": "kimi-code";
|
|
1035
1035
|
pi: "pi";
|
|
1036
1036
|
hermes: "hermes";
|
|
1037
|
-
forge: "forge";
|
|
1038
1037
|
openclaw: "openclaw";
|
|
1039
|
-
|
|
1038
|
+
amp: "amp";
|
|
1039
|
+
"factory-droids": "factory-droids";
|
|
1040
1040
|
acp: "acp";
|
|
1041
|
-
cursor: "cursor";
|
|
1042
1041
|
"cli-base": "cli-base";
|
|
1042
|
+
forge: "forge";
|
|
1043
|
+
cursor: "cursor";
|
|
1043
1044
|
}>;
|
|
1044
1045
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
1045
1046
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -2512,6 +2513,15 @@ interface PromptResult {
|
|
|
2512
2513
|
success: boolean;
|
|
2513
2514
|
/** Granular run outcome. */
|
|
2514
2515
|
status: AgentRunStatus;
|
|
2516
|
+
/**
|
|
2517
|
+
* Runtime execution that produced this result.
|
|
2518
|
+
*
|
|
2519
|
+
* Preserve this value when a session may receive another turn: passing it
|
|
2520
|
+
* to `session.result({ executionId })` or
|
|
2521
|
+
* `session.interrupt({ executionId })` keeps the later operation bound to
|
|
2522
|
+
* this run instead of whichever run is newest at call time.
|
|
2523
|
+
*/
|
|
2524
|
+
executionId?: string;
|
|
2515
2525
|
/** Agent's response text */
|
|
2516
2526
|
response?: string;
|
|
2517
2527
|
/** Error message when the run did not succeed */
|
|
@@ -3055,6 +3065,8 @@ interface SessionInfo {
|
|
|
3055
3065
|
parentId?: string;
|
|
3056
3066
|
/** Current lifecycle state. */
|
|
3057
3067
|
status: SessionStatus;
|
|
3068
|
+
/** Execution currently running, when one is active. */
|
|
3069
|
+
activeExecutionId?: string;
|
|
3058
3070
|
/** Most recent execution id, retained after completion for event replay. */
|
|
3059
3071
|
latestExecutionId?: string;
|
|
3060
3072
|
/** Backend identifier (e.g. provider name). */
|
|
@@ -3233,6 +3245,26 @@ interface SessionEventStreamOptions {
|
|
|
3233
3245
|
/** Cancel the stream by aborting this signal. */
|
|
3234
3246
|
signal?: AbortSignal;
|
|
3235
3247
|
}
|
|
3248
|
+
/** Select one exact execution when awaiting a session result. */
|
|
3249
|
+
interface SessionResultOptions {
|
|
3250
|
+
/**
|
|
3251
|
+
* Runtime execution to replay and aggregate.
|
|
3252
|
+
*
|
|
3253
|
+
* When omitted, `result()` retains its existing behavior and selects the
|
|
3254
|
+
* session's latest execution at call time.
|
|
3255
|
+
*/
|
|
3256
|
+
executionId?: string;
|
|
3257
|
+
}
|
|
3258
|
+
/** Select one exact execution when interrupting a session. */
|
|
3259
|
+
interface SessionInterruptOptions {
|
|
3260
|
+
/**
|
|
3261
|
+
* Runtime execution to cancel.
|
|
3262
|
+
*
|
|
3263
|
+
* When supplied, a newer execution on the same session is never cancelled.
|
|
3264
|
+
* When omitted, `interrupt()` selects the current execution.
|
|
3265
|
+
*/
|
|
3266
|
+
executionId?: string;
|
|
3267
|
+
}
|
|
3236
3268
|
/**
|
|
3237
3269
|
* Options for `box.dispatchPrompt()` — fire-and-detach prompt semantics.
|
|
3238
3270
|
*/
|
|
@@ -3336,6 +3368,8 @@ interface DispatchedSession {
|
|
|
3336
3368
|
/** Session id (either the one the caller supplied or one the sandbox
|
|
3337
3369
|
* minted). */
|
|
3338
3370
|
sessionId: string;
|
|
3371
|
+
/** Runtime execution id when the admission event supplied one. */
|
|
3372
|
+
executionId?: string;
|
|
3339
3373
|
/** Lifecycle state at the moment dispatch returned. */
|
|
3340
3374
|
status: SessionStatus;
|
|
3341
3375
|
/** True when a session with the supplied id already existed. On its own
|
|
@@ -4610,55 +4644,44 @@ interface BackendArtifact {
|
|
|
4610
4644
|
updatedAt?: string;
|
|
4611
4645
|
}
|
|
4612
4646
|
/**
|
|
4613
|
-
* Runtime network
|
|
4614
|
-
*
|
|
4615
|
-
* Supports two modes:
|
|
4616
|
-
* - `blockOutbound: true` - Block all egress traffic (ports still work for inbound)
|
|
4617
|
-
* - `allowList: ["cidr", ...]` - Allow only specific destinations
|
|
4647
|
+
* Runtime network state for a sandbox.
|
|
4618
4648
|
*
|
|
4619
|
-
*
|
|
4649
|
+
* `ports` is the only field the platform reports: it lists ports exposed via
|
|
4650
|
+
* {@link NetworkManager.exposePort}. The outbound-policy fields are retained
|
|
4651
|
+
* for source compatibility and are rejected by the server — see
|
|
4652
|
+
* {@link NetworkManager.update}.
|
|
4620
4653
|
*
|
|
4621
|
-
* @example
|
|
4654
|
+
* @example Read the exposed ports
|
|
4622
4655
|
* ```typescript
|
|
4623
|
-
* await box.network.
|
|
4656
|
+
* const { ports } = await box.network.getConfig();
|
|
4624
4657
|
* ```
|
|
4625
4658
|
*
|
|
4626
|
-
* @example
|
|
4659
|
+
* @example Restrict outbound traffic (the enforced surface)
|
|
4627
4660
|
* ```typescript
|
|
4628
|
-
* await box.
|
|
4629
|
-
* allowList: [
|
|
4630
|
-
* "8.8.8.8/32", // Google DNS
|
|
4631
|
-
* "10.0.0.0/8", // Private network
|
|
4632
|
-
* ]
|
|
4633
|
-
* });
|
|
4634
|
-
* ```
|
|
4635
|
-
*
|
|
4636
|
-
* @example Expose ports at runtime
|
|
4637
|
-
* ```typescript
|
|
4638
|
-
* await box.network.update({ ports: [8000, 8080] });
|
|
4661
|
+
* await box.egress.update({ mode: "blocked" });
|
|
4639
4662
|
* ```
|
|
4640
4663
|
*/
|
|
4641
4664
|
interface NetworkConfig {
|
|
4642
4665
|
/**
|
|
4643
|
-
*
|
|
4644
|
-
*
|
|
4645
|
-
*
|
|
4666
|
+
* @deprecated Not enforceable and rejected with a 409. No driver applies
|
|
4667
|
+
* per-sandbox outbound rules: sandboxes are never granted NET_ADMIN, and a
|
|
4668
|
+
* rule set written inside a sandbox could be flushed by the code it is
|
|
4669
|
+
* meant to constrain. Block all outbound traffic with
|
|
4670
|
+
* `box.egress.update({ mode: "blocked" })`.
|
|
4646
4671
|
*/
|
|
4647
4672
|
blockOutbound?: boolean;
|
|
4648
4673
|
/**
|
|
4649
|
-
*
|
|
4650
|
-
*
|
|
4651
|
-
*
|
|
4652
|
-
*
|
|
4653
|
-
* Supports both IPv4 and IPv6 CIDR notation:
|
|
4654
|
-
* - "8.8.8.8/32" - Single IPv4 address
|
|
4655
|
-
* - "10.0.0.0/8" - IPv4 subnet
|
|
4656
|
-
* - "2001:db8::/32" - IPv6 subnet
|
|
4674
|
+
* @deprecated Not enforceable and rejected with a 409. Egress enforcement
|
|
4675
|
+
* allowlists domains, not CIDRs, so there is no destination-IP filter to
|
|
4676
|
+
* apply. Use `box.egress.update({ mode: "strict", allowDomains: [...] })`.
|
|
4657
4677
|
*/
|
|
4658
4678
|
allowList?: string[];
|
|
4659
4679
|
/**
|
|
4660
|
-
* Ports
|
|
4661
|
-
*
|
|
4680
|
+
* Ports currently exposed for the sandbox.
|
|
4681
|
+
*
|
|
4682
|
+
* Read-only in practice: sending `ports` to `update()` is rejected with a
|
|
4683
|
+
* 409 because it never exposed anything. Expose a port with
|
|
4684
|
+
* {@link NetworkManager.exposePort}.
|
|
4662
4685
|
*/
|
|
4663
4686
|
ports?: number[];
|
|
4664
4687
|
}
|
|
@@ -4667,14 +4690,16 @@ interface NetworkConfig {
|
|
|
4667
4690
|
*
|
|
4668
4691
|
* Applied at sandbox creation and mutable at runtime via `box.egress.update()`.
|
|
4669
4692
|
* The policy is enforced by the sandbox-side iron-proxy (layer-7 HTTP/HTTPS
|
|
4670
|
-
* filter)
|
|
4693
|
+
* filter) plus a host firewall chain that funnels the sandbox through it.
|
|
4694
|
+
* This is the only enforced outbound control — `box.network.update()` rejects
|
|
4695
|
+
* outbound policy rather than pretending to apply it.
|
|
4671
4696
|
*
|
|
4672
4697
|
* @example Open mode — default, all outbound allowed
|
|
4673
4698
|
* ```typescript
|
|
4674
4699
|
* egressPolicy: { mode: "open" }
|
|
4675
4700
|
* ```
|
|
4676
4701
|
*
|
|
4677
|
-
* @example Strict mode —
|
|
4702
|
+
* @example Strict mode — the listed domains plus the sandbox's own model endpoint
|
|
4678
4703
|
* ```typescript
|
|
4679
4704
|
* egressPolicy: {
|
|
4680
4705
|
* mode: "strict",
|
|
@@ -4691,14 +4716,22 @@ interface EgressPolicy {
|
|
|
4691
4716
|
/** Egress mode */
|
|
4692
4717
|
mode: "open" | "strict" | "blocked";
|
|
4693
4718
|
/**
|
|
4694
|
-
*
|
|
4695
|
-
*
|
|
4696
|
-
*
|
|
4719
|
+
* Domains you choose to reach in strict mode. The sandbox reaches these plus
|
|
4720
|
+
* the backends the platform provisioned into it — its model endpoint and any
|
|
4721
|
+
* provider it carries a key for — and nothing else: no package registry, no
|
|
4722
|
+
* source host, no LLM vendor it has no credential for. Ignored in `open` and
|
|
4723
|
+
* `blocked` modes.
|
|
4697
4724
|
*/
|
|
4698
4725
|
allowDomains?: string[];
|
|
4699
4726
|
/**
|
|
4700
|
-
*
|
|
4701
|
-
* Defaults to
|
|
4727
|
+
* Opt IN to merging the platform's default domain list into a strict
|
|
4728
|
+
* allowlist. Defaults to FALSE.
|
|
4729
|
+
*
|
|
4730
|
+
* Setting it true reaches ~40 hosts including `github.com`,
|
|
4731
|
+
* `codeload.github.com`, `gist.github.com`, `gitlab.com` and
|
|
4732
|
+
* `bitbucket.org` — arbitrary public repositories become readable and a
|
|
4733
|
+
* gist push becomes an allowed destination. Use it for a developer sandbox
|
|
4734
|
+
* running trusted code, never for untrusted execution.
|
|
4702
4735
|
*/
|
|
4703
4736
|
includeImplicitDomains?: boolean;
|
|
4704
4737
|
}
|
|
@@ -4714,6 +4747,7 @@ interface EgressPolicy {
|
|
|
4714
4747
|
*
|
|
4715
4748
|
* @example Update egress policy at runtime
|
|
4716
4749
|
* ```typescript
|
|
4750
|
+
* // strict reaches these plus the sandbox's own model endpoint, nothing else.
|
|
4717
4751
|
* await box.egress.update({ mode: "strict", allowDomains: ["api.github.com"] });
|
|
4718
4752
|
* ```
|
|
4719
4753
|
*/
|
|
@@ -4741,21 +4775,22 @@ interface EgressManager {
|
|
|
4741
4775
|
}>;
|
|
4742
4776
|
}
|
|
4743
4777
|
/**
|
|
4744
|
-
*
|
|
4778
|
+
* Port exposure and runtime network state for a sandbox.
|
|
4745
4779
|
* Access via `sandbox.network`.
|
|
4746
4780
|
*
|
|
4747
|
-
*
|
|
4781
|
+
* Outbound restrictions live on `sandbox.egress`, not here.
|
|
4782
|
+
*
|
|
4783
|
+
* @example Restrict outbound traffic
|
|
4748
4784
|
* ```typescript
|
|
4749
4785
|
* // Block all outbound traffic
|
|
4750
|
-
* await box.
|
|
4786
|
+
* await box.egress.update({ mode: "blocked" });
|
|
4751
4787
|
*
|
|
4752
|
-
* // Or
|
|
4753
|
-
* await box.
|
|
4754
|
-
*
|
|
4788
|
+
* // Or allow only specific domains
|
|
4789
|
+
* await box.egress.update({
|
|
4790
|
+
* mode: "strict",
|
|
4791
|
+
* allowDomains: ["api.github.com"],
|
|
4792
|
+
* includeImplicitDomains: false,
|
|
4755
4793
|
* });
|
|
4756
|
-
*
|
|
4757
|
-
* // Remove restrictions
|
|
4758
|
-
* await box.network.update({ blockOutbound: false });
|
|
4759
4794
|
* ```
|
|
4760
4795
|
*
|
|
4761
4796
|
* @example Expose ports dynamically
|
|
@@ -4768,13 +4803,20 @@ interface EgressManager {
|
|
|
4768
4803
|
*/
|
|
4769
4804
|
interface NetworkManager {
|
|
4770
4805
|
/**
|
|
4771
|
-
* Update network
|
|
4772
|
-
*
|
|
4806
|
+
* Update runtime network settings.
|
|
4807
|
+
*
|
|
4808
|
+
* @deprecated Every field this accepts is rejected by the server. Outbound
|
|
4809
|
+
* policy is unenforceable here (see {@link NetworkConfig}) and `ports` never
|
|
4810
|
+
* exposed anything. Use `box.egress.update()` for outbound policy and
|
|
4811
|
+
* {@link NetworkManager.exposePort} for ports.
|
|
4773
4812
|
*
|
|
4774
4813
|
* @param config - Partial network configuration to apply
|
|
4775
4814
|
* @throws Error if blockOutbound and allowList are both specified
|
|
4776
4815
|
* @throws Error if allowList exceeds 10 entries
|
|
4777
4816
|
* @throws Error if CIDR format is invalid
|
|
4817
|
+
* @throws SandboxError (409, `DRIVER_CAPABILITY_UNSUPPORTED`) if the request
|
|
4818
|
+
* carries `blockOutbound`, `allowList`, or `ports` — the platform will not
|
|
4819
|
+
* report success for a policy it cannot enforce
|
|
4778
4820
|
*/
|
|
4779
4821
|
update(config: Partial<NetworkConfig>): Promise<void>;
|
|
4780
4822
|
/**
|
|
@@ -4793,9 +4835,12 @@ interface NetworkManager {
|
|
|
4793
4835
|
*/
|
|
4794
4836
|
listUrls(): Promise<Record<number, string>>;
|
|
4795
4837
|
/**
|
|
4796
|
-
* Get current network
|
|
4838
|
+
* Get current runtime network state.
|
|
4839
|
+
*
|
|
4840
|
+
* Reports `ports` only. Outbound policy is never reported here because it
|
|
4841
|
+
* is never applied here; read the enforced policy with `box.egress.get()`.
|
|
4797
4842
|
*
|
|
4798
|
-
* @returns
|
|
4843
|
+
* @returns Ports currently exposed for the sandbox
|
|
4799
4844
|
*/
|
|
4800
4845
|
getConfig(): Promise<NetworkConfig>;
|
|
4801
4846
|
}
|
|
@@ -6131,4 +6176,4 @@ interface CodeExecutionOptions {
|
|
|
6131
6176
|
idempotencyKey?: string;
|
|
6132
6177
|
}
|
|
6133
6178
|
//#endregion
|
|
6134
|
-
export { EventStreamOptions as $,
|
|
6179
|
+
export { EventStreamOptions as $, PublicBatchRunRequest as $i, SandboxFleetCostEstimate as $n, SessionBackendCredentials as $r, ListSandboxFleetOptions as $t, CreateSandboxFleetTokenOptions as A, UpdateUserOptions as Ai, PublishPublicTemplateVersionOptions as An, SandboxResources as Ar, GitCommit as At, DownloadOptions as B, TerminalExitInfo as Bi, RolloutOptions as Bn, SandboxTraceEvent as Br, GpuLeaseProviderName as Bt, CodeResultPart as C, TeeAttestationReport as Ci, ProvisionEvent as Cn, SandboxFleetWorkspaceSnapshotResult as Cr, FleetExecDispatchResult as Ct, CreateIntelligenceReportOptions as D, TokenRefreshHandler as Di, PublicTemplateInfo as Dn, SandboxPortBinding as Dr, GPU_LEASE_PROVIDER_NAMES as Dt, CreateGpuLeaseOptions as E, TeePublicKeyResponse as Ei, ProvisionStep as En, SandboxIntelligenceEnvelope as Er, FleetPromptDispatchResult as Et, DeleteOptions as F, WaitForRolloutOptions as Fi, RenameOptions as Fn, SandboxTerminalInfo as Fr, GpuLeaseBilling as Ft, DriverType as G, TerminalStreamHandlers as Gi, SSHCommandDescriptor as Gn, ScopedTokenScope as Gr, IntelligenceReport as Gt, DriveTurnOptions as H, TerminalStream as Hi, RolloutStartResult as Hn, SandboxTraceOptions as Hr, HostAgentDriverConfig as Ht, DevServerInfo as I, WriteFileOptions as Ii, RestoreSnapshotOptions as In, SandboxTerminalManager as Ir, GpuLeaseCommandResult as It, EffectiveBackendProfile as J, BatchBackendStats as Ji, SandboxConnection as Jn, SecretInfo as Jr, IntelligenceReportSubjectType as Jt, DurablePlan as K, TerminalStreamOptions as Ki, SSHCredentials as Kn, SearchMatch as Kr, IntelligenceReportBudget as Kt, DirectoryPermission as L, WriteManyFile as Li, ResumeOptions as Ln, SandboxTerminalRequestOptions as Lr, GpuLeaseExecOptions as Lt, CreateSandboxOptions as M, UploadProgress as Mi, ReapExpiredSandboxFleetsResult as Mn, SandboxStatus as Mr, GitDiff as Mt, CreateSessionOptions as N, UsageInfo as Ni, ReconcileSandboxFleetsOptions as Nn, SandboxTerminalAttachOptions as Nr, GitStatus as Nt, CreateRequestOptions as O, TokenUsage as Oi, PublicTemplateVersionInfo as On, SandboxPortPreviewLink as Or, GitAuth as Ot, CreateTaskSessionOptions as P, WaitForOptions as Pi, ReconcileSandboxFleetsResult as Pn, SandboxTerminalCreateOptions as Pr, GpuLease as Pt, EnsureDevServerOptions as Q, BatchTaskUsage as Qi, SandboxFleetArtifactSpec as Qn, SentSessionMessage as Qr, ListOptions as Qt, DispatchPromptOptions as R, WriteManyOptions as Ri, Rollout as Rn, SandboxTerminals as Rr, GpuLeaseExecResult as Rt, CodeLanguage as S, TeeAttestationOptions as Si, PromptResult as Sn, SandboxFleetWorkspaceRestoreResult as Sr, FleetExecDispatchOptions as St, CompletedTurnResult as T, TeePublicKey as Ti, ProvisionStatus as Tn, SandboxInfo as Tr, FleetPromptDispatchOptions as Tt, DriverConfig as U, TerminalStreamAuthFormat as Ui, RolloutStatus as Un, SandboxUser as Ur, HostAgentRuntimeBackend as Ut, DownloadProgress as V, TerminalReadyInfo as Vi, RolloutScorer as Vn, SandboxTraceExport as Vr, GpuLeaseStatus as Vt, DriverInfo as W, TerminalStreamError as Wi, RolloutTurnPart as Wn, ScopedToken as Wr, InstalledTool as Wt, EgressManager as X, BatchEventDataMap as Xi, SandboxEvent as Xn, SendSessionMessageOptions as Xr, JsonValue as Xt, EffectiveBackendSource as Y, BatchEvent as Yi, SandboxEnvironment as Yn, SecretsManager as Yr, IntelligenceReportWindow as Yt, EgressPolicy as Z, BatchSidecarGroup as Zi, SandboxFleetArtifact as Zn, SendSessionMessageRequest as Zr, ListMessagesOptions as Zt, BranchOptions as _, TaskSessionChanges as _i, ProcessSignal as _n, SandboxFleetTraceExport as _r, FleetDispatchResultBuffer as _t, AttachSandboxFleetMachineOptions as a, SessionMessage as ai, NetworkManager as an, SandboxFleetIntelligenceEnvelope as ar, FileReadBatchResult as at, CodeExecutionOptions as b, TaskSessionInfo as bi, PromptInputPart as bn, SandboxFleetWorkspace as br, FleetDriveTurnOutcome as bt, BackendInfo as c, SessionStatus as ci, PermissionsManager as cn, SandboxFleetMachineRecord as cr, FileRenameResult as ct, BatchBackend as d, SnapshotResult as di, PreviewLinkWaitOptions as dn, SandboxFleetManifestMachine as dr, FileTreeOptions as dt, BackendType as ea, SessionEventStreamOptions as ei, ListSandboxOptions as en, SandboxFleetDispatchFailureClass as er, ExactProcessSpawnOptions as et, BatchResult as f, SshKeysManager as fi, Process as fn, SandboxFleetOperationsSummary as fr, FileTreeResult as ft, BatchTaskResult as g, SubscriptionInfo as gi, ProcessManager as gn, SandboxFleetTraceEvent as gr, FleetDispatchCancelResult as gt, BatchTask as h, StorageConfig as hi, ProcessLogEntry as hn, SandboxFleetTraceBundle as hr, FileWriteResult as ht, AttachGpuLeaseOptions as i, SessionListOptions as ii, NetworkConfig as in, SandboxFleetInfo as ir, FileReadBatchOptions as it, CreateSandboxFleetWithCoordinatorOptions as j, UploadOptions as ji, ReapExpiredSandboxFleetsOptions as jn, SandboxRuntimeHealth as jr, GitConfig as jt, CreateSandboxFleetOptions as k, TurnDriveResult as ki, PublishPublicTemplateOptions as kn, SandboxResourceUsage as kr, GitBranch as kt, BackendManager as l, SnapshotInfo as li, PreviewLinkInfo as ln, SandboxFleetMachineSpec as lr, FileSystem as lt, BatchRunRequest as m, StartupOperation as mi, ProcessListOptions as mn, SandboxFleetToken as mr, FileUsageResult as mt, AccessPolicyRule as n, SessionInfo as ni, MintScopedTokenOptions as nn, SandboxFleetDriverCapability as nr, ExecResult as nt, BackendCapabilities as o, SessionMessageInputPart as oi, NonHostAgentDriverConfig as on, SandboxFleetMachine as or, FileReadError as ot, BatchRunOptions as p, StartupDiagnostics as pi, ProcessInfo as pn, SandboxFleetPolicy as pr, FileUsageOptions as pt, EffectiveBackend as q, TerminalStreamToken as qi, SandboxConfig as qn, SearchOptions as qr, IntelligenceReportCompareTo as qt, AddUserOptions as r, SessionInterruptOptions as ri, MkdirOptions as rn, SandboxFleetDriverTimings as rr, FileInfo as rt, BackendConfig as s, SessionResultOptions as si, PermissionLevel as sn, SandboxFleetMachineMeteredUsage as sr, FileReadResult as st, AcceleratorKind as t, parseBackendType as ta, SessionForkOptions as ti, McpServerConfig as tn, SandboxFleetDispatchResponse as tr, ExecOptions as tt, BackendStatus as u, SnapshotOptions as ui, PreviewLinkManager as un, SandboxFleetManifest as ur, FileTreeFile as ut, ChunkedUploadOptions as v, TaskSessionCommitResult as vi, ProcessSpawnOptions as vn, SandboxFleetTraceOptions as vr, FleetDispatchResultBufferOptions as vt, CommitTaskSessionOptions as w, TeeAttestationResponse as wi, ProvisionResult as wn, SandboxIdentity as wr, FleetMachineId as wt, CodeExecutionResult as x, TaskSessionProfile as xi, PromptOptions as xn, SandboxFleetWorkspaceReconcileResult as xr, FleetDriveTurnRequest as xt, ChunkedUploadResult as y, TaskSessionFileChange as yi, ProcessStatus as yn, SandboxFleetUsage as yr, FleetDispatchStreamOptions as yt, DispatchedSession as z, TERMINAL_WS_ECHO_SUBPROTOCOL as zi, RolloutChildResult as zn, SandboxTraceBundle as zr, GpuLeaseManager as zt };
|