@tangle-network/sandbox 0.15.3-develop.20260731000024.8def6ab → 0.16.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/dist/agent/index.d.ts +3 -3
- package/dist/{client-C5rri6ua.d.ts → client-BIr5NPKo.d.ts} +2 -2
- package/dist/{client-B900SHtj.js → client-DS6fz6PF.js} +10 -4
- package/dist/core.d.ts +3 -3
- package/dist/core.js +2 -2
- package/dist/{index-Om3UH1DJ.d.ts → index-C89k_hW1.d.ts} +2 -2
- package/dist/index.d.ts +75 -75
- package/dist/index.js +5 -5
- package/dist/{runtime-api-BWC3U-qO.js → runtime-api-Bd9NAChb.js} +40 -3
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/dist/{sandbox-s91ZluKA.d.ts → sandbox-CiVbnsQp.d.ts} +11 -12
- package/dist/{sandbox-CfScdY7m.js → sandbox-CkaqBz54.js} +11 -12
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-DiReWa8T.js → tangle-Cxe2HYQb.js} +1 -1
- package/dist/{types-DDZCJUWe.d.ts → types-DTHan0Lc.d.ts} +272 -260
- 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>;
|
|
@@ -4610,55 +4611,44 @@ interface BackendArtifact {
|
|
|
4610
4611
|
updatedAt?: string;
|
|
4611
4612
|
}
|
|
4612
4613
|
/**
|
|
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
|
|
4614
|
+
* Runtime network state for a sandbox.
|
|
4618
4615
|
*
|
|
4619
|
-
*
|
|
4616
|
+
* `ports` is the only field the platform reports: it lists ports exposed via
|
|
4617
|
+
* {@link NetworkManager.exposePort}. The outbound-policy fields are retained
|
|
4618
|
+
* for source compatibility and are rejected by the server — see
|
|
4619
|
+
* {@link NetworkManager.update}.
|
|
4620
4620
|
*
|
|
4621
|
-
* @example
|
|
4621
|
+
* @example Read the exposed ports
|
|
4622
4622
|
* ```typescript
|
|
4623
|
-
* await box.network.
|
|
4623
|
+
* const { ports } = await box.network.getConfig();
|
|
4624
4624
|
* ```
|
|
4625
4625
|
*
|
|
4626
|
-
* @example
|
|
4626
|
+
* @example Restrict outbound traffic (the enforced surface)
|
|
4627
4627
|
* ```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] });
|
|
4628
|
+
* await box.egress.update({ mode: "blocked" });
|
|
4639
4629
|
* ```
|
|
4640
4630
|
*/
|
|
4641
4631
|
interface NetworkConfig {
|
|
4642
4632
|
/**
|
|
4643
|
-
*
|
|
4644
|
-
*
|
|
4645
|
-
*
|
|
4633
|
+
* @deprecated Not enforceable and rejected with a 409. No driver applies
|
|
4634
|
+
* per-sandbox outbound rules: sandboxes are never granted NET_ADMIN, and a
|
|
4635
|
+
* rule set written inside a sandbox could be flushed by the code it is
|
|
4636
|
+
* meant to constrain. Block all outbound traffic with
|
|
4637
|
+
* `box.egress.update({ mode: "blocked" })`.
|
|
4646
4638
|
*/
|
|
4647
4639
|
blockOutbound?: boolean;
|
|
4648
4640
|
/**
|
|
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
|
|
4641
|
+
* @deprecated Not enforceable and rejected with a 409. Egress enforcement
|
|
4642
|
+
* allowlists domains, not CIDRs, so there is no destination-IP filter to
|
|
4643
|
+
* apply. Use `box.egress.update({ mode: "strict", allowDomains: [...] })`.
|
|
4657
4644
|
*/
|
|
4658
4645
|
allowList?: string[];
|
|
4659
4646
|
/**
|
|
4660
|
-
* Ports
|
|
4661
|
-
*
|
|
4647
|
+
* Ports currently exposed for the sandbox.
|
|
4648
|
+
*
|
|
4649
|
+
* Read-only in practice: sending `ports` to `update()` is rejected with a
|
|
4650
|
+
* 409 because it never exposed anything. Expose a port with
|
|
4651
|
+
* {@link NetworkManager.exposePort}.
|
|
4662
4652
|
*/
|
|
4663
4653
|
ports?: number[];
|
|
4664
4654
|
}
|
|
@@ -4667,14 +4657,16 @@ interface NetworkConfig {
|
|
|
4667
4657
|
*
|
|
4668
4658
|
* Applied at sandbox creation and mutable at runtime via `box.egress.update()`.
|
|
4669
4659
|
* The policy is enforced by the sandbox-side iron-proxy (layer-7 HTTP/HTTPS
|
|
4670
|
-
* filter)
|
|
4660
|
+
* filter) plus a host firewall chain that funnels the sandbox through it.
|
|
4661
|
+
* This is the only enforced outbound control — `box.network.update()` rejects
|
|
4662
|
+
* outbound policy rather than pretending to apply it.
|
|
4671
4663
|
*
|
|
4672
4664
|
* @example Open mode — default, all outbound allowed
|
|
4673
4665
|
* ```typescript
|
|
4674
4666
|
* egressPolicy: { mode: "open" }
|
|
4675
4667
|
* ```
|
|
4676
4668
|
*
|
|
4677
|
-
* @example Strict mode —
|
|
4669
|
+
* @example Strict mode — the listed domains plus the sandbox's own model endpoint
|
|
4678
4670
|
* ```typescript
|
|
4679
4671
|
* egressPolicy: {
|
|
4680
4672
|
* mode: "strict",
|
|
@@ -4691,14 +4683,22 @@ interface EgressPolicy {
|
|
|
4691
4683
|
/** Egress mode */
|
|
4692
4684
|
mode: "open" | "strict" | "blocked";
|
|
4693
4685
|
/**
|
|
4694
|
-
*
|
|
4695
|
-
*
|
|
4696
|
-
*
|
|
4686
|
+
* Domains you choose to reach in strict mode. The sandbox reaches these plus
|
|
4687
|
+
* the backends the platform provisioned into it — its model endpoint and any
|
|
4688
|
+
* provider it carries a key for — and nothing else: no package registry, no
|
|
4689
|
+
* source host, no LLM vendor it has no credential for. Ignored in `open` and
|
|
4690
|
+
* `blocked` modes.
|
|
4697
4691
|
*/
|
|
4698
4692
|
allowDomains?: string[];
|
|
4699
4693
|
/**
|
|
4700
|
-
*
|
|
4701
|
-
* Defaults to
|
|
4694
|
+
* Opt IN to merging the platform's default domain list into a strict
|
|
4695
|
+
* allowlist. Defaults to FALSE.
|
|
4696
|
+
*
|
|
4697
|
+
* Setting it true reaches ~40 hosts including `github.com`,
|
|
4698
|
+
* `codeload.github.com`, `gist.github.com`, `gitlab.com` and
|
|
4699
|
+
* `bitbucket.org` — arbitrary public repositories become readable and a
|
|
4700
|
+
* gist push becomes an allowed destination. Use it for a developer sandbox
|
|
4701
|
+
* running trusted code, never for untrusted execution.
|
|
4702
4702
|
*/
|
|
4703
4703
|
includeImplicitDomains?: boolean;
|
|
4704
4704
|
}
|
|
@@ -4714,6 +4714,7 @@ interface EgressPolicy {
|
|
|
4714
4714
|
*
|
|
4715
4715
|
* @example Update egress policy at runtime
|
|
4716
4716
|
* ```typescript
|
|
4717
|
+
* // strict reaches these plus the sandbox's own model endpoint, nothing else.
|
|
4717
4718
|
* await box.egress.update({ mode: "strict", allowDomains: ["api.github.com"] });
|
|
4718
4719
|
* ```
|
|
4719
4720
|
*/
|
|
@@ -4741,21 +4742,22 @@ interface EgressManager {
|
|
|
4741
4742
|
}>;
|
|
4742
4743
|
}
|
|
4743
4744
|
/**
|
|
4744
|
-
*
|
|
4745
|
+
* Port exposure and runtime network state for a sandbox.
|
|
4745
4746
|
* Access via `sandbox.network`.
|
|
4746
4747
|
*
|
|
4747
|
-
*
|
|
4748
|
+
* Outbound restrictions live on `sandbox.egress`, not here.
|
|
4749
|
+
*
|
|
4750
|
+
* @example Restrict outbound traffic
|
|
4748
4751
|
* ```typescript
|
|
4749
4752
|
* // Block all outbound traffic
|
|
4750
|
-
* await box.
|
|
4753
|
+
* await box.egress.update({ mode: "blocked" });
|
|
4751
4754
|
*
|
|
4752
|
-
* // Or
|
|
4753
|
-
* await box.
|
|
4754
|
-
*
|
|
4755
|
+
* // Or allow only specific domains
|
|
4756
|
+
* await box.egress.update({
|
|
4757
|
+
* mode: "strict",
|
|
4758
|
+
* allowDomains: ["api.github.com"],
|
|
4759
|
+
* includeImplicitDomains: false,
|
|
4755
4760
|
* });
|
|
4756
|
-
*
|
|
4757
|
-
* // Remove restrictions
|
|
4758
|
-
* await box.network.update({ blockOutbound: false });
|
|
4759
4761
|
* ```
|
|
4760
4762
|
*
|
|
4761
4763
|
* @example Expose ports dynamically
|
|
@@ -4768,13 +4770,20 @@ interface EgressManager {
|
|
|
4768
4770
|
*/
|
|
4769
4771
|
interface NetworkManager {
|
|
4770
4772
|
/**
|
|
4771
|
-
* Update network
|
|
4772
|
-
*
|
|
4773
|
+
* Update runtime network settings.
|
|
4774
|
+
*
|
|
4775
|
+
* @deprecated Every field this accepts is rejected by the server. Outbound
|
|
4776
|
+
* policy is unenforceable here (see {@link NetworkConfig}) and `ports` never
|
|
4777
|
+
* exposed anything. Use `box.egress.update()` for outbound policy and
|
|
4778
|
+
* {@link NetworkManager.exposePort} for ports.
|
|
4773
4779
|
*
|
|
4774
4780
|
* @param config - Partial network configuration to apply
|
|
4775
4781
|
* @throws Error if blockOutbound and allowList are both specified
|
|
4776
4782
|
* @throws Error if allowList exceeds 10 entries
|
|
4777
4783
|
* @throws Error if CIDR format is invalid
|
|
4784
|
+
* @throws SandboxError (409, `DRIVER_CAPABILITY_UNSUPPORTED`) if the request
|
|
4785
|
+
* carries `blockOutbound`, `allowList`, or `ports` — the platform will not
|
|
4786
|
+
* report success for a policy it cannot enforce
|
|
4778
4787
|
*/
|
|
4779
4788
|
update(config: Partial<NetworkConfig>): Promise<void>;
|
|
4780
4789
|
/**
|
|
@@ -4793,9 +4802,12 @@ interface NetworkManager {
|
|
|
4793
4802
|
*/
|
|
4794
4803
|
listUrls(): Promise<Record<number, string>>;
|
|
4795
4804
|
/**
|
|
4796
|
-
* Get current network
|
|
4805
|
+
* Get current runtime network state.
|
|
4806
|
+
*
|
|
4807
|
+
* Reports `ports` only. Outbound policy is never reported here because it
|
|
4808
|
+
* is never applied here; read the enforced policy with `box.egress.get()`.
|
|
4797
4809
|
*
|
|
4798
|
-
* @returns
|
|
4810
|
+
* @returns Ports currently exposed for the sandbox
|
|
4799
4811
|
*/
|
|
4800
4812
|
getConfig(): Promise<NetworkConfig>;
|
|
4801
4813
|
}
|