@tangle-network/sandbox 0.10.5 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -662,6 +662,25 @@ interface CreateSandboxOptions {
662
662
  * timeout-driven retries.
663
663
  */
664
664
  idempotencyKey?: string;
665
+ /**
666
+ * Auto-split inline file mounts out of an inline `backend.profile` object
667
+ * at create time, send the lean profile (mount refs stripped) in the
668
+ * create request, then write the deferred files back once the sandbox is
669
+ * running.
670
+ *
671
+ * When `true` (the default), a profile with sizeable inline mounts (e.g.
672
+ * skills, tool scripts) does not bloat the create POST; the SDK
673
+ * materializes those files via {@link FileSystem.writeMany} /
674
+ * {@link FileSystem.uploadData} after the sandbox reaches `running`. Only
675
+ * applies to an inline `AgentProfile` object on `backend.profile` — a
676
+ * named-profile string is never split, and the deprecated untyped
677
+ * `backend.inlineProfile` passthrough is not split either. Set `false`
678
+ * to send the full profile inline in the create request (no post-create
679
+ * materialization step).
680
+ *
681
+ * @default true
682
+ */
683
+ autoMaterializeProfileFiles?: boolean;
665
684
  }
666
685
  /**
667
686
  * Per-call overrides for {@link SandboxClient.create}.
@@ -1139,7 +1158,32 @@ interface InstalledTool {
1139
1158
  * - `awaiting_question` — the agent asked a question and the turn ended without
1140
1159
  * an answer. See {@link AgentQuestionRequest}.
1141
1160
  */
1142
- type AgentRunStatus = "success" | "failed" | "blocked_on_approval" | "awaiting_question";
1161
+ type AgentRunStatus = "success" | "failed" | "blocked_on_approval" | "awaiting_question" | "awaiting_plan_decision";
1162
+ interface DurablePlanSnapshot {
1163
+ id: string;
1164
+ revision: number;
1165
+ title?: string;
1166
+ body: string;
1167
+ submittedAt: string;
1168
+ }
1169
+ type DurablePlan = DurablePlanSnapshot & ({
1170
+ status: "pending";
1171
+ } | {
1172
+ status: "approved";
1173
+ decidedAt: string;
1174
+ } | {
1175
+ status: "rejected";
1176
+ decidedAt: string;
1177
+ feedback: string;
1178
+ } | {
1179
+ status: "superseded";
1180
+ supersededAt: string;
1181
+ supersededByPlanId: string;
1182
+ } | {
1183
+ status: "withdrawn";
1184
+ withdrawnAt: string;
1185
+ reason: string;
1186
+ });
1143
1187
  /**
1144
1188
  * A tool the agent invoked during a run. `isError` flags a failed call
1145
1189
  * (errored, timed out, or rejected — e.g. a hub approval gate). Failed tools
@@ -1201,6 +1245,8 @@ interface PromptResult {
1201
1245
  approval?: AgentApprovalRequirement;
1202
1246
  /** Set when `status === "awaiting_question"`. */
1203
1247
  question?: AgentQuestionRequest;
1248
+ /** Set when `status === "awaiting_plan_decision"`. */
1249
+ plan?: DurablePlanSnapshot;
1204
1250
  /** Trace ID for debugging */
1205
1251
  traceId?: string;
1206
1252
  /** Duration in milliseconds */
@@ -1254,18 +1300,19 @@ interface PromptOptions {
1254
1300
  /** AbortSignal for cancellation */
1255
1301
  signal?: AbortSignal;
1256
1302
  /**
1257
- * Stable execution id for cross-process reconnect. When passed, the same
1258
- * id on a retry lands on the same substrate execution — the platform
1259
- * replays its buffered event stream instead of spawning a duplicate run.
1260
- * Forwarded as the `X-Execution-ID` header. Omit to let the SDK extract
1261
- * one from the response stream's `execution.started` event (in-call
1262
- * reconnect only).
1303
+ * Stable execution id for tracing a first dispatch or selecting an existing
1304
+ * execution for replay. Forwarded as `X-Execution-ID` on a first dispatch.
1305
+ * When combined with `lastEventId`, the SDK replays the existing execution
1306
+ * without sending the prompt again. An execution ID alone does not make a
1307
+ * repeated POST idempotent; use `turnId` for application-level retries.
1308
+ * Omit to let the SDK read the id from `execution.started` for in-call
1309
+ * reconnects.
1263
1310
  */
1264
1311
  executionId?: string;
1265
1312
  /**
1266
- * Last event id the caller has already acknowledged. The substrate
1267
- * replays strictly after this id on reconnect. Forwarded as the
1268
- * `Last-Event-ID` header. Omit on first attempt.
1313
+ * Last event id the caller has already acknowledged. Requires `executionId`;
1314
+ * the SDK replays strictly after this id without dispatching a new prompt.
1315
+ * Omit on the first attempt.
1269
1316
  */
1270
1317
  lastEventId?: string;
1271
1318
  /**
@@ -1863,6 +1910,9 @@ interface SessionEventStreamOptions {
1863
1910
  /** Replay starting from this event id (inclusive). Omit to start at
1864
1911
  * the live tail. Useful for reconnect-after-disconnect flows. */
1865
1912
  since?: string;
1913
+ /** Restrict replay to one execution within the session. Required with
1914
+ * `since` when attaching after a server-dispatched turn has already begun. */
1915
+ executionId?: string;
1866
1916
  /** Cancel the stream by aborting this signal. */
1867
1917
  signal?: AbortSignal;
1868
1918
  }
