@tangle-network/sandbox 1.0.267 → 1.0.268

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.
Files changed (37) hide show
  1. package/dist/agent/index.d.ts +4 -4
  2. package/dist/agent/index.js +4 -4
  3. package/dist/agent/preview.d.ts +1 -1
  4. package/dist/agent/preview.js +1 -1
  5. package/dist/{agent-run-outcome-DThM9ULE.d.ts → agent-run-outcome-e0Rtf3a3.d.ts} +1 -1
  6. package/dist/{api-request-Cro-o_Hn.js → api-request-nbgUMuWb.js} +1 -1
  7. package/dist/{browser-interactive-control-controller-CoXo6W-C.js → browser-interactive-control-controller-C9yza0IL.js} +1 -1
  8. package/dist/{client-BYGLoEiU.d.ts → client-D5GC6xYe.d.ts} +4 -4
  9. package/dist/{client-T2segRsd.js → client-HIMk1-m9.js} +3 -3
  10. package/dist/collaboration/index.js +1 -1
  11. package/dist/{collaboration-C7MXUmkW.js → collaboration-pelVsLcr.js} +1 -1
  12. package/dist/core.d.ts +5 -5
  13. package/dist/core.js +2 -2
  14. package/dist/gpu-lease/index.js +1 -1
  15. package/dist/{index-DkB8WbjK.d.ts → index-DUEgpbVw.d.ts} +3 -3
  16. package/dist/index.d.ts +7 -7
  17. package/dist/index.js +145 -7
  18. package/dist/intelligence/index.js +1 -1
  19. package/dist/interactive-control.js +1 -1
  20. package/dist/{interactive-controller-DSYQTRwh.d.ts → interactive-controller-CmRtlTBj.d.ts} +1 -1
  21. package/dist/{interactive-controller-D1Jl59Np.js → interactive-controller-DOM8V0pP.js} +2 -2
  22. package/dist/{lines-D7lE49lV.d.ts → lines-b98DdVCn.d.ts} +1 -1
  23. package/dist/lines.d.ts +1 -1
  24. package/dist/{mcp-local-Bk8_gFfz.js → mcp-local-BB-yoxeI.js} +2 -2
  25. package/dist/{preview-DsHoo8BC.d.ts → preview-CuMxpBA3.d.ts} +3 -3
  26. package/dist/{public-templates-DRqOkshE.d.ts → public-templates-DTzQu6C0.d.ts} +1 -1
  27. package/dist/public-templates.d.ts +1 -1
  28. package/dist/runtime.d.ts +3 -3
  29. package/dist/runtime.js +3 -3
  30. package/dist/{sandbox-DVKv1JBh.js → sandbox-D86jxPzC.js} +219 -359
  31. package/dist/select-seat-command.d.ts +1 -1
  32. package/dist/session-gateway/index.js +1 -1
  33. package/dist/tangle/index.d.ts +1 -1
  34. package/dist/tangle/index.js +1 -1
  35. package/dist/{tangle-Dz9tB-jj.js → tangle-BBF4pV5c.js} +2 -2
  36. package/dist/{types-BikjtQi3.d.ts → types-Ct8kzcZC.d.ts} +362 -371
  37. package/package.json +5 -5
@@ -2193,6 +2193,307 @@ interface BatchRunOptions {
2193
2193
  signal?: AbortSignal;
2194
2194
  }
2195
2195
  //#endregion
