@tangle-network/sandbox 0.9.4-develop.20260629071229.145161 → 0.9.4-develop.20260701061438.a81baba

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.
@@ -433,6 +433,15 @@ interface CreateSandboxOptions {
433
433
  name?: string;
434
434
  /** Resource limits (CPU cores, memory, disk) */
435
435
  resources?: SandboxResources;
436
+ /**
437
+ * Attach an on-demand GPU worker during sandbox creation.
438
+ *
439
+ * Requires `resources.accelerator` so the workload shape and the lease
440
+ * spend caps are both explicit. Docker and Firecracker sandboxes use the
441
+ * same lease path; the GPU is a temporary external worker, not host
442
+ * placement.
443
+ */
444
+ gpuLease?: CreateGpuLeaseOptions;
436
445
  /** Environment variables injected into the sandbox */
437
446
  env?: Record<string, string>;
438
447
  /**
@@ -472,6 +481,17 @@ interface CreateSandboxOptions {
472
481
  * instead of Tangle's managed storage.
473
482
  */
474
483
  storage?: StorageConfig;
484
+ /**
485
+ * Run as a throwaway sandbox: the home directory is NOT persisted across restarts.
486
+ *
487
+ * By default an egress-enabled sandbox is provisioned a persistent home
488
+ * volume (so a stop/resume workspace keeps its state). Set `ephemeral: true` for
489
+ * a one-shot run — a benchmark case, a CI job, any box that produces output and
490
+ * is deleted — to skip that volume and run on a writable scratch home. Egress
491
+ * still works; you only lose the home directory on restart, which a throwaway box
492
+ * never relies on. Independent of `storage`/snapshots (durability stays opt-in).
493
+ */
494
+ ephemeral?: boolean;
475
495
  /** Snapshot ID to restore from when creating the sandbox */
476
496
  fromSnapshot?: string;
477
497
  /** Source sandbox ID that owns the snapshot (required when fromSnapshot is set) */
@@ -742,6 +762,8 @@ interface SandboxInfo {
742
762
  expiresAt?: Date;
743
763
  /** Error message if status is 'failed' */
744
764
  error?: string;
765
+ /** GPU lease attached during sandbox creation, when requested. */
766
+ gpuLease?: GpuLease;
745
767
  /**
746
768
  * Startup phase breakdown, present only on the create response (the
747
769
  * platform emits it once, at provision time). Use
@@ -1383,6 +1405,12 @@ interface ResumeOptions {
1383
1405
  interface UsageInfo {
1384
1406
  /** Total compute minutes used today */
1385
1407
  computeMinutes: number;
1408
+ /** GPU lease seconds billed today */
1409
+ gpuSeconds: number;
1410
+ /** Customer-billed GPU lease spend today in USD */
1411
+ gpuCostUsd: number;
1412
+ /** Provider GPU lease cost basis today in USD */
1413
+ gpuProviderCostUsd: number;
1386
1414
  /** Number of currently active sandboxes */
1387
1415
  activeSandboxes: number;
1388
1416
  /** Total sandboxes created (lifetime) */
@@ -2421,74 +2449,20 @@ interface ListSandboxFleetOptions extends ListSandboxOptions {
2421
2449
  fleetId: string;
2422
2450
  }
2423
2451
  /**
2424
- * Options for creating a checkpoint.
2425
- */
2426
- interface CheckpointOptions {
2427
- /** Tags to apply to the checkpoint */
2428
- tags?: string[];
2429
- /** Keep sandbox running after checkpoint (default: false - sandbox stops) */
2430
- leaveRunning?: boolean;
2431
- /** Also create a filesystem snapshot for data consistency */
2432
- includeSnapshot?: boolean;
2433
- }
2434
- /**
2435
- * Result of a checkpoint operation.
2436
- */
2437
- interface CheckpointResult {
2438
- /** Unique checkpoint identifier */
2439
- checkpointId: string;
2440
- /** When the checkpoint was created */
2441
- createdAt: Date;
2442
- /** Size of checkpoint in bytes (memory state) */
2443
- sizeBytes?: number;
2444
- /** Tags applied to the checkpoint */
2445
- tags: string[];
2446
- }
2447
- /**
2448
- * Information about an existing checkpoint.
2449
- */
2450
- interface CheckpointInfo {
2451
- /** Unique checkpoint identifier */
2452
- checkpointId: string;
2453
- /** Sandbox this checkpoint belongs to */
2454
- sandboxId: string;
2455
- /** When the checkpoint was created */
2456
- createdAt: Date;
2457
- /** Tags applied to the checkpoint */
2458
- tags: string[];
2459
- /** Size of checkpoint in bytes */
2460
- sizeBytes?: number;
2461
- /** Whether checkpoint includes memory state */
2462
- hasMemoryState: boolean;
2463
- /** Whether checkpoint includes filesystem snapshot */
2464
- hasFilesystemSnapshot: boolean;
2465
- }
2466
- /**
2467
- * Options for forking a sandbox from a checkpoint.
2452
+ * Options for branching a running sandbox into N copy-on-write children.
2453
+ *
2454
+ * Branch forks a LIVE VM's memory into many children at once (Firecracker
2455
+ * UFFD copy-on-write): the children share the parent's clean pages and the
2456
+ * parent stays running. For durable filesystem state use snapshots instead.
2468
2457
  */
2469
- interface ForkOptions {
2470
- /** Name for the forked sandbox */
2471
- name?: string;
2472
- /** Override environment variables in the fork */
2458
+ interface BranchOptions {
2459
+ /** Override environment variables in every child. */
2473
2460
  env?: Record<string, string>;
2474
- /** Override resource limits in the fork */
2461
+ /** Override resource limits for every child. */
2475
2462
  resources?: SandboxResources;
2476
- /** Custom metadata for the fork */
2463
+ /** Custom metadata applied to every child. */
2477
2464
  metadata?: Record<string, unknown>;
2478
2465
  }
2479
- /**
2480
- * Result of a fork operation.
2481
- */
2482
- interface ForkResult {
2483
- /** The newly created sandbox instance */
2484
- sandbox: SandboxInfo;
2485
- /** The checkpoint that was forked from */
2486
- sourceCheckpoint: CheckpointInfo;
2487
- /** ID of the source sandbox */
2488
- sourceId: string;
2489
- /** Time taken to fork in milliseconds */
2490
- forkTimeMs: number;
2491
- }
2492
2466
  /**
2493
2467
  * Infrastructure driver identifier.
2494
2468
  *
@@ -2520,6 +2494,104 @@ interface SandboxAccelerator {
2520
2494
  /** Minimum device memory in megabytes when the exact GPU class is flexible. */
2521
2495
  memoryMB?: number;
2522
2496
  }
2497
+ declare const GPU_LEASE_PROVIDER_NAMES: readonly ["runpod", "vast-ai", "lambda-labs", "tensordock", "paperspace", "aws", "gcp", "azure", "crusoe", "fluidstack"];
2498
+ type GpuLeaseProviderName = (typeof GPU_LEASE_PROVIDER_NAMES)[number];
2499
+ interface GpuLeaseProviderSelection {
2500
+ strategy: "explicit" | "cheapest";
2501
+ selectedProvider: GpuLeaseProviderName;
2502
+ requestedProvider?: GpuLeaseProviderName;
2503
+ candidates: Array<{
2504
+ provider: GpuLeaseProviderName;
2505
+ accelerator: SandboxAccelerator & {
2506
+ count: number;
2507
+ };
2508
+ providerInstanceType?: string;
2509
+ region?: string;
2510
+ pricingSource?: "live" | "configured" | "static";
2511
+ providerCostPerHourUsd: number;
2512
+ customerPricePerHourUsd: number;
2513
+ maxLifetimeSeconds: number;
2514
+ estimatedProviderCostUsd: number;
2515
+ estimatedCustomerCostUsd: number;
2516
+ }>;
2517
+ rejected: Array<{
2518
+ provider: GpuLeaseProviderName;
2519
+ error: string;
2520
+ }>;
2521
+ }
2522
+ type GpuLeaseStatus = "provisioning" | "ready" | "detaching" | "destroyed" | "failed";
2523
+ interface GpuLeaseBilling {
2524
+ seconds: number;
2525
+ providerCostUsd: number;
2526
+ customerCostUsd: number;
2527
+ providerCostPerHourUsd: number;
2528
+ customerPricePerHourUsd: number;
2529
+ startedAt: string;
2530
+ stoppedAt: string;
2531
+ }
2532
+ interface GpuLease {
2533
+ id: string;
2534
+ projectRef: string;
2535
+ ownerUserId: string;
2536
+ productId?: string;
2537
+ provider: GpuLeaseProviderName;
2538
+ providerLeaseId?: string;
2539
+ providerInstanceType?: string;
2540
+ region?: string;
2541
+ workerUrl?: string;
2542
+ status: GpuLeaseStatus;
2543
+ accelerator: SandboxAccelerator & {
2544
+ count: number;
2545
+ };
2546
+ image?: string;
2547
+ maxSpendUsd: number;
2548
+ maxLifetimeSeconds: number;
2549
+ idleTimeoutSeconds?: number;
2550
+ providerCostPerHourUsd?: number;
2551
+ customerPricePerHourUsd?: number;
2552
+ estimatedProviderCostUsd?: number;
2553
+ estimatedCustomerCostUsd?: number;
2554
+ providerSelection?: GpuLeaseProviderSelection;
2555
+ createdAt: string;
2556
+ updatedAt: string;
2557
+ readyAt?: string;
2558
+ lastUsedAt?: string;
2559
+ destroyedAt?: string;
2560
+ failure?: string;
2561
+ billing?: GpuLeaseBilling;
2562
+ }
2563
+ interface AttachGpuLeaseOptions {
2564
+ provider?: GpuLeaseProviderName;
2565
+ accelerator: SandboxAccelerator;
2566
+ image?: string;
2567
+ env?: Record<string, string>;
2568
+ maxSpendUsd: number;
2569
+ maxLifetimeSeconds: number;
2570
+ idleTimeoutSeconds?: number;
2571
+ }
2572
+ type CreateGpuLeaseOptions = Omit<AttachGpuLeaseOptions, "accelerator">;
2573
+ interface GpuLeaseExecOptions {
2574
+ command: string;
2575
+ timeoutMs?: number;
2576
+ env?: Record<string, string>;
2577
+ cwd?: string;
2578
+ }
2579
+ interface GpuLeaseCommandResult {
2580
+ exitCode: number;
2581
+ stdout: string;
2582
+ stderr: string;
2583
+ durationMs?: number;
2584
+ }
2585
+ interface GpuLeaseExecResult {
2586
+ lease: GpuLease;
2587
+ result: GpuLeaseCommandResult;
2588
+ }
2589
+ interface GpuLeaseManager {
2590
+ attach(options: AttachGpuLeaseOptions): Promise<GpuLease>;
2591
+ list(): Promise<GpuLease[]>;
2592
+ exec(leaseId: string, options: GpuLeaseExecOptions): Promise<GpuLeaseExecResult>;
2593
+ detach(leaseId: string): Promise<GpuLease>;
2594
+ }
2523
2595
  /**
2524
2596
  * Infrastructure driver configuration.
2525
2597
  *
@@ -4520,6 +4592,8 @@ declare class SandboxInstance {
4520
4592
  get expiresAt(): Date | undefined;
4521
4593
  /** Error message if status is 'failed' */
4522
4594
  get error(): string | undefined;
4595
+ /** GPU lease attached during sandbox creation, when requested. */
4596
+ get gpuLease(): GpuLease | undefined;
4523
4597
  /** Web terminal URL for browser-based access */
4524
4598
  get url(): string | undefined;
4525
4599
  /**
@@ -5098,12 +5172,23 @@ declare class SandboxInstance {
5098
5172
  * ```
5099
5173
  */
5100
5174
  get egress(): EgressManager;
5175
+ /**
5176
+ * On-demand GPU leases attached to this sandbox.
5177
+ *
5178
+ * The base sandbox stays cheap; `attach` starts a temporary external GPU
5179
+ * worker with an explicit spend cap, and `detach` destroys it.
5180
+ */
5181
+ get gpu(): GpuLeaseManager;
5101
5182
  private networkUpdate;
5102
5183
  private networkExposePort;
5103
5184
  private networkListUrls;
5104
5185
  private networkGetConfig;
5105
5186
  private egressGet;
5106
5187
  private egressUpdate;
5188
+ private gpuAttach;
5189
+ private gpuList;
5190
+ private gpuExec;
5191
+ private gpuDetach;
5107
5192
  /**
5108
5193
  * Validate CIDR notation (IPv4 and IPv6)
5109
5194
  */
@@ -5227,91 +5312,46 @@ declare class SandboxInstance {
5227
5312
  */
5228
5313
  restoreFromStorage(storage: SnapshotOptions["storage"], options?: RestoreSnapshotOptions): Promise<SnapshotResult | null>;
5229
5314
  /**
5230
- * Create a CRIU checkpoint of the sandbox's memory state.
5231
- *
5232
- * Checkpoints capture the complete memory state of the running sandbox,
5233
- * enabling true pause/resume and fork operations. Unlike snapshots which
5234
- * only preserve filesystem state, checkpoints preserve process memory,
5235
- * open file descriptors, and execution state.
5236
- *
5237
- * **Requirements:** CRIU must be available on the host. Check availability
5238
- * with `client.criuStatus()` before calling.
5239
- *
5240
- * **Note:** By default, checkpoint stops the sandbox. Use `leaveRunning: true`
5241
- * to keep it running (creates a copy-on-write checkpoint).
5242
- *
5243
- * @param options - Checkpoint options
5244
- * @returns Checkpoint result with ID and metadata
5245
- *
5246
- * @example Basic checkpoint (stops sandbox)
5247
- * ```typescript
5248
- * const checkpoint = await box.checkpoint();
5249
- * console.log(`Checkpoint: ${checkpoint.checkpointId}`);
5250
- * // Sandbox is now stopped, resume with box.resume()
5251
- * ```
5252
- *
5253
- * @example Checkpoint without stopping
5254
- * ```typescript
5255
- * const checkpoint = await box.checkpoint({
5256
- * tags: ["before-deploy"],
5257
- * leaveRunning: true,
5258
- * });
5259
- * // Sandbox continues running
5260
- * ```
5315
+ * @deprecated CRIU checkpoints were removed. To branch live memory into
5316
+ * copy-on-write children of a running sandbox use {@link branch}; for durable
5317
+ * filesystem state use {@link snapshot}. This method now throws.
5261
5318
  */
5262
- checkpoint(options?: CheckpointOptions): Promise<CheckpointResult>;
5319
+ checkpoint(): never;
5263
5320
  /**
5264
- * List all checkpoints for this sandbox.
5265
- *
5266
- * @returns Array of checkpoint metadata
5267
- *
5268
- * @example
5269
- * ```typescript
5270
- * const checkpoints = await box.listCheckpoints();
5271
- * for (const cp of checkpoints) {
5272
- * console.log(`${cp.checkpointId}: ${cp.createdAt}`);
5273
- * }
5274
- * ```
5321
+ * @deprecated CRIU checkpoints were removed. List durable filesystem state
5322
+ * with {@link listSnapshots}. This method now throws.
5275
5323
  */
5276
- listCheckpoints(): Promise<CheckpointInfo[]>;
5324
+ listCheckpoints(): never;
5277
5325
  /**
5278
- * Delete a checkpoint.
5279
- *
5280
- * @param checkpointId - ID of the checkpoint to delete
5326
+ * @deprecated CRIU checkpoints were removed. This method now throws.
5281
5327
  */
5282
- deleteCheckpoint(checkpointId: string): Promise<void>;
5328
+ deleteCheckpoint(): never;
5283
5329
  /**
5284
- * Fork a new sandbox from a checkpoint.
5285
- *
5286
- * Creates a new sandbox with the same memory state as this sandbox
5287
- * at the time of the checkpoint. The fork has a new identity but
5288
- * preserves the execution state.
5289
- *
5290
- * **Use cases:**
5291
- * - Branch workflows: Create parallel execution paths
5292
- * - A/B testing: Run same state with different configurations
5293
- * - Debugging: Fork at a specific point to investigate
5294
- *
5295
- * @param checkpointId - ID of the checkpoint to fork from
5296
- * @param options - Fork configuration
5297
- * @returns The new sandbox instance
5330
+ * @deprecated Forking from a CRIU checkpoint was removed. Use {@link branch}
5331
+ * to fork a running sandbox's live memory into copy-on-write children, or
5332
+ * `client.create({ fromSnapshot })` to provision from durable disk state.
5333
+ * This method now throws.
5334
+ */
5335
+ fork(): never;
5336
+ /**
5337
+ * Branch this RUNNING sandbox into `count` copy-on-write children
5338
+ * (Morph Infinibranch parity). Unlike {@link fork} which rehydrates one
5339
+ * sandbox from a CRIU checkpoint branch forks the live VM's memory into
5340
+ * many children at once via Firecracker UFFD copy-on-write: the children
5341
+ * share the parent's clean pages instead of each copying full guest
5342
+ * memory. The parent stays running.
5298
5343
  *
5299
- * @example Basic fork
5300
- * ```typescript
5301
- * const checkpoint = await box.checkpoint({ leaveRunning: true });
5302
- * const forked = await box.fork(checkpoint.checkpointId);
5303
- * // forked has same memory state as box at checkpoint time
5304
- * ```
5344
+ * @param count - Number of children to create (must be >= 1).
5345
+ * @param options - Per-child overrides.
5346
+ * @returns Exactly `count` new sandbox instances.
5305
5347
  *
5306
- * @example Fork with custom config
5348
+ * @example
5307
5349
  * ```typescript
5308
- * const forked = await box.fork(checkpointId, {
5309
- * name: "experiment-branch",
5310
- * env: { EXPERIMENT: "true" },
5311
- * });
5350
+ * const [a, b, c] = await box.branch(3);
5351
+ * // a, b, c each share box's memory state at branch time
5312
5352
  * ```
5313
5353
  */
5314
- fork(checkpointId: string, options?: ForkOptions): Promise<SandboxInstance>;
5354
+ branch(count: number, options?: BranchOptions): Promise<SandboxInstance[]>;
5315
5355
  /**
5316
5356
  * Stop the sandbox (keeps state for resume).
5317
5357
  */
@@ -5365,7 +5405,6 @@ declare class SandboxInstance {
5365
5405
  * delivers progress callbacks while waiting for a target status.
5366
5406
  */
5367
5407
  private waitForWithSSE;
5368
- private parseCheckpointInfo;
5369
5408
  private ensureRunning;
5370
5409
  private runtimeFetch;
5371
5410
  /**
@@ -5525,4 +5564,4 @@ declare class SandboxInstance {
5525
5564
  _answerQuestion(id: string, answers: Record<string, string[]>): Promise<void>;
5526
5565
  }
5527
5566
  //#endregion
5528
- export { CreateSandboxFleetOptions as $, SandboxFleetTraceBundle as $n, WriteFileOptions as $r, NetworkConfig as $t, AttachSandboxFleetMachineOptions as A, SSHCredentials as An, SnapshotInfo as Ar, ForkResult as At, BatchTask as B, SandboxFleetDriverCapability as Bn, TeeAttestationOptions as Br, InstalledTool as Bt, SandboxMcpEndpoint as C, PublishPublicTemplateVersionOptions as Cn, SecretInfo as Cr, FleetDispatchStreamOptions as Ct, AcceleratorKind as D, ReconcileSandboxFleetsResult as Dn, SessionListOptions as Dr, FleetPromptDispatchOptions as Dt, buildSandboxMcpConfig as E, ReconcileSandboxFleetsOptions as En, SessionInfo as Er, FleetMachineId as Et, BackendStatus as F, SandboxFleetArtifact as Fn, StartupOperation as Fr, GitDiff as Ft, CodeExecutionOptions as G, SandboxFleetMachineMeteredUsage as Gn, TokenRefreshHandler as Gr, IntelligenceReportWindow as Gt, CheckpointInfo as H, SandboxFleetInfo as Hn, TeeAttestationResponse as Hr, IntelligenceReportBudget as Ht, BackendType as I, SandboxFleetArtifactSpec as In, StorageConfig as Ir, GitStatus as It, CodeResult as J, SandboxFleetManifest as Jn, UpdateUserOptions as Jr, ListSandboxFleetOptions as Jt, CodeExecutionResult as K, SandboxFleetMachineRecord as Kn, ToolsConfig as Kr, ListMessagesOptions as Kt, BatchEvent as L, SandboxFleetCostEstimate as Ln, SubscriptionInfo as Lr, GpuType as Lt, BackendConfig as M, SandboxConnection as Mn, SnapshotResult as Mr, GitBranch as Mt, BackendInfo as N, SandboxEnvironment as Nn, SshKeysManager as Nr, GitCommit as Nt, AccessPolicyRule as O, RunCodeOptions as On, SessionMessage as Or, FleetPromptDispatchResult as Ot, BackendManager as P, SandboxEvent as Pn, StartupDiagnostics as Pr, GitConfig as Pt, CreateRequestOptions as Q, SandboxFleetToken as Qn, WaitForOptions as Qr, MkdirOptions as Qt, BatchOptions as R, SandboxFleetDispatchFailureClass as Rn, TaskOptions as Rr, HostAgentDriverConfig as Rt, SandboxMcpConfig as S, PublishPublicTemplateOptions as Sn, SearchOptions as Sr, FleetDispatchResultBufferOptions as St, buildControlPlaneMcpConfig as T, ReapExpiredSandboxFleetsResult as Tn, SessionEventStreamOptions as Tr, FleetExecDispatchResult as Tt, CheckpointOptions as U, SandboxFleetIntelligenceEnvelope as Un, TeePublicKey as Ur, IntelligenceReportCompareTo as Ut, BatchTaskResult as V, SandboxFleetDriverTimings as Vn, TeeAttestationReport as Vr, IntelligenceReport as Vt, CheckpointResult as W, SandboxFleetMachine as Wn, TeePublicKeyResponse as Wr, IntelligenceReportSubjectType as Wt, CompletedTurnResult as X, SandboxFleetOperationsSummary as Xn, UploadProgress as Xr, McpServerConfig as Xt, CodeResultPart as Y, SandboxFleetManifestMachine as Yn, UploadOptions as Yr, ListSandboxOptions as Yt, CreateIntelligenceReportOptions as Z, SandboxFleetPolicy as Zn, UsageInfo as Zr, MintScopedTokenOptions as Zt, StartInteractiveOptions as _, defineGitHubResource as _i, ProvisionResult as _n, SandboxTraceOptions as _r, ExecResult as _t, TraceExportSink as a, AgentProfileConnection as ai, PreviewLinkManager as an, SandboxFleetWorkspaceReconcileResult as ar, DispatchPromptOptions as at, CONTROL_PLANE_MCP_SERVER_NAME as b, PublicTemplateInfo as bn, ScopedTokenScope as br, FleetDispatchCancelResult as bt, otelTraceIdForTangleTrace as c, AgentProfileModelHints as ci, ProcessLogEntry as cn, SandboxInfo as cr, DownloadProgress as ct, InteractiveAuthFile as d, AgentProfileResourceRef as di, ProcessSpawnOptions as dn, SandboxResourceUsage as dr, DriverInfo as dt, WriteManyFile as ei, NetworkManager as en, SandboxFleetTraceEvent as er, CreateSandboxFleetTokenOptions as et, InteractiveSessionHandle as f, AgentProfileResources as fi, ProcessStatus as fn, SandboxResources as fr, DriverType as ft, RespondToPermissionOptions as g, defineAgentProfile as gi, ProvisionEvent as gn, SandboxTraceExport as gr, ExecOptions as gt, InterruptResult as h, AgentSubagentProfile as hi, PromptResult as hn, SandboxTraceEvent as hr, EventStreamOptions as ht, TraceExportResult as i, AgentProfileConfidential as ii, PreviewLinkInfo as in, SandboxFleetWorkspace as ir, DirectoryPermission as it, BackendCapabilities as j, SandboxClientConfig as jn, SnapshotOptions as jr, GitAuth as jt, AddUserOptions as k, SSHCommandDescriptor as kn, SessionStatus as kr, ForkOptions as kt, toOtelJson as l, AgentProfilePermissionValue as li, ProcessManager as ln, SandboxIntelligenceEnvelope as lr, DriveTurnOptions as lt, InteractiveSessionInfo as m, AgentProfileValidationResult as mi, PromptOptions as mn, SandboxTraceBundle as mr, EgressPolicy as mt, SandboxInstance as n, AgentProfile as ni, PermissionLevel as nn, SandboxFleetTraceOptions as nr, CreateSandboxOptions as nt, buildTraceExportPayload as o, AgentProfileFileMount as oi, Process as on, SandboxFleetWorkspaceRestoreResult as or, DispatchedSession as ot, InteractiveSessionHost as p, AgentProfileValidationIssue as pi, PromptInputPart as pn, SandboxStatus as pr, EgressManager as pt, CodeLanguage as q, SandboxFleetMachineSpec as qn, TurnDriveResult as qr, ListOptions as qt, TraceExportFormat as r, AgentProfileCapabilities as ri, PermissionsManager as rn, SandboxFleetUsage as rr, DeleteOptions as rt, exportTraceBundle as s, AgentProfileMcpServer as si, ProcessInfo as sn, SandboxFleetWorkspaceSnapshotResult as sr, DownloadOptions as st, HttpClient as t, WriteManyOptions as ti, NonHostAgentDriverConfig as tn, SandboxFleetTraceExport as tr, CreateSandboxFleetWithCoordinatorOptions as tt, SandboxSession as u, AgentProfilePrompt as ui, ProcessSignal as un, SandboxPermissionsConfig as ur, DriverConfig as ut, BuildControlPlaneMcpConfigOptions as v, defineInlineResource as vi, ProvisionStatus as vn, SandboxUser as vr, FileInfo as vt, SandboxMcpServerEntry as w, ReapExpiredSandboxFleetsOptions as wn, SecretsManager as wr, FleetExecDispatchOptions as wt, SANDBOX_MCP_SERVER_NAME as x, PublicTemplateVersionInfo as xn, SearchMatch as xr, FleetDispatchResultBuffer as xt, BuildSandboxMcpConfigOptions as y, mergeAgentProfiles as yi, ProvisionStep as yn, ScopedToken as yr, FileSystem as yt, BatchResult as z, SandboxFleetDispatchResponse as zn, TaskResult as zr, HostAgentRuntimeBackend as zt };
5567
+ export { CreateSandboxFleetOptions as $, SandboxFleetMachineRecord as $n, ToolsConfig as $r, ListMessagesOptions as $t, AttachGpuLeaseOptions as A, PublishPublicTemplateVersionOptions as An, SecretInfo as Ar, GitAuth as At, BatchResult as B, SandboxEnvironment as Bn, SshKeysManager as Br, GpuLeaseExecResult as Bt, SandboxMcpEndpoint as C, defineAgentProfile as Ci, ProvisionEvent as Cn, SandboxTraceExport as Cr, FleetDispatchStreamOptions as Ct, AcceleratorKind as D, PublicTemplateInfo as Dn, ScopedTokenScope as Dr, FleetPromptDispatchOptions as Dt, buildSandboxMcpConfig as E, mergeAgentProfiles as Ei, ProvisionStep as En, ScopedToken as Er, FleetMachineId as Et, BackendManager as F, RunCodeOptions as Fn, SessionMessage as Fr, GitStatus as Ft, CodeExecutionResult as G, SandboxFleetDispatchFailureClass as Gn, TaskOptions as Gr, HostAgentDriverConfig as Gt, BatchTaskResult as H, SandboxFleetArtifact as Hn, StartupOperation as Hr, GpuLeaseProviderName as Ht, BackendStatus as I, SSHCommandDescriptor as In, SessionStatus as Ir, GpuLease as It, CodeResultPart as J, SandboxFleetDriverTimings as Jn, TeeAttestationReport as Jr, IntelligenceReport as Jt, CodeLanguage as K, SandboxFleetDispatchResponse as Kn, TaskResult as Kr, HostAgentRuntimeBackend as Kt, BackendType as L, SSHCredentials as Ln, SnapshotInfo as Lr, GpuLeaseBilling as Lt, BackendCapabilities as M, ReapExpiredSandboxFleetsResult as Mn, SessionEventStreamOptions as Mr, GitCommit as Mt, BackendConfig as N, ReconcileSandboxFleetsOptions as Nn, SessionInfo as Nr, GitConfig as Nt, AccessPolicyRule as O, PublicTemplateVersionInfo as On, SearchMatch as Or, FleetPromptDispatchResult as Ot, BackendInfo as P, ReconcileSandboxFleetsResult as Pn, SessionListOptions as Pr, GitDiff as Pt, CreateRequestOptions as Q, SandboxFleetMachineMeteredUsage as Qn, TokenRefreshHandler as Qr, IntelligenceReportWindow as Qt, BatchEvent as R, SandboxClientConfig as Rn, SnapshotOptions as Rr, GpuLeaseCommandResult as Rt, SandboxMcpConfig as S, AgentSubagentProfile as Si, PromptResult as Sn, SandboxTraceEvent as Sr, FleetDispatchResultBufferOptions as St, buildControlPlaneMcpConfig as T, defineInlineResource as Ti, ProvisionStatus as Tn, SandboxUser as Tr, FleetExecDispatchResult as Tt, BranchOptions as U, SandboxFleetArtifactSpec as Un, StorageConfig as Ur, GpuLeaseStatus as Ut, BatchTask as V, SandboxEvent as Vn, StartupDiagnostics as Vr, GpuLeaseManager as Vt, CodeExecutionOptions as W, SandboxFleetCostEstimate as Wn, SubscriptionInfo as Wr, GpuType as Wt, CreateGpuLeaseOptions as X, SandboxFleetIntelligenceEnvelope as Xn, TeePublicKey as Xr, IntelligenceReportCompareTo as Xt, CompletedTurnResult as Y, SandboxFleetInfo as Yn, TeeAttestationResponse as Yr, IntelligenceReportBudget as Yt, CreateIntelligenceReportOptions as Z, SandboxFleetMachine as Zn, TeePublicKeyResponse as Zr, IntelligenceReportSubjectType as Zt, StartInteractiveOptions as _, AgentProfilePrompt as _i, ProcessSignal as _n, SandboxPermissionsConfig as _r, ExecResult as _t, TraceExportSink as a, WaitForOptions as ai, MkdirOptions as an, SandboxFleetToken as ar, DispatchPromptOptions as at, CONTROL_PLANE_MCP_SERVER_NAME as b, AgentProfileValidationIssue as bi, PromptInputPart as bn, SandboxStatus as br, FleetDispatchCancelResult as bt, otelTraceIdForTangleTrace as c, WriteManyOptions as ci, NonHostAgentDriverConfig as cn, SandboxFleetTraceExport as cr, DownloadProgress as ct, InteractiveAuthFile as d, AgentProfileConfidential as di, PreviewLinkInfo as dn, SandboxFleetWorkspace as dr, DriverInfo as dt, TurnDriveResult as ei, ListOptions as en, SandboxFleetMachineSpec as er, CreateSandboxFleetTokenOptions as et, InteractiveSessionHandle as f, AgentProfileConnection as fi, PreviewLinkManager as fn, SandboxFleetWorkspaceReconcileResult as fr, DriverType as ft, RespondToPermissionOptions as g, AgentProfilePermissionValue as gi, ProcessManager as gn, SandboxIntelligenceEnvelope as gr, ExecOptions as gt, InterruptResult as h, AgentProfileModelHints as hi, ProcessLogEntry as hn, SandboxInfo as hr, EventStreamOptions as ht, TraceExportResult as i, UsageInfo as ii, MintScopedTokenOptions as in, SandboxFleetPolicy as ir, DirectoryPermission as it, AttachSandboxFleetMachineOptions as j, ReapExpiredSandboxFleetsOptions as jn, SecretsManager as jr, GitBranch as jt, AddUserOptions as k, PublishPublicTemplateOptions as kn, SearchOptions as kr, GPU_LEASE_PROVIDER_NAMES as kt, toOtelJson as l, AgentProfile as li, PermissionLevel as ln, SandboxFleetTraceOptions as lr, DriveTurnOptions as lt, InteractiveSessionInfo as m, AgentProfileMcpServer as mi, ProcessInfo as mn, SandboxFleetWorkspaceSnapshotResult as mr, EgressPolicy as mt, SandboxInstance as n, UploadOptions as ni, ListSandboxOptions as nn, SandboxFleetManifestMachine as nr, CreateSandboxOptions as nt, buildTraceExportPayload as o, WriteFileOptions as oi, NetworkConfig as on, SandboxFleetTraceBundle as or, DispatchedSession as ot, InteractiveSessionHost as p, AgentProfileFileMount as pi, Process as pn, SandboxFleetWorkspaceRestoreResult as pr, EgressManager as pt, CodeResult as q, SandboxFleetDriverCapability as qn, TeeAttestationOptions as qr, InstalledTool as qt, TraceExportFormat as r, UploadProgress as ri, McpServerConfig as rn, SandboxFleetOperationsSummary as rr, DeleteOptions as rt, exportTraceBundle as s, WriteManyFile as si, NetworkManager as sn, SandboxFleetTraceEvent as sr, DownloadOptions as st, HttpClient as t, UpdateUserOptions as ti, ListSandboxFleetOptions as tn, SandboxFleetManifest as tr, CreateSandboxFleetWithCoordinatorOptions as tt, SandboxSession as u, AgentProfileCapabilities as ui, PermissionsManager as un, SandboxFleetUsage as ur, DriverConfig as ut, BuildControlPlaneMcpConfigOptions as v, AgentProfileResourceRef as vi, ProcessSpawnOptions as vn, SandboxResourceUsage as vr, FileInfo as vt, SandboxMcpServerEntry as w, defineGitHubResource as wi, ProvisionResult as wn, SandboxTraceOptions as wr, FleetExecDispatchOptions as wt, SANDBOX_MCP_SERVER_NAME as x, AgentProfileValidationResult as xi, PromptOptions as xn, SandboxTraceBundle as xr, FleetDispatchResultBuffer as xt, BuildSandboxMcpConfigOptions as y, AgentProfileResources as yi, ProcessStatus as yn, SandboxResources as yr, FileSystem as yt, BatchOptions as z, SandboxConnection as zn, SnapshotResult as zr, GpuLeaseExecOptions as zt };
@@ -1,2 +1,2 @@
1
- import { a as TANGLE_JOBS_CONTRACT, c as AgentSandboxBlueprintAbi, d as SandboxCreateParamTypes, f as SandboxCreateResponseParamTypes, i as TANGLE_CHAIN_ID, l as ITangleJobsAbi, n as JOB_SANDBOX_CREATE, o as TANGLE_MAINNET_RPC, p as SandboxIdParamTypes, r as JOB_SANDBOX_DELETE, s as TangleSandboxClientConfig, t as TangleSandboxClient, u as JsonResponseParamTypes } from "../index-CAay0NFR.js";
1
+ import { a as TANGLE_JOBS_CONTRACT, c as AgentSandboxBlueprintAbi, d as SandboxCreateParamTypes, f as SandboxCreateResponseParamTypes, i as TANGLE_CHAIN_ID, l as ITangleJobsAbi, n as JOB_SANDBOX_CREATE, o as TANGLE_MAINNET_RPC, p as SandboxIdParamTypes, r as JOB_SANDBOX_DELETE, s as TangleSandboxClientConfig, t as TangleSandboxClient, u as JsonResponseParamTypes } from "../index-ugDiHZbM.js";
2
2
  export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TANGLE_MAINNET_RPC, TangleSandboxClient, TangleSandboxClientConfig };
@@ -1,2 +1,2 @@
1
- import { a as TANGLE_JOBS_CONTRACT, c as ITangleJobsAbi, d as SandboxCreateResponseParamTypes, f as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as JsonResponseParamTypes, n as JOB_SANDBOX_CREATE, o as TANGLE_MAINNET_RPC, r as JOB_SANDBOX_DELETE, s as AgentSandboxBlueprintAbi, t as TangleSandboxClient, u as SandboxCreateParamTypes } from "../tangle-D1c-2Jr2.js";
1
+ import { a as TANGLE_JOBS_CONTRACT, c as ITangleJobsAbi, d as SandboxCreateResponseParamTypes, f as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as JsonResponseParamTypes, n as JOB_SANDBOX_CREATE, o as TANGLE_MAINNET_RPC, r as JOB_SANDBOX_DELETE, s as AgentSandboxBlueprintAbi, t as TangleSandboxClient, u as SandboxCreateParamTypes } from "../tangle-DdHzeMUH.js";
2
2
  export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TANGLE_MAINNET_RPC, TangleSandboxClient };
@@ -1,4 +1,4 @@
1
- import { t as SandboxInstance } from "./sandbox-BTBbZupV.js";
1
+ import { t as SandboxInstance } from "./sandbox-CDKpHv6-.js";
2
2
  //#region src/tangle/abi.ts
3
3
  /**
4
4
  * Tangle Contract ABI Definitions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox",
3
- "version": "0.9.4-develop.20260629071229.0145161",
3
+ "version": "0.9.4-develop.20260701061438.a81baba",
4
4
  "description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",