@@ -2013,6 +2063,10 @@ type TurnDriveResult = {
2013
2063
  state: "completed"; /** Final assistant text of the turn. */
2014
2064
  text: string; /** The full turn payload (text, toolInvocations, tokenUsage, etc.). */
2015
2065
  result: Record<string, unknown>;
2066
+ } | {
2067
+ state: "awaiting_plan_decision";
2068
+ plan: DurablePlanSnapshot;
2069
+ result: Record<string, unknown>;
2016
2070
  } | {
2017
2071
  state: "running"; /** When the session began executing, if the runtime reported it. */
2018
2072
  startedAt?: Date; /** Milliseconds since `startedAt` at the moment of the poll. */
@@ -2022,18 +2076,18 @@ type TurnDriveResult = {
2022
2076
  error: string;
2023
2077
  };
2024
2078
  /**
2025
- * Scope of a `box.mintScopedToken()` request. Each value narrows the token's
2026
- * authority compared to the full sandbox bearer. `session-runtime` permits
2027
- * only typed message, workspace-file, and terminal operations for one session.
2079
+ * Scope of a `box.mintScopedToken()` request. `session` and `project` mint
2080
+ * SessionGateway read tokens. `session-runtime` and `read-only` mint sidecar
2081
+ * capability tokens for browser-safe runtime access.
2028
2082
  */
2029
2083
  type ScopedTokenScope = "session" | "session-runtime" | "project" | "read-only";
2030
2084
  /**
2031
2085
  * Options for `box.mintScopedToken()`.
2032
2086
  */
2033
2087
  interface MintScopedTokenOptions {
2034
- /** Scope to mint. `session` narrows to a single session id; `project`
2035
- * grants read access to the whole sandbox; `read-only` is a project
2036
- * scope without prompt-dispatch capabilities. */
2088
+ /** Scope to mint. `session` and `project` are for SessionGateway streams;
2089
+ * `session-runtime` permits typed files, messages, and terminals for one
2090
+ * session; `read-only` permits read-only runtime requests. */
2037
2091
  scope: ScopedTokenScope;
2038
2092
  /** Required when `scope` is `session` or `session-runtime`. */
2039
2093
  sessionId?: string;
@@ -2043,18 +2097,17 @@ interface MintScopedTokenOptions {
2043
2097
  ttlMinutes?: number;
2044
2098
  }
2045
2099
  /**
2046
- * Returned by `box.mintScopedToken()`. The token verifies against the
2047
- * same sidecar middleware that already gates ProductTokenIssuer-issued
2048
- * JWTs — no new sidecar surface.
2100
+ * Returned by `box.mintScopedToken()`. Use session/project tokens with
2101
+ * `SessionGatewayClient`; use session-runtime/read-only tokens with
2102
+ * `SandboxRuntimeClient`.
2049
2103
  */
2050
2104
  interface ScopedToken {
2051
- /** Bearer token (JWT). Send as `Authorization: Bearer <token>` or
2052
- * via the `EventSource` URL with token query param. */
2105
+ /** Bearer token (JWT) for the consumer selected by `scope`. */
2053
2106
  token: string;
2054
2107
  /** When the token expires. */
2055
2108
  expiresAt: Date;
2056
- /** The runtime's direct edge URL. Matches `SandboxConnection.runtimeUrl`
2057
- * (the SDK's canonical public name for this URL). */
2109
+ /** The runtime's direct edge URL. Use with runtime scopes; session/project
2110
+ * tokens instead connect to the Sandbox API's `/session` WebSocket. */
2058
2111
  runtimeUrl: string;
2059
2112
  /** Browser-safe Sandbox API proxy base for terminal and runtime requests. */
2060
2113
  sidecarProxyUrl: string;
@@ -2586,7 +2639,7 @@ interface SandboxFleetArtifactSpec {
2586
2639
  */
2587
2640
  path: string;
2588
2641
  label?: string;
2589
- /** Maximum allowed artifact content size in bytes. Defaults to 5 MiB. */
2642
+ /** Maximum allowed artifact content size in bytes. Defaults to 10 MiB. */
2590
2643
  maxBytes?: number;
2591
2644
  }
2592
2645
  interface SandboxFleetArtifact extends SandboxFleetArtifactSpec {
@@ -3585,8 +3638,6 @@ interface EgressPolicy {
3585
3638
  * Ignored in `open` and `blocked` modes.
3586
3639
  */
3587
3640
  allowDomains?: string[];
3588
- /** Include platform-default and secret-derived domains. Defaults to true. */
3589
- includeImplicitDomains?: boolean;
3590
3641
  /**
3591
3642
  * Denied domains. Only enforced when the proxy supports denylist transforms.
3592
3643
  * @deprecated Deferred — not supported by iron-proxy v0.41.
@@ -3974,16 +4025,6 @@ interface ProcessSpawnOptions {
3974
4025
  /** Timeout in milliseconds (0 = no timeout) */
3975
4026
  timeoutMs?: number;
3976
4027
  }
3977
- interface ExactProcessSpawnOptions {
3978
- /** Working directory for the process. */
3979
- cwd?: string;
3980
- /** The complete process environment. Host variables are not inherited. */
3981
- env?: Record<string, string>;
3982
- /** Optional UTF-8 stdin. The stream is always closed after spawn. */
3983
- stdin?: string;
3984
- /** Timeout in milliseconds. */
3985
- timeoutMs?: number;
3986
- }
3987
4028
  /**
3988
4029
  * Options for running Python code.
3989
4030
  *
@@ -4186,8 +4227,6 @@ interface ProcessManager {
4186
4227
  * @returns Process handle for control and monitoring
4187
4228
  */
4188
4229
  spawn(command: string, options?: ProcessSpawnOptions): Promise<Process>;
4189
- /** Spawn without shell parsing or inherited environment variables. */
4190
- spawnExact(executable: string, args: readonly string[], options?: ExactProcessSpawnOptions): Promise<Process>;
4191
4230
  /**
4192
4231
  * Run Python code directly.
4193
4232
  * Blocks until completion and returns result.
@@ -4466,6 +4505,36 @@ interface UploadProgress {
4466
4505
  /** Percentage complete (0-100) */
4467
4506
  percentage: number;
4468
4507
  }
4508
+ /**
4509
+ * Options for {@link FileSystem.uploadData}.
4510
+ */
4511
+ interface ChunkedUploadOptions {
4512
+ /** Unix mode bits applied to the file after upload, e.g. 0o644. */
4513
+ mode?: number;
4514
+ /** Progress callback fired after each part completes. On the rare
4515
+ * checksum-mismatch recovery (one automatic full re-upload),
4516
+ * `bytesUploaded` restarts from 0 for the second pass. */
4517
+ onProgress?: (progress: UploadProgress) => void;
4518
+ /** Cancel the upload. A pending upload session is best-effort deleted
4519
+ * server-side when the signal fires mid-flow. */
4520
+ signal?: AbortSignal;
4521
+ /** Delay between part PUTs (ms) to pace bursts. 0 disables pacing (default). */
4522
+ paceMs?: number;
4523
+ /** Max retries per part on a transient error before failing loud. Default 4. */
4524
+ maxRetries?: number;
4525
+ }
4526
+ /**
4527
+ * Result of a successful {@link FileSystem.uploadData} call — the
4528
+ * upload-session commit response.
4529
+ */
4530
+ interface ChunkedUploadResult {
4531
+ /** The path the runtime wrote the assembled payload to. */
4532
+ path: string;
4533
+ /** Total assembled size in bytes. */
4534
+ size: number;
4535
+ /** Server-computed content hash of the assembled payload. */
4536
+ hash: string;
4537
+ }
4469
4538
  /**
4470
4539
  * Options for downloading files.
4471
4540
  */
@@ -4574,10 +4643,12 @@ interface RenameOptions {
4574
4643
  interface WriteManyFile {
4575
4644
  /** Destination path. Relative paths resolve from the workspace root. */
4576
4645
  path: string;
4577
- /** File content (UTF-8). */
4646
+ /** File content: UTF-8 by default, or base64 when `encoding: "base64"` (for binary payloads). */
4578
4647
  content: string;
4579
4648
  /** Unix mode bits applied after write, e.g. 0o755. */
4580
4649
  mode?: number;
4650
+ /** Encoding of `content` on the wire. */
4651
+ encoding?: "utf8" | "base64";
4581
4652
  }
4582
4653
  /** Options for {@link FileSystem.write}. */
4583
4654
  interface WriteFileOptions {
@@ -4668,6 +4739,35 @@ interface FileSystem {
4668
4739
  * ```
4669
4740
  */
4670
4741
  upload(localPath: string, remotePath: string, options?: UploadOptions): Promise<void>;
4742
+ /**
4743
+ * Upload in-memory binary or text data to the sandbox over the chunked
4744
+ * upload-session protocol, without touching the local filesystem.
4745
+ *
4746
+ * Browser/Worker-safe (no `node:` APIs) — this is the sanctioned path for
4747
+ * delivering payloads over ~1 MiB from a browser tab, a Worker, or any
4748
+ * runtime without `node:fs`, where {@link FileSystem.upload}'s local-file
4749
+ * read isn't available. Binary-safe: accepts a `Blob`, `ArrayBuffer`,
4750
+ * `ArrayBufferView`, or UTF-8 `string`. The upload is chunked into
4751
+ * server-sized parts transparently — callers see one call and one
4752
+ * awaited result — and verified end-to-end with a whole-payload SHA-256
4753
+ * at commit. Works identically whether the sandbox is reached through
4754
+ * the gateway proxy or a direct sidecar connection.
4755
+ *
4756
+ * @param remotePath - Destination path in the sandbox.
4757
+ * @param data - Payload to upload. Strings encode as UTF-8.
4758
+ * @param options - Chunking, retry, progress, and cancellation options.
4759
+ * @throws {SandboxError} `PAYLOAD_TOO_LARGE` immediately, before any
4760
+ * request, if the payload exceeds the chunked-upload session cap.
4761
+ *
4762
+ * @example
4763
+ * ```typescript
4764
+ * const blob = await fetch("https://example.com/model.bin").then((r) => r.blob());
4765
+ * await box.fs.uploadData("/workspace/models/model.bin", blob, {
4766
+ * onProgress: (p) => console.log(`${p.percentage.toFixed(1)}%`),
4767
+ * });
4768
+ * ```
4769
+ */
4770
+ uploadData(remotePath: string, data: Blob | ArrayBuffer | ArrayBufferView | string, options?: ChunkedUploadOptions): Promise<ChunkedUploadResult>;
4671
4771
  /**
4672
4772
  * Download a file from the sandbox.
4673
4773
  * Handles binary files correctly.
@@ -4894,4 +4994,4 @@ interface CodeExecutionOptions {
4894
4994
  idempotencyKey?: string;
4895
4995
  }
4896
4996
  //#endregion
4897
- export { EventStreamOptions as $, SandboxFleetInfo as $n, SessionListOptions as $r, MkdirOptions as $t, CommitTaskSessionOptions as A, WaitForOptions as Ai, RestoreSnapshotOptions as An, SandboxStatus as Ar, GpuLeaseBilling as At, CreateTaskSessionOptions as B, AgentProfileMcpServer as Bi, SSHCommandDescriptor as Bn, ScopedToken as Br, InstalledTool as Bt, BatchTaskUsage as C, TokenRefreshHandler as Ci, PublishPublicTemplateOptions as Cn, SandboxPortPreviewLink as Cr, GitAuth as Ct, CodeLanguage as D, UploadOptions as Di, ReconcileSandboxFleetsOptions as Dn, SandboxRuntimeHealth as Dr, GitDiff as Dt, CodeExecutionResult as E, UpdateUserOptions as Ei, ReapExpiredSandboxFleetsResult as En, SandboxResources as Er, GitConfig as Et, CreateSandboxFleetOptions as F, AgentProfile as Fi, RolloutScorer as Fn, SandboxTraceBundle as Fr, GpuLeaseProviderName as Ft, DownloadOptions as G, AgentProfileResources as Gi, SandboxEvent as Gn, SecretsManager as Gr, IntelligenceReportWindow as Gt, DirectoryPermission as H, AgentProfilePermissionValue as Hi, SandboxClientConfig as Hn, SearchMatch as Hr, IntelligenceReportBudget as Ht, CreateSandboxFleetTokenOptions as I, AgentProfileCapabilities as Ii, RolloutStartResult as In, SandboxTraceEvent as Ir, GpuLeaseStatus as It, DriverConfig as J, AgentSubagentProfile as Ji, SandboxFleetCostEstimate as Jn, SentSessionMessage as Jr, ListOptions as Jt, DownloadProgress as K, AgentProfileValidationIssue as Ki, SandboxFleetArtifact as Kn, SendSessionMessageOptions as Kr, JsonValue as Kt, CreateSandboxFleetWithCoordinatorOptions as L, AgentProfileConfidential as Li, RolloutStatus as Ln, SandboxTraceExport as Lr, GpuType as Lt, CreateGpuLeaseOptions as M, WriteFileOptions as Mi, Rollout as Mn, SandboxTerminalInfo as Mr, GpuLeaseExecOptions as Mt, CreateIntelligenceReportOptions as N, WriteManyFile as Ni, RolloutChildResult as Nn, SandboxTerminalManager as Nr, GpuLeaseExecResult as Nt, CodeResult as O, UploadProgress as Oi, ReconcileSandboxFleetsResult as On, SandboxRuntimeProfile as Or, GitStatus as Ot, CreateRequestOptions as P, WriteManyOptions as Pi, RolloutOptions as Pn, SandboxTerminalRequestOptions as Pr, GpuLeaseManager as Pt, EgressPolicy as Q, mergeAgentProfiles as Qi, SandboxFleetDriverTimings as Qn, SessionInfo as Qr, MintScopedTokenOptions as Qt, CreateSandboxOptions as R, AgentProfileConnection as Ri, RolloutTurnPart as Rn, SandboxTraceOptions as Rr, HostAgentDriverConfig as Rt, BatchTaskResult as S, TeePublicKeyResponse as Si, PublicTemplateVersionInfo as Sn, SandboxPortBinding as Sr, GPU_LEASE_PROVIDER_NAMES as St, CodeExecutionOptions as T, TurnDriveResult as Ti, ReapExpiredSandboxFleetsOptions as Tn, SandboxResourceUsage as Tr, GitCommit as Tt, DispatchPromptOptions as U, AgentProfilePrompt as Ui, SandboxConnection as Un, SearchOptions as Ur, IntelligenceReportCompareTo as Ut, DeleteOptions as V, AgentProfileModelHints as Vi, SSHCredentials as Vn, ScopedTokenScope as Vr, IntelligenceReport as Vt, DispatchedSession as W, AgentProfileResourceRef as Wi, SandboxEnvironment as Wn, SecretInfo as Wr, IntelligenceReportSubjectType as Wt, DriverType as X, defineGitHubResource as Xi, SandboxFleetDispatchResponse as Xn, SessionEventStreamOptions as Xr, ListSandboxOptions as Xt, DriverInfo as Y, defineAgentProfile as Yi, SandboxFleetDispatchFailureClass as Yn, SessionBackendCredentials as Yr, ListSandboxFleetOptions as Yt, EgressManager as Z, defineInlineResource as Zi, SandboxFleetDriverCapability as Zn, SessionForkOptions as Zr, McpServerConfig as Zt, BatchResult as _, TaskSessionProfile as _i, ProvisionEvent as _n, SandboxFleetWorkspaceRestoreResult as _r, FleetExecDispatchOptions as _t, AttachSandboxFleetMachineOptions as a, SnapshotResult as ai, PreviewLinkInfo as an, SandboxFleetManifest as ar, FileReadError as at, BatchSidecarGroup as b, TeeAttestationResponse as bi, ProvisionStep as bn, SandboxIntelligenceEnvelope as br, FleetPromptDispatchOptions as bt, BackendInfo as c, StartupOperation as ci, ProcessInfo as cn, SandboxFleetPolicy as cr, FileSystem as ct, BackendType as d, TaskOptions as di, ProcessSignal as dn, SandboxFleetTraceEvent as dr, FileTreeResult as dt, SessionMessage as ei, NetworkConfig as en, SandboxFleetIntelligenceEnvelope as er, ExecOptions as et, BatchBackend as f, TaskResult as fi, ProcessSpawnOptions as fn, SandboxFleetTraceExport as fr, FileWriteResult as ft, BatchOptions as g, TaskSessionInfo as gi, PromptResult as gn, SandboxFleetWorkspaceReconcileResult as gr, FleetDispatchStreamOptions as gt, BatchEventDataMap as h, TaskSessionFileChange as hi, PromptOptions as hn, SandboxFleetWorkspace as hr, FleetDispatchResultBufferOptions as ht, AttachGpuLeaseOptions as i, SnapshotOptions as ii, PermissionsManager as in, SandboxFleetMachineSpec as ir, FileReadBatchResult as it, CompletedTurnResult as j, WaitForRolloutOptions as ji, ResumeOptions as jn, SandboxTerminalCreateOptions as jr, GpuLeaseCommandResult as jt, CodeResultPart as k, UsageInfo as ki, RenameOptions as kn, SandboxRuntimeProfileList as kr, GpuLease as kt, BackendManager as l, StorageConfig as li, ProcessLogEntry as ln, SandboxFleetToken as lr, FileTreeFile as lt, BatchEvent as m, TaskSessionCommitResult as mi, PromptInputPart as mn, SandboxFleetUsage as mr, FleetDispatchResultBuffer as mt, AccessPolicyRule as n, SessionStatus as ni, NonHostAgentDriverConfig as nn, SandboxFleetMachineMeteredUsage as nr, FileInfo as nt, BackendCapabilities as o, SshKeysManager as oi, PreviewLinkManager as on, SandboxFleetManifestMachine as or, FileReadResult as ot, BatchBackendStats as p, TaskSessionChanges as pi, ProcessStatus as pn, SandboxFleetTraceOptions as pr, FleetDispatchCancelResult as pt, DriveTurnOptions as q, AgentProfileValidationResult as qi, SandboxFleetArtifactSpec as qn, SendSessionMessageRequest as qr, ListMessagesOptions as qt, AddUserOptions as r, SnapshotInfo as ri, PermissionLevel as rn, SandboxFleetMachineRecord as rr, FileReadBatchOptions as rt, BackendConfig as s, StartupDiagnostics as si, Process as sn, SandboxFleetOperationsSummary as sr, FileRenameResult as st, AcceleratorKind as t, SessionMessageInputPart as ti, NetworkManager as tn, SandboxFleetMachine as tr, ExecResult as tt, BackendStatus as u, SubscriptionInfo as ui, ProcessManager as un, SandboxFleetTraceBundle as ur, FileTreeOptions as ut, BatchRunOptions as v, TeeAttestationOptions as vi, ProvisionResult as vn, SandboxFleetWorkspaceSnapshotResult as vr, FleetExecDispatchResult as vt, BranchOptions as w, ToolsConfig as wi, PublishPublicTemplateVersionOptions as wn, SandboxProfileSummary as wr, GitBranch as wt, BatchTask as x, TeePublicKey as xi, PublicTemplateInfo as xn, SandboxPermissionsConfig as xr, FleetPromptDispatchResult as xt, BatchRunRequest as y, TeeAttestationReport as yi, ProvisionStatus as yn, SandboxInfo as yr, FleetMachineId as yt, CreateSessionOptions as z, AgentProfileFileMount as zi, RunCodeOptions as zn, SandboxUser as zr, HostAgentRuntimeBackend as zt };
4997
+ export { DurablePlan as $, defineGitHubResource as $i, SandboxFleetDispatchResponse as $n, SessionEventStreamOptions as $r, ListSandboxOptions as $t, CodeResult as A, UploadOptions as Ai, ReconcileSandboxFleetsOptions as An, SandboxRuntimeHealth as Ar, GitDiff as At, CreateSandboxOptions as B, AgentProfileConfidential as Bi, RolloutStatus as Bn, SandboxTraceExport as Br, GpuType as Bt, BatchTaskUsage as C, TeeAttestationResponse as Ci, ProvisionStep as Cn, SandboxIntelligenceEnvelope as Cr, FleetPromptDispatchOptions as Ct, CodeExecutionOptions as D, ToolsConfig as Di, PublishPublicTemplateVersionOptions as Dn, SandboxProfileSummary as Dr, GitBranch as Dt, ChunkedUploadResult as E, TokenRefreshHandler as Ei, PublishPublicTemplateOptions as En, SandboxPortPreviewLink as Er, GitAuth as Et, CreateIntelligenceReportOptions as F, WriteFileOptions as Fi, Rollout as Fn, SandboxTerminalInfo as Fr, GpuLeaseExecOptions as Ft, DispatchPromptOptions as G, AgentProfilePermissionValue as Gi, SandboxClientConfig as Gn, SearchMatch as Gr, IntelligenceReportBudget as Gt, CreateTaskSessionOptions as H, AgentProfileFileMount as Hi, RunCodeOptions as Hn, SandboxUser as Hr, HostAgentRuntimeBackend as Ht, CreateRequestOptions as I, WriteManyFile as Ii, RolloutChildResult as In, SandboxTerminalManager as Ir, GpuLeaseExecResult as It, DownloadProgress as J, AgentProfileResources as Ji, SandboxEvent as Jn, SecretsManager as Jr, IntelligenceReportWindow as Jt, DispatchedSession as K, AgentProfilePrompt as Ki, SandboxConnection as Kn, SearchOptions as Kr, IntelligenceReportCompareTo as Kt, CreateSandboxFleetOptions as L, WriteManyOptions as Li, RolloutOptions as Ln, SandboxTerminalRequestOptions as Lr, GpuLeaseManager as Lt, CommitTaskSessionOptions as M, UsageInfo as Mi, RenameOptions as Mn, SandboxRuntimeProfileList as Mr, GpuLease as Mt, CompletedTurnResult as N, WaitForOptions as Ni, RestoreSnapshotOptions as Nn, SandboxStatus as Nr, GpuLeaseBilling as Nt, CodeExecutionResult as O, TurnDriveResult as Oi, ReapExpiredSandboxFleetsOptions as On, SandboxResourceUsage as Or, GitCommit as Ot, CreateGpuLeaseOptions as P, WaitForRolloutOptions as Pi, ResumeOptions as Pn, SandboxTerminalCreateOptions as Pr, GpuLeaseCommandResult as Pt, DriverType as Q, defineAgentProfile as Qi, SandboxFleetDispatchFailureClass as Qn, SessionBackendCredentials as Qr, ListSandboxFleetOptions as Qt, CreateSandboxFleetTokenOptions as R, AgentProfile as Ri, RolloutScorer as Rn, SandboxTraceBundle as Rr, GpuLeaseProviderName as Rt, BatchTaskResult as S, TeeAttestationReport as Si, ProvisionStatus as Sn, SandboxInfo as Sr, FleetMachineId as St, ChunkedUploadOptions as T, TeePublicKeyResponse as Ti, PublicTemplateVersionInfo as Tn, SandboxPortBinding as Tr, GPU_LEASE_PROVIDER_NAMES as Tt, DeleteOptions as U, AgentProfileMcpServer as Ui, SSHCommandDescriptor as Un, ScopedToken as Ur, InstalledTool as Ut, CreateSessionOptions as V, AgentProfileConnection as Vi, RolloutTurnPart as Vn, SandboxTraceOptions as Vr, HostAgentDriverConfig as Vt, DirectoryPermission as W, AgentProfileModelHints as Wi, SSHCredentials as Wn, ScopedTokenScope as Wr, IntelligenceReport as Wt, DriverConfig as X, AgentProfileValidationResult as Xi, SandboxFleetArtifactSpec as Xn, SendSessionMessageRequest as Xr, ListMessagesOptions as Xt, DriveTurnOptions as Y, AgentProfileValidationIssue as Yi, SandboxFleetArtifact as Yn, SendSessionMessageOptions as Yr, JsonValue as Yt, DriverInfo as Z, AgentSubagentProfile as Zi, SandboxFleetCostEstimate as Zn, SentSessionMessage as Zr, ListOptions as Zt, BatchResult as _, TaskSessionCommitResult as _i, PromptInputPart as _n, SandboxFleetUsage as _r, FleetDispatchResultBuffer as _t, AttachSandboxFleetMachineOptions as a, SessionStatus as ai, NonHostAgentDriverConfig as an, SandboxFleetMachineMeteredUsage as ar, FileInfo as at, BatchSidecarGroup as b, TaskSessionProfile as bi, ProvisionEvent as bn, SandboxFleetWorkspaceRestoreResult as br, FleetExecDispatchOptions as bt, BackendInfo as c, SnapshotResult as ci, PreviewLinkInfo as cn, SandboxFleetManifest as cr, FileReadError as ct, BackendType as d, StartupOperation as di, ProcessInfo as dn, SandboxFleetPolicy as dr, FileSystem as dt, defineInlineResource as ea, SessionForkOptions as ei, McpServerConfig as en, SandboxFleetDriverCapability as er, EgressManager as et, BatchBackend as f, StorageConfig as fi, ProcessLogEntry as fn, SandboxFleetToken as fr, FileTreeFile as ft, BatchOptions as g, TaskSessionChanges as gi, ProcessStatus as gn, SandboxFleetTraceOptions as gr, FleetDispatchCancelResult as gt, BatchEventDataMap as h, TaskResult as hi, ProcessSpawnOptions as hn, SandboxFleetTraceExport as hr, FileWriteResult as ht, AttachGpuLeaseOptions as i, SessionMessageInputPart as ii, NetworkManager as in, SandboxFleetMachine as ir, ExecResult as it, CodeResultPart as j, UploadProgress as ji, ReconcileSandboxFleetsResult as jn, SandboxRuntimeProfile as jr, GitStatus as jt, CodeLanguage as k, UpdateUserOptions as ki, ReapExpiredSandboxFleetsResult as kn, SandboxResources as kr, GitConfig as kt, BackendManager as l, SshKeysManager as li, PreviewLinkManager as ln, SandboxFleetManifestMachine as lr, FileReadResult as lt, BatchEvent as m, TaskOptions as mi, ProcessSignal as mn, SandboxFleetTraceEvent as mr, FileTreeResult as mt, AccessPolicyRule as n, SessionListOptions as ni, MkdirOptions as nn, SandboxFleetInfo as nr, EventStreamOptions as nt, BackendCapabilities as o, SnapshotInfo as oi, PermissionLevel as on, SandboxFleetMachineRecord as or, FileReadBatchOptions as ot, BatchBackendStats as p, SubscriptionInfo as pi, ProcessManager as pn, SandboxFleetTraceBundle as pr, FileTreeOptions as pt, DownloadOptions as q, AgentProfileResourceRef as qi, SandboxEnvironment as qn, SecretInfo as qr, IntelligenceReportSubjectType as qt, AddUserOptions as r, SessionMessage as ri, NetworkConfig as rn, SandboxFleetIntelligenceEnvelope as rr, ExecOptions as rt, BackendConfig as s, SnapshotOptions as si, PermissionsManager as sn, SandboxFleetMachineSpec as sr, FileReadBatchResult as st, AcceleratorKind as t, mergeAgentProfiles as ta, SessionInfo as ti, MintScopedTokenOptions as tn, SandboxFleetDriverTimings as tr, EgressPolicy as tt, BackendStatus as u, StartupDiagnostics as ui, Process as un, SandboxFleetOperationsSummary as ur, FileRenameResult as ut, BatchRunOptions as v, TaskSessionFileChange as vi, PromptOptions as vn, SandboxFleetWorkspace as vr, FleetDispatchResultBufferOptions as vt, BranchOptions as w, TeePublicKey as wi, PublicTemplateInfo as wn, SandboxPermissionsConfig as wr, FleetPromptDispatchResult as wt, BatchTask as x, TeeAttestationOptions as xi, ProvisionResult as xn, SandboxFleetWorkspaceSnapshotResult as xr, FleetExecDispatchResult as xt, BatchRunRequest as y, TaskSessionInfo as yi, PromptResult as yn, SandboxFleetWorkspaceReconcileResult as yr, FleetDispatchStreamOptions as yt, CreateSandboxFleetWithCoordinatorOptions as z, AgentProfileCapabilities as zi, RolloutStartResult as zn, SandboxTraceEvent as zr, GpuLeaseStatus as zt };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox",
3
- "version": "0.10.5",
3
+ "version": "0.11.0",
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",
@@ -88,7 +88,7 @@
88
88
  },
89
89
  "dependencies": {
90
90
  "@tangle-network/agent-core": "^0.4.0",
91
- "@tangle-network/agent-interface": "^0.21.0"
91
+ "@tangle-network/agent-interface": "0.30.0"
92
92
  },
93
93
  "peerDependencies": {
94
94
  "@mastra/core": "^1.36.0",
@@ -124,7 +124,8 @@
124
124
  "typescript": "^6.0.3",
125
125
  "vitest": "^4.1.5",
126
126
  "ws": "^8.20.0",
127
- "yjs": "13.6.30"
127
+ "yjs": "13.6.30",
128
+ "@tangle-network/runtime-contracts": "0.1.0"
128
129
  },
129
130
  "scripts": {
130
131
  "build": "tsdown",