@tangle-network/sandbox 0.54.2-develop.20260927014918.a761d6e → 0.55.1

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.
@@ -1287,6 +1287,11 @@ interface GitConfig {
1287
1287
  interface SandboxConfig {
1288
1288
  /** API key for authentication */
1289
1289
  apiKey: string;
1290
+ /**
1291
+ * Platform API base URL, for the agent-profile catalog that fleets resolve
1292
+ * saved profiles from. Defaults to `https://id.tangle.tools`.
1293
+ */
1294
+ platformUrl?: string;
1290
1295
  /** Base URL for the Sandbox API */
1291
1296
  baseUrl: string;
1292
1297
  /** Request timeout in milliseconds. Defaults to 30000 (30 seconds) */
@@ -3670,31 +3675,38 @@ type TurnDriveResult = {
3670
3675
  error: string;
3671
3676
  };
3672
3677
  /**
3673
- * One machine's pass in a `fleet.driveTurns()` invocation: the machine to
3674
- * drive, the message dispatched on a cold start (same semantics as
3675
- * `box.driveTurn`), and the per-session drive options (`sessionId` is the
3676
- * resume key — every tick for the same logical turn MUST pass the same id).
3678
+ * One pass in a `fleet.driveTurns()` invocation: an agent (driven in its own
3679
+ * session) or, for a fleet made from `machines`, a machine with the session
3680
+ * named in `options.sessionId`. The message is dispatched on a cold start,
3681
+ * with the same semantics as `box.driveTurn`.
3677
3682
  */
3678
- interface FleetDriveTurnRequest {
3683
+ type FleetDriveTurnRequest = {
3684
+ agentId: FleetAgentId;
3685
+ message: string | PromptInputPart[];
3686
+ options: Omit<DriveTurnOptions, "sessionId">;
3687
+ } | {
3679
3688
  machineId: FleetMachineId;
3680
3689
  message: string | PromptInputPart[];
3681
3690
  options: DriveTurnOptions;
3682
- }
3691
+ };
3683
3692
  /**
3684
- * Per-machine outcome of `fleet.driveTurns()`. A machine whose pass threw
3685
- * (unreachable sandbox, unknown machine, dispatch failure) is captured as
3686
- * `error` instead of failing the batch — tick-based callers re-drive the
3687
- * survivors on the next invocation and only escalate the failures.
3693
+ * Outcome of one `fleet.driveTurns()` pass, keyed like its request. A pass
3694
+ * that threw (unreachable sandbox, unknown agent, dispatch failure) is
3695
+ * captured as `error` instead of failing the batch.
3688
3696
  */
3689
- type FleetDriveTurnOutcome = {
3697
+ type FleetDriveTurnOutcome = ({
3698
+ agentId: FleetAgentId;
3699
+ machineId?: undefined;
3700
+ } | {
3690
3701
  machineId: FleetMachineId;
3702
+ agentId?: undefined;
3703
+ }) & ({
3691
3704
  outcome: "driven";
3692
3705
  result: TurnDriveResult;
3693
3706
  } | {
3694
- machineId: FleetMachineId;
3695
3707
  outcome: "error";
3696
3708
  error: string;
3697
- };
3709
+ });
3698
3710
  /**
3699
3711
  * Callback invoked when the SDK refreshes a sandbox bearer transparently
3700
3712
  * (e.g. after a 401 retry against the runtime endpoint). Lets long-
@@ -3962,6 +3974,126 @@ type BatchResult = BatchResult$1;
3962
3974
  * values through tool calls.
3963
3975
  */
3964
3976
  type FleetMachineId = string;
3977
+ /** Stable id of one agent in a fleet. It is also the agent's session id on its sandbox. */
3978
+ type FleetAgentId = string;
3979
+ /**
3980
+ * Where one agent runs. `shared` agents share a sandbox's filesystem, CPU and
3981
+ * memory with other agents of the same fleet; `dedicated` gives the agent a
3982
+ * sandbox of its own (repository writes, untrusted code).
3983
+ */
3984
+ type FleetAgentPlacement = "shared" | "dedicated";
3985
+ /**
3986
+ * A saved profile from the Platform agent-profile catalog
3987
+ * (`GET /v1/agent-profiles/:id`). With `revision`, create refuses the fleet
3988
+ * unless the catalog still holds exactly that revision.
3989
+ */
3990
+ interface SandboxFleetProfileRef {
3991
+ profileId: string;
3992
+ revision?: number;
3993
+ }
3994
+ interface SandboxFleetAgentSpec {
3995
+ /** Defaults to `agent-<index>`. */
3996
+ agentId?: FleetAgentId;
3997
+ /** Defaults to `shared`. */
3998
+ placement?: FleetAgentPlacement;
3999
+ /** Harness this agent runs. Defaults to `profile.harness`, then `defaults.backend.type`. */
4000
+ harness?: BackendType;
4001
+ /**
4002
+ * Model this agent runs: a model id, or a model config (`provider`,
4003
+ * `baseUrl`, `apiKeyEnv` naming a sandbox env var that holds the key).
4004
+ * Defaults to `profile.model.default`, then `defaults.backend.model`.
4005
+ */
4006
+ model?: string | NonNullable<BackendConfig["model"]>;
4007
+ /**
4008
+ * The agent's profile: an inline `AgentProfile`, or a saved profile by id.
4009
+ * Every turn sends it as `backend.profile`, so the runtime materializes its
4010
+ * skills, instructions, MCP servers and files into the agent's own harness
4011
+ * session. Defaults to `defaults.backend.profile`.
4012
+ */
4013
+ profile?: AgentProfile | SandboxFleetProfileRef;
4014
+ /** Runtime MCP bindings for this agent, separate from its profile. */
4015
+ runtimeAttachments?: AgentRuntimeAttachments;
4016
+ /** The agent's own task. `run()` sends it when called without a message. */
4017
+ task?: string | PromptInputPart[];
4018
+ }
4019
+ /**
4020
+ * How a fleet packs agents onto sandboxes.
4021
+ *
4022
+ * - `auto` (default): as many agents per sandbox as its memory holds, from
4023
+ * the measured footprint of an idle sandbox and of one agent.
4024
+ * - `dedicated`: one sandbox per agent.
4025
+ * - `{ agentsPerSandbox }`: exactly that many shared agents per sandbox.
4026
+ */
4027
+ type SandboxFleetPlacement = "auto" | "dedicated" | {
4028
+ agentsPerSandbox: number;
4029
+ };
4030
+ /** The fleet and agent that spawned a child fleet. */
4031
+ interface SandboxFleetParent {
4032
+ fleetId: string;
4033
+ agentId: FleetAgentId;
4034
+ }
4035
+ /** One agent of a fleet and the sandbox that hosts it. */
4036
+ interface SandboxFleetAgent {
4037
+ agentId: FleetAgentId;
4038
+ machineId: FleetMachineId;
4039
+ sandboxId: string;
4040
+ /** Session the agent's turns run in; equal to `agentId`. */
4041
+ sessionId: string;
4042
+ /** Harness the agent runs; unset means the sandbox's default backend. */
4043
+ harness?: BackendType;
4044
+ /** Model the agent runs; unset means the sandbox's default model. */
4045
+ model?: string;
4046
+ /** Name of the agent's profile, when it has one. */
4047
+ profileName?: string;
4048
+ }
4049
+ interface FleetRunOptions extends Pick<PromptOptions, "timeoutMs" | "context"> {
4050
+ /** Agents to run. Defaults to every agent in the fleet. */
4051
+ agents?: FleetAgentId[];
4052
+ /** Aborts every agent turn this run started. */
4053
+ signal?: AbortSignal;
4054
+ }
4055
+ type FleetAgentRunStatus = "completed" | "failed" | "cancelled" | "budget_exhausted";
4056
+ interface FleetAgentResult extends SandboxFleetAgent {
4057
+ /**
4058
+ * `budget_exhausted`: the Platform refused the turn's model or compute
4059
+ * charge because the fleet's key budget is spent.
4060
+ */
4061
+ status: FleetAgentRunStatus;
4062
+ /** The agent's turn result: response text, token usage, trace id. */
4063
+ result?: PromptResult;
4064
+ /** Model cost the runtime reported for this turn, when it reported one. */
4065
+ costUsd?: number;
4066
+ durationMs: number;
4067
+ error?: string;
4068
+ }
4069
+ type FleetRunEvent = ({
4070
+ type: "agent.started";
4071
+ traceId: string;
4072
+ } & SandboxFleetAgent) | {
4073
+ type: "agent.finished";
4074
+ result: FleetAgentResult;
4075
+ } | {
4076
+ type: "fleet.finished";
4077
+ results: FleetAgentResult[]; /** Metered spend when it could be read; the results never depend on it. */
4078
+ spend?: SandboxFleetSpend;
4079
+ spendError?: string;
4080
+ durationMs: number;
4081
+ };
4082
+ /**
4083
+ * Spend of a capped fleet, metered by the Platform on the fleet's budgeted
4084
+ * key: every router call and compute charge of every sandbox the fleet
4085
+ * created, whichever process or handle drove it. A child fleet's cap is
4086
+ * reserved from its parent's budget when the child is created.
4087
+ */
4088
+ interface SandboxFleetSpend {
4089
+ capUsd: number;
4090
+ /** Charges the Platform has settled against the fleet's key. */
4091
+ spentUsd: number;
4092
+ /** Budget held for child fleets' caps. */
4093
+ reservedForChildrenUsd: number;
4094
+ /** What the fleet may still spend or allocate: cap minus spent minus reserved. */
4095
+ remainingUsd: number;
4096
+ }
3965
4097
  type SandboxFleetMachineRole = "coordinator" | "worker";
3966
4098
  /**
3967
4099
  * Resource policy for a single fleet create call.
@@ -3984,7 +4116,12 @@ interface SandboxFleetPolicy {
3984
4116
  maxTotalAccelerators?: number;
3985
4117
  /** Maximum lifetime in seconds for any machine in this fleet. */
3986
4118
  maxLifetimeSeconds?: number;
3987
- /** Maximum estimated USD spend for the fleet's configured lifetime. */
4119
+ /**
4120
+ * The fleet's spend cap in USD, enforced by the Platform: the fleet's
4121
+ * sandboxes are created with a key budgeted at the cap, so model and compute
4122
+ * charges past it are refused for every process that drives the fleet. A
4123
+ * child fleet's cap is reserved from its parent's remaining budget.
4124
+ */
3988
4125
  maxSpendUsd?: number;
3989
4126
  /** Allowed infrastructure drivers for fleet machines. */
3990
4127
  allowedDrivers?: DriverType[];
@@ -4023,8 +4160,35 @@ interface CreateSandboxFleetOptions {
4023
4160
  fleetId?: string;
4024
4161
  /** Shared defaults applied to every machine before per-machine overrides. */
4025
4162
  defaults?: Omit<CreateSandboxOptions, "metadata" | "name">;
4026
- /** Machines to create. */
4027
- machines: SandboxFleetMachineSpec[];
4163
+ /**
4164
+ * Machines to create, for fleets driven by `dispatchExec`. Set either
4165
+ * `machines` or `agents`.
4166
+ */
4167
+ machines?: SandboxFleetMachineSpec[];
4168
+ /**
4169
+ * Agents to run: a count, or specs with ids and per-agent placement. The
4170
+ * fleet creates the sandboxes `placement` asks for, from `defaults`.
4171
+ */
4172
+ agents?: number | SandboxFleetAgentSpec[];
4173
+ /** How agents are packed onto sandboxes. Defaults to `auto`. */
4174
+ placement?: SandboxFleetPlacement;
4175
+ /**
4176
+ * A budget in USD the Platform enforces. The fleet mints a Platform key
4177
+ * with this budget and creates its sandboxes and drives its turns with it,
4178
+ * so every charge made through the fleet counts against the budget and a
4179
+ * charge past it is refused. Only the client that created the fleet holds
4180
+ * the key: other processes can read, cancel and delete the fleet but not
4181
+ * run its agents. Without it, `policy.maxSpendUsd` stays a create-time
4182
+ * estimate check. A turn driven on a fleet sandbox with another key is
4183
+ * billed to that key, outside the budget.
4184
+ */
4185
+ budgetUsd?: number;
4186
+ /**
4187
+ * The fleet and agent spawning this fleet. The API checks that the parent
4188
+ * exists and that this fleet's `policy.maxSpendUsd` fits in the parent's
4189
+ * unallocated cap; deleting or cancelling the parent reaches this fleet.
4190
+ */
4191
+ parent?: SandboxFleetParent;
4028
4192
  /** Fleet-level metadata copied to each sandbox under stable tags. */
4029
4193
  metadata?: Record<string, unknown>;
4030
4194
  /** Workspace policy for isolated or driver-supported shared mounts. */
@@ -4040,9 +4204,9 @@ interface CreateSandboxFleetOptions {
4040
4204
  */
4041
4205
  cleanupOnFailure?: boolean;
4042
4206
  /**
4043
- * Maximum concurrent sandbox creates for this fleet request.
4044
- * Defaults to 4 to avoid accidental control-plane stampedes while still
4045
- * provisioning worker fleets faster than serial creation.
4207
+ * Sandbox creates in flight at once. Defaults to 8: every create and delete
4208
+ * mints or revokes two Platform keys, and about 25 in flight has locked the
4209
+ * Platform key store for every customer (2026-09-15).
4046
4210
  */
4047
4211
  maxConcurrentCreates?: number;
4048
4212
  /**
@@ -4050,7 +4214,7 @@ interface CreateSandboxFleetOptions {
4050
4214
  */
4051
4215
  idempotencyKey?: string;
4052
4216
  }
4053
- interface CreateSandboxFleetWithCoordinatorOptions extends Omit<CreateSandboxFleetOptions, "machines"> {
4217
+ interface CreateSandboxFleetWithCoordinatorOptions extends Omit<CreateSandboxFleetOptions, "machines" | "agents" | "placement"> {
4054
4218
  /** Coordinator machine. Defaults to machineId "coordinator". */
4055
4219
  coordinator?: Omit<SandboxFleetMachineSpec, "machineId" | "role"> & {
4056
4220
  machineId?: FleetMachineId;
@@ -4072,9 +4236,20 @@ interface SandboxFleetMachine {
4072
4236
  interface SandboxFleetInfo {
4073
4237
  fleetId: string;
4074
4238
  machines: SandboxFleetMachine[];
4239
+ policy?: SandboxFleetPolicy;
4240
+ parent?: SandboxFleetParent;
4241
+ createdAt?: string;
4242
+ /** Id of the budgeted Platform key a capped fleet's sandboxes charge. */
4243
+ keyId?: string;
4075
4244
  }
4076
4245
  interface FleetExecDispatchOptions extends Pick<ExecOptions, "cwd" | "env" | "timeoutMs"> {
4077
4246
  machines?: FleetMachineId[];
4247
+ /**
4248
+ * Branches in flight at once. Defaults to every selected machine. The API
4249
+ * runs on a Cloudflare Worker, which keeps at most six upstream connections
4250
+ * open per request, so branches past six queue (measured 2026-09-25: twelve
4251
+ * 8 s commands took 17.8 s, six took 9.7 s).
4252
+ */
4078
4253
  maxConcurrent?: number;
4079
4254
  retry?: {
4080
4255
  attempts?: number;
@@ -4134,7 +4309,7 @@ interface FleetDispatchResultBufferOptions {
4134
4309
  limit?: number;
4135
4310
  machines?: FleetMachineId[];
4136
4311
  }
4137
- interface FleetDispatchResultBuffer<T = FleetExecDispatchResult | FleetPromptDispatchResult> {
4312
+ interface FleetDispatchResultBuffer<T = FleetExecDispatchResult> {
4138
4313
  fleetId: string;
4139
4314
  dispatchId: string;
4140
4315
  results: T[];
@@ -4228,7 +4403,7 @@ interface SandboxFleetManifest {
4228
4403
  createdAt?: string;
4229
4404
  updatedAt?: string;
4230
4405
  }
4231
- interface SandboxFleetDispatchResponse<T = FleetExecDispatchResult | FleetPromptDispatchResult> {
4406
+ interface SandboxFleetDispatchResponse<T = FleetExecDispatchResult> {
4232
4407
  fleetId: string;
4233
4408
  dispatchId: string;
4234
4409
  type: "exec" | "prompt";
@@ -6668,4 +6843,4 @@ interface CodeExecutionOptions {
6668
6843
  idempotencyKey?: string;
6669
6844
  }
6670
6845
  //#endregion
6671
- export { DownloadOptions as $, TaskSessionFileChange as $i, ReconcileSandboxFleetsResult as $n, SandboxRemovalState as $r, GpuLease as $t, CommitTaskSessionOptions as A, SessionFailureReason as Ai, PreviewLinkWaitOptions as An, SandboxFleetMachine as Ar, FileUsageResult as At, CreateSandboxOptions as B, SnapshotDeleteAcknowledgement as Bi, PromptOptions as Bn, SandboxFleetTraceEvent as Br, FleetMachineId as Bt, BranchOptions as C, BatchSidecarGroup as Ca, SendSessionMessageOptions as Ci, NetworkConfig as Cn, SandboxFleetCostEstimate as Cr, FileReadResult as Ct, CodeExecutionResult as D, BackendType as Da, SessionEventStreamOptions as Di, PermissionsManager as Dn, SandboxFleetDriverTimings as Dr, FileTreeOptions as Dt, CodeExecutionOptions as E, ALL_BACKEND_TYPES as Ea, SessionBackendCredentials as Ei, PermissionLevel as En, SandboxFleetDriverCapability as Er, FileTreeFile as Et, CreateIntelligenceReportOptions as F, SessionMessage as Fi, ProcessManager as Fn, SandboxFleetManifestMachine as Fr, FleetDispatchStreamOptions as Ft, DeleteMatchingSandboxesFilter as G, SnapshotResult as Gi, ProvisionStep as Gn, SandboxFleetWorkspaceReconcileResult as Gr, ForkLookupOptions as Gt, CreateTaskSessionOptions as H, SnapshotIdempotency as Hi, ProvisionEvent as Hn, SandboxFleetTraceOptions as Hr, FleetPromptDispatchResult as Ht, CreateRequestOptions as I, SessionMessageAdmission as Ii, ProcessSignal as In, SandboxFleetOperationsSummary as Ir, FleetDriveTurnOutcome as It, DeleteOptions as J, StartupOperation as Ji, PublishPublicTemplateOptions as Jn, SandboxIdentity as Jr, GitBranch as Jt, DeleteMatchingSandboxesOptions as K, SshKeysManager as Ki, PublicTemplateInfo as Kn, SandboxFleetWorkspaceRestoreResult as Kr, GPU_LEASE_PROVIDER_NAMES as Kt, CreateSandboxFleetOptions as L, SessionMessageInputPart as Li, ProcessSpawnOptions as Ln, SandboxFleetPolicy as Lr, FleetDriveTurnRequest as Lt, ConversationTurnOptions as M, SessionInfo as Mi, ProcessInfo as Mn, SandboxFleetMachineRecord as Mr, FleetDispatchCancelResult as Mt, ConversationTurnResult as N, SessionInterruptOptions as Ni, ProcessListOptions as Nn, SandboxFleetMachineSpec as Nr, FleetDispatchResultBuffer as Nt, CodeLanguage as O, parseBackendType as Oa, SessionExecutionInfo as Oi, PreviewLinkInfo as On, SandboxFleetInfo as Or, FileTreeResult as Ot, CreateGpuLeaseOptions as P, SessionListOptions as Pi, ProcessLogEntry as Pn, SandboxFleetManifest as Pr, FleetDispatchResultBufferOptions as Pt, DispatchedSession as Q, TaskSessionCommitResult as Qi, ReconcileSandboxFleetsOptions as Qn, SandboxPortPreviewLink as Qr, GitStatus as Qt, CreateSandboxFleetTokenOptions as R, SessionResultOptions as Ri, ProcessStatus as Rn, SandboxFleetToken as Rr, FleetExecDispatchOptions as Rt, BatchTaskResult as S, BatchEventDataMap as Sa, SecretsManager as Si, MkdirOptions as Sn, SandboxFleetArtifactSpec as Sr, FileReadError as St, ChunkedUploadResult as T, PublicBatchRunRequest as Ta, SentSessionMessage as Ti, NonHostAgentDriverConfig as Tn, SandboxFleetDispatchResponse as Tr, FileSystem as Tt, DeleteMatchingSandboxOutcome as U, SnapshotInfo as Ui, ProvisionResult as Un, SandboxFleetUsage as Ur, ForkCounts as Ut, CreateSessionOptions as V, SnapshotDeleteOutcome as Vi, PromptResult as Vn, SandboxFleetTraceExport as Vr, FleetPromptDispatchOptions as Vt, DeleteMatchingSandboxResult as W, SnapshotOptions as Wi, ProvisionStatus as Wn, SandboxFleetWorkspace as Wr, ForkIdempotency as Wt, DirectoryPermission as X, SubscriptionInfo as Xi, ReapExpiredSandboxFleetsOptions as Xn, SandboxIntelligenceEnvelope as Xr, GitConfig as Xt, DevServerInfo as Y, StorageConfig as Yi, PublishPublicTemplateVersionOptions as Yn, SandboxInfo as Yr, GitCommit as Yt, DispatchPromptOptions as Z, TaskSessionChanges as Zi, ReapExpiredSandboxFleetsResult as Zn, SandboxPortBinding as Zr, GitDiff as Zt, BatchBackend as _, WriteFileOptions as _a, SandboxTraceOptions as _i, ListOptions as _n, SandboxDeleteOptions as _r, ExecOptions as _t, AgentQuestionRequest as a, TeePublicKey as aa, SandboxShapePreset as ai, GpuLeaseProviderName as an, RolloutOptions as ar, DurablePlan as at, BatchRunRequest as b, BatchBackendStats as ba, SearchOptions as bi, MAX_EGRESS_DENIALS_LIMIT as bn, SandboxEvent as br, FileReadBatchOptions as bt, AttachGpuLeaseOptions as c, TokenUsage as ca, SandboxTerminalAttachOptions as ci, HostAgentRuntimeBackend as cn, RolloutStatus as cr, EffectiveBackend as ct, BackendConfig as d, UploadOptions as da, SandboxTerminalManager as di, IntelligenceReportBudget as dn, SSHCredentials as dr, EgressDenial as dt, TaskSessionInfo as ea, SandboxResourceUsage as ei, GpuLeaseBilling as en, RenameOptions as er, DownloadProgress as et, BackendInfo as f, UploadProgress as fa, SandboxTerminalRequestOptions as fi, IntelligenceReportCompareTo as fn, SandboxConfig as fr, EgressManager as ft, BackendStatus as g, WorkspaceOperationLookup as ga, SandboxTraceExport as gi, ListMessagesOptions as gn, SandboxDeleteAcknowledgement as gr, ExactProcessSpawnOptions as gt, BackendRuntimeConfigUpdate as h, WaitForRolloutOptions as ha, SandboxTraceEvent as hi, JsonValue as hn, SandboxCreateReceipt as hr, EventStreamOptions as ht, AgentApprovalRequirement as i, TeeAttestationResponse as ia, SandboxShape as ii, GpuLeaseManager as in, RolloutChildResult as ir, DriverType as it, CompletedTurnResult as j, SessionForkOptions as ji, Process as jn, SandboxFleetMachineMeteredUsage as jr, FileWriteResult as jt, CodeResultPart as k, SessionExecutionStatus as ki, PreviewLinkManager as kn, SandboxFleetIntelligenceEnvelope as kr, FileUsageOptions as kt, AttachSandboxFleetMachineOptions as l, TurnDriveResult as la, SandboxTerminalCreateOptions as li, InstalledTool as ln, RolloutTurnPart as lr, EffectiveBackendProfile as lt, BackendMcpServerStatus as m, WaitForOptions as ma, SandboxTraceBundle as mi, IntelligenceReportWindow as mn, SandboxCreateOutcome as mr, EnsureDevServerOptions as mt, AccessPolicyRule as n, TeeAttestationOptions as na, SandboxRuntimeCapabilities as ni, GpuLeaseExecOptions as nn, ResumeOptions as nr, DriverConfig as nt, AgentRunStatus as o, TeePublicKeyResponse as oa, SandboxShapesInfo as oi, GpuLeaseStatus as on, RolloutScorer as or, DurablePlanDecisionResult as ot, BackendManager as p, UsageInfo as pa, SandboxTerminals as pi, IntelligenceReportSubjectType as pn, SandboxConnection as pr, EgressPolicy as pt, DeleteMatchingSandboxesResult as q, StartupDiagnostics as qi, PublicTemplateVersionInfo as qn, SandboxFleetWorkspaceSnapshotResult as qr, GitAuth as qt, AddUserOptions as r, TeeAttestationReport as ra, SandboxRuntimeHealth as ri, GpuLeaseExecResult as rn, Rollout as rr, DriverInfo as rt, AgentToolInvocation as s, TokenRefreshHandler as sa, SandboxStatus as si, HostAgentDriverConfig as sn, RolloutStartResult as sr, DurablePlanSnapshot as st, AcceleratorKind as t, TaskSessionProfile as ta, SandboxResources as ti, GpuLeaseCommandResult as tn, RestoreSnapshotOptions as tr, DriveTurnOptions as tt, BackendCapabilities as u, UpdateUserOptions as ua, SandboxTerminalInfo as ui, IntelligenceReport as un, SSHCommandDescriptor as ur, EffectiveBackendSource as ut, BatchResult as v, WriteManyFile as va, SandboxUser as vi, ListSandboxFleetOptions as vn, SandboxDeleteOutcome as vr, ExecResult as vt, ChunkedUploadOptions as w, BatchTaskUsage as wa, SendSessionMessageRequest as wi, NetworkManager as wn, SandboxFleetDispatchFailureClass as wr, FileRenameResult as wt, BatchTask as x, BatchEvent as xa, SecretInfo as xi, McpServerConfig as xn, SandboxFleetArtifact as xr, FileReadBatchResult as xt, BatchRunOptions as y, WriteManyOptions as ya, SearchMatch as yi, ListSandboxOptions as yn, SandboxEnvironment as yr, FileInfo as yt, CreateSandboxFleetWithCoordinatorOptions as z, SessionStatus as zi, PromptInputPart as zn, SandboxFleetTraceBundle as zr, FleetExecDispatchResult as zt };
6846
+ export { DownloadOptions as $, SnapshotDeleteOutcome as $i, PublicTemplateVersionInfo as $n, SandboxFleetTraceExport as $r, GitAuth as $t, CommitTaskSessionOptions as A, WriteManyFile as Aa, SandboxUser as Ai, NetworkManager as An, SandboxFleetArtifactSpec as Ar, FileUsageResult as At, CreateSandboxOptions as B, parseBackendType as Ba, SessionExecutionInfo as Bi, ProcessLogEntry as Bn, SandboxFleetMachineRecord as Br, FleetDriveTurnOutcome as Bt, BranchOptions as C, UploadOptions as Ca, SandboxTerminalManager as Ci, ListOptions as Cn, SandboxDeleteOptions as Cr, FileReadResult as Ct, CodeExecutionResult as D, WaitForRolloutOptions as Da, SandboxTraceEvent as Di, McpServerConfig as Dn, SandboxFleetAgent as Dr, FileTreeOptions as Dt, CodeExecutionOptions as E, WaitForOptions as Ea, SandboxTraceBundle as Ei, MAX_EGRESS_DENIALS_LIMIT as En, SandboxEvent as Er, FileTreeFile as Et, CreateIntelligenceReportOptions as F, BatchSidecarGroup as Fa, SendSessionMessageOptions as Fi, PreviewLinkManager as Fn, SandboxFleetDriverTimings as Fr, FleetAgentRunStatus as Ft, DeleteMatchingSandboxesFilter as G, SessionInterruptOptions as Gi, PromptInputPart as Gn, SandboxFleetParent as Gr, FleetPromptDispatchOptions as Gt, CreateTaskSessionOptions as H, SessionFailureReason as Hi, ProcessSignal as Hn, SandboxFleetManifest as Hr, FleetExecDispatchOptions as Ht, CreateRequestOptions as I, BatchTaskUsage as Ia, SendSessionMessageRequest as Ii, PreviewLinkWaitOptions as In, SandboxFleetInfo as Ir, FleetDispatchCancelResult as It, DeleteOptions as J, SessionMessageAdmission as Ji, ProvisionEvent as Jn, SandboxFleetProfileRef as Jr, FleetRunOptions as Jt, DeleteMatchingSandboxesOptions as K, SessionListOptions as Ki, PromptOptions as Kn, SandboxFleetPlacement as Kr, FleetPromptDispatchResult as Kt, CreateSandboxFleetOptions as L, PublicBatchRunRequest as La, SentSessionMessage as Li, Process as Ln, SandboxFleetIntelligenceEnvelope as Lr, FleetDispatchResultBuffer as Lt, ConversationTurnOptions as M, BatchBackendStats as Ma, SearchOptions as Mi, PermissionLevel as Mn, SandboxFleetDispatchFailureClass as Mr, FleetAgentId as Mt, ConversationTurnResult as N, BatchEvent as Na, SecretInfo as Ni, PermissionsManager as Nn, SandboxFleetDispatchResponse as Nr, FleetAgentPlacement as Nt, CodeLanguage as O, WorkspaceOperationLookup as Oa, SandboxTraceExport as Oi, MkdirOptions as On, SandboxFleetAgentSpec as Or, FileTreeResult as Ot, CreateGpuLeaseOptions as P, BatchEventDataMap as Pa, SecretsManager as Pi, PreviewLinkInfo as Pn, SandboxFleetDriverCapability as Pr, FleetAgentResult as Pt, DispatchedSession as Q, SnapshotDeleteAcknowledgement as Qi, PublicTemplateInfo as Qn, SandboxFleetTraceEvent as Qr, GPU_LEASE_PROVIDER_NAMES as Qt, CreateSandboxFleetTokenOptions as R, ALL_BACKEND_TYPES as Ra, SessionBackendCredentials as Ri, ProcessInfo as Rn, SandboxFleetMachine as Rr, FleetDispatchResultBufferOptions as Rt, BatchTaskResult as S, UpdateUserOptions as Sa, SandboxTerminalInfo as Si, ListMessagesOptions as Sn, SandboxDeleteAcknowledgement as Sr, FileReadError as St, ChunkedUploadResult as T, UsageInfo as Ta, SandboxTerminals as Ti, ListSandboxOptions as Tn, SandboxEnvironment as Tr, FileSystem as Tt, DeleteMatchingSandboxOutcome as U, SessionForkOptions as Ui, ProcessSpawnOptions as Un, SandboxFleetManifestMachine as Ur, FleetExecDispatchResult as Ut, CreateSessionOptions as V, SessionExecutionStatus as Vi, ProcessManager as Vn, SandboxFleetMachineSpec as Vr, FleetDriveTurnRequest as Vt, DeleteMatchingSandboxResult as W, SessionInfo as Wi, ProcessStatus as Wn, SandboxFleetOperationsSummary as Wr, FleetMachineId as Wt, DirectoryPermission as X, SessionResultOptions as Xi, ProvisionStatus as Xn, SandboxFleetToken as Xr, ForkIdempotency as Xt, DevServerInfo as Y, SessionMessageInputPart as Yi, ProvisionResult as Yn, SandboxFleetSpend as Yr, ForkCounts as Yt, DispatchPromptOptions as Z, SessionStatus as Zi, ProvisionStep as Zn, SandboxFleetTraceBundle as Zr, ForkLookupOptions as Zt, BatchBackend as _, TeePublicKey as _a, SandboxShapePreset as _i, IntelligenceReportBudget as _n, SSHCredentials as _r, ExecOptions as _t, AgentQuestionRequest as a, StartupDiagnostics as aa, SandboxFleetWorkspaceSnapshotResult as ai, GpuLease as an, ReconcileSandboxFleetsResult as ar, DurablePlan as at, BatchRunRequest as b, TokenUsage as ba, SandboxTerminalAttachOptions as bi, IntelligenceReportWindow as bn, SandboxCreateOutcome as br, FileReadBatchOptions as bt, AttachGpuLeaseOptions as c, SubscriptionInfo as ca, SandboxIntelligenceEnvelope as ci, GpuLeaseExecOptions as cn, ResumeOptions as cr, EffectiveBackend as ct, BackendConfig as d, TaskSessionFileChange as da, SandboxRemovalState as di, GpuLeaseProviderName as dn, RolloutOptions as dr, EgressDenial as dt, SnapshotIdempotency as ea, SandboxFleetTraceOptions as ei, GitBranch as en, PublishPublicTemplateOptions as er, DownloadProgress as et, BackendInfo as f, TaskSessionInfo as fa, SandboxResourceUsage as fi, GpuLeaseStatus as fn, RolloutScorer as fr, EgressManager as ft, BackendStatus as g, TeeAttestationResponse as ga, SandboxShape as gi, IntelligenceReport as gn, SSHCommandDescriptor as gr, ExactProcessSpawnOptions as gt, BackendRuntimeConfigUpdate as h, TeeAttestationReport as ha, SandboxRuntimeHealth as hi, InstalledTool as hn, RolloutTurnPart as hr, EventStreamOptions as ht, AgentApprovalRequirement as i, SshKeysManager as ia, SandboxFleetWorkspaceRestoreResult as ii, GitStatus as in, ReconcileSandboxFleetsOptions as ir, DriverType as it, CompletedTurnResult as j, WriteManyOptions as ja, SearchMatch as ji, NonHostAgentDriverConfig as jn, SandboxFleetCostEstimate as jr, FileWriteResult as jt, CodeResultPart as k, WriteFileOptions as ka, SandboxTraceOptions as ki, NetworkConfig as kn, SandboxFleetArtifact as kr, FileUsageOptions as kt, AttachSandboxFleetMachineOptions as l, TaskSessionChanges as la, SandboxPortBinding as li, GpuLeaseExecResult as ln, Rollout as lr, EffectiveBackendProfile as lt, BackendMcpServerStatus as m, TeeAttestationOptions as ma, SandboxRuntimeCapabilities as mi, HostAgentRuntimeBackend as mn, RolloutStatus as mr, EnsureDevServerOptions as mt, AccessPolicyRule as n, SnapshotOptions as na, SandboxFleetWorkspace as ni, GitConfig as nn, ReapExpiredSandboxFleetsOptions as nr, DriverConfig as nt, AgentRunStatus as o, StartupOperation as oa, SandboxIdentity as oi, GpuLeaseBilling as on, RenameOptions as or, DurablePlanDecisionResult as ot, BackendManager as p, TaskSessionProfile as pa, SandboxResources as pi, HostAgentDriverConfig as pn, RolloutStartResult as pr, EgressPolicy as pt, DeleteMatchingSandboxesResult as q, SessionMessage as qi, PromptResult as qn, SandboxFleetPolicy as qr, FleetRunEvent as qt, AddUserOptions as r, SnapshotResult as ra, SandboxFleetWorkspaceReconcileResult as ri, GitDiff as rn, ReapExpiredSandboxFleetsResult as rr, DriverInfo as rt, AgentToolInvocation as s, StorageConfig as sa, SandboxInfo as si, GpuLeaseCommandResult as sn, RestoreSnapshotOptions as sr, DurablePlanSnapshot as st, AcceleratorKind as t, SnapshotInfo as ta, SandboxFleetUsage as ti, GitCommit as tn, PublishPublicTemplateVersionOptions as tr, DriveTurnOptions as tt, BackendCapabilities as u, TaskSessionCommitResult as ua, SandboxPortPreviewLink as ui, GpuLeaseManager as un, RolloutChildResult as ur, EffectiveBackendSource as ut, BatchResult as v, TeePublicKeyResponse as va, SandboxShapesInfo as vi, IntelligenceReportCompareTo as vn, SandboxConfig as vr, ExecResult as vt, ChunkedUploadOptions as w, UploadProgress as wa, SandboxTerminalRequestOptions as wi, ListSandboxFleetOptions as wn, SandboxDeleteOutcome as wr, FileRenameResult as wt, BatchTask as x, TurnDriveResult as xa, SandboxTerminalCreateOptions as xi, JsonValue as xn, SandboxCreateReceipt as xr, FileReadBatchResult as xt, BatchRunOptions as y, TokenRefreshHandler as ya, SandboxStatus as yi, IntelligenceReportSubjectType as yn, SandboxConnection as yr, FileInfo as yt, CreateSandboxFleetWithCoordinatorOptions as z, BackendType as za, SessionEventStreamOptions as zi, ProcessListOptions as zn, SandboxFleetMachineMeteredUsage as zr, FleetDispatchStreamOptions as zt };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox",
3
- "version": "0.54.2-develop.20260927014918.a761d6e",
3
+ "version": "0.55.1",
4
4
  "description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -138,10 +138,10 @@
138
138
  "ws": "^8.20.0",
139
139
  "yjs": "13.6.30",
140
140
  "@repo/shared": "0.0.0",
141
- "@tangle-network/cli-agent-registry": "0.4.9",
141
+ "@tangle-network/cli-agent-registry": "0.4.10",
142
142
  "@tangle-network/agent-profile-materialize": "0.20.3",
143
143
  "@tangle-network/sse-core": "0.0.0",
144
- "@tangle-network/runtime-contracts": "0.8.1"
144
+ "@tangle-network/runtime-contracts": "0.8.2"
145
145
  },
146
146
  "scripts": {
147
147
  "build": "node scripts/build-dist.mjs",
@@ -156,6 +156,7 @@
156
156
  "test:e2e:collaboration": "pnpm --dir ../../../packages/sdk-collaboration build && SKIP_ORCHESTRATOR=true vitest run --config vitest.e2e.config.ts tests/e2e/collaboration-lifecycle.test.ts",
157
157
  "test:e2e:snapshots": "vitest run --config vitest.e2e.config.ts tests/e2e/snapshot-lifecycle.test.ts",
158
158
  "test:e2e:harness": "SKIP_ORCHESTRATOR=true vitest run --config vitest.e2e.config.ts tests/e2e/harness-selection-smoke.test.ts",
159
- "test:e2e:watch": "vitest --config vitest.e2e.config.ts"
159
+ "test:e2e:watch": "vitest --config vitest.e2e.config.ts",
160
+ "test:live:fleet": "vitest run --config vitest.live.config.ts tests/live/fleet.test.ts"
160
161
  }
161
162
  }