@tangle-network/sandbox 1.0.433 → 1.0.435

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.
@@ -1,7 +1,7 @@
1
1
  import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-CwOVRwDi.js";
2
2
  import { Ga as CodeResultPart, Ua as CodeExecutionResult, Wa as CodeLanguage, _t as SandboxFleetParent, ha as BackendConfig, mr as CodeExecutionOptions, ra as SessionListOptions, ro as BackendType, ta as SessionInfo } from "../types-CqGEzcla.js";
3
- import { t as Sandbox } from "../client-DB31ZakX.js";
4
- import { u as PreviewAuthorizer } from "../preview-DSOT0YUz.js";
3
+ import { t as Sandbox } from "../client-Cb4JrGOP.js";
4
+ import { u as PreviewAuthorizer } from "../preview-BrHN0o-F.js";
5
5
  import * as _$_modelcontextprotocol_sdk_server_index_js0 from "@modelcontextprotocol/sdk/server/index.js";
6
6
  import { JSONSchema } from "zod/v4/core";
7
7
  import { ToolSet } from "ai";
@@ -1,8 +1,8 @@
1
- import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-SgMBtCB3.js";
2
- import { D as assertCurrentBackendType } from "../interactive-controller-5Bq8peF1.js";
3
- import { t as SandboxInstance } from "../sandbox-CqrI4_Hm.js";
1
+ import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-DoJeZvtL.js";
2
+ import { D as assertCurrentBackendType } from "../interactive-controller-b3c8I1wn.js";
3
+ import { t as SandboxInstance } from "../sandbox-ErD3PLNd.js";
4
4
  import { O as ValidationError, T as StateError, v as NotFoundError } from "../errors-DNmfKxwE.js";
5
- import { t as Sandbox } from "../client-C-i1Sw0M.js";
5
+ import { t as Sandbox } from "../client-8gc0xXJx.js";
6
6
  import { z } from "zod";
7
7
  //#region src/agent/instances.ts
8
8
  const managers = /* @__PURE__ */ new WeakMap();
@@ -1,2 +1,2 @@
1
- import { _ as publishAgentPreview, a as previewOperationTool, c as AgentPreviewOptions, d as PreviewExecutionContext, f as PublishAgentPreviewOptions, g as listAgentPreviews, h as getAgentPreview, i as PreviewTool, l as PreviewAuthorizationRequest, m as ensureAgentPreview, n as PREVIEW_MCP_ALIAS, o as previewToolsForProfile, p as assertPreviewId, r as PREVIEW_TOOLS, s as AgentPreviewError, t as servePreviewMcp, u as PreviewAuthorizer, v as removeAgentPreview, y as resolveSelfSandbox } from "../preview-DSOT0YUz.js";
1
+ import { _ as publishAgentPreview, a as previewOperationTool, c as AgentPreviewOptions, d as PreviewExecutionContext, f as PublishAgentPreviewOptions, g as listAgentPreviews, h as getAgentPreview, i as PreviewTool, l as PreviewAuthorizationRequest, m as ensureAgentPreview, n as PREVIEW_MCP_ALIAS, o as previewToolsForProfile, p as assertPreviewId, r as PREVIEW_TOOLS, s as AgentPreviewError, t as servePreviewMcp, u as PreviewAuthorizer, v as removeAgentPreview, y as resolveSelfSandbox } from "../preview-BrHN0o-F.js";
2
2
  export { AgentPreviewError, AgentPreviewOptions, PREVIEW_MCP_ALIAS, PREVIEW_TOOLS, PreviewAuthorizationRequest, PreviewAuthorizer, PreviewExecutionContext, PreviewTool, PublishAgentPreviewOptions, assertPreviewId, ensureAgentPreview, getAgentPreview, listAgentPreviews, previewOperationTool, previewToolsForProfile, publishAgentPreview, removeAgentPreview, resolveSelfSandbox, servePreviewMcp };