2196
+ //#region src/types/storage.d.ts
2197
+ /**
2198
+ * Customer S3-compatible snapshot storage (AWS S3, GCS HMAC or R2).
2199
+ * @example
2200
+ * ```typescript
2201
+ * const storage: StorageConfig = {
2202
+ * type: "r2",
2203
+ * bucket: "my-snapshots",
2204
+ * endpoint: "https://<account>.r2.cloudflarestorage.com",
2205
+ * credentials: { accessKeyId: "...", secretAccessKey: "..." },
2206
+ * };
2207
+ * ```
2208
+ */
2209
+ interface StorageConfig {
2210
+ type: "s3" | "gcs" | "r2";
2211
+ bucket: string;
2212
+ /** Custom endpoint URL (required for R2, optional for S3/GCS) */
2213
+ endpoint?: string;
2214
+ /** Region (e.g., us-east-1) */
2215
+ region?: string;
2216
+ credentials: {
2217
+ accessKeyId: string;
2218
+ secretAccessKey: string;
2219
+ };
2220
+ /** Path prefix within bucket (default: sandbox-snapshots/) */
2221
+ prefix?: string;
2222
+ }
2223
+ /**
2224
+ * Live cgroup usage. CPU utilization from samples: ΔcpuUsageUsec / (Δwall_ms * 10).
2225
+ * Memory current/peak are instantaneous/high-water values.
2226
+ */
2227
+ interface SandboxResourceUsage {
2228
+ cgroupVersion: number;
2229
+ /** Current resident memory, MB. */
2230
+ memoryCurrentMb: number;
2231
+ /** Peak resident memory since start, MB (null when unavailable). */
2232
+ memoryPeakMb: number | null;
2233
+ /** Memory limit, MB (null when unlimited). */
2234
+ memoryLimitMb: number | null;
2235
+ /** Cumulative CPU time consumed, microseconds. */
2236
+ cpuUsageUsec: number;
2237
+ /** Epoch ms when sampled. */
2238
+ sampledAtMs: number;
2239
+ }
2240
+ /**
2241
+ * Capabilities compiled into the deployed image, read from GET /capabilities JSON,
2242
+ * independent of SDK method presence or proxy headers. Missing optional flags mean
2243
+ * unknown, not false.
2244
+ */
2245
+ interface SandboxRuntimeCapabilities {
2246
+ /** Named native subscription references supported by the deployed Sidecar. */
2247
+ cliAuthReferences?: boolean;
2248
+ /** Owner-authorized token changes retain the exact Claude session HOME without overlapping adapters. */
2249
+ claudeTokenContinuations?: boolean;
2250
+ /** Owner-authorized bundle or files changes retain the exact Codex rollout HOME without overlapping adapters. */
2251
+ codexCredentialContinuations?: boolean;
2252
+ /** Native raw evidence wire version compiled into the serving Sidecar. */
2253
+ nativeSessionCaptureVersion?: number;
2254
+ /** Dispatch providers covered by the serving Sidecar capture boundary. */
2255
+ nativeSessionCaptureHarnesses?: BackendType[];
2256
+ schema: 1;
2257
+ /** `@tangle-network/agent-interface` contract compiled into the image. */
2258
+ agentInterface: string;
2259
+ sidecarVersion: string;
2260
+ image: string;
2261
+ dispatch: {
2262
+ /** Run requests accept a caller-supplied exact `runControlRef`. */runControlRef: boolean; /** Admission (`execution.started`) echoes the executionId. */
2263
+ executionIdOnAdmission: boolean;
2264
+ };
2265
+ cancel: {
2266
+ /** `POST /agents/run/cancel` accepts the canonical digest-bound
2267
+ * `AgentRunCancellationRequest`. */
2268
+ canonicalRunCancellation: boolean; /** Cancellation binds to the run's `requestDigest`. */
2269
+ digestBound: boolean; /** Replaying an `operationId` returns the stored acknowledgement. */
2270
+ idempotent: boolean;
2271
+ };
2272
+ runs: {
2273
+ /** `GET /agents/sessions/{sessionId}/runs` (+ `/runs/active`). */executionScopedStatus: boolean; /** `GET /agents/run/{executionId}/events` replays buffered events. */
2274
+ eventReplay: boolean;
2275
+ };
2276
+ interactions: {
2277
+ /** Native OpenCode before-tool approval; require OpenCode and permission interactions. */exactBeforeToolApproval?: boolean;
2278
+ /**
2279
+ * Recorded resolutions replay on repetition, conflict on changed answers (409
2280
+ * StateError), and fail closed (503) if recording fails.
2281
+ */
2282
+ responseDedupe: boolean;
2283
+ };
2284
+ /** Native TUI lifecycle and control operations exposed by the deployment. */
2285
+ interactiveAgent?: {
2286
+ start: boolean;
2287
+ status: boolean;
2288
+ attach: boolean; /** Fence concurrent TUI writers with an exact control claim. */
2289
+ control: boolean;
2290
+ reattach: boolean;
2291
+ sendPrompt: boolean;
2292
+ input: boolean;
2293
+ resize: boolean;
2294
+ stop: boolean; /** Start Claude Code with the CLI's subscription login in its private HOME. */
2295
+ claudeSubscription?: boolean;
2296
+ };
2297
+ }
2298
+ //#endregion
2299
+ //#region src/types/snapshots.d.ts
2300
+ interface SnapshotOptions {
2301
+ tags?: string[];
2302
+ /**
2303
+ * Path-scoped capture is unsupported and rejected. Create a whole-workspace
2304
+ * snapshot, then use `restorePaths()` for a non-clobbering subtree restore.
2305
+ */
2306
+ paths?: never;
2307
+ /** Customer-provided storage for BYOS3 (calls the runtime directly) */
2308
+ storage?: StorageConfig;
2309
+ /** Same key and options replay; changed options are refused. Unsupported with customer storage. */
2310
+ idempotencyKey?: string;
2311
+ /** `false` returns a durably accepted operation; pre-call writes are included, later writes may land until capture finishes. Default true; unsupported with storage. */
2312
+ wait?: boolean;
2313
+ }
2314
+ /** `created` captured; `replayed` reused the same keyed request. Absent without a key. */
2315
+ interface SnapshotIdempotency {
2316
+ outcome: "created" | "replayed";
2317
+ requestDigest: string;
2318
+ }
2319
+ /** pending: host copy uploading; remote restores wait or fail. synced: remotely restorable. failed: host copy retained for retry. */
2320
+ type SnapshotRemoteSync = "pending" | "synced" | "failed";
2321
+ interface SnapshotResult {
2322
+ snapshotId: string;
2323
+ createdAt: Date;
2324
+ sizeBytes?: number;
2325
+ tags: string[];
2326
+ /** Upload state at creation; absent for keyed replays and customer storage. listSnapshots reads current state. */
2327
+ remoteSync?: SnapshotRemoteSync;
2328
+ idempotency?: SnapshotIdempotency;
2329
+ /** Materialized agent profile at capture; absent for bare sandboxes. */
2330
+ provenance?: SnapshotProvenance;
2331
+ }
2332
+ interface SnapshotProvenance {
2333
+ base: {
2334
+ /** Profile name (e.g. "gtm", "code-reviewer") or null if inline. */name: string | null;
2335
+ sha256: string;
2336
+ };
2337
+ /** The profile active at snapshot time (same as base unless updated). */
2338
+ effective: {
2339
+ name: string | null;
2340
+ sha256: string;
2341
+ };
2342
+ materializedAt: string;
2343
+ }
2344
+ /** A verb that can finish in the background (`wait: false`). */
2345
+ type SandboxOperationKind = "stop" | "snapshot" | "delete";
2346
+ /** `accepted` and `running` are open; `succeeded` and `failed` are terminal. */
2347
+ type SandboxOperationState = "accepted" | "running" | "succeeded" | "failed";
2348
+ interface SandboxOperationInfo {
2349
+ /** Empty for a verb the API finished synchronously. */
2350
+ id: string;
2351
+ kind: SandboxOperationKind;
2352
+ sandboxId: string;
2353
+ state: SandboxOperationState;
2354
+ /** What an open operation is doing now, when the API reports it. */
2355
+ phase?: string;
2356
+ acceptedAt: Date;
2357
+ completedAt?: Date;
2358
+ /** Where to poll it; empty for a verb that finished synchronously. */
2359
+ statusUrl: string;
2360
+ result?: {
2361
+ /** stop: where the final workspace generation was durable when it finished. */durability?: "local" | "remote";
2362
+ snapshot?: SnapshotResult;
2363
+ sandbox?: Record<string, unknown>; /** delete: the delete and its product cleanup finished. */
2364
+ deleted?: true; /** delete: the authoritative physical-removal read when requested. */
2365
+ removal?: SandboxRemovalState; /** delete the API served synchronously: what that delete attested. */
2366
+ outcome?: SandboxDeleteOutcome;
2367
+ };
2368
+ error?: {
2369
+ code: string;
2370
+ message: string;
2371
+ };
2372
+ }
2373
+ /** Options for a stop. */
2374
+ interface StopOptions {
2375
+ /** `false` returns durable acceptance; billing continues until stopped and resume waits. Default true waits for stop. */
2376
+ wait?: boolean;
2377
+ /** Seal native sessions and retained workspace paths from the confirmed stopped generation before answering. Requires wait=true. */
2378
+ retain?: {
2379
+ paths: string[];
2380
+ };
2381
+ /** Cancel this request and lifecycle-lease waits; an accepted stop remains durable. */
2382
+ signal?: AbortSignal;
2383
+ /** Retry identity: a retry with the same key answers the same operation. */
2384
+ idempotencyKey?: string;
2385
+ }
2386
+ /** deleted: removed now; already_absent: already gone; unknown: no recognized attestation, including older APIs. */
2387
+ type SnapshotDeleteOutcome = "deleted" | "already_absent" | "unknown";
2388
+ interface SnapshotDeleteAcknowledgement {
2389
+ snapshotId: string;
2390
+ outcome: SnapshotDeleteOutcome;
2391
+ /** HTTP receipt, separate from whether its body attests deletion. */
2392
+ response?: Pick<SandboxErrorMetadata, "requestId" | "traceId" | "method" | "endpoint"> & {
2393
+ status: number;
2394
+ receivedAt: string;
2395
+ parseState: "object" | "array" | "primitive" | "null" | "invalid-json" | "body-read-failed";
2396
+ attestation: {
2397
+ outcome: SnapshotDeleteOutcome | "missing" | "unrecognized";
2398
+ deleted?: boolean;
2399
+ success?: boolean;
2400
+ };
2401
+ };
2402
+ /** Retention wait in ms, from the first request to the final request start; absent when unheld. */
2403
+ retainedMs?: number;
2404
+ }
2405
+ /** destroyed: removed now; already_absent: runtime absent and product rows finalized; unknown: unattested, including older APIs. */
2406
+ type SandboxDeleteOutcome = "destroyed" | "already_absent" | "unknown";
2407
+ /** pending: dead and billed, reclaim asynchronous. complete: requested removal proof finished. */
2408
+ type SandboxRemovalState = "pending" | "complete";
2409
+ interface SandboxDeleteOptions {
2410
+ signal?: AbortSignal;
2411
+ /** Default acknowledges death and billing; removed waits for container/volume reclaim. Synchronous APIs may still report pending. */
2412
+ until?: "removed";
2413
+ /** `false` returns durable acceptance; billing continues until killed, op.wait includes product cleanup. Synchronous replies yield succeeded operations. Default true; incompatible with until. */
2414
+ wait?: boolean;
2415
+ /** Retry identity for `wait: false`: a retry with the same key answers the same operation. */
2416
+ idempotencyKey?: string;
2417
+ }
2418
+ interface SandboxDeleteAcknowledgement {
2419
+ sandboxId: string;
2420
+ outcome: SandboxDeleteOutcome;
2421
+ /** Tombstone removal state; absent on older APIs or inline removal. */
2422
+ removal?: SandboxRemovalState;
2423
+ }
2424
+ /** Delete caller-owned sandboxes matching every metadata prefix. */
2425
+ interface DeleteMatchingSandboxesFilter {
2426
+ /** Required metadata prefixes, 1–8 entries; every value must start with its prefix. */
2427
+ metadataPrefix: Record<string, string>;
2428
+ }
2429
+ interface DeleteMatchingSandboxesOptions {
2430
+ /** Delete each matched sandbox's branch children with it. */
2431
+ cascade?: boolean;
2432
+ /** Hold each delete until the runtime's removal proof, as {@link SandboxDeleteOptions.until}. */
2433
+ until?: "removed";
2434
+ signal?: AbortSignal;
2435
+ /** Per-request timeout: default 120 s, or 300 s with removed. */
2436
+ timeoutMs?: number;
2437
+ }
2438
+ /** destroyed: removed; already_absent: already gone; failed: refused, with status/code/error. */
2439
+ type DeleteMatchingSandboxOutcome = "destroyed" | "already_absent" | "failed";
2440
+ interface DeleteMatchingSandboxResult {
2441
+ id: string;
2442
+ /** True for confirmed destroyed/absent; removed additionally requires completed physical-removal proof. */
2443
+ confirmed: boolean;
2444
+ outcome: DeleteMatchingSandboxOutcome;
2445
+ removal?: SandboxRemovalState;
2446
+ /** Branch children deleted with it when `cascade` was set. */
2447
+ deletedChildren?: string[];
2448
+ /** The compute charge settles through the durable queue instead of inline. */
2449
+ settlementDeferred?: boolean;
2450
+ /** HTTP status of the refused delete. */
2451
+ status?: number;
2452
+ code?: string;
2453
+ error?: string;
2454
+ /** Live branch children that refused the delete (`CHILDREN_EXIST`). */
2455
+ children?: string[];
2456
+ }
2457
+ interface DeleteMatchingSandboxesResult {
2458
+ /** True only after complete listing and confirmed removal of every listed match. Stop concurrent creates first; this does not cover later registrations. */
2459
+ complete: boolean;
2460
+ /** False when an orchestrator could not be listed, so a match may be missing. */
2461
+ listingComplete: boolean;
2462
+ /** Matches not attempted before the request bound; retry to finish them. */
2463
+ remaining: number;
2464
+ sandboxes: DeleteMatchingSandboxResult[];
2465
+ }
2466
+ /** found: decided; not_found: unclaimed; conflict: body differs; unknown: claimed but undecided or unsupported. Reconcile before retrying. */
2467
+ interface WorkspaceOperationLookup {
2468
+ outcome: "found" | "not_found" | "conflict" | "unknown";
2469
+ kind: "checkpoint" | "fork";
2470
+ state?: "pending" | "succeeded" | "failed";
2471
+ /** Lookup digest; absent only on an empty key-only lookup. Conflicts expose the stored digest separately. */
2472
+ requestDigest?: string;
2473
+ existingRequestDigest?: string;
2474
+ result?: Record<string, unknown>;
2475
+ failure?: {
2476
+ status: number;
2477
+ error: string;
2478
+ code?: string; /** Refusal fields beyond `error` and `code`, e.g. `maxChildren`. */
2479
+ details?: Record<string, unknown>;
2480
+ };
2481
+ }
2482
+ interface RestoreSnapshotOptions {
2483
+ destinationPath?: string;
2484
+ snapshotId?: string;
2485
+ }
2486
+ interface SnapshotInfo {
2487
+ snapshotId: string;
2488
+ sandboxId: string;
2489
+ createdAt: Date;
2490
+ tags: string[];
2491
+ paths: string[];
2492
+ sizeBytes?: number;
2493
+ /** Upload state, when the API reports it. */
2494
+ remoteSync?: SnapshotRemoteSync;
2495
+ }
2496
+ //#endregion
2196
2497
  //#region src/types/branch.d.ts