@@ -66,7 +66,7 @@ async function servePreviewMcp(request, config) {
66
66
  if (typeof config.authorize !== "function") throw new Error("Preview MCP requires a host authorization callback");
67
67
  const tools = config.tools ?? PREVIEW_TOOLS;
68
68
  if (!tools.length || tools.some((tool) => !PREVIEW_TOOLS.includes(tool))) throw new Error("Preview MCP requires an explicit nonempty preview-only tool grant");
69
- const [{ createMcpServer }, { WebStandardStreamableHTTPServerTransport }] = await Promise.all([import("../mcp-local-SgMBtCB3.js").then((n) => n.n), import("@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js")]);
69
+ const [{ createMcpServer }, { WebStandardStreamableHTTPServerTransport }] = await Promise.all([import("../mcp-local-DoJeZvtL.js").then((n) => n.n), import("@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js")]);
70
70
  const handle = await createMcpServer(config.box, {
71
71
  name: "tangle-previews",
72
72
  sessionId: config.sessionId,
@@ -30,7 +30,7 @@ function rewrapResponse(original, headers, body = original.body) {
30
30
  //#endregion
31
31
  //#region src/lib/api-request.mjs
32
32
  /** The package version tsdown.config.ts defines; unbuilt source reports 0.0.0. */
33
- const SDK_VERSION = "1.0.433";
33
+ const SDK_VERSION = "1.0.435";
34
34
  function withRequestContextHeaders(response, path, method, body = response.body) {
35
35
  const headers = new Headers(response.headers);
36
36
  headers.set("x-tangle-request-path", path);
@@ -1,7 +1,7 @@
1
1
  import { C as boundedEventContentStringSchema, D as boundedStringSchema, E as boundedJsonSchema, O as isBoundedEventContentJson, S as boundedEventContentRecordSchema, T as boundedJsonRecordSchema, _ as sha256DigestSchema, b as CONTRACT_MAX_STRING_LENGTH, o as canonicalCandidateDigest, v as CONTRACT_MAX_ARRAY_LENGTH, w as boundedIdentifierSchema, x as boundedEventContentJsonSchema } from "./harness-4D0kk6wY.js";
2
2
  import { t as agentExecutionPreparationReceiptSchema } from "./agent-execution-preparation-receipt-NvWi9tgX.js";
3
3
  import { t as awaitWithAbort } from "./abort-signal-BsriwJ8L.js";
4
- import { i as fetchSandboxApi } from "./api-request-DLq8aGE9.js";
4
+ import { i as fetchSandboxApi } from "./api-request-CSC2B9E8.js";
5
5
  import { z } from "zod";
6
6
  //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.27/node_modules/@tangle-network/agent-interface/dist/native-session-event.js
7
7
  /**
@@ -1,10 +1,10 @@
1
- import { D as assertCurrentBackendType, E as applyRequestedModel, H as backendTypeSchema, M as withProfileHarness, N as withoutCreateOnlyModelFields, T as isBrowserRuntime, k as normalizeRuntimeBackendConfig, o as requestInteractiveSessionToken, x as encodePromptForWire } from "./interactive-controller-5Bq8peF1.js";
1
+ import { D as assertCurrentBackendType, E as applyRequestedModel, H as backendTypeSchema, M as withProfileHarness, N as withoutCreateOnlyModelFields, T as isBrowserRuntime, k as normalizeRuntimeBackendConfig, o as requestInteractiveSessionToken, x as encodePromptForWire } from "./interactive-controller-b3c8I1wn.js";
2
2
  import { r as agentProfileSchema } from "./profile-schema-B48XymtK.js";
3
- import { $ as isRateLimitCreateError, B as normalizeConnection, E as validateDeferredProfileFileMounts, F as normalizeSandboxCreateReceipt, G as CAPACITY_ETA_WAIT_MAX_MS, H as normalizeProxySecretReceipt, I as normalizeStartupDiagnostics, J as createRetryDelayMs, K as DEPLOY_WINDOW_RETRY_MS, P as normalizeCaptureProof, Q as isDeployWindowCreateError, R as dateOf, T as splitInlineProfileSkills, U as normalizeSandboxShape, V as normalizeEgressPolicyFields, W as CAPACITY_ETA_MARGIN_MS, X as generateIdempotencyKey, Y as extendableDeadline, Z as isCapacityShortageCreateError, d as sandboxLedgerUsd, et as isRetryableCreateError, n as createSandboxInstanceFromResponse, nt as SANDBOX_CREATE_DEADLINE_HEADER, o as exportTraceBundle, q as awaitCreateResend, tt as runtimeWorkspaceCwdSchema, w as splitInlineProfileFileMounts, x as deleteSandbox, z as parseLifecycleTimes } from "./sandbox-CqrI4_Hm.js";
3
+ import { $ as isRateLimitCreateError, B as normalizeConnection, E as validateDeferredProfileFileMounts, F as normalizeSandboxCreateReceipt, G as CAPACITY_ETA_WAIT_MAX_MS, H as normalizeProxySecretReceipt, I as normalizeStartupDiagnostics, J as createRetryDelayMs, K as DEPLOY_WINDOW_RETRY_MS, P as normalizeCaptureProof, Q as isDeployWindowCreateError, R as dateOf, T as splitInlineProfileSkills, U as normalizeSandboxShape, V as normalizeEgressPolicyFields, W as CAPACITY_ETA_MARGIN_MS, X as generateIdempotencyKey, Y as extendableDeadline, Z as isCapacityShortageCreateError, d as sandboxLedgerUsd, et as isRetryableCreateError, n as createSandboxInstanceFromResponse, nt as SANDBOX_CREATE_DEADLINE_HEADER, o as exportTraceBundle, q as awaitCreateResend, tt as runtimeWorkspaceCwdSchema, w as splitInlineProfileFileMounts, x as deleteSandbox, z as parseLifecycleTimes } from "./sandbox-ErD3PLNd.js";
4
4
  import { C as SandboxError, D as TimeoutError, O as ValidationError, _ as NetworkError, a as readResponseJson, c as AuthError, i as parseResponseError, r as parseErrorResponse, v as NotFoundError, w as ServerError, y as PartialFailureError } from "./errors-DNmfKxwE.js";
5
5
  import { n as combineAbortSignals } from "./abort-signal-BsriwJ8L.js";
6
6
  import { r as abortableSleep, t as RETRY_POLICY } from "./retry-policy-oW3_ljoc.js";
7
- import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-DLq8aGE9.js";
7
+ import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-CSC2B9E8.js";
8
8
  import { l as SANDBOX_AGENT_HOME } from "./file-transfer-DOSTbUSR.js";
9
9
  import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-sGVP8skk.js";
10
10
  import { t as parseSSEStream } from "./sse-parser-BCG3iL9j.js";
@@ -1532,7 +1532,8 @@ var SandboxManagement = class extends SandboxTransport {
1532
1532
  /**
1533
1533
  * The snapshots you own, including your most recently deleted sandboxes'
1534
1534
  * until `removeAfter`; `sandboxId` lists one sandbox, an older deleted one included.
1535
- * `includePlatform` adds the platform's own captures, which do not count toward your limit.
1535
+ * `includePlatform` adds the platform's own captures, which do not count toward your limit;
1536
+ * without it `excluded.platform` says how many it left out and their `sizeBytes` summed.
1536
1537
  * Throws when no cell answers. `olderNotListed` counts older deleted sandboxes
1537
1538
  * past the limit (list one by id); `retryable` means a retry may list more.
1538
1539
  */
@@ -1546,6 +1547,10 @@ var SandboxManagement = class extends SandboxTransport {
1546
1547
  complete: data.complete,
1547
1548
  olderNotListed: data.olderNotListed ?? 0,
1548
1549
  retryable: data.retryable ?? !data.complete,
1550
+ excluded: data.excluded ?? { platform: {
1551
+ count: 0,
1552
+ bytes: 0
1553
+ } },
1549
1554
  snapshots: data.snapshots.map((s) => ({
1550
1555
  snapshotId: s.snapshotId,
1551
1556
  sandboxId: s.sandboxId,
@@ -157,7 +157,8 @@ declare class SandboxManagement extends SandboxTransport {
157
157
  /**
158
158
  * The snapshots you own, including your most recently deleted sandboxes'
159
159
  * until `removeAfter`; `sandboxId` lists one sandbox, an older deleted one included.
160
- * `includePlatform` adds the platform's own captures, which do not count toward your limit.
160
+ * `includePlatform` adds the platform's own captures, which do not count toward your limit;
161
+ * without it `excluded.platform` says how many it left out and their `sizeBytes` summed.
161
162
  * Throws when no cell answers. `olderNotListed` counts older deleted sandboxes
162
163
  * past the limit (list one by id); `retryable` means a retry may list more.
163
164
  */
@@ -169,6 +170,12 @@ declare class SandboxManagement extends SandboxTransport {
169
170
  complete: boolean;
170
171
  olderNotListed: number;
171
172
  retryable: boolean;
173
+ excluded: {
174
+ platform: {
175
+ count: number;
176
+ bytes: number;
177
+ };
178
+ };
172
179
  }>;
173
180
  /** Load the exact sandbox, including failed/stopped boxes; return null on HTTP 404. */
174
181
  get(id: string): Promise<SandboxInstance | null>;
@@ -1,2 +1,2 @@
1
- import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-CRsQf0bb.js";
1
+ import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-B4amLE0E.js";
2
2
  export { CollaborationClient, CollaborationFileBridge, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
@@ -1,5 +1,5 @@
1
1
  import { D as TimeoutError, _ as NetworkError, r as parseErrorResponse } from "./errors-DNmfKxwE.js";
2
- import { i as fetchSandboxApi } from "./api-request-DLq8aGE9.js";
2
+ import { i as fetchSandboxApi } from "./api-request-CSC2B9E8.js";
3
3
  //#region src/collaboration/client.ts
4
4
  function normalizeBaseUrl(url) {
5
5
  return url.replace(/\/+$/, "");
package/dist/core.d.ts CHANGED
@@ -2,6 +2,6 @@ import { B as WorkspaceImages, H as WorkspaceImagePublishResult, O as SandboxIns
2
2
  import { F as ProfileFileMountPathError, H as ServerError, I as QuotaError, K as TimeoutError, M as NetworkError, N as NotFoundError, O as FileWriteConflictError, P as PartialFailureError, R as SandboxError, S as AuthError, U as StateError, V as SandboxFailureDetail, b as parseErrorResponse, q as ValidationError, w as CapabilityError, x as responseMetadata, z as SandboxErrorJson } from "./terminal-stream-types-cEwFyagj.js";
3
3
  import { It as SandboxInfo, Ja as SandboxEnvRecovery, Jn as ExecOptions, Ka as ExecResult, Li as ConversationTurnOptions, Ri as ConversationTurnResult, Si as PromptInputPart, Ya as SandboxEnvRecoveryView, _r as ManagedProcessResumeOptions, aa as SessionMessageAdmission, b as PreviewLinkManager, br as ManagedProcessSpec, dn as NetworkConfig, gr as ManagedProcessOptions, hr as ManagedProcessJobs, nn as CreateSandboxOptions, on as SandboxStatus, rn as SandboxConfig, vr as ManagedProcessState, x as PreviewLinkWaitOptions, y as PreviewLinkInfo, yr as ManagedProcessRecord } from "./types-CqGEzcla.js";
4
4
  import { D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineSenderVerificationStart, J as LineApplicationView, K as LineApplicationResult, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, T as LineProvider, U as LINE_APPLICATION_REQUEST_MAX_BYTES, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, l as LineApplicationAttachOptions, o as LineAgentRolePolicy, p as LineExecutionKey, q as LineApplicationState, r as lineInstanceKey, t as LinesClient, w as LineNumberInventory, y as LineMember } from "./lines-BqMphgT2.js";
5
- import { At as InstancesClient, Ct as ManagedProcessClient, Dt as InstanceRecord, Et as InstanceProfile, Mt as sandboxFailureKind, Ot as InstanceRestartingError, St as gatewaySeatTransport, Tt as HostedInstance, _t as SeatOwnerTransport, an as BackendRegistryCapabilities, bt as SeatSelectionRequest, cn as BackendRegistryResponse, dn as backendRegistryInteractionKindSchema, dt as GatewaySeatTransportOptions, fn as backendRegistryResponseSchema, gt as SeatOwnerReply, hn as parseBackendRegistryResponseBody, ht as SandboxSeatSelectionInput, jt as SandboxFailureKind, ln as backendRegistryCapabilitiesSchema, lt as ISOLATED_CREATION_ATTESTATION_VERSION, mn as parseBackendRegistryResponse, mt as SandboxSeatCredentials, on as BackendRegistryEntry, pn as isBackendRegistryInteractionKind, pt as SandboxResolvedSeat, sn as BackendRegistryInteractionKind, t as Sandbox, un as backendRegistryEntrySchema, ut as CreateSelectSeatOptions, vt as SeatResolutionObservation, wt as EnsureInstanceOptions, xt as createSelectSeat, yt as SeatSelectionError } from "./client-DB31ZakX.js";
5
+ import { At as InstancesClient, Ct as ManagedProcessClient, Dt as InstanceRecord, Et as InstanceProfile, Mt as sandboxFailureKind, Ot as InstanceRestartingError, St as gatewaySeatTransport, Tt as HostedInstance, _t as SeatOwnerTransport, an as BackendRegistryCapabilities, bt as SeatSelectionRequest, cn as BackendRegistryResponse, dn as backendRegistryInteractionKindSchema, dt as GatewaySeatTransportOptions, fn as backendRegistryResponseSchema, gt as SeatOwnerReply, hn as parseBackendRegistryResponseBody, ht as SandboxSeatSelectionInput, jt as SandboxFailureKind, ln as backendRegistryCapabilitiesSchema, lt as ISOLATED_CREATION_ATTESTATION_VERSION, mn as parseBackendRegistryResponse, mt as SandboxSeatCredentials, on as BackendRegistryEntry, pn as isBackendRegistryInteractionKind, pt as SandboxResolvedSeat, sn as BackendRegistryInteractionKind, t as Sandbox, un as backendRegistryEntrySchema, ut as CreateSelectSeatOptions, vt as SeatResolutionObservation, wt as EnsureInstanceOptions, xt as createSelectSeat, yt as SeatSelectionError } from "./client-Cb4JrGOP.js";
6
6
  import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-D8v4H_3F.js";
7
7
  export { AuthError, BackendRegistryCapabilities, BackendRegistryEntry, BackendRegistryInteractionKind, BackendRegistryResponse, CapabilityError, ConversationTurnOptions, ConversationTurnResult, CreateSandboxOptions, CreateSelectSeatOptions, EnsureInstanceOptions, ExecOptions, ExecResult, FileWriteConflictError, GatewaySeatTransportOptions, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, InstanceProfile, InstanceRecord, InstanceRestartingError, InstancesClient, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, Line, LineAgentRolePolicy, LineApplication, LineApplicationAttachOptions, LineApplicationRequest, LineApplicationResult, LineApplicationState, LineApplicationView, LineAttachment, LineAttachmentReauthorization, LineExecutionKey, LineImage, LineInstanceAttachOptions, LineInstanceCreate, LineMember, LineMemberInstance, LineNumberInventory, LineProvider, LineReminderPreferences, LineReplyCode, LineReplyCodeInput, LineSendInput, LineSendReceipt, LineSenderVerification, LineSenderVerificationStart, LinesClient, ManagedProcessClient, ManagedProcessJobs, ManagedProcessOptions, ManagedProcessRecord, ManagedProcessResumeOptions, ManagedProcessSpec, ManagedProcessState, NetworkConfig, NetworkError, NotFoundError, PartialFailureError, PreviewLinkInfo, PreviewLinkManager, PreviewLinkWaitOptions, ProfileFileDeliveryReport, ProfileFileMountPathError, PromptInputPart, PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient, QuotaError, Sandbox, SandboxConfig, SandboxEnvRecovery, SandboxEnvRecoveryView, SandboxError, SandboxErrorJson, SandboxFailureDetail, SandboxFailureKind, SandboxInfo, SandboxInstance, SandboxResolvedSeat, SandboxSeatCredentials, SandboxSeatSelectionInput, SandboxStatus, SeatOwnerReply, SeatOwnerTransport, SeatResolutionObservation, SeatSelectionError, SeatSelectionRequest, ServerError, SessionMessageAdmission, StateError, TimeoutError, ValidationError, WorkspaceImagePublishInput, WorkspaceImagePublishRequestOptions, WorkspaceImagePublishResult, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, createSelectSeat, gatewaySeatTransport, isBackendRegistryInteractionKind, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseErrorResponse, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference, responseMetadata, sandboxFailureKind };
package/dist/core.js CHANGED
@@ -1,6 +1,6 @@
1
- import { S as ManagedProcessClient, r as WorkspaceImages, t as SandboxInstance } from "./sandbox-CqrI4_Hm.js";
1
+ import { S as ManagedProcessClient, r as WorkspaceImages, t as SandboxInstance } from "./sandbox-ErD3PLNd.js";
2
2
  import { C as SandboxError, D as TimeoutError, O as ValidationError, T as StateError, _ as NetworkError, b as ProfileFileMountPathError, c as AuthError, m as FileWriteConflictError, o as responseMetadata, r as parseErrorResponse, u as CapabilityError, v as NotFoundError, w as ServerError, x as QuotaError, y as PartialFailureError } from "./errors-DNmfKxwE.js";
3
- import { a as InstancesClient, c as backendRegistryCapabilitiesSchema, d as backendRegistryResponseSchema, f as isBackendRegistryInteractionKind, i as InstanceRestartingError, l as backendRegistryEntrySchema, m as parseBackendRegistryResponseBody, p as parseBackendRegistryResponse, r as HostedInstance, t as Sandbox, u as backendRegistryInteractionKindSchema } from "./client-C-i1Sw0M.js";
3
+ import { a as InstancesClient, c as backendRegistryCapabilitiesSchema, d as backendRegistryResponseSchema, f as isBackendRegistryInteractionKind, i as InstanceRestartingError, l as backendRegistryEntrySchema, m as parseBackendRegistryResponseBody, p as parseBackendRegistryResponse, r as HostedInstance, t as Sandbox, u as backendRegistryInteractionKindSchema } from "./client-8gc0xXJx.js";
4
4
  import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-DjZMcB7V.js";
5
5
  import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
6
6
  import { a as parseLineApplicationResult, i as parseLineApplicationRequest, n as LINE_APPLICATION_REPLY_MAX_CHARS, o as sandboxFailureKind, r as LINE_APPLICATION_REQUEST_MAX_BYTES, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-CBWUEURz.js";
@@ -5,56 +5,56 @@ const quickstartExamples = [
5
5
  title: "Run code",
6
6
  summary: "The fastest first success: a machine, one command, cleaned up.",
7
7
  language: "typescript",
8
- code: "import { Sandbox } from \"@tangle-network/sandbox\";\n\nconst client = new Sandbox({\n apiKey: process.env.TANGLE_API_KEY!,\n baseUrl: \"https://sandbox.tangle.tools\",\n});\n\nconst box = await client.create();\ntry {\n const { stdout } = await box.exec(\n \"python3 -c 'print(sum(range(1_000_000)))'\",\n );\n console.log(stdout);\n} finally {\n await box.delete();\n}\n"
8
+ code: "import { Sandbox } from \"@tangle-network/sandbox\";\n\nconst client = new Sandbox({\n apiKey: process.env.TANGLE_API_KEY!,\n baseUrl: \"https://sandbox.tangle.tools\",\n});\n\nconst box = await client.create({ agent: false });\ntry {\n const { stdout, exitCode } = await box.exec(\n \"python3 -c 'print(sum(range(1_000_000)))'\",\n );\n if (exitCode !== 0 || stdout.trim() !== \"499999500000\")\n throw new Error(\"The Python calculation failed\");\n console.log(stdout);\n} finally {\n await box.delete();\n}\n"
9
9
  },
10
10
  {
11
11
  id: "fix-failing-test",
12
12
  title: "Fix a failing test",
13
13
  summary: "A real job for an agent, a real check that it worked, and a patch you keep.",
14
14
  language: "typescript",
15
- code: "import { writeFile } from \"node:fs/promises\";\nimport { Sandbox } from \"@tangle-network/sandbox\";\n\nconst client = new Sandbox({\n apiKey: process.env.TANGLE_API_KEY!,\n baseUrl: \"https://sandbox.tangle.tools\",\n});\n\nconst box = await client.create({\n git: { url: \"https://github.com/your-org/your-repo\" },\n backend: { type: \"claude-code\" },\n});\ntry {\n const run = await box.prompt(\n \"`npm test` fails. Find the cause, fix it, and make the suite pass.\",\n );\n if (!run.success) throw new Error(run.error);\n\n // A finished turn is not a finished task: check the result yourself.\n const tests = await box.exec(\"npm test\");\n if (tests.exitCode !== 0)\n throw new Error(\"The agent stopped, but the tests still fail.\");\n\n await writeFile(\"fix.patch\", (await box.exec(\"git diff\")).stdout);\n console.log(run.response);\n console.log(run.usage); // { inputTokens, outputTokens, ... }\n} finally {\n await box.delete();\n}\n"
15
+ code: "import { writeFile } from \"node:fs/promises\";\nimport { Sandbox } from \"@tangle-network/sandbox\";\n\nconst model = process.env.TANGLE_MODEL;\nconst client = new Sandbox({\n apiKey: process.env.TANGLE_API_KEY!,\n baseUrl: \"https://sandbox.tangle.tools\",\n});\n\nconst box = await client.create({\n git: { url: \"https://github.com/tangle-network/sandbox-demo\" },\n backend: { type: \"claude-code\", model: model ? { model } : undefined },\n});\ntry {\n const run = await box.prompt(\n \"`npm test` fails. Find the cause, fix it, and make the suite pass.\",\n );\n if (!run.success) throw new Error(run.error);\n\n const tests = await box.exec(\"npm test\");\n if (tests.exitCode !== 0)\n throw new Error(\"The agent stopped, but the tests still fail.\");\n\n await writeFile(\"fix.patch\", (await box.exec(\"git diff\")).stdout);\n console.log(run.response);\n console.log(run.usage); // { inputTokens, outputTokens, ... }\n} finally {\n await box.delete();\n}\n"
16
16
  },
17
17
  {
18
18
  id: "your-claude-subscription",
19
19
  title: "Use your Claude subscription",
20
20
  summary: "The same agent, paid by your Claude plan instead of metered tokens.",
21
21
  language: "typescript",
22
- code: "import { Sandbox } from \"@tangle-network/sandbox\";\n\nconst client = new Sandbox({\n apiKey: process.env.TANGLE_API_KEY!,\n baseUrl: \"https://sandbox.tangle.tools\",\n});\n\n// Once: store the token from `claude setup-token`.\nawait client.secrets.create(\n \"CLAUDE_TOKEN\",\n process.env.CLAUDE_CODE_OAUTH_TOKEN!,\n);\n\nconst box = await client.create({\n git: { url: \"https://github.com/your-org/your-repo\" },\n backend: {\n type: \"claude-code\",\n model: {\n cliAuth: { account: \"me\", secretEnv: \"CLAUDE_TOKEN\", format: \"token\" },\n },\n },\n secrets: [\"CLAUDE_TOKEN\"],\n});\ntry {\n const run = await box.prompt(\n \"Review the last commit for bugs and list each with a file and line.\",\n );\n console.log(run.success ? run.response : run.error);\n} finally {\n await box.delete();\n}\n"
22
+ code: "import { Sandbox } from \"@tangle-network/sandbox\";\n\nconst client = new Sandbox({\n apiKey: process.env.TANGLE_API_KEY!,\n baseUrl: \"https://sandbox.tangle.tools\",\n});\n\nconst token = process.env.CLAUDE_CODE_OAUTH_TOKEN;\nif (!token)\n throw new Error(\"Set CLAUDE_CODE_OAUTH_TOKEN from claude setup-token\");\nconst secretName = `CLAUDE_${crypto.randomUUID().replaceAll(\"-\", \"_\")}`;\nconst secret = await client.secrets.create(secretName, token);\ntry {\n const box = await client.create({\n git: { url: \"https://github.com/tangle-network/sandbox-demo\" },\n backend: {\n type: \"claude-code\",\n model: {\n cliAuth: { account: \"me\", secretEnv: secretName, format: \"token\" },\n },\n },\n secrets: [secretName],\n });\n try {\n const run = await box.prompt(\n \"Review the last commit for bugs and list each with a file and line.\",\n );\n if (!run.success) throw new Error(run.error);\n console.log(run.response);\n } finally {\n await box.delete();\n }\n} finally {\n await client.secrets.delete(secretName, {\n expectedUpdatedAt: secret.updatedAt.toISOString(),\n });\n}\n"
23
23
  },
24
24
  {
25
25
  id: "race-two-agents",
26
26
  title: "Race two agents",
27
27
  summary: "One task, two harnesses, one table: who passed, how fast, at what cost.",
28
28
  language: "typescript",
29
- code: "import { Sandbox } from \"@tangle-network/sandbox\";\n\nconst client = new Sandbox({\n apiKey: process.env.TANGLE_API_KEY!,\n baseUrl: \"https://sandbox.tangle.tools\",\n});\n\nconst task =\n \"`npm test` fails on main. Find the cause, fix it, and make the suite pass.\";\nconst agents = [\"claude-code\", \"codex\"] as const;\n\nconst results = await Promise.all(\n agents.map(async (type) => {\n const box = await client.create({\n git: { url: \"https://github.com/your-org/your-repo\" },\n backend: { type },\n });\n try {\n const run = await box.prompt(task);\n const tests = await box.exec(\"npm test\");\n return {\n agent: type,\n passed: tests.exitCode === 0,\n seconds: run.durationMs / 1000,\n usd: run.costUsd ?? 0,\n };\n } finally {\n await box.delete();\n }\n }),\n);\nconsole.table(results);\n"
29
+ code: "import { Sandbox } from \"@tangle-network/sandbox\";\n\nconst model = process.env.TANGLE_MODEL;\nconst client = new Sandbox({\n apiKey: process.env.TANGLE_API_KEY!,\n baseUrl: \"https://sandbox.tangle.tools\",\n});\n\nconst task =\n \"`npm test` fails on main. Find the cause, fix it, and make the suite pass.\";\nconst agents = [\"claude-code\", \"codex\"] as const;\n\nconst settled = await Promise.allSettled(\n agents.map(async (type) => {\n const box = await client.create({\n git: { url: \"https://github.com/tangle-network/sandbox-demo\" },\n backend: { type, model: model ? { model } : undefined },\n });\n try {\n const run = await box.prompt(task);\n if (!run.success) throw new Error(run.error);\n const tests = await box.exec(\"npm test\");\n if (tests.exitCode !== 0) throw new Error(`${type}: tests still fail`);\n return {\n agent: type,\n passed: tests.exitCode === 0,\n seconds: run.durationMs / 1000,\n usd: run.costUsd ?? 0,\n };\n } finally {\n await box.delete();\n }\n }),\n);\nconst failures = settled.flatMap((result) =>\n result.status === \"rejected\" ? [result.reason] : [],\n);\nif (failures.length)\n throw new AggregateError(failures, \"An agent failed the task\");\nconsole.table(\n settled.flatMap((result) =>\n result.status === \"fulfilled\" ? [result.value] : [],\n ),\n);\n"
30
30
  },
31
31
  {
32
32
  id: "stream-the-work",
33
33
  title: "Stream the work",
34
34
  summary: "Watch the agent's text arrive as it works.",
35
35
  language: "typescript",
36
- code: "import { Sandbox } from \"@tangle-network/sandbox\";\n\nconst client = new Sandbox({\n apiKey: process.env.TANGLE_API_KEY!,\n baseUrl: \"https://sandbox.tangle.tools\",\n});\n\nconst box = await client.create({\n git: { url: \"https://github.com/your-org/your-repo\" },\n backend: { type: \"opencode\" },\n});\ntry {\n for await (const event of box.streamPrompt(\n \"Add input validation to the signup form and a test for it.\",\n )) {\n if (event.type === \"token\") process.stdout.write(String(event.data.value));\n }\n} finally {\n await box.delete();\n}\n"
36
+ code: "import { createAgentRunOutcomeTracker, Sandbox } from \"@tangle-network/sandbox\";\n\nconst model = process.env.TANGLE_MODEL;\nconst client = new Sandbox({\n apiKey: process.env.TANGLE_API_KEY!,\n baseUrl: \"https://sandbox.tangle.tools\",\n});\n\nconst box = await client.create({\n git: { url: \"https://github.com/tangle-network/sandbox-demo\" },\n backend: { type: \"opencode\", model: model ? { model } : undefined },\n});\ntry {\n const outcome = createAgentRunOutcomeTracker();\n for await (const event of box.streamPrompt(\n \"`npm test` fails. Find the cause, fix it, and make the suite pass.\",\n )) {\n outcome.observe(event);\n if (event.type === \"token\") process.stdout.write(String(event.data.value));\n }\n const result = outcome.finish();\n if (!result.success)\n throw new Error(result.error ?? \"The agent did not finish\");\n const tests = await box.exec(\"npm test\");\n if (tests.exitCode !== 0) throw new Error(\"The tests still fail\");\n} finally {\n await box.delete();\n}\n"
37
37
  },
38
38
  {
39
39
  id: "lock-down-the-network",
40
40
  title: "Lock down the network",
41
41
  summary: "The agent can install packages and push code, and reach nothing else.",
42
42
  language: "typescript",
43
- code: "import { Sandbox } from \"@tangle-network/sandbox\";\n\nconst client = new Sandbox({\n apiKey: process.env.TANGLE_API_KEY!,\n baseUrl: \"https://sandbox.tangle.tools\",\n});\n\n// The agent can install packages and push code, and reach nothing else.\nconst box = await client.create({\n git: { url: \"https://github.com/your-org/your-repo\" },\n backend: { type: \"claude-code\" },\n egressPolicy: {\n mode: \"strict\",\n allowDomains: [\"registry.npmjs.org\", \"github.com\"],\n },\n});\ntry {\n const blocked = await box.exec(\"curl -sS -m 5 https://example.com\");\n console.log(\n blocked.exitCode === 0 ? \"reachable (unexpected)\" : \"blocked as configured\",\n );\n} finally {\n await box.delete();\n}\n"
43
+ code: "import { Sandbox } from \"@tangle-network/sandbox\";\n\nconst client = new Sandbox({\n apiKey: process.env.TANGLE_API_KEY!,\n baseUrl: \"https://sandbox.tangle.tools\",\n});\n\nconst box = await client.create({\n agent: false,\n egressPolicy: {\n mode: \"strict\",\n allowDomains: [\"registry.npmjs.org\", \"github.com\"],\n },\n});\ntry {\n const allowed = await box.exec(\"curl -fsS -m 10 https://registry.npmjs.org/\");\n if (allowed.exitCode !== 0)\n throw new Error(\"The allowed domain was unreachable\");\n const blocked = await box.exec(\"curl -fsS -m 5 https://example.com\");\n if (blocked.exitCode === 0)\n throw new Error(\"The allowlist did not block example.com\");\n const denials = await box.egress.denials();\n if (\n !denials.some((entry) => entry.host === \"example.com\" && entry.rejectedBy)\n )\n throw new Error(\"No policy refusal was recorded for example.com\");\n console.log(\"blocked as configured\");\n} finally {\n await box.delete();\n}\n"
44
44
  },
45
45
  {
46
46
  id: "share-a-preview",
47
47
  title: "Share a preview",
48
48
  summary: "Start the app and share a link that expires with the box.",
49
49
  language: "typescript",
50
- code: "import { Sandbox } from \"@tangle-network/sandbox\";\n\nconst client = new Sandbox({\n apiKey: process.env.TANGLE_API_KEY!,\n baseUrl: \"https://sandbox.tangle.tools\",\n});\n\nconst box = await client.create({\n git: { url: \"https://github.com/your-org/your-web-app\" },\n maxLifetimeSeconds: 3600, // the box deletes itself after an hour\n});\nawait box.exec(\"npm ci\");\n// Long-running processes are spawned, not exec'd.\nawait box.process.spawnExact(\n \"npm\",\n [\"run\", \"dev\", \"--\", \"--host\", \"0.0.0.0\", \"--port\", \"5173\"],\n {\n timeoutMs: 3_600_000,\n },\n);\n\nconst link = await box.previewLinks.create(5173);\nconst { url } = await box.previewLinks.waitUntilReady(link.previewId);\nconsole.log(`Share this for the next hour: ${url}`);\n"
50
+ code: "import { Sandbox } from \"@tangle-network/sandbox\";\n\nconst client = new Sandbox({\n apiKey: process.env.TANGLE_API_KEY!,\n baseUrl: \"https://sandbox.tangle.tools\",\n});\n\nconst deadline = Date.now() + 300_000;\nconst box = await client.create({\n agent: false,\n maxLifetimeSeconds: 300,\n});\ntry {\n await box.write(\"index.html\", \"<h1>Hello from your sandbox</h1>\");\n await box.process.spawnExact(\n \"python3\",\n [\"-m\", \"http.server\", \"5173\", \"--bind\", \"0.0.0.0\"],\n { timeoutMs: 300_000 },\n );\n const link = await box.previewLinks.create(5173);\n const { url } = await box.previewLinks.waitUntilReady(link.previewId);\n const response = await fetch(url, { signal: AbortSignal.timeout(20_000) });\n if (\n !response.ok ||\n !(await response.text()).includes(\"Hello from your sandbox\")\n )\n throw new Error(\"The preview did not serve the page\");\n console.log(url);\n const holdSeconds = Number(process.env.TANGLE_PREVIEW_HOLD_SECONDS ?? \"60\");\n if (!Number.isFinite(holdSeconds) || holdSeconds < 0 || holdSeconds > 240)\n throw new Error(\"TANGLE_PREVIEW_HOLD_SECONDS must be between 0 and 240\");\n const holdMs = Math.min(holdSeconds * 1000, deadline - Date.now() - 10_000);\n if (holdMs < 0)\n throw new Error(\"The preview lifetime was exhausted during startup\");\n await new Promise((resolve) => setTimeout(resolve, holdMs));\n} finally {\n await box.delete();\n}\n"
51
51
  },
52
52
  {
53
53
  id: "pause-and-resume",
54
54
  title: "Pause and resume",
55
55
  summary: "Stop paying overnight and continue the same conversation later.",
56
56
  language: "typescript",
57
- code: "import { Sandbox } from \"@tangle-network/sandbox\";\n\nconst client = new Sandbox({\n apiKey: process.env.TANGLE_API_KEY!,\n baseUrl: \"https://sandbox.tangle.tools\",\n});\n\nconst backend = { type: \"claude-code\" } as const;\nconst box = await client.create({\n git: { url: \"https://github.com/your-org/your-repo\" },\n backend,\n});\nawait box.prompt(\"Read the codebase and draft a plan for adding OAuth login.\", {\n sessionId: \"oauth\",\n});\nawait box.stop(); // files and the conversation survive; compute billing stops\n\n// Later, from any process:\nconst again = await client.get(box.id);\nif (!again) throw new Error(\"sandbox not found\");\ntry {\n await again.resume();\n const run = await again.prompt(\"Implement step 1 of your plan.\", {\n sessionId: \"oauth\",\n backend, // resend the harness: the resumed session needs its credential again\n });\n console.log(run.response);\n} finally {\n await again.delete();\n}\n"
57
+ code: "import { Sandbox } from \"@tangle-network/sandbox\";\n\nconst model = process.env.TANGLE_MODEL;\nconst client = new Sandbox({\n apiKey: process.env.TANGLE_API_KEY!,\n baseUrl: \"https://sandbox.tangle.tools\",\n});\n\nconst backend = {\n type: \"claude-code\",\n model: model ? { model } : undefined,\n} as const;\nconst box = await client.create({\n git: { url: \"https://github.com/tangle-network/sandbox-demo\" },\n backend,\n});\ntry {\n const plan = await box.prompt(\n \"Read the codebase and draft a plan for adding OAuth login.\",\n {\n sessionId: \"oauth\",\n },\n );\n if (!plan.success) throw new Error(plan.error);\n await box.stop();\n\n const again = await client.get(box.id);\n if (!again) throw new Error(\"sandbox not found\");\n await again.resume();\n const run = await again.prompt(\"Implement step 1 of your plan.\", {\n sessionId: \"oauth\",\n backend,\n });\n if (!run.success) throw new Error(run.error);\n console.log(run.response);\n} finally {\n await box.delete();\n}\n"
58
58
  }
59
59
  ];
60
60
  //#endregion
@@ -1,4 +1,4 @@
1
- import { i as fetchSandboxApi } from "../api-request-DLq8aGE9.js";
1
+ import { i as fetchSandboxApi } from "../api-request-CSC2B9E8.js";
2
2
  import { t as ITangleJobsAbi } from "../abi-pcDt2Adp.js";
3
3
  import { createPublicClient, createWalletClient, decodeAbiParameters, encodeAbiParameters, encodeFunctionData, hexToBytes, http, keccak256, parseAbi, parseAbiParameters, parseEventLogs, recoverMessageAddress, stringToHex } from "viem";
4
4
  import { privateKeyToAccount } from "viem/accounts";
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ import { a as RawEvidenceBoxArchiveManifest, c as RawEvidenceDirectoryExport, d
6
6
  import { A as LineRespondAgent, B as LineVoiceOptions, C as LineMessage, D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineSenderVerificationStart, J as LineApplicationView, K as LineApplicationResult, L as LineThread, M as LineRole, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, R as LineTransport, S as LineMemberSpec, T as LineProvider, U as LINE_APPLICATION_REQUEST_MAX_BYTES, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, c as LineAllowanceSubject, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, j as LineRespondView, k as LineReplyGate, l as LineApplicationAttachOptions, m as LineFromConnectionInput, n as SandboxLines, o as LineAgentRolePolicy, p as LineExecutionKey, q as LineApplicationState, r as lineInstanceKey, s as LineAllowance, t as LinesClient, u as LineAttachOptions, v as LineLimits, w as LineNumberInventory, x as LineMemberPatch, y as LineMember, z as LineVoice } from "./lines-BqMphgT2.js";
7
7
  import { _ as InteractiveSessionStatus, a as InteractiveSessionControlController, c as InteractiveSessionIdentity, d as interactiveSessionIdentityDigest, f as InteractiveAttachOptions, g as InteractiveRequestOptions, h as InteractiveObserveOptions, i as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, l as InteractiveSessionNotRunningError, m as InteractiveControlClaimOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, p as InteractiveControlClaimAcknowledgement, r as browserInteractiveControlHolderId, s as InteractiveSessionControlTransport, t as BrowserInteractiveSessionControlController, u as createInteractiveControlHolderId } from "./browser-interactive-control-controller-knQXEt0T.js";
8
8
  import { a as InteractiveSessionControllerOptions, i as InteractiveSessionController, n as BrowserInteractiveSessionControllerOptions, o as InteractiveSessionControllerTransport, r as InteractiveAttachRequest, t as BrowserInteractiveSessionController } from "./interactive-controller-TSVwnPWf.js";
9
- import { $ as getSandboxEventText, $t as CreateTeamOptions, A as buildTangleRouterResponsesWebSearchRequest, At as InstancesClient, B as validateProfileForCreate, Bt as validateBatchRunRequest, C as RunTangleRouterEvalMatrixInSandboxOptions, Ct as ManagedProcessClient, D as RouterSearchConfigOptions, Dt as InstanceRecord, E as RouterSearchConfig, Et as InstanceProfile, F as SANDBOX_SIZE_PRESETS, Ft as CreateConfidentialSandboxOptions, G as ManageSandboxesToolOptions, Gt as TeeAttestationHeartbeatSample, H as MANAGE_SANDBOXES_TOOL_NAME, Ht as requestedPublicProfileDigest, I as resolveSandboxResources, It as createConfidentialSandbox, J as downloadFile, Jt as ImageSpec, K as createManageSandboxesTool, Kt as startTeeAttestationHeartbeat, L as sandboxResourcesForSize, Lt as generateAttestationNonce, M as buildTangleRouterSearchProfile, Mt as sandboxFailureKind, N as fetchTangleRouterSearchConfig, Nt as ConfidentialSandboxResult, O as TangleSearchProvider, Ot as InstanceRestartingError, P as DEFAULT_SANDBOX_SIZE, Pt as ConfidentialTeeType, Q as collectAgentResponseText, Qt as parseSSEStream, R as materializeProfileFileMounts, Rt as BatchResultAccumulator, S as RouterImportedRunResponse, St as gatewaySeatTransport, T as runTangleRouterEvalMatrixInSandbox, Tt as HostedInstance, U as ManageSandboxesInput, Ut as TeeAttestationHeartbeat, V as MANAGE_SANDBOXES_PARAMETERS, Vt as normalizeRuntimeBackendConfig, W as ManageSandboxesTool, Wt as TeeAttestationHeartbeatOptions, X as applySandboxEventText, Xt as ParseSSEStreamOptions, Y as SDK_TIMEOUTS, Yt as DEFAULT_MAX_EXECUTION_TTL_MS, Z as collectAgentFinalMessageText, Zt as ParsedSSEEvent, _ as RouterEvalMatrixPayload, _t as SeatOwnerTransport, a as SessionBroadcastEvent, an as BackendRegistryCapabilities, at as ImageBuildOptions, b as RouterEvalMatrixScenario, bt as SeatSelectionRequest, c as RunPlacement, cn as BackendRegistryResponse, ct as generateDockerfile, d as RunWaitOptions, dn as backendRegistryInteractionKindSchema, dt as GatewaySeatTransportOptions, en as InviteTeamMemberOptions, et as isToolBearingEvent, f as RunsClient, fn as backendRegistryResponseSchema, g as RouterEvalMatrixHarness, gt as SeatOwnerReply, h as RouterEvalMatrixCaseResult, hn as parseBackendRegistryResponseBody, ht as SandboxSeatSelectionInput, i as terminalUpgradeHeadersSupported, in as IntelligenceClient, it as ImageBuildFetchClient, j as buildTangleRouterSearchBackend, jt as SandboxFailureKind, k as buildTangleRouterEvalMatrixRequest, kt as InstanceStart, l as RunPlacementRecord, ln as backendRegistryCapabilitiesSchema, lt as ISOLATED_CREATION_ATTESTATION_VERSION, m as RouterEvalMatrixAgentProfile, mn as parseBackendRegistryResponse, mt as SandboxSeatCredentials, n as SandboxFleetClient, nn as TeamInvitation, nt as ImageBuildClient, o as SessionBroadcastResult, on as BackendRegistryEntry, ot as ImageBuildResult, p as RunsHttpClient, pn as isBackendRegistryInteractionKind, pt as SandboxResolvedSeat, q as manageSandboxesInputSchema, qt as BuildProgressEvent, r as SandboxFleet, rn as TeamMember, rt as ImageBuildClientConfig, s as RunOptions, sn as BackendRegistryInteractionKind, st as ImageBuilder, t as Sandbox, tn as Team, tt as Image, u as RunRecord, un as backendRegistryEntrySchema, ut as CreateSelectSeatOptions, v as RouterEvalMatrixSandboxBox, vt as SeatResolutionObservation, w as RunTangleRouterEvalMatrixInSandboxResult, wt as EnsureInstanceOptions, x as RouterEvalMatrixSuiteResponse, xt as createSelectSeat, y as RouterEvalMatrixSandboxClient, yt as SeatSelectionError, z as ProfileCreateVerdict, zt as createBatchResultAccumulator } from "./client-DB31ZakX.js";
9
+ import { $ as getSandboxEventText, $t as CreateTeamOptions, A as buildTangleRouterResponsesWebSearchRequest, At as InstancesClient, B as validateProfileForCreate, Bt as validateBatchRunRequest, C as RunTangleRouterEvalMatrixInSandboxOptions, Ct as ManagedProcessClient, D as RouterSearchConfigOptions, Dt as InstanceRecord, E as RouterSearchConfig, Et as InstanceProfile, F as SANDBOX_SIZE_PRESETS, Ft as CreateConfidentialSandboxOptions, G as ManageSandboxesToolOptions, Gt as TeeAttestationHeartbeatSample, H as MANAGE_SANDBOXES_TOOL_NAME, Ht as requestedPublicProfileDigest, I as resolveSandboxResources, It as createConfidentialSandbox, J as downloadFile, Jt as ImageSpec, K as createManageSandboxesTool, Kt as startTeeAttestationHeartbeat, L as sandboxResourcesForSize, Lt as generateAttestationNonce, M as buildTangleRouterSearchProfile, Mt as sandboxFailureKind, N as fetchTangleRouterSearchConfig, Nt as ConfidentialSandboxResult, O as TangleSearchProvider, Ot as InstanceRestartingError, P as DEFAULT_SANDBOX_SIZE, Pt as ConfidentialTeeType, Q as collectAgentResponseText, Qt as parseSSEStream, R as materializeProfileFileMounts, Rt as BatchResultAccumulator, S as RouterImportedRunResponse, St as gatewaySeatTransport, T as runTangleRouterEvalMatrixInSandbox, Tt as HostedInstance, U as ManageSandboxesInput, Ut as TeeAttestationHeartbeat, V as MANAGE_SANDBOXES_PARAMETERS, Vt as normalizeRuntimeBackendConfig, W as ManageSandboxesTool, Wt as TeeAttestationHeartbeatOptions, X as applySandboxEventText, Xt as ParseSSEStreamOptions, Y as SDK_TIMEOUTS, Yt as DEFAULT_MAX_EXECUTION_TTL_MS, Z as collectAgentFinalMessageText, Zt as ParsedSSEEvent, _ as RouterEvalMatrixPayload, _t as SeatOwnerTransport, a as SessionBroadcastEvent, an as BackendRegistryCapabilities, at as ImageBuildOptions, b as RouterEvalMatrixScenario, bt as SeatSelectionRequest, c as RunPlacement, cn as BackendRegistryResponse, ct as generateDockerfile, d as RunWaitOptions, dn as backendRegistryInteractionKindSchema, dt as GatewaySeatTransportOptions, en as InviteTeamMemberOptions, et as isToolBearingEvent, f as RunsClient, fn as backendRegistryResponseSchema, g as RouterEvalMatrixHarness, gt as SeatOwnerReply, h as RouterEvalMatrixCaseResult, hn as parseBackendRegistryResponseBody, ht as SandboxSeatSelectionInput, i as terminalUpgradeHeadersSupported, in as IntelligenceClient, it as ImageBuildFetchClient, j as buildTangleRouterSearchBackend, jt as SandboxFailureKind, k as buildTangleRouterEvalMatrixRequest, kt as InstanceStart, l as RunPlacementRecord, ln as backendRegistryCapabilitiesSchema, lt as ISOLATED_CREATION_ATTESTATION_VERSION, m as RouterEvalMatrixAgentProfile, mn as parseBackendRegistryResponse, mt as SandboxSeatCredentials, n as SandboxFleetClient, nn as TeamInvitation, nt as ImageBuildClient, o as SessionBroadcastResult, on as BackendRegistryEntry, ot as ImageBuildResult, p as RunsHttpClient, pn as isBackendRegistryInteractionKind, pt as SandboxResolvedSeat, q as manageSandboxesInputSchema, qt as BuildProgressEvent, r as SandboxFleet, rn as TeamMember, rt as ImageBuildClientConfig, s as RunOptions, sn as BackendRegistryInteractionKind, st as ImageBuilder, t as Sandbox, tn as Team, tt as Image, u as RunRecord, un as backendRegistryEntrySchema, ut as CreateSelectSeatOptions, v as RouterEvalMatrixSandboxBox, vt as SeatResolutionObservation, w as RunTangleRouterEvalMatrixInSandboxResult, wt as EnsureInstanceOptions, x as RouterEvalMatrixSuiteResponse, xt as createSelectSeat, y as RouterEvalMatrixSandboxClient, yt as SeatSelectionError, z as ProfileCreateVerdict, zt as createBatchResultAccumulator } from "./client-Cb4JrGOP.js";
10
10
  import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-5N0YL9gq.js";
11
11
  import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-a-rRAtwL.js";
12
12
  import { _ as CollaborationTransportConfig, a as CollaborationClient, c as CollaborationClientConfig, d as CollaborationDocumentRef, f as CollaborationFileBridgeOptions, g as CollaborationTokenRefreshResponse, h as CollaborationTokenRefreshRequest, i as parseCollaborationDocumentId, l as CollaborationDocumentAdapter, m as CollaborationPermissions, n as buildCollaborationDocumentId, o as CollaborationBootstrapRequest, p as CollaborationFileEvent, r as normalizeCollaborationPath, s as CollaborationBootstrapResponse, t as CollaborationFileBridge, u as CollaborationDocumentChange, v as SaveCollaborationSnapshotRequest, y as SaveCollaborationSnapshotResponse } from "./index-DwaxVb4d.js";
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
- import { A as requestedPublicProfileDigest, F as createAgentRunOutcomeTracker, G as parseBackendType, H as backendTypeSchema, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, U as isolationPrincipalSchema, V as ALL_BACKEND_TYPES, i as terminalUpgradeHeadersSupported, k as normalizeRuntimeBackendConfig, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, z as TERMINAL_WS_ECHO_SUBPROTOCOL } from "./interactive-controller-5Bq8peF1.js";
1
+ import { A as requestedPublicProfileDigest, F as createAgentRunOutcomeTracker, G as parseBackendType, H as backendTypeSchema, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, U as isolationPrincipalSchema, V as ALL_BACKEND_TYPES, i as terminalUpgradeHeadersSupported, k as normalizeRuntimeBackendConfig, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, z as TERMINAL_WS_ECHO_SUBPROTOCOL } from "./interactive-controller-b3c8I1wn.js";
2
2
  import { i as SANDBOX_SIZE_PRESET_NAMES, r as agentProfileSchema, t as agentProfileConfidentialSchema } from "./profile-schema-B48XymtK.js";
3
- import { A as isMaterializerHarness, C as materializeProfileFileMounts, D as HARNESS_LAUNCH_MATERIALIZE_OPTIONS, E as validateDeferredProfileFileMounts, M as SandboxOperation, N as SandboxOperationFailedError, O as ProfileUnsupportedError, S as ManagedProcessClient, T as splitInlineProfileSkills, _ as collectAgentFinalMessageText, a as buildTraceExportPayload, b as isToolBearingEvent, c as toOtelJson, f as InteractiveSessionHandle, g as applySandboxEventText, h as createInteractiveTerminalSession, i as MAX_EGRESS_DENIALS_LIMIT, j as materializeProfile, k as enforceWorkspacePlanSupport, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as exportTraceBundle, p as InteractiveTerminalFrameLog, r as WorkspaceImages, s as otelTraceIdForTangleTrace, t as SandboxInstance, tt as runtimeWorkspaceCwdSchema, u as SandboxSession, v as collectAgentResponseText, w as splitInlineProfileFileMounts, y as getSandboxEventText } from "./sandbox-CqrI4_Hm.js";
4
- import { a as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, k as agentInteractiveSessionPromptRequestDigest, l as createInteractiveControlHolderId, n as browserInteractiveControlHolderId, o as InteractiveSessionControlController, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController, u as interactiveSessionIdentityDigest } from "./browser-interactive-control-controller-BcczRMMI.js";
3
+ import { A as isMaterializerHarness, C as materializeProfileFileMounts, D as HARNESS_LAUNCH_MATERIALIZE_OPTIONS, E as validateDeferredProfileFileMounts, M as SandboxOperation, N as SandboxOperationFailedError, O as ProfileUnsupportedError, S as ManagedProcessClient, T as splitInlineProfileSkills, _ as collectAgentFinalMessageText, a as buildTraceExportPayload, b as isToolBearingEvent, c as toOtelJson, f as InteractiveSessionHandle, g as applySandboxEventText, h as createInteractiveTerminalSession, i as MAX_EGRESS_DENIALS_LIMIT, j as materializeProfile, k as enforceWorkspacePlanSupport, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as exportTraceBundle, p as InteractiveTerminalFrameLog, r as WorkspaceImages, s as otelTraceIdForTangleTrace, t as SandboxInstance, tt as runtimeWorkspaceCwdSchema, u as SandboxSession, v as collectAgentResponseText, w as splitInlineProfileFileMounts, y as getSandboxEventText } from "./sandbox-ErD3PLNd.js";
4
+ import { a as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, k as agentInteractiveSessionPromptRequestDigest, l as createInteractiveControlHolderId, n as browserInteractiveControlHolderId, o as InteractiveSessionControlController, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController, u as interactiveSessionIdentityDigest } from "./browser-interactive-control-controller-BssZ0h6N.js";
5
5
  import { C as SandboxError, D as TimeoutError, E as StreamInterruptedError, O as ValidationError, S as ResumeEnvRequiredError, T as StateError, _ as NetworkError, b as ProfileFileMountPathError, c as AuthError, d as CompliancePlacementError, f as EdgeNotReadyError, g as KeyBudgetExhaustedError, h as GpuProviderNotConfiguredError, l as BranchFanoutExceedsHostError, m as FileWriteConflictError, o as responseMetadata, p as EgressProxyRecoveryError, r as parseErrorResponse, t as TerminalStreamError, u as CapabilityError, v as NotFoundError, w as ServerError, x as QuotaError, y as PartialFailureError } from "./errors-DNmfKxwE.js";
6
- import { _ as validateBatchRunRequest, a as InstancesClient, c as backendRegistryCapabilitiesSchema, d as backendRegistryResponseSchema, f as isBackendRegistryInteractionKind, g as createBatchResultAccumulator, h as IntelligenceClient, i as InstanceRestartingError, l as backendRegistryEntrySchema, m as parseBackendRegistryResponseBody, n as RunsClient, o as SandboxFleetClient, p as parseBackendRegistryResponse, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as backendRegistryInteractionKindSchema } from "./client-C-i1Sw0M.js";
7
- import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-DLq8aGE9.js";
8
- import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-CRsQf0bb.js";
6
+ import { _ as validateBatchRunRequest, a as InstancesClient, c as backendRegistryCapabilitiesSchema, d as backendRegistryResponseSchema, f as isBackendRegistryInteractionKind, g as createBatchResultAccumulator, h as IntelligenceClient, i as InstanceRestartingError, l as backendRegistryEntrySchema, m as parseBackendRegistryResponseBody, n as RunsClient, o as SandboxFleetClient, p as parseBackendRegistryResponse, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as backendRegistryInteractionKindSchema } from "./client-8gc0xXJx.js";
7
+ import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-CSC2B9E8.js";
8
+ import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-B4amLE0E.js";
9
9
  import "./file-transfer-DOSTbUSR.js";
10
10
  import { t as parseSSEStream } from "./sse-parser-BCG3iL9j.js";
11
11
  import { i as profileChannelReference, n as SandboxLines, r as lineInstanceKey, t as LinesClient } from "./lines-DjZMcB7V.js";
@@ -13,7 +13,7 @@ import { t as downloadFile } from "./file-download-I463VYUJ.js";
13
13
  import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
14
14
  import { a as parseLineApplicationResult, i as parseLineApplicationRequest, n as LINE_APPLICATION_REPLY_MAX_CHARS, o as sandboxFailureKind, r as LINE_APPLICATION_REQUEST_MAX_BYTES, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-CBWUEURz.js";
15
15
  import { a as createSelectSeat, i as SeatSelectionError, o as gatewaySeatTransport } from "./select-seat-Yn1FgzO8.js";
16
- import { s as BlueprintSandboxClient } from "./tangle-DDf-Or7h.js";
16
+ import { s as BlueprintSandboxClient } from "./tangle-wXK0k9ga.js";
17
17
  import { z } from "zod";
18
18
  //#region ../../../packages/runtime-contracts/dist/model-key-proxy.js
19
19
  const MANAGED_MODEL_KEY_SENTINEL = "proxy-managed-per-request";
@@ -1,5 +1,5 @@
1
1
  import { D as TimeoutError, _ as NetworkError, r as parseErrorResponse, u as CapabilityError } from "../errors-DNmfKxwE.js";
2
- import { i as fetchSandboxApi } from "../api-request-DLq8aGE9.js";
2
+ import { i as fetchSandboxApi } from "../api-request-CSC2B9E8.js";
3
3
  import { n as verifyDownload } from "../file-download-I463VYUJ.js";
4
4
  import { t as rawEvidenceArchiveAttemptSchema } from "../raw-evidence-export-Dog7W5zP.js";
5
5
  import { z } from "zod";
@@ -1,2 +1,2 @@
1
- import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-BcczRMMI.js";
1
+ import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-BssZ0h6N.js";
2
2
  export { BrowserInteractiveSessionControlController, InteractiveSessionNotRunningError, browserInteractiveControlHolderId };
@@ -1,9 +1,9 @@
1
1
  import { E as boundedJsonSchema, o as canonicalCandidateDigest, w as boundedIdentifierSchema } from "./harness-4D0kk6wY.js";
2
2
  import { r as agentProfileSchema } from "./profile-schema-B48XymtK.js";
3
- import { B as PlanContinuationSchema, D as agentInteractiveSessionControlClaimMatchesRef, P as AgentExactRunControlRefSchema, R as AgentExecutionOutcomeSchema, U as InteractionRequestSchema, c as assertInteractiveSessionRef, h as AgentInteractiveSessionAttachSchema, i as createBrowserInteractiveSessionControlTransport, o as InteractiveSessionControlController, r as browserInteractiveTerminalEndpoint, v as AgentInteractiveSessionControlClaimSchema, x as AgentInteractiveSessionRefSchema, z as DurablePlanSchema } from "./browser-interactive-control-controller-BcczRMMI.js";
3
+ import { B as PlanContinuationSchema, D as agentInteractiveSessionControlClaimMatchesRef, P as AgentExactRunControlRefSchema, R as AgentExecutionOutcomeSchema, U as InteractionRequestSchema, c as assertInteractiveSessionRef, h as AgentInteractiveSessionAttachSchema, i as createBrowserInteractiveSessionControlTransport, o as InteractiveSessionControlController, r as browserInteractiveTerminalEndpoint, v as AgentInteractiveSessionControlClaimSchema, x as AgentInteractiveSessionRefSchema, z as DurablePlanSchema } from "./browser-interactive-control-controller-BssZ0h6N.js";
4
4
  import { O as ValidationError, _ as NetworkError, i as parseResponseError, s as retryWhen, t as TerminalStreamError, u as CapabilityError, w as ServerError } from "./errors-DNmfKxwE.js";
5
5
  import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-BsriwJ8L.js";
6
- import { n as SDK_TIMEOUTS } from "./api-request-DLq8aGE9.js";
6
+ import { n as SDK_TIMEOUTS } from "./api-request-CSC2B9E8.js";
7
7
  import { c as uploadChunked, l as awaitSdkResend } from "./chunked-upload-DuXDFxxJ.js";
8
8
  import { t as parseSSEStream } from "./sse-parser-BCG3iL9j.js";
9
9
  import { z } from "zod";
@@ -1,4 +1,4 @@
1
- import "./api-request-DLq8aGE9.js";
1
+ import "./api-request-CSC2B9E8.js";
2
2
  import { u as SANDBOX_FILE_API_ABSOLUTE_ROOTS } from "./file-transfer-DOSTbUSR.js";
3
3
  import { a as listAgentPreviews, i as getAgentPreview, o as publishAgentPreview, r as ensureAgentPreview, s as removeAgentPreview, t as AgentPreviewError } from "./preview-operations-BTHZR1w2.js";
4
4
  //#region \0rolldown/runtime.js
@@ -396,7 +396,7 @@ async function createMcpServer(box, options = {}) {
396
396
  const { bindings, handlers } = bindToolSpecs(box, options);
397
397
  const server = new serverModule.Server({
398
398
  name: options.name ?? "tangle-sandbox",
399
- version: options.version ?? "1.0.433"
399
+ version: options.version ?? "1.0.435"
400
400
  }, { capabilities: { tools: {} } });
401
401
  server.setRequestHandler(typesModule.ListToolsRequestSchema, async () => ({ tools: bindings.map(({ spec: s }) => ({
402
402
  name: s.name,
@@ -1,6 +1,6 @@
1
1
  import { O as SandboxInstance } from "./index-CwOVRwDi.js";
2
2
  import { f as EnsureDevServerOptions, y as PreviewLinkInfo } from "./types-CqGEzcla.js";
3
- import { t as Sandbox } from "./client-DB31ZakX.js";
3
+ import { t as Sandbox } from "./client-Cb4JrGOP.js";
4
4
 
5
5
  //#region src/agent/preview-operations.d.ts
6
6
  type AgentPreviewOptions = Pick<EnsureDevServerOptions, "sessionId" | "cwd"> & {
package/dist/runtime.js CHANGED
@@ -1,7 +1,7 @@
1
- import { F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, c as SandboxRuntimeApi, t as BrowserInteractiveSessionController } from "./interactive-controller-5Bq8peF1.js";
2
- import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-BcczRMMI.js";
1
+ import { F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, c as SandboxRuntimeApi, t as BrowserInteractiveSessionController } from "./interactive-controller-b3c8I1wn.js";
2
+ import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-BssZ0h6N.js";
3
3
  import { C as SandboxError, D as TimeoutError, O as ValidationError, T as StateError, _ as NetworkError, b as ProfileFileMountPathError, c as AuthError, m as FileWriteConflictError, u as CapabilityError, v as NotFoundError, w as ServerError, x as QuotaError, y as PartialFailureError } from "./errors-DNmfKxwE.js";
4
- import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-DLq8aGE9.js";
4
+ import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-CSC2B9E8.js";
5
5
  import { c as uploadChunked } from "./chunked-upload-DuXDFxxJ.js";
6
6
  //#region src/runtime-client.ts
7
7
  function requireToken(token) {
@@ -1,13 +1,13 @@
1
- import { A as requestedPublicProfileDigest, B as AgentRuntimeAttachmentsSchema, C as runtimeFilesystemPath, D as assertCurrentBackendType, E as applyRequestedModel, F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, O as mergeRuntimeBackendConfig, P as withoutRuntimeSecrets, S as encodeTextForWire, W as normalizeEffectiveBackend, _ as mintTraceId, a as assertScopedTokenActive, b as validateAcceptedDispatchRunRef, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as callHeaders, g as isTraceId, h as TRACE_ID_HEADER, i as terminalUpgradeHeadersSupported, j as requestedSecretProfilePublicDigest, k as normalizeRuntimeBackendConfig, l as normalizeSessionInfo, m as assertFileWritePreconditions, n as InteractiveSessionController, p as sessionHeaders, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as resolveTraceId, w as canUseNodeHttp2, x as encodePromptForWire, y as resolveDispatchRunIdentity } from "./interactive-controller-5Bq8peF1.js";
1
+ import { A as requestedPublicProfileDigest, B as AgentRuntimeAttachmentsSchema, C as runtimeFilesystemPath, D as assertCurrentBackendType, E as applyRequestedModel, F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, O as mergeRuntimeBackendConfig, P as withoutRuntimeSecrets, S as encodeTextForWire, W as normalizeEffectiveBackend, _ as mintTraceId, a as assertScopedTokenActive, b as validateAcceptedDispatchRunRef, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as callHeaders, g as isTraceId, h as TRACE_ID_HEADER, i as terminalUpgradeHeadersSupported, j as requestedSecretProfilePublicDigest, k as normalizeRuntimeBackendConfig, l as normalizeSessionInfo, m as assertFileWritePreconditions, n as InteractiveSessionController, p as sessionHeaders, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as resolveTraceId, w as canUseNodeHttp2, x as encodePromptForWire, y as resolveDispatchRunIdentity } from "./interactive-controller-b3c8I1wn.js";
2
2
  import { D as boundedStringSchema, _ as sha256DigestSchema, o as canonicalCandidateDigest, s as canonicalCandidateJson, w as boundedIdentifierSchema } from "./harness-4D0kk6wY.js";
3
3
  import { a as ProxySecretReceiptSchema, r as agentProfileSchema } from "./profile-schema-B48XymtK.js";
4
- import { A as agentInteractiveSessionStatusMatchesRef, B as PlanContinuationSchema, C as AgentInteractiveSessionStopAcknowledgementSchema, D as agentInteractiveSessionControlClaimMatchesRef, E as agentInteractiveSessionControlClaimIsNewer, F as AgentRunCancellationAcknowledgementSchema, G as InteractionResponseSchema, H as InteractionBindingSchema, I as AgentRunCancellationRequestSchema, L as agentRunCancellationAcknowledgementMatchesRequest, M as agentInteractiveDimensionSchema, N as sameAgentExactRun, O as agentInteractiveSessionPromptAcknowledgementMatchesCommand, P as AgentExactRunControlRefSchema, S as AgentInteractiveSessionStatusSchema, T as agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, U as InteractionRequestSchema, V as InteractionAcknowledgementSchema, W as InteractionResponseCommandSchema, _ as AgentInteractiveSessionControlClaimRequestSchema, b as AgentInteractiveSessionPromptCommandSchema, d as interactiveSessionControlClaimResponseSchema, f as interactiveSessionControlReleaseResponseSchema, g as AgentInteractiveSessionControlClaimAcknowledgementSchema, h as AgentInteractiveSessionAttachSchema, j as agentInteractiveSessionStopAcknowledgementMatchesCommand, l as createInteractiveControlHolderId, m as interactiveSessionStatusResponseSchema, p as interactiveSessionControlValidationResponseSchema, v as AgentInteractiveSessionControlClaimSchema, w as AgentInteractiveSessionStopCommandSchema, x as AgentInteractiveSessionRefSchema, y as AgentInteractiveSessionPromptAcknowledgementSchema } from "./browser-interactive-control-controller-BcczRMMI.js";
4
+ import { A as agentInteractiveSessionStatusMatchesRef, B as PlanContinuationSchema, C as AgentInteractiveSessionStopAcknowledgementSchema, D as agentInteractiveSessionControlClaimMatchesRef, E as agentInteractiveSessionControlClaimIsNewer, F as AgentRunCancellationAcknowledgementSchema, G as InteractionResponseSchema, H as InteractionBindingSchema, I as AgentRunCancellationRequestSchema, L as agentRunCancellationAcknowledgementMatchesRequest, M as agentInteractiveDimensionSchema, N as sameAgentExactRun, O as agentInteractiveSessionPromptAcknowledgementMatchesCommand, P as AgentExactRunControlRefSchema, S as AgentInteractiveSessionStatusSchema, T as agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, U as InteractionRequestSchema, V as InteractionAcknowledgementSchema, W as InteractionResponseCommandSchema, _ as AgentInteractiveSessionControlClaimRequestSchema, b as AgentInteractiveSessionPromptCommandSchema, d as interactiveSessionControlClaimResponseSchema, f as interactiveSessionControlReleaseResponseSchema, g as AgentInteractiveSessionControlClaimAcknowledgementSchema, h as AgentInteractiveSessionAttachSchema, j as agentInteractiveSessionStopAcknowledgementMatchesCommand, l as createInteractiveControlHolderId, m as interactiveSessionStatusResponseSchema, p as interactiveSessionControlValidationResponseSchema, v as AgentInteractiveSessionControlClaimSchema, w as AgentInteractiveSessionStopCommandSchema, x as AgentInteractiveSessionRefSchema, y as AgentInteractiveSessionPromptAcknowledgementSchema } from "./browser-interactive-control-controller-BssZ0h6N.js";
5
5
  import { t as canonicalAgentProfileDigest } from "./agent-execution-preparation-C2KLuq0G.js";
6
6
  import { C as SandboxError, D as TimeoutError, E as StreamInterruptedError, O as ValidationError, T as StateError, _ as NetworkError, a as readResponseJson, b as ProfileFileMountPathError, c as AuthError, f as EdgeNotReadyError, i as parseResponseError, n as isTransientWrite, o as responseMetadata, r as parseErrorResponse, s as retryWhen, t as TerminalStreamError, u as CapabilityError, v as NotFoundError, w as ServerError, y as PartialFailureError } from "./errors-DNmfKxwE.js";
7
7
  import { t as parseSandboxRetryAfterHeader } from "./retry-after-header-BZbs5rig.js";
8
8
  import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-BsriwJ8L.js";
9
9
  import { a as backoffDelayMs, o as isUndelivered, r as abortableSleep } from "./retry-policy-oW3_ljoc.js";
10
- import { a as isReplayableBody, i as fetchSandboxApi, n as SDK_TIMEOUTS, o as rewrapResponse, t as IDEMPOTENT_METHODS } from "./api-request-DLq8aGE9.js";
10
+ import { a as isReplayableBody, i as fetchSandboxApi, n as SDK_TIMEOUTS, o as rewrapResponse, t as IDEMPOTENT_METHODS } from "./api-request-CSC2B9E8.js";
11
11
  import { a as SANDBOX_PROXY_REQUEST_MAX_BYTES, c as PROFILE_FILE_MOUNT_OUTSIDE_ROOTS_CODE, d as isProfileFileMountOutsideRoots, f as profileFileMountOutsideRootsMessage, l as SANDBOX_AGENT_HOME, o as FILE_OPERATION_LIMITS, t as isInsideReservedDir, u as SANDBOX_FILE_API_ABSOLUTE_ROOTS } from "./file-transfer-DOSTbUSR.js";
12
12
  import { c as uploadChunked, l as awaitSdkResend, u as takeSdkTurn } from "./chunked-upload-DuXDFxxJ.js";
13
13
  import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-sGVP8skk.js";
@@ -1,5 +1,5 @@
1
1
  import { R as SandboxError } from "./terminal-stream-types-cEwFyagj.js";
2
- import { _t as SeatOwnerTransport, bt as SeatSelectionRequest, ft as SEAT_COMMAND_TIMEOUT_MS } from "./client-DB31ZakX.js";
2
+ import { _t as SeatOwnerTransport, bt as SeatSelectionRequest, ft as SEAT_COMMAND_TIMEOUT_MS } from "./client-Cb4JrGOP.js";
3
3
 
4
4
  //#region src/select-seat-command.d.ts
5
5
  /** Public reply bound; the owner prints one metadata object. */
@@ -1,5 +1,5 @@
1
1
  import { n as combineAbortSignals } from "../abort-signal-BsriwJ8L.js";
2
- import { i as fetchSandboxApi } from "../api-request-DLq8aGE9.js";
2
+ import { i as fetchSandboxApi } from "../api-request-CSC2B9E8.js";
3
3
  import "../sidecar-proxy-error-DTdbCbUM.js";
4
4
  import { t as parseSSEStream } from "../sse-parser-BCG3iL9j.js";
5
5
  import { PART_TEXT, PART_TEXT_SUFFIX } from "@tangle-network/agent-core/sse";
@@ -1,3 +1,3 @@
1
- import { _ as SandboxCreateResponseParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as AgentSandboxBlueprintAbi, g as SandboxCreateParamTypes, h as JsonResponseParamTypes, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_DELETE, n as fetchQuote, o as validateQuote, p as JOB_SANDBOX_CREATE, r as inputsHashOf, s as BlueprintSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxIdParamTypes } from "../tangle-DDf-Or7h.js";
1
+ import { _ as SandboxCreateResponseParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as AgentSandboxBlueprintAbi, g as SandboxCreateParamTypes, h as JsonResponseParamTypes, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_DELETE, n as fetchQuote, o as validateQuote, p as JOB_SANDBOX_CREATE, r as inputsHashOf, s as BlueprintSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxIdParamTypes } from "../tangle-wXK0k9ga.js";
2
2
  import { t as ITangleJobsAbi } from "../abi-pcDt2Adp.js";
3
3
  export { AgentSandboxBlueprintAbi, BlueprintSandboxClient, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, OperatorSession, OperatorSessionError, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
@@ -1,6 +1,6 @@
1
- import { L as readFilesystemIncarnationTuple, n as createSandboxInstanceFromResponse } from "./sandbox-CqrI4_Hm.js";
1
+ import { L as readFilesystemIncarnationTuple, n as createSandboxInstanceFromResponse } from "./sandbox-ErD3PLNd.js";
2
2
  import { a as readResponseJson } from "./errors-DNmfKxwE.js";
3
- import { i as fetchSandboxApi } from "./api-request-DLq8aGE9.js";
3
+ import { i as fetchSandboxApi } from "./api-request-CSC2B9E8.js";
4
4
  import { t as ITangleJobsAbi } from "./abi-pcDt2Adp.js";
5
5
  import { _ as rotlBH, a as anumber, b as rotlSL, d as createXOFer, g as u32, h as toBytes$1, l as createHasher, m as swap32IfBE, n as abytes, o as aoutput, r as aexists, s as clean, t as Hash, v as rotlBL, x as split, y as rotlSH } from "./utils-BvN0Mk3j.js";
6
6
  //#region ../../../packages/runtime-contracts/dist/tangle-blueprint-abi.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox",
3
- "version": "1.0.433",
3
+ "version": "1.0.435",
4
4
  "description": "TypeScript SDK for Tangle Sandbox: create cloud sandboxes and run commands and coding agents in them",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -153,15 +153,15 @@
153
153
  "vitest": "^4.1.12",
154
154
  "ws": "^8.22.0",
155
155
  "yjs": "13.6.33",
156
+ "@products/sandbox-test-utils": "0.0.0",
156
157
  "@repo/shared": "0.0.0",
157
158
  "@tangle-network/agent-profile-materialize": "0.27.1",
158
- "@tangle-network/runtime-contracts": "0.20.0",
159
- "@products/sandbox-test-utils": "0.0.0",
160
- "@tangle-network/cli-agent-registry": "0.15.0"
159
+ "@tangle-network/cli-agent-registry": "0.15.0",
160
+ "@tangle-network/runtime-contracts": "0.20.0"
161
161
  },
162
162
  "tangleRelease": {
163
- "sourceSha": "181041768e74e7eb4b84b4622d34a9d097a6a15c",
164
- "mergedAt": "2026-11-16T19:06:06-08:00"
163
+ "sourceSha": "1642f6462df7dd1c1c2e8c08c46918d2e938a806",
164
+ "mergedAt": "2026-11-16T20:51:01-08:00"
165
165
  },
166
166
  "scripts": {
167
167
  "build": "node scripts/build-dist.mjs && bash scripts/verify-dist.sh",