2197
2498
  /**
2198
2499
  * Options for branching a running sandbox into N copy-on-write children.
@@ -2219,17 +2520,8 @@ interface BranchOptions {
2219
2520
  */
2220
2521
  idempotencyKey?: string;
2221
2522
  }
2222
- /**
2223
- * How a keyed fork resolved.
2224
- *
2225
- * `created` ran this fan-out. `replayed` returned the children an earlier
2226
- * request under the same key and options already materialized. Absent when the
2227
- * request carried no key.
2228
- */
2229
- interface ForkIdempotency {
2230
- outcome: "created" | "replayed";
2231
- requestDigest: string;
2232
- }
2523
+ /** How a keyed fork resolved: `created` ran this fan-out, `replayed` met an earlier one. */
2524
+ type ForkIdempotency = SnapshotIdempotency;
2233
2525
  /**
2234
2526
  * Fan-out accounting for one fork.
2235
2527
  *
@@ -3532,167 +3824,64 @@ interface SandboxEgressUsage {
3532
3824
  /** Price per decimal GB beyond the account's allowance; 0 on Free. */
3533
3825
  usdPerGb: number;
3534
3826
  /** The billing account's egress this month. */
3535
- accountBytes: number;
3536
- /** Egress included with the account each month, shared by its sandboxes. */
3537
- accountIncludedBytes: number;
3538
- /** The account's bytes beyond its allowance; billed on paid plans, 0 on Free. */
3539
- accountOverageBytes: number;
3540
- }
3541
- /**
3542
- * Port exposure and runtime network state for a sandbox.
3543
- * Access via `sandbox.network`.
3544
- *
3545
- * Outbound restrictions live on `sandbox.egress`, not here.
3546
- *
3547
- * @example Restrict outbound traffic
3548
- * ```typescript
3549
- * // Block all outbound traffic
3550
- * await box.egress.update({ mode: "blocked" });
3551
- *
3552
- * // Or allow only specific domains
3553
- * await box.egress.update({
3554
- * mode: "strict",
3555
- * allowDomains: ["api.github.com"],
3556
- * includeImplicitDomains: false,
3557
- * });
3558
- * ```
3559
- *
3560
- * @example Expose ports dynamically
3561
- * ```typescript
3562
- * const url = await box.network.exposePort(8000);
3563
- * console.log(`Service available at: ${url}`);
3564
- *
3565
- * const allUrls = await box.network.listUrls();
3566
- * ```
3567
- */
3568
- interface NetworkManager {
3569
- /**
3570
- * Expose a port dynamically.
3571
- * Returns a publicly accessible URL for the port.
3572
- * Works regardless of network restrictions.
3573
- *
3574
- * @param port - Port number to expose (1-65535)
3575
- * @returns Public URL for accessing the exposed port
3576
- */
3577
- exposePort(port: number): Promise<string>;
3578
- /**
3579
- * List all exposed port URLs.
3580
- *
3581
- * @returns Map of port numbers to their public URLs
3582
- */
3583
- listUrls(): Promise<Record<number, string>>;
3584
- /**
3585
- * Get current runtime network state.
3586
- *
3587
- * Reports `ports` only. Outbound policy is never reported here because it
3588
- * is never applied here; read the enforced policy with `box.egress.get()`.
3589
- *
3590
- * @returns Ports currently exposed for the sandbox
3591
- */
3592
- getConfig(): Promise<NetworkConfig>;
3593
- }
3594
- //#endregion
3595
- //#region src/types/storage.d.ts
3596
- /**
3597
- * Customer S3-compatible snapshot storage (AWS S3, GCS HMAC or R2).
3598
- * @example
3599
- * ```typescript
3600
- * const storage: StorageConfig = {
3601
- * type: "r2",
3602
- * bucket: "my-snapshots",
3603
- * endpoint: "https://<account>.r2.cloudflarestorage.com",
3604
- * credentials: { accessKeyId: "...", secretAccessKey: "..." },
3605
- * };
3606
- * ```
3607
- */
3608
- interface StorageConfig {
3609
- type: "s3" | "gcs" | "r2";
3610
- bucket: string;
3611
- /** Custom endpoint URL (required for R2, optional for S3/GCS) */
3612
- endpoint?: string;
3613
- /** Region (e.g., us-east-1) */
3614
- region?: string;
3615
- credentials: {
3616
- accessKeyId: string;
3617
- secretAccessKey: string;
3618
- };
3619
- /** Path prefix within bucket (default: sandbox-snapshots/) */
3620
- prefix?: string;
3621
- }
3622
- /**
3623
- * Live cgroup usage. CPU utilization from samples: ΔcpuUsageUsec / (Δwall_ms * 10).
3624
- * Memory current/peak are instantaneous/high-water values.
3625
- */
3626
- interface SandboxResourceUsage {
3627
- cgroupVersion: number;
3628
- /** Current resident memory, MB. */
3629
- memoryCurrentMb: number;
3630
- /** Peak resident memory since start, MB (null when unavailable). */
3631
- memoryPeakMb: number | null;
3632
- /** Memory limit, MB (null when unlimited). */
3633
- memoryLimitMb: number | null;
3634
- /** Cumulative CPU time consumed, microseconds. */
3635
- cpuUsageUsec: number;
3636
- /** Epoch ms when sampled. */
3637
- sampledAtMs: number;
3638
- }
3639
- /**
3640
- * Capabilities compiled into the deployed image, read from GET /capabilities JSON,
3641
- * independent of SDK method presence or proxy headers. Missing optional flags mean
3642
- * unknown, not false.
3643
- */
3644
- interface SandboxRuntimeCapabilities {
3645
- /** Named native subscription references supported by the deployed Sidecar. */
3646
- cliAuthReferences?: boolean;
3647
- /** Owner-authorized token changes retain the exact Claude session HOME without overlapping adapters. */
3648
- claudeTokenContinuations?: boolean;
3649
- /** Owner-authorized bundle or files changes retain the exact Codex rollout HOME without overlapping adapters. */
3650
- codexCredentialContinuations?: boolean;
3651
- /** Native raw evidence wire version compiled into the serving Sidecar. */
3652
- nativeSessionCaptureVersion?: number;
3653
- /** Dispatch providers covered by the serving Sidecar capture boundary. */
3654
- nativeSessionCaptureHarnesses?: BackendType[];
3655
- schema: 1;
3656
- /** `@tangle-network/agent-interface` contract compiled into the image. */
3657
- agentInterface: string;
3658
- sidecarVersion: string;
3659
- image: string;
3660
- dispatch: {
3661
- /** Run requests accept a caller-supplied exact `runControlRef`. */runControlRef: boolean; /** Admission (`execution.started`) echoes the executionId. */
3662
- executionIdOnAdmission: boolean;
3663
- };
3664
- cancel: {
3665
- /** `POST /agents/run/cancel` accepts the canonical digest-bound
3666
- * `AgentRunCancellationRequest`. */
3667
- canonicalRunCancellation: boolean; /** Cancellation binds to the run's `requestDigest`. */
3668
- digestBound: boolean; /** Replaying an `operationId` returns the stored acknowledgement. */
3669
- idempotent: boolean;
3670
- };
3671
- runs: {
3672
- /** `GET /agents/sessions/{sessionId}/runs` (+ `/runs/active`). */executionScopedStatus: boolean; /** `GET /agents/run/{executionId}/events` replays buffered events. */
3673
- eventReplay: boolean;
3674
- };
3675
- interactions: {
3676
- /** Native OpenCode before-tool approval; require OpenCode and permission interactions. */exactBeforeToolApproval?: boolean;
3677
- /**
3678
- * Recorded resolutions replay on repetition, conflict on changed answers (409
3679
- * StateError), and fail closed (503) if recording fails.
3680
- */
3681
- responseDedupe: boolean;
3682
- };
3683
- /** Native TUI lifecycle and control operations exposed by the deployment. */
3684
- interactiveAgent?: {
3685
- start: boolean;
3686
- status: boolean;
3687
- attach: boolean; /** Fence concurrent TUI writers with an exact control claim. */
3688
- control: boolean;
3689
- reattach: boolean;
3690
- sendPrompt: boolean;
3691
- input: boolean;
3692
- resize: boolean;
3693
- stop: boolean; /** Start Claude Code with the CLI's subscription login in its private HOME. */
3694
- claudeSubscription?: boolean;
3695
- };
3827
+ accountBytes: number;
3828
+ /** Egress included with the account each month, shared by its sandboxes. */
3829
+ accountIncludedBytes: number;
3830
+ /** The account's bytes beyond its allowance; billed on paid plans, 0 on Free. */
3831
+ accountOverageBytes: number;
3832
+ }
3833
+ /**
3834
+ * Port exposure and runtime network state for a sandbox.
3835
+ * Access via `sandbox.network`.
3836
+ *
3837
+ * Outbound restrictions live on `sandbox.egress`, not here.
3838
+ *
3839
+ * @example Restrict outbound traffic
3840
+ * ```typescript
3841
+ * // Block all outbound traffic
3842
+ * await box.egress.update({ mode: "blocked" });
3843
+ *
3844
+ * // Or allow only specific domains
3845
+ * await box.egress.update({
3846
+ * mode: "strict",
3847
+ * allowDomains: ["api.github.com"],
3848
+ * includeImplicitDomains: false,
3849
+ * });
3850
+ * ```
3851
+ *
3852
+ * @example Expose ports dynamically
3853
+ * ```typescript
3854
+ * const url = await box.network.exposePort(8000);
3855
+ * console.log(`Service available at: ${url}`);
3856
+ *
3857
+ * const allUrls = await box.network.listUrls();
3858
+ * ```
3859
+ */
3860
+ interface NetworkManager {
3861
+ /**
3862
+ * Expose a port dynamically.
3863
+ * Returns a publicly accessible URL for the port.
3864
+ * Works regardless of network restrictions.
3865
+ *
3866
+ * @param port - Port number to expose (1-65535)
3867
+ * @returns Public URL for accessing the exposed port
3868
+ */
3869
+ exposePort(port: number): Promise<string>;
3870
+ /**
3871
+ * List all exposed port URLs.
3872
+ *
3873
+ * @returns Map of port numbers to their public URLs
3874
+ */
3875
+ listUrls(): Promise<Record<number, string>>;
3876
+ /**
3877
+ * Get current runtime network state.
3878
+ *
3879
+ * Reports `ports` only. Outbound policy is never reported here because it
3880
+ * is never applied here; read the enforced policy with `box.egress.get()`.
3881
+ *
3882
+ * @returns Ports currently exposed for the sandbox
3883
+ */
3884
+ getConfig(): Promise<NetworkConfig>;
3696
3885
  }
3697
3886
  //#endregion
3698
3887
  //#region ../../../packages/runtime-contracts/dist/sandbox-shape.d.ts
@@ -5480,202 +5669,4 @@ interface SecretsManager {
5480
5669
  }): Promise<void>;
5481
5670
  }
5482
5671
  //#endregion
5483
- //#region src/types/snapshots.d.ts
5484
- interface SnapshotOptions {
5485
- tags?: string[];
5486
- /**
5487
- * Path-scoped capture is unsupported and rejected. Create a whole-workspace
5488
- * snapshot, then use `restorePaths()` for a non-clobbering subtree restore.
5489
- */
5490
- paths?: never;
5491
- /** Customer-provided storage for BYOS3 (calls the runtime directly) */
5492
- storage?: StorageConfig;
5493
- /** Same key and options replay; changed options are refused. Unsupported with customer storage. */
5494
- idempotencyKey?: string;
5495
- /** `false` returns a durably accepted operation; pre-call writes are included, later writes may land until capture finishes. Default true; unsupported with storage. */
5496
- wait?: boolean;
5497
- }
5498
- /** `created` captured; `replayed` reused the same keyed request. Absent without a key. */
5499
- interface SnapshotIdempotency {
5500
- outcome: "created" | "replayed";
5501
- requestDigest: string;
5502
- }
5503
- /** pending: host copy uploading; remote restores wait or fail. synced: remotely restorable. failed: host copy retained for retry. */
5504
- type SnapshotRemoteSync = "pending" | "synced" | "failed";
5505
- interface SnapshotResult {
5506
- snapshotId: string;
5507
- createdAt: Date;
5508
- sizeBytes?: number;
5509
- tags: string[];
5510
- /** Upload state at creation; absent for keyed replays and customer storage. listSnapshots reads current state. */
5511
- remoteSync?: SnapshotRemoteSync;
5512
- idempotency?: SnapshotIdempotency;
5513
- /** Materialized agent profile at capture; absent for bare sandboxes. */
5514
- provenance?: SnapshotProvenance;
5515
- }
5516
- interface SnapshotProvenance {
5517
- base: {
5518
- /** Profile name (e.g. "gtm", "code-reviewer") or null if inline. */name: string | null;
5519
- sha256: string;
5520
- };
5521
- /** The profile active at snapshot time (same as base unless updated). */
5522
- effective: {
5523
- name: string | null;
5524
- sha256: string;
5525
- };
5526
- materializedAt: string;
5527
- }
5528
- /** A verb that can finish in the background (`wait: false`). */
5529
- type SandboxOperationKind = "stop" | "snapshot" | "delete";
5530
- /** `accepted` and `running` are open; `succeeded` and `failed` are terminal. */
5531
- type SandboxOperationState = "accepted" | "running" | "succeeded" | "failed";
5532
- interface SandboxOperationInfo {
5533
- /** Empty for a verb the API finished synchronously. */
5534
- id: string;
5535
- kind: SandboxOperationKind;
5536
- sandboxId: string;
5537
- state: SandboxOperationState;
5538
- /** What an open operation is doing now, when the API reports it. */
5539
- phase?: string;
5540
- acceptedAt: Date;
5541
- completedAt?: Date;
5542
- /** Where to poll it; empty for a verb that finished synchronously. */
5543
- statusUrl: string;
5544
- result?: {
5545
- /** stop: where the final workspace generation was durable when it finished. */durability?: "local" | "remote";
5546
- snapshot?: SnapshotResult;
5547
- sandbox?: Record<string, unknown>; /** delete: the delete and its product cleanup finished. */
5548
- deleted?: true; /** delete: the authoritative physical-removal read when requested. */
5549
- removal?: SandboxRemovalState; /** delete the API served synchronously: what that delete attested. */
5550
- outcome?: SandboxDeleteOutcome;
5551
- };
5552
- error?: {
5553
- code: string;
5554
- message: string;
5555
- };
5556
- }
5557
- /** Options for a stop. */
5558
- interface StopOptions {
5559
- /** `false` returns durable acceptance; billing continues until stopped and resume waits. Default true waits for stop. */
5560
- wait?: boolean;
5561
- /** Seal native sessions and retained workspace paths from the confirmed stopped generation before answering. Requires wait=true. */
5562
- retain?: {
5563
- paths: string[];
5564
- };
5565
- /** Cancel this request and lifecycle-lease waits; an accepted stop remains durable. */
5566
- signal?: AbortSignal;
5567
- /** Retry identity: a retry with the same key answers the same operation. */
5568
- idempotencyKey?: string;
5569
- }
5570
- /** deleted: removed now; already_absent: already gone; unknown: no recognized attestation, including older APIs. */
5571
- type SnapshotDeleteOutcome = "deleted" | "already_absent" | "unknown";
5572
- interface SnapshotDeleteAcknowledgement {
5573
- snapshotId: string;
5574
- outcome: SnapshotDeleteOutcome;
5575
- /** HTTP receipt, separate from whether its body attests deletion. */
5576
- response?: Pick<SandboxErrorMetadata, "requestId" | "traceId" | "method" | "endpoint"> & {
5577
- status: number;
5578
- receivedAt: string;
5579
- parseState: "object" | "array" | "primitive" | "null" | "invalid-json" | "body-read-failed";
5580
- attestation: {
5581
- outcome: SnapshotDeleteOutcome | "missing" | "unrecognized";
5582
- deleted?: boolean;
5583
- success?: boolean;
5584
- };
5585
- };
5586
- /** Retention wait in ms, from the first request to the final request start; absent when unheld. */
5587
- retainedMs?: number;
5588
- }
5589
- /** destroyed: removed now; already_absent: runtime absent and product rows finalized; unknown: unattested, including older APIs. */
5590
- type SandboxDeleteOutcome = "destroyed" | "already_absent" | "unknown";
5591
- /** pending: dead and billed, reclaim asynchronous. complete: requested removal proof finished. */
5592
- type SandboxRemovalState = "pending" | "complete";
5593
- interface SandboxDeleteOptions {
5594
- signal?: AbortSignal;
5595
- /** Default acknowledges death and billing; removed waits for container/volume reclaim. Synchronous APIs may still report pending. */
5596
- until?: "removed";
5597
- /** `false` returns durable acceptance; billing continues until killed, op.wait includes product cleanup. Synchronous replies yield succeeded operations. Default true; incompatible with until. */
5598
- wait?: boolean;
5599
- /** Retry identity for `wait: false`: a retry with the same key answers the same operation. */
5600
- idempotencyKey?: string;
5601
- }
5602
- interface SandboxDeleteAcknowledgement {
5603
- sandboxId: string;
5604
- outcome: SandboxDeleteOutcome;
5605
- /** Tombstone removal state; absent on older APIs or inline removal. */
5606
- removal?: SandboxRemovalState;
5607
- }
5608
- /** Delete caller-owned sandboxes matching every metadata prefix. */
5609
- interface DeleteMatchingSandboxesFilter {
5610
- /** Required metadata prefixes, 1–8 entries; every value must start with its prefix. */
5611
- metadataPrefix: Record<string, string>;
5612
- }
5613
- interface DeleteMatchingSandboxesOptions {
5614
- /** Delete each matched sandbox's branch children with it. */
5615
- cascade?: boolean;
5616
- /** Hold each delete until the runtime's removal proof, as {@link SandboxDeleteOptions.until}. */
5617
- until?: "removed";
5618
- signal?: AbortSignal;
5619
- /** Per-request timeout: default 120 s, or 300 s with removed. */
5620
- timeoutMs?: number;
5621
- }
5622
- /** destroyed: removed; already_absent: already gone; failed: refused, with status/code/error. */
5623
- type DeleteMatchingSandboxOutcome = "destroyed" | "already_absent" | "failed";
5624
- interface DeleteMatchingSandboxResult {
5625
- id: string;
5626
- /** True for confirmed destroyed/absent; removed additionally requires completed physical-removal proof. */
5627
- confirmed: boolean;
5628
- outcome: DeleteMatchingSandboxOutcome;
5629
- removal?: SandboxRemovalState;
5630
- /** Branch children deleted with it when `cascade` was set. */
5631
- deletedChildren?: string[];
5632
- /** The compute charge settles through the durable queue instead of inline. */
5633
- settlementDeferred?: boolean;
5634
- /** HTTP status of the refused delete. */
5635
- status?: number;
5636
- code?: string;
5637
- error?: string;
5638
- /** Live branch children that refused the delete (`CHILDREN_EXIST`). */
5639
- children?: string[];
5640
- }
5641
- interface DeleteMatchingSandboxesResult {
5642
- /** True only after complete listing and confirmed removal of every listed match. Stop concurrent creates first; this does not cover later registrations. */
5643
- complete: boolean;
5644
- /** False when an orchestrator could not be listed, so a match may be missing. */
5645
- listingComplete: boolean;
5646
- /** Matches not attempted before the request bound; retry to finish them. */
5647
- remaining: number;
5648
- sandboxes: DeleteMatchingSandboxResult[];
5649
- }
5650
- /** found: decided; not_found: unclaimed; conflict: body differs; unknown: claimed but undecided or unsupported. Reconcile before retrying. */
5651
- interface WorkspaceOperationLookup {
5652
- outcome: "found" | "not_found" | "conflict" | "unknown";
5653
- kind: "checkpoint" | "fork";
5654
- state?: "pending" | "succeeded" | "failed";
5655
- /** Lookup digest; absent only on an empty key-only lookup. Conflicts expose the stored digest separately. */
5656
- requestDigest?: string;
5657
- existingRequestDigest?: string;
5658
- result?: Record<string, unknown>;
5659
- failure?: {
5660
- status: number;
5661
- error: string;
5662
- code?: string; /** Refusal fields beyond `error` and `code`, e.g. `maxChildren`. */
5663
- details?: Record<string, unknown>;
5664
- };
5665
- }
5666
- interface RestoreSnapshotOptions {
5667
- destinationPath?: string;
5668
- snapshotId?: string;
5669
- }
5670
- interface SnapshotInfo {
5671
- snapshotId: string;
5672
- sandboxId: string;
5673
- createdAt: Date;
5674
- tags: string[];
5675
- paths: string[];
5676
- sizeBytes?: number;
5677
- /** Upload state, when the API reports it. */
5678
- remoteSync?: SnapshotRemoteSync;
5679
- }
5680
- //#endregion
5681
- export { CreateSandboxFleetOptions as $, ALL_BACKEND_TYPES as $a, SessionInterruptOptions as $i, FileReadError as $n, RolloutOptions as $r, SandboxFleetWorkspaceRestoreResult as $t, SandboxIdentity as A, GpuLeaseProviderName as Aa, TurnBackendConfig as Ai, SandboxShape as An, DriverType as Ar, SandboxFleetDriverTimings as At, ProcessSignal as B, CodeExecutionResult as Ba, DriveTurnOptions as Bi, EgressDenial as Bn, ManagedProcessJobs as Br, SandboxFleetParent as Bt, WorkspaceOperationLookup as C, SandboxRuntime as Ca, SandboxEvent as Ci, TerminalStream as Cn, PublishPublicTemplateVersionOptions as Cr, SandboxFleetAgentSpec as Ct, ProvisionResult as D, RolloutTurnPart as Da, SandboxTraceExport as Di, SandboxResources as Dn, CreateGpuLeaseOptions as Dr, SandboxFleetDispatchFailureClass as Dt, ProvisionEvent as E, RolloutStatus as Ea, SandboxTraceEvent as Ei, SandboxConfig as En, AttachGpuLeaseOptions as Er, SandboxFleetCostEstimate as Et, EnsureDevServerOptions as F, WorkspaceImagePublishResult as Fa, ConversationTurnResult as Fi, EgressManager as Fn, GpuLeaseExecResult as Fr, SandboxFleetMachineRecord as Ft, GitBranch as G, SandboxEnvRecovery as Ga, SentSessionMessage as Gi, ChunkedUploadResult as Gn, ManagedProcessSpec as Gr, SandboxFleetToken as Gt, PreviewLinkInfo as H, CodeResultPart as Ha, PublicProfileConflict as Hi, GitAuth as Hn, ManagedProcessResumeOptions as Hr, SandboxFleetPolicy as Ht, ExactProcessSpawnOptions as I, ProcessInfo as Ia, CreateSessionOptions as Ii, NetworkConfig as In, GpuLeaseManager as Ir, SandboxFleetMachineSpec as It, GitStatus as J, InteractionResolutionAcknowledgement as Ja, SessionExecutionInfo as Ji, DownloadProgress as Jn, BranchOptions as Jr, SandboxFleetTraceExport as Jt, GitCommit as K, SandboxEnvRecoveryView as Ka, SessionBackendCredentials as Ki, DeleteOptions as Kn, HttpClient as Kr, SandboxFleetTraceBundle as Kt, Process as L, ProcessListOptions as La, CreateTaskSessionOptions as Li, NetworkManager as Ln, GpuLeaseProviders as Lr, SandboxFleetManifest as Lt, UsageInfo as M, GpuLeaseProviderStatus as Ma, CompletedTurnPayload as Mi, SandboxResourceUsage as Mn, GpuLeaseBilling as Mr, SandboxFleetIntelligenceEnvelope as Mt, WaitForOptions as N, GpuLeaseStatus as Na, CompletedTurnResult as Ni, SandboxRuntimeCapabilities as Nn, GpuLeaseCommandResult as Nr, SandboxFleetMachine as Nt, ProvisionStep as O, ProvisionStatus as Oa, SandboxTraceOptions as Oi, SandboxShapesInfo as On, DriverConfig as Or, SandboxFleetDispatchResponse as Ot, DevServerInfo as P, WorkspaceImagePublishInput as Pa, ConversationTurnOptions as Pi, StorageConfig as Pn, GpuLeaseExecOptions as Pr, SandboxFleetMachineMeteredUsage as Pt, AttachSandboxFleetMachineOptions as Q, parseDeclaredSecretsEnv as Qa, SessionInfo as Qi, FileReadBatchResult as Qn, Rollout as Qr, SandboxFleetWorkspaceReconcileResult as Qt, ProcessLogEntry as R, ProcessStatus as Ra, DispatchPromptOptions as Ri, SandboxEgressUsage as Rn, GpuLeaseProvidersOptions as Rr, SandboxFleetManifestMachine as Rt, StopOptions as S, SANDBOX_RUNTIMES as Sa, PromptResult as Si, TeePublicKeyResponse as Sn, PublishPublicTemplateOptions as Sr, SandboxFleetAgent as St, SshKeysManager as T, RolloutScorer as Ta, SandboxTraceBundle as Ti, CreateSandboxOptions as Tn, AcceleratorKind as Tr, SandboxFleetArtifactSpec as Tt, PreviewLinkManager as U, ExecResult as Ua, SendSessionMessageOptions as Ui, GitConfig as Un, ManagedProcessState as Ur, SandboxFleetProfileRef as Ut, ProcessSpawnOptions as V, CodeLanguage as Va, ListMessagesOptions as Vi, MAX_EGRESS_DENIALS_LIMIT as Vn, ManagedProcessOptions as Vr, SandboxFleetPlacement as Vt, PreviewLinkWaitOptions as W, WriteFileRequest as Wa, SendSessionMessageRequest as Wi, ChunkedUploadOptions as Wn, ManagedProcessRecord as Wr, SandboxFleetSpend as Wt, FleetDriveTurnRequest as X, assertDeclaredSecretsHeld as Xa, SessionFailureReason as Xi, FileInfo as Xn, ForkIdempotency as Xr, SandboxFleetUsage as Xt, FleetDriveTurnOutcome as Y, DECLARED_SECRET_HOSTS_ENV_VAR as Ya, SessionExecutionStatus as Yi, DownloadResult as Yn, ForkCounts as Yr, SandboxFleetTraceOptions as Yt, TokenRefreshHandler as Z, declaredSecretBaseToken as Za, SessionForkOptions as Zi, FileReadBatchOptions as Zn, ForkLookupOptions as Zr, SandboxFleetWorkspace as Zt, SnapshotInfo as _, BackendStatus as _a, IntelligenceReportCompareTo as _i, StartupOperation as _n, SearchMatch as _r, ListSandboxFleetOptions as _t, DeleteMatchingSandboxesResult as a, TaskSessionChanges as aa, AgentQuestionRequest as ai, SandboxInfo as an, FileTreeResult as ar, FleetAgentRunStatus as at, SnapshotRemoteSync as b, SecretBindingOptions as ba, PromptInputPart as bi, TeeAttestationResponse as bn, PublicTemplateInfo as br, ReconcileSandboxFleetsOptions as bt, SandboxDeleteOptions as c, TaskSessionInfo as ca, CreateIntelligenceReportOptions as ci, SandboxRunGeneration as cn, FileWriteResult as cr, FleetDispatchResultBufferOptions as ct, SandboxOperationKind as d, BackendCapabilities as da, DurablePlanDecisionResult as di, SandboxTerminalCreateOptions as dn, RenameOptions as dr, FleetExecDispatchResult as dt, SessionListOptions as ea, RolloutStartResult as ei, SandboxFleetWorkspaceSnapshotResult as en, BackendType as eo, FileReadResult as er, CreateSandboxFleetTokenOptions as et, SandboxOperationState as f, BackendConfig as fa, DurablePlanFollowUpResume as fi, SandboxTerminalInfo as fn, UploadOptions as fr, FleetMachineId as ft, SnapshotIdempotency as g, BackendRuntimeConfigUpdate as ga, IntelligenceReportBudget as gi, StartupDiagnostics as gn, WriteManyOptions as gr, FleetRunOptions as gt, SnapshotDeleteOutcome as h, BackendMcpServerStatus as ha, IntelligenceReport as hi, SandboxTerminals as hn, WriteManyFile as hr, FleetRunEvent as ht, DeleteMatchingSandboxesOptions as i, SessionResultOptions as ia, AgentApprovalRequirement as ii, SandboxConnection as in, parseBackendType as io, FileTreeOptions as ir, FleetAgentResult as it, SubscriptionInfo as j, GpuLeaseProviderState as ja, CommitTaskSessionOptions as ji, SandboxShapePreset as jn, GpuLease as jr, SandboxFleetInfo as jt, ResumeOptions as k, GPU_LEASE_PROVIDER_NAMES as ka, TokenUsage as ki, SandboxStatus as kn, DriverInfo as kr, SandboxFleetDriverCapability as kt, SandboxDeleteOutcome as l, TaskSessionProfile as la, DurablePlan as li, SandboxRuntimeHealth as ln, ListOptions as lr, FleetDispatchStreamOptions as lt, SnapshotDeleteAcknowledgement as m, BackendManager as ma, EventStreamOptions as mi, SandboxTerminalRequestOptions as mn, WriteFileOptions as mr, FleetPromptDispatchResult as mt, DeleteMatchingSandboxResult as n, SessionMessageAdmission as na, BatchBackend as ni, SSHCommandDescriptor as nn, EffectiveBackendProfile as no, FileSystem as nr, FleetAgentId as nt, RestoreSnapshotOptions as o, TaskSessionCommitResult as oa, AgentRunStatus as oi, SandboxPortBinding as on, FileUsageOptions as or, FleetDispatchCancelResult as ot, SandboxRemovalState as p, BackendInfo as pa, DurablePlanSnapshot as pi, SandboxTerminalManager as pn, UploadProgress as pr, FleetPromptDispatchOptions as pt, GitDiff as q, baseProxyToken as qa, SessionEventStreamOptions as qi, DownloadOptions as qn, SdkTimingHook as qr, SandboxFleetTraceEvent as qt, DeleteMatchingSandboxesFilter as r, SessionMessageInputPart as ra, BatchRunOptions as ri, SSHCredentials as rn, EffectiveBackendSource as ro, FileTreeFile as rr, FleetAgentPlacement as rt, SandboxDeleteAcknowledgement as s, TaskSessionFileChange as sa, AgentToolInvocation as si, SandboxPortPreviewLink as sn, FileUsageResult as sr, FleetDispatchResultBuffer as st, DeleteMatchingSandboxOutcome as t, SessionMessage as ta, WaitForRolloutOptions as ti, ListSandboxOptions as tn, EffectiveBackend as to, FileRenameResult as tr, CreateSandboxFleetWithCoordinatorOptions as tt, SandboxOperationInfo as u, TurnDriveResult as ua, DurablePlanDecisionOptions as ui, SandboxTerminalAttachOptions as un, MkdirOptions as ur, FleetExecDispatchOptions as ut, SnapshotOptions as v, McpServerConfig as va, IntelligenceReportSubjectType as vi, TeeAttestationOptions as vn, SearchOptions as vr, ReapExpiredSandboxFleetsOptions as vt, SecretsManager as w, RolloutChildResult as wa, SandboxIntelligenceEnvelope as wi, CreateRequestOptions as wn, SandboxEnvironment as wr, SandboxFleetArtifact as wt, SnapshotResult as x, SecretInfo as xa, PromptOptions as xi, TeePublicKey as xn, PublicTemplateVersionInfo as xr, ReconcileSandboxFleetsResult as xt, SnapshotProvenance as y, RouterRoutingOptions as ya, IntelligenceReportWindow as yi, TeeAttestationReport as yn, ExecOptions as yr, ReapExpiredSandboxFleetsResult as yt, ProcessManager as z, SessionStatus as za, DispatchedSession as zi, EgressPolicy as zn, CodeExecutionOptions as zr, SandboxFleetOperationsSummary as zt };
5672
+ export { SandboxFleetAgent as $, ALL_BACKEND_TYPES as $a, SessionInterruptOptions as $i, AcceleratorKind as $n, SandboxResourceUsage as $r, TeePublicKeyResponse as $t, CreateSandboxFleetOptions as A, GpuLeaseProviderName as Aa, TurnBackendConfig as Ai, FileSystem as An, DeleteMatchingSandboxOutcome as Ar, SandboxFleetWorkspaceRestoreResult as At, FleetDispatchStreamOptions as B, CodeExecutionResult as Ba, DriveTurnOptions as Bi, UploadOptions as Bn, SandboxOperationKind as Br, SandboxRuntimeHealth as Bt, GitCommit as C, SandboxRuntime as Ca, SandboxEvent as Ci, DownloadResult as Cn, ForkCounts as Cr, SandboxFleetTraceBundle as Ct, FleetDriveTurnRequest as D, RolloutTurnPart as Da, SandboxTraceExport as Di, FileReadError as Dn, RolloutOptions as Dr, SandboxFleetUsage as Dt, FleetDriveTurnOutcome as E, RolloutStatus as Ea, SandboxTraceEvent as Ei, FileReadBatchResult as En, Rollout as Er, SandboxFleetTraceOptions as Et, FleetAgentResult as F, WorkspaceImagePublishResult as Fa, ConversationTurnResult as Fi, FileUsageResult as Fn, RestoreSnapshotOptions as Fr, SandboxConnection as Ft, FleetPromptDispatchResult as G, SandboxEnvRecovery as Ga, SentSessionMessage as Gi, SearchMatch as Gn, SnapshotIdempotency as Gr, SandboxTerminalRequestOptions as Gt, FleetExecDispatchResult as H, CodeResultPart as Ha, PublicProfileConflict as Hi, WriteFileOptions as Hn, SandboxRemovalState as Hr, SandboxTerminalCreateOptions as Ht, FleetAgentRunStatus as I, ProcessInfo as Ia, CreateSessionOptions as Ii, FileWriteResult as In, SandboxDeleteAcknowledgement as Ir, SandboxInfo as It, ListSandboxFleetOptions as J, InteractionResolutionAcknowledgement as Ja, SessionExecutionInfo as Ji, PublicTemplateInfo as Jn, SnapshotProvenance as Jr, StartupOperation as Jt, FleetRunEvent as K, SandboxEnvRecoveryView as Ka, SessionBackendCredentials as Ki, SearchOptions as Kn, SnapshotInfo as Kr, SandboxTerminals as Kt, FleetDispatchCancelResult as L, ProcessListOptions as La, CreateTaskSessionOptions as Li, ListOptions as Ln, SandboxDeleteOptions as Lr, SandboxPortBinding as Lt, CreateSandboxFleetWithCoordinatorOptions as M, GpuLeaseProviderStatus as Ma, CompletedTurnPayload as Mi, FileTreeOptions as Mn, DeleteMatchingSandboxesFilter as Mr, ListSandboxOptions as Mt, FleetAgentId as N, GpuLeaseStatus as Na, CompletedTurnResult as Ni, FileTreeResult as Nn, DeleteMatchingSandboxesOptions as Nr, SSHCommandDescriptor as Nt, TokenRefreshHandler as O, ProvisionStatus as Oa, SandboxTraceOptions as Oi, FileReadResult as On, RolloutStartResult as Or, SandboxFleetWorkspace as Ot, FleetAgentPlacement as P, WorkspaceImagePublishInput as Pa, ConversationTurnOptions as Pi, FileUsageOptions as Pn, DeleteMatchingSandboxesResult as Pr, SSHCredentials as Pt, ReconcileSandboxFleetsResult as Q, parseDeclaredSecretsEnv as Qa, SessionInfo as Qi, SandboxEnvironment as Qn, WorkspaceOperationLookup as Qr, TeePublicKey as Qt, FleetDispatchResultBuffer as R, ProcessStatus as Ra, DispatchPromptOptions as Ri, MkdirOptions as Rn, SandboxDeleteOutcome as Rr, SandboxPortPreviewLink as Rt, GitBranch as S, SANDBOX_RUNTIMES as Sa, PromptResult as Si, DownloadProgress as Sn, BranchOptions as Sr, SandboxFleetToken as St, GitStatus as T, RolloutScorer as Ta, SandboxTraceBundle as Ti, FileReadBatchOptions as Tn, ForkLookupOptions as Tr, SandboxFleetTraceExport as Tt, FleetMachineId as U, ExecResult as Ua, SendSessionMessageOptions as Ui, WriteManyFile as Un, SnapshotDeleteAcknowledgement as Ur, SandboxTerminalInfo as Ut, FleetExecDispatchOptions as V, CodeLanguage as Va, ListMessagesOptions as Vi, UploadProgress as Vn, SandboxOperationState as Vr, SandboxTerminalAttachOptions as Vt, FleetPromptDispatchOptions as W, WriteFileRequest as Wa, SendSessionMessageRequest as Wi, WriteManyOptions as Wn, SnapshotDeleteOutcome as Wr, SandboxTerminalManager as Wt, ReapExpiredSandboxFleetsResult as X, assertDeclaredSecretsHeld as Xa, SessionFailureReason as Xi, PublishPublicTemplateOptions as Xn, SnapshotResult as Xr, TeeAttestationReport as Xt, ReapExpiredSandboxFleetsOptions as Y, DECLARED_SECRET_HOSTS_ENV_VAR as Ya, SessionExecutionStatus as Yi, PublicTemplateVersionInfo as Yn, SnapshotRemoteSync as Yr, TeeAttestationOptions as Yt, ReconcileSandboxFleetsOptions as Z, declaredSecretBaseToken as Za, SessionForkOptions as Zi, PublishPublicTemplateVersionOptions as Zn, StopOptions as Zr, TeeAttestationResponse as Zt, ProcessSignal as _, BackendStatus as _a, IntelligenceReportCompareTo as _i, GitConfig as _n, ManagedProcessState as _r, SandboxFleetParent as _t, ProvisionStep as a, TaskSessionChanges as aa, AgentQuestionRequest as ai, SandboxShapesInfo as an, GpuLease as ar, SandboxFleetDispatchResponse as at, PreviewLinkManager as b, SecretBindingOptions as ba, PromptInputPart as bi, DeleteOptions as bn, HttpClient as br, SandboxFleetProfileRef as bt, SubscriptionInfo as c, TaskSessionInfo as ca, CreateIntelligenceReportOptions as ci, SandboxShapePreset as cn, GpuLeaseExecOptions as cr, SandboxFleetInfo as ct, DevServerInfo as d, BackendCapabilities as da, DurablePlanDecisionResult as di, NetworkManager as dn, GpuLeaseProviders as dr, SandboxFleetMachineMeteredUsage as dt, SessionListOptions as ea, SandboxRuntimeCapabilities as ei, TerminalStream as en, BackendType as eo, AttachGpuLeaseOptions as er, SandboxFleetAgentSpec as et, EnsureDevServerOptions as f, BackendConfig as fa, DurablePlanFollowUpResume as fi, SandboxEgressUsage as fn, GpuLeaseProvidersOptions as fr, SandboxFleetMachineRecord as ft, ProcessManager as g, BackendRuntimeConfigUpdate as ga, IntelligenceReportBudget as gi, GitAuth as gn, ManagedProcessResumeOptions as gr, SandboxFleetOperationsSummary as gt, ProcessLogEntry as h, BackendMcpServerStatus as ha, IntelligenceReport as hi, MAX_EGRESS_DENIALS_LIMIT as hn, ManagedProcessOptions as hr, SandboxFleetManifestMachine as ht, ProvisionResult as i, SessionResultOptions as ia, AgentApprovalRequirement as ii, SandboxResources as in, parseBackendType as io, DriverType as ir, SandboxFleetDispatchFailureClass as it, CreateSandboxFleetTokenOptions as j, GpuLeaseProviderState as ja, CommitTaskSessionOptions as ji, FileTreeFile as jn, DeleteMatchingSandboxResult as jr, SandboxFleetWorkspaceSnapshotResult as jt, AttachSandboxFleetMachineOptions as k, GPU_LEASE_PROVIDER_NAMES as ka, TokenUsage as ki, FileRenameResult as kn, WaitForRolloutOptions as kr, SandboxFleetWorkspaceReconcileResult as kt, UsageInfo as l, TaskSessionProfile as la, DurablePlan as li, EgressManager as ln, GpuLeaseExecResult as lr, SandboxFleetIntelligenceEnvelope as lt, Process as m, BackendManager as ma, EventStreamOptions as mi, EgressDenial as mn, ManagedProcessJobs as mr, SandboxFleetManifest as mt, SshKeysManager as n, SessionMessageAdmission as na, BatchBackend as ni, CreateSandboxOptions as nn, EffectiveBackendProfile as no, DriverConfig as nr, SandboxFleetArtifactSpec as nt, ResumeOptions as o, TaskSessionCommitResult as oa, AgentRunStatus as oi, SandboxStatus as on, GpuLeaseBilling as or, SandboxFleetDriverCapability as ot, ExactProcessSpawnOptions as p, BackendInfo as pa, DurablePlanSnapshot as pi, EgressPolicy as pn, CodeExecutionOptions as pr, SandboxFleetMachineSpec as pt, FleetRunOptions as q, baseProxyToken as qa, SessionEventStreamOptions as qi, ExecOptions as qn, SnapshotOptions as qr, StartupDiagnostics as qt, ProvisionEvent as r, SessionMessageInputPart as ra, BatchRunOptions as ri, SandboxConfig as rn, EffectiveBackendSource as ro, DriverInfo as rr, SandboxFleetCostEstimate as rt, SandboxIdentity as s, TaskSessionFileChange as sa, AgentToolInvocation as si, SandboxShape as sn, GpuLeaseCommandResult as sr, SandboxFleetDriverTimings as st, SecretsManager as t, SessionMessage as ta, StorageConfig as ti, CreateRequestOptions as tn, EffectiveBackend as to, CreateGpuLeaseOptions as tr, SandboxFleetArtifact as tt, WaitForOptions as u, TurnDriveResult as ua, DurablePlanDecisionOptions as ui, NetworkConfig as un, GpuLeaseManager as ur, SandboxFleetMachine as ut, ProcessSpawnOptions as v, McpServerConfig as va, IntelligenceReportSubjectType as vi, ChunkedUploadOptions as vn, ManagedProcessRecord as vr, SandboxFleetPlacement as vt, GitDiff as w, RolloutChildResult as wa, SandboxIntelligenceEnvelope as wi, FileInfo as wn, ForkIdempotency as wr, SandboxFleetTraceEvent as wt, PreviewLinkWaitOptions as x, SecretInfo as xa, PromptOptions as xi, DownloadOptions as xn, SdkTimingHook as xr, SandboxFleetSpend as xt, PreviewLinkInfo as y, RouterRoutingOptions as ya, IntelligenceReportWindow as yi, ChunkedUploadResult as yn, ManagedProcessSpec as yr, SandboxFleetPolicy as yt, FleetDispatchResultBufferOptions as z, SessionStatus as za, DispatchedSession as zi, RenameOptions as zn, SandboxOperationInfo as zr, SandboxRunGeneration as zt };