@tangle-network/sandbox 1.0.216 → 1.0.218

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,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-CPZ9Ya53.js";
2
- import { O as assertCurrentBackendType } from "../interactive-controller-DzlxPT5W.js";
3
- import { t as SandboxInstance } from "../sandbox-B_5sumhE.js";
1
+ import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-pH5nJCGw.js";
2
+ import { O as assertCurrentBackendType } from "../interactive-controller-D8QKEwjM.js";
3
+ import { t as SandboxInstance } from "../sandbox-Dpdeoqhx.js";
4
4
  import { D as ValidationError, _ as NotFoundError, w as StateError } from "../errors-Bh1udpJ0.js";
5
- import { t as Sandbox } from "../client-BO6CLWUk.js";
5
+ import { t as Sandbox } from "../client-DUJYpZv6.js";
6
6
  import { z } from "zod";
7
7
  //#region src/agent/instances.ts
8
8
  const managers = /* @__PURE__ */ new WeakMap();
@@ -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-CPZ9Ya53.js").then((n) => n.n), import("@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js")]);
69
+ const [{ createMcpServer }, { WebStandardStreamableHTTPServerTransport }] = await Promise.all([import("../mcp-local-pH5nJCGw.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,
@@ -1,5 +1,5 @@
1
1
  import { t as parseSandboxRetryAfterHeader } from "./retry-after-header-DUdCC0KJ.js";
2
- import { n as SANDBOX_API_RETRY_SCOPE, o as planResend, r as abortableSleep, s as retryBudget } from "./retry-policy-0_NCh5OB.js";
2
+ import { c as retryBudget, n as SANDBOX_API_RETRY_SCOPE, o as isUndelivered, r as abortableSleep, s as planResend } from "./retry-policy-Dh-VezcE.js";
3
3
  //#region src/lib/response-rewrap.mjs
4
4
  /**
5
5
  * Response wrappers that must outlive the fetch Response they wrap.
@@ -29,7 +29,7 @@ function rewrapResponse(original, headers, body = original.body) {
29
29
  //#endregion
30
30
  //#region src/lib/api-request.mjs
31
31
  /** The package version tsdown.config.ts defines; unbuilt source reports 0.0.0. */
32
- const SDK_VERSION = "1.0.216";
32
+ const SDK_VERSION = "1.0.218";
33
33
  function withRequestContextHeaders(response, path, method, body = response.body) {
34
34
  const headers = new Headers(response.headers);
35
35
  headers.set("x-tangle-request-path", path);
@@ -67,7 +67,9 @@ function retryDelayMs(response, attempt, deadline) {
67
67
  * (an idempotent method or an `Idempotency-Key`, a replayable body, no
68
68
  * `x-no-retry`) goes again after a connection lost before any response, a
69
69
  * 502-504, or a 429 with `Retry-After`: four attempts at most, inside the
70
- * caller's one timeout. A response is final once its headers arrive.
70
+ * caller's one timeout. A dial whose connect phase failed reached nothing, so
71
+ * any replayable request without `x-no-retry` dials again on the same terms.
72
+ * A response is final once its headers arrive.
71
73
  */
72
74
  async function fetchSandboxApi({ baseUrl, apiKey, timeoutMs = 3e4, signal, fetchImpl = fetch, networkError = (error) => error, timeoutError = () => new DOMException("The operation was aborted due to timeout", "TimeoutError") }, path, options, fetchOptions) {
73
75
  const url = `${baseUrl.replace(/\/+$/, "")}${path}`;
@@ -94,7 +96,8 @@ async function fetchSandboxApi({ baseUrl, apiKey, timeoutMs = 3e4, signal, fetch
94
96
  const isFormDataBody = typeof FormData !== "undefined" && options?.body instanceof FormData;
95
97
  if (!headers.has("Content-Type") && !isFormDataBody) headers.set("Content-Type", "application/json");
96
98
  const method = (options?.method ?? "GET").toUpperCase();
97
- const retryable = !headers.has("x-no-retry") && isReplayableBody(options?.body) && (IDEMPOTENT_METHODS.has(method) || headers.has("Idempotency-Key"));
99
+ const repeatable = !headers.has("x-no-retry") && isReplayableBody(options?.body);
100
+ const safe = IDEMPOTENT_METHODS.has(method) || headers.has("Idempotency-Key");
98
101
  let response;
99
102
  let lost;
100
103
  for (let attempt = 1;; attempt++) {
@@ -110,7 +113,8 @@ async function fetchSandboxApi({ baseUrl, apiKey, timeoutMs = 3e4, signal, fetch
110
113
  response = void 0;
111
114
  lost = error;
112
115
  }
113
- const delayMs = retryable && attempt < 4 ? retryDelayMs(response, attempt, deadline) : void 0;
116
+ const undelivered = !response && isUndelivered(lost);
117
+ const delayMs = repeatable && (undelivered || safe) && attempt < 4 ? retryDelayMs(response, attempt, deadline) : void 0;
114
118
  if (delayMs === void 0) {
115
119
  if (!response) throw lost;
116
120
  break;
@@ -1,5 +1,5 @@
1
1
  import { S as SandboxError, n as isTransientWrite, r as parseErrorResponse } from "./errors-Bh1udpJ0.js";
2
- import { i as awaitResend, n as SANDBOX_API_RETRY_SCOPE, r as abortableSleep, s as retryBudget } from "./retry-policy-0_NCh5OB.js";
2
+ import { c as retryBudget, i as awaitResend, n as SANDBOX_API_RETRY_SCOPE, r as abortableSleep } from "./retry-policy-Dh-VezcE.js";
3
3
  import { i as FILE_UPLOAD_SESSION_MAX_BYTES, n as isFileTooLargeErrorBody, r as isPayloadTooLargeErrorBody } from "./file-transfer-BSe4ayU9.js";
4
4
  //#region src/lib/sdk-retry.ts
5
5
  const countSdkRequest = () => retryBudget(SANDBOX_API_RETRY_SCOPE).sent();
@@ -1,5 +1,5 @@
1
1
  import { i as FILE_UPLOAD_SESSION_MAX_BYTES } from "./file-transfer-BSe4ayU9.js";
2
- import { a as planCompression, i as partCount, n as commitSession, o as putPart, r as initUploadSession, t as abortSession } from "./chunked-upload-4QOzIF2U.js";
2
+ import { a as planCompression, i as partCount, n as commitSession, o as putPart, r as initUploadSession, t as abortSession } from "./chunked-upload-BqjKs2uB.js";
3
3
  import { createHash } from "node:crypto";
4
4
  import { open } from "node:fs/promises";
5
5
  //#region src/lib/chunked-upload-file.ts
@@ -1,11 +1,11 @@
1
- import { A as normalizeRuntimeBackendConfig, D as applyRequestedModel, E as isBrowserRuntime, H as backendTypeSchema, N as withProfileHarness, O as assertCurrentBackendType, P as withoutCreateOnlyModelFields, S as encodePromptForWire, o as requestInteractiveSessionToken } from "./interactive-controller-DzlxPT5W.js";
1
+ import { A as normalizeRuntimeBackendConfig, D as applyRequestedModel, E as isBrowserRuntime, H as backendTypeSchema, N as withProfileHarness, O as assertCurrentBackendType, P as withoutCreateOnlyModelFields, S as encodePromptForWire, o as requestInteractiveSessionToken } from "./interactive-controller-D8QKEwjM.js";
2
2
  import { r as agentProfileSchema } from "./profile-schema-C1KpT-wS.js";
3
- import { $ as isCapacityShortageCreateError, B as normalizeConnection, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeSandboxCreateReceipt, G as CAPACITY_ETA_WAIT_MAX_MS, H as normalizeProxySecretReceipt, I as normalizeStartupDiagnostics, J as DEPLOY_WINDOW_RETRY_MS, O as isRetryableProfileFileMaterializeFailure, P as normalizeCaptureProof, Q as generateIdempotencyKey, R as dateOf, T as splitInlineProfileFileMounts, U as normalizeSandboxShape, V as normalizeEgressPolicyFields, W as CAPACITY_ETA_MARGIN_MS, X as createRetryDelayMs, Y as awaitCreateResend, Z as extendableDeadline, d as sandboxLedgerUsd, et as isDeployWindowCreateError, n as createSandboxInstanceFromResponse, nt as isRetryableCreateError, o as exportTraceBundle, tt as isRateLimitCreateError, z as parseLifecycleTimes } from "./sandbox-B_5sumhE.js";
3
+ import { $ as isCapacityShortageCreateError, B as normalizeConnection, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeSandboxCreateReceipt, G as CAPACITY_ETA_WAIT_MAX_MS, H as normalizeProxySecretReceipt, I as normalizeStartupDiagnostics, J as DEPLOY_WINDOW_RETRY_MS, O as isRetryableProfileFileMaterializeFailure, P as normalizeCaptureProof, Q as generateIdempotencyKey, R as dateOf, T as splitInlineProfileFileMounts, U as normalizeSandboxShape, V as normalizeEgressPolicyFields, W as CAPACITY_ETA_MARGIN_MS, X as createRetryDelayMs, Y as awaitCreateResend, Z as extendableDeadline, d as sandboxLedgerUsd, et as isDeployWindowCreateError, n as createSandboxInstanceFromResponse, nt as isRetryableCreateError, o as exportTraceBundle, tt as isRateLimitCreateError, z as parseLifecycleTimes } from "./sandbox-Dpdeoqhx.js";
4
4
  import { C as ServerError, D as ValidationError, E as TimeoutError, S as SandboxError, _ as NotFoundError, a as readResponseJson, g as NetworkError, i as parseResponseError, r as parseErrorResponse, s as AuthError, v as PartialFailureError } from "./errors-Bh1udpJ0.js";
5
5
  import { n as combineAbortSignals } from "./abort-signal-BbJTt2QJ.js";
6
- import { r as abortableSleep, t as RETRY_POLICY } from "./retry-policy-0_NCh5OB.js";
6
+ import { r as abortableSleep, t as RETRY_POLICY } from "./retry-policy-Dh-VezcE.js";
7
7
  import { l as SANDBOX_AGENT_HOME, t as isInsideReservedDir } from "./file-transfer-BSe4ayU9.js";
8
- import { r as fetchSandboxApi } from "./api-request-C_bupPUV.js";
8
+ import { r as fetchSandboxApi } from "./api-request-DQMcM1zv.js";
9
9
  import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-BIaDMUtu.js";
10
10
  import { t as parseSSEStream } from "./sse-parser-DOCszo1K.js";
11
11
  import { t as LinesClient } from "./lines-DvSNh5dD.js";
@@ -1,5 +1,5 @@
1
1
  import { r as agentProfileSchema } from "./profile-schema-C1KpT-wS.js";
2
- import { rt as canonicalAgentProfileDigest } from "./sandbox-B_5sumhE.js";
2
+ import { rt as canonicalAgentProfileDigest } from "./sandbox-Dpdeoqhx.js";
3
3
  import { D as ValidationError, S as SandboxError, l as CapabilityError } from "./errors-Bh1udpJ0.js";
4
4
  import { t as awaitWithAbort } from "./abort-signal-BbJTt2QJ.js";
5
5
  import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-C6DtK7GX-BbbiAn-Z.js";
package/dist/core.js CHANGED
@@ -1,7 +1,7 @@
1
- import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-B_5sumhE.js";
1
+ import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-Dpdeoqhx.js";
2
2
  import { C as ServerError, D as ValidationError, E as TimeoutError, S as SandboxError, _ as NotFoundError, b as QuotaError, g as NetworkError, l as CapabilityError, p as FileWriteConflictError, r as parseErrorResponse, s as AuthError, v as PartialFailureError, w as StateError, y as ProfileFileMountPathError } from "./errors-Bh1udpJ0.js";
3
- import { a as InstancesClient, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, p as isBackendRegistryInteractionKind, r as HostedInstance, t as Sandbox, u as backendRegistryEntrySchema } from "./client-BO6CLWUk.js";
3
+ import { a as InstancesClient, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, p as isBackendRegistryInteractionKind, r as HostedInstance, t as Sandbox, u as backendRegistryEntrySchema } from "./client-DUJYpZv6.js";
4
4
  import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-DvSNh5dD.js";
5
5
  import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
6
- import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-lu45UrVr.js";
6
+ import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-CIV0sCjY.js";
7
7
  export { AuthError, CapabilityError, FileWriteConflictError, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, InstanceRestartingError, InstancesClient, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, LinesClient, ManagedProcessClient, NetworkError, NotFoundError, PartialFailureError, ProfileFileMountPathError, PublicTemplatePublishError, PublicTemplatesClient, QuotaError, Sandbox, SandboxError, SandboxInstance, SeatSelectionError, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, createSelectSeat, gatewaySeatTransport, isBackendRegistryInteractionKind, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseErrorResponse, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference, sandboxFailureKind };
package/dist/index.js CHANGED
@@ -1,17 +1,17 @@
1
- import { A as normalizeRuntimeBackendConfig, B as TERMINAL_WS_ECHO_SUBPROTOCOL, G as parseBackendType, H as backendTypeSchema, I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, R as deriveAgentRunOutcome, U as isolationPrincipalSchema, V as ALL_BACKEND_TYPES, i as terminalUpgradeHeadersSupported, j as requestedPublicProfileDigest, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, z as projectAgentTerminalRecord } from "./interactive-controller-DzlxPT5W.js";
1
+ import { A as normalizeRuntimeBackendConfig, B as TERMINAL_WS_ECHO_SUBPROTOCOL, G as parseBackendType, H as backendTypeSchema, I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, R as deriveAgentRunOutcome, U as isolationPrincipalSchema, V as ALL_BACKEND_TYPES, i as terminalUpgradeHeadersSupported, j as requestedPublicProfileDigest, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, z as projectAgentTerminalRecord } from "./interactive-controller-D8QKEwjM.js";
2
2
  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-BiP6TJFP.js";
3
3
  import { i as SANDBOX_SIZE_PRESET_NAMES, r as agentProfileSchema, t as agentProfileConfidentialSchema } from "./profile-schema-C1KpT-wS.js";
4
- import { A as ProfileUnsupportedError, C as SandboxOperationFailedError, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, M as isMaterializerHarness, N as materializeProfile, S as SandboxOperation, T as splitInlineProfileFileMounts, _ 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 enforceWorkspacePlanSupport, k as HARNESS_LAUNCH_MATERIALIZE_OPTIONS, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as exportTraceBundle, p as InteractiveTerminalFrameLog, r as WorkspaceImages, s as otelTraceIdForTangleTrace, t as SandboxInstance, u as SandboxSession, v as collectAgentResponseText, w as materializeProfileFileMounts, x as ManagedProcessClient, y as getSandboxEventText } from "./sandbox-B_5sumhE.js";
4
+ import { A as ProfileUnsupportedError, C as SandboxOperationFailedError, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, M as isMaterializerHarness, N as materializeProfile, S as SandboxOperation, T as splitInlineProfileFileMounts, _ 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 enforceWorkspacePlanSupport, k as HARNESS_LAUNCH_MATERIALIZE_OPTIONS, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as exportTraceBundle, p as InteractiveTerminalFrameLog, r as WorkspaceImages, s as otelTraceIdForTangleTrace, t as SandboxInstance, u as SandboxSession, v as collectAgentResponseText, w as materializeProfileFileMounts, x as ManagedProcessClient, y as getSandboxEventText } from "./sandbox-Dpdeoqhx.js";
5
5
  import { C as ServerError, D as ValidationError, E as TimeoutError, S as SandboxError, T as StreamInterruptedError, _ as NotFoundError, b as QuotaError, c as BranchFanoutExceedsHostError, d as EdgeNotReadyError, f as EgressProxyRecoveryError, g as NetworkError, h as KeyBudgetExhaustedError, l as CapabilityError, m as GpuProviderNotConfiguredError, p as FileWriteConflictError, r as parseErrorResponse, s as AuthError, t as TerminalStreamError, u as CompliancePlacementError, v as PartialFailureError, w as StateError, x as ResumeEnvRequiredError, y as ProfileFileMountPathError } from "./errors-Bh1udpJ0.js";
6
- import { _ as createBatchResultAccumulator, a as InstancesClient, c as runtimeWorkspaceCwdSchema, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, g as IntelligenceClient, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, n as RunsClient, o as SandboxFleetClient, p as isBackendRegistryInteractionKind, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as backendRegistryEntrySchema, v as validateBatchRunRequest } from "./client-BO6CLWUk.js";
6
+ import { _ as createBatchResultAccumulator, a as InstancesClient, c as runtimeWorkspaceCwdSchema, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, g as IntelligenceClient, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, n as RunsClient, o as SandboxFleetClient, p as isBackendRegistryInteractionKind, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as backendRegistryEntrySchema, v as validateBatchRunRequest } from "./client-DUJYpZv6.js";
7
7
  import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-Bv22hvgZ.js";
8
8
  import "./file-transfer-BSe4ayU9.js";
9
9
  import { t as parseSSEStream } from "./sse-parser-DOCszo1K.js";
10
10
  import { i as profileChannelReference, n as SandboxLines, r as lineInstanceKey, t as LinesClient } from "./lines-DvSNh5dD.js";
11
11
  import { t as downloadFile } from "./file-download-B9UceD-P.js";
12
12
  import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
13
- import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-lu45UrVr.js";
14
- import { s as BlueprintSandboxClient } from "./tangle-rniKWozO.js";
13
+ import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-CIV0sCjY.js";
14
+ import { s as BlueprintSandboxClient } from "./tangle-D1hW4Guz.js";
15
15
  import { z } from "zod";
16
16
  //#region ../../../packages/runtime-contracts/dist/model-key-proxy.js
17
17
  const MANAGED_MODEL_KEY_SENTINEL = "proxy-managed-per-request";
@@ -1,5 +1,5 @@
1
1
  import { E as TimeoutError, g as NetworkError, r as parseErrorResponse } from "../errors-Bh1udpJ0.js";
2
- import { r as fetchSandboxApi } from "../api-request-C_bupPUV.js";
2
+ import { r as fetchSandboxApi } from "../api-request-DQMcM1zv.js";
3
3
  import { n as verifyDownload } from "../file-download-B9UceD-P.js";
4
4
  //#region src/intelligence/index.ts
5
5
  /**
@@ -3,7 +3,7 @@ import { B as PlanContinuationSchema, D as agentInteractiveSessionControlClaimMa
3
3
  import { r as agentProfileSchema } from "./profile-schema-C1KpT-wS.js";
4
4
  import { C as ServerError, D as ValidationError, S as SandboxError, g as NetworkError, i as parseResponseError, l as CapabilityError, t as TerminalStreamError } from "./errors-Bh1udpJ0.js";
5
5
  import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-BbJTt2QJ.js";
6
- import { c as awaitSdkResend, s as uploadChunked } from "./chunked-upload-4QOzIF2U.js";
6
+ import { c as awaitSdkResend, s as uploadChunked } from "./chunked-upload-BqjKs2uB.js";
7
7
  import { t as parseSSEStream } from "./sse-parser-DOCszo1K.js";
8
8
  import { z } from "zod";
9
9
  import { PART_TEXT, PART_TEXT_SUFFIX } from "@tangle-network/agent-core/sse";
@@ -1,2 +1,2 @@
1
- import { t as runPreparedEvidence } from "../prepared-evidence--rjwnXGD.js";
1
+ import { t as runPreparedEvidence } from "../prepared-evidence-Byty5p51.js";
2
2
  export { runPreparedEvidence };
@@ -1,2 +1,2 @@
1
- import { n as withPreparedProcessCalls, t as runPreparedProcess } from "../prepared-process-N-y0xr9S.js";
1
+ import { n as withPreparedProcessCalls, t as runPreparedProcess } from "../prepared-process-CWf84BFt.js";
2
2
  export { runPreparedProcess, withPreparedProcessCalls };
@@ -1,5 +1,5 @@
1
1
  import { u as SANDBOX_FILE_API_ABSOLUTE_ROOTS } from "./file-transfer-BSe4ayU9.js";
2
- import "./api-request-C_bupPUV.js";
2
+ import "./api-request-DQMcM1zv.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-B3TTvqlm.js";
4
4
  //#region \0rolldown/runtime.js
5
5
  var __defProp = Object.defineProperty;
@@ -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.216"
399
+ version: options.version ?? "1.0.218"
400
400
  }, { capabilities: { tools: {} } });
401
401
  server.setRequestHandler(typesModule.ListToolsRequestSchema, async () => ({ tools: bindings.map(({ spec: s }) => ({
402
402
  name: s.name,
@@ -1,5 +1,5 @@
1
1
  import { t as parseSandboxRetryAfterHeader } from "./retry-after-header-DUdCC0KJ.js";
2
- import { r as abortableSleep } from "./retry-policy-0_NCh5OB.js";
2
+ import { r as abortableSleep } from "./retry-policy-Dh-VezcE.js";
3
3
  //#region src/lib/prepared-evidence.mjs
4
4
  async function receipt(response, idField) {
5
5
  const reader = response.body?.getReader();
@@ -1,5 +1,5 @@
1
1
  import { t as parseSandboxRetryAfterHeader } from "./retry-after-header-DUdCC0KJ.js";
2
- import { r as abortableSleep } from "./retry-policy-0_NCh5OB.js";
2
+ import { r as abortableSleep } from "./retry-policy-Dh-VezcE.js";
3
3
  //#region src/lib/prepared-process.mjs
4
4
  /** Request and pause share one deadline, including independent cancellation cleanup. */
5
5
  function processRequests(request, deadline, signal) {
@@ -1,5 +1,5 @@
1
1
  import { n as verifyDownload } from "./file-download-B9UceD-P.js";
2
- import { t as runPreparedEvidence } from "./prepared-evidence--rjwnXGD.js";
2
+ import { t as runPreparedEvidence } from "./prepared-evidence-Byty5p51.js";
3
3
  import { z } from "zod";
4
4
  //#region src/lib/raw-evidence-archive.ts
5
5
  const digest = z.string().regex(/^sha256:[a-f0-9]{64}$/).transform((value) => `sha256:${value.slice(7)}`);
@@ -2,9 +2,47 @@
2
2
  /**
3
3
  * The one pacing every lifecycle hop re-sends with: the server's Retry-After,
4
4
  * else full-jitter exponential backoff, inside a retry budget per downstream
5
- * holding a storm near a tenth of the requests sent. Whether a failure may be
6
- * re-sent stays with the catalog and the verb. Imports nothing.
5
+ * holding a storm near a tenth of the requests sent. Whether a failure reached
6
+ * the server is read here; whether it may be re-sent stays with the catalog
7
+ * and the verb. Imports nothing.
7
8
  */
9
+ /** Raised before a request byte left: a dial refused, unresolved, unroutable or timed out, or a refused certificate. */
10
+ const UNDELIVERED_CODES = new Set([
11
+ "ECONNREFUSED",
12
+ "ENOTFOUND",
13
+ "EAI_AGAIN",
14
+ "EHOSTUNREACH",
15
+ "ENETUNREACH",
16
+ "UND_ERR_CONNECT_TIMEOUT",
17
+ "ERR_TLS_CERT_ALTNAME_INVALID",
18
+ "DEPTH_ZERO_SELF_SIGNED_CERT",
19
+ "SELF_SIGNED_CERT_IN_CHAIN",
20
+ "UNABLE_TO_VERIFY_LEAF_SIGNATURE",
21
+ "UNABLE_TO_GET_ISSUER_CERT_LOCALLY",
22
+ "CERT_HAS_EXPIRED"
23
+ ]);
24
+ /** A Worker's fetch names the failure only in its message. */
25
+ const UNDELIVERED_MESSAGE = /\b(?:connection refused|DNS lookup failed|TLS handshake failed|before secure TLS connection was established)\b/i;
26
+ /**
27
+ * Whether a thrown failure proves no request reached the peer, so any verb may
28
+ * dial again: a code above or a `syscall: "connect"` failure under it (fetch
29
+ * nests the socket error in `cause`, a dual-stack dial in `errors`), or a
30
+ * Worker's message for one. A reset or timeout off the connect syscall may
31
+ * follow a request sent on a reused socket, so it proves nothing.
32
+ */
33
+ function isUndelivered(cause) {
34
+ const pending = [cause];
35
+ for (let read = 0; pending.length > 0 && read < 16; read++) {
36
+ const at = pending.shift();
37
+ if (!at || typeof at !== "object") continue;
38
+ const { code, syscall, errors, cause: next } = at;
39
+ if (syscall === "connect" || UNDELIVERED_CODES.has(String(code))) return true;
40
+ if (at instanceof Error && UNDELIVERED_MESSAGE.test(at.message)) return true;
41
+ pending.push(next);
42
+ if (Array.isArray(errors)) pending.push(...errors);
43
+ }
44
+ return false;
45
+ }
8
46
  const RETRY_POLICY = {
9
47
  /** The first re-send waits up to baseMs; each later one doubles it, up to capMs. */
10
48
  baseMs: 250,
@@ -85,4 +123,4 @@ async function awaitResend(scope, resend, o = {}) {
85
123
  return true;
86
124
  }
87
125
  //#endregion
88
- export { backoffDelayMs as a, awaitResend as i, SANDBOX_API_RETRY_SCOPE as n, planResend as o, abortableSleep as r, retryBudget as s, RETRY_POLICY as t };
126
+ export { backoffDelayMs as a, retryBudget as c, awaitResend as i, SANDBOX_API_RETRY_SCOPE as n, isUndelivered as o, abortableSleep as r, planResend as s, RETRY_POLICY as t };
package/dist/runtime.js CHANGED
@@ -1,8 +1,8 @@
1
- import { I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, R as deriveAgentRunOutcome, c as SandboxRuntimeApi, t as BrowserInteractiveSessionController, z as projectAgentTerminalRecord } from "./interactive-controller-DzlxPT5W.js";
1
+ import { I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, R as deriveAgentRunOutcome, c as SandboxRuntimeApi, t as BrowserInteractiveSessionController, z as projectAgentTerminalRecord } from "./interactive-controller-D8QKEwjM.js";
2
2
  import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-BiP6TJFP.js";
3
3
  import { C as ServerError, D as ValidationError, E as TimeoutError, S as SandboxError, _ as NotFoundError, b as QuotaError, g as NetworkError, l as CapabilityError, p as FileWriteConflictError, s as AuthError, v as PartialFailureError, w as StateError, y as ProfileFileMountPathError } from "./errors-Bh1udpJ0.js";
4
- import { s as uploadChunked } from "./chunked-upload-4QOzIF2U.js";
5
- import { r as fetchSandboxApi } from "./api-request-C_bupPUV.js";
4
+ import { s as uploadChunked } from "./chunked-upload-BqjKs2uB.js";
5
+ import { r as fetchSandboxApi } from "./api-request-DQMcM1zv.js";
6
6
  //#region src/runtime-client.ts
7
7
  const DEFAULT_RUNTIME_TIMEOUT_MS = 3e4;
8
8
  function requireToken(token) {
@@ -1,18 +1,18 @@
1
- import { A as normalizeRuntimeBackendConfig, C as encodeTextForWire, D as applyRequestedModel, F as withoutRuntimeSecrets, I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, M as requestedSecretProfilePublicDigest, O as assertCurrentBackendType, S as encodePromptForWire, T as canUseNodeHttp2, W as normalizeEffectiveBackend, _ as isTraceId, a as assertScopedTokenActive, b as resolveDispatchRunIdentity, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as callHeaders, g as TRACE_ID_HEADER, h as isRetryableCredentialRefusal, i as terminalUpgradeHeadersSupported, j as requestedPublicProfileDigest, k as mergeRuntimeBackendConfig, l as normalizeSessionInfo, m as assertFileWritePreconditions, n as InteractiveSessionController, p as sessionHeaders, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as mintTraceId, w as runtimeFilesystemPath, x as validateAcceptedDispatchRunRef, y as resolveTraceId } from "./interactive-controller-DzlxPT5W.js";
1
+ import { A as normalizeRuntimeBackendConfig, C as encodeTextForWire, D as applyRequestedModel, F as withoutRuntimeSecrets, I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, M as requestedSecretProfilePublicDigest, O as assertCurrentBackendType, S as encodePromptForWire, T as canUseNodeHttp2, W as normalizeEffectiveBackend, _ as isTraceId, a as assertScopedTokenActive, b as resolveDispatchRunIdentity, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as callHeaders, g as TRACE_ID_HEADER, h as isRetryableCredentialRefusal, i as terminalUpgradeHeadersSupported, j as requestedPublicProfileDigest, k as mergeRuntimeBackendConfig, l as normalizeSessionInfo, m as assertFileWritePreconditions, n as InteractiveSessionController, p as sessionHeaders, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as mintTraceId, w as runtimeFilesystemPath, x as validateAcceptedDispatchRunRef, y as resolveTraceId } from "./interactive-controller-D8QKEwjM.js";
2
2
  import { C as boundedIdentifierSchema$1, E as boundedStringSchema$1, g as sha256DigestSchema$1, o as canonicalCandidateDigest$1, s as canonicalCandidateJson$1, u as isCanonicalJsonValue$1 } from "./harness-DMaNgn0S.js";
3
3
  import { t as sha256$1 } from "./sha2-vu4U-x2L.js";
4
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-BiP6TJFP.js";
5
5
  import { a as ProxySecretReceiptSchema$1, o as canonicalAgentProfileValue$1, r as agentProfileSchema$1 } from "./profile-schema-C1KpT-wS.js";
6
6
  import { C as ServerError, D as ValidationError, E as TimeoutError, S as SandboxError, T as StreamInterruptedError, _ as NotFoundError, a as readResponseJson, d as EdgeNotReadyError, g as NetworkError, i as parseResponseError, l as CapabilityError, n as isTransientWrite, o as retryWhen, r as parseErrorResponse, s as AuthError, t as TerminalStreamError, w as StateError, y as ProfileFileMountPathError } from "./errors-Bh1udpJ0.js";
7
7
  import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-BbJTt2QJ.js";
8
- import { a as backoffDelayMs, r as abortableSleep } from "./retry-policy-0_NCh5OB.js";
8
+ import { a as backoffDelayMs, o as isUndelivered, r as abortableSleep } from "./retry-policy-Dh-VezcE.js";
9
9
  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, u as SANDBOX_FILE_API_ABSOLUTE_ROOTS } from "./file-transfer-BSe4ayU9.js";
10
- import { c as awaitSdkResend, l as countSdkRequest, s as uploadChunked, u as takeSdkTurn } from "./chunked-upload-4QOzIF2U.js";
11
- import { a as rewrapResponse, i as isReplayableBody, t as IDEMPOTENT_METHODS } from "./api-request-C_bupPUV.js";
10
+ import { c as awaitSdkResend, l as countSdkRequest, s as uploadChunked, u as takeSdkTurn } from "./chunked-upload-BqjKs2uB.js";
11
+ import { a as rewrapResponse, i as isReplayableBody, t as IDEMPOTENT_METHODS } from "./api-request-DQMcM1zv.js";
12
12
  import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-BIaDMUtu.js";
13
13
  import { t as SIDECAR_PROXY_ERROR_HEADER } from "./sidecar-proxy-error-DpBLxIof.js";
14
14
  import { t as parseSSEStream } from "./sse-parser-DOCszo1K.js";
15
- import { t as runPreparedProcess } from "./prepared-process-N-y0xr9S.js";
15
+ import { t as runPreparedProcess } from "./prepared-process-CWf84BFt.js";
16
16
  import { a as isBackendType, r as cliAuthReferenceSchema } from "./cli-auth-bundle-C6DtK7GX-BbbiAn-Z.js";
17
17
  import "./cli-auth-bundle-CMJWI99l.js";
18
18
  import { n as SandboxLines } from "./lines-DvSNh5dD.js";
@@ -2826,40 +2826,6 @@ async function edgeVerdict(response) {
2826
2826
  if (response.status === 502 || response.status === 503 || response.status === 504) return "unknown";
2827
2827
  return "served";
2828
2828
  }
2829
- /**
2830
- * Errors raised before a connection to the edge existed: the name did not
2831
- * resolve, nothing accepted the connection, the connect timed out, or the
2832
- * edge's certificate failed. Nothing was sent.
2833
- */
2834
- const CONNECT_PHASE_CODES = new Set([
2835
- "ECONNREFUSED",
2836
- "ENOTFOUND",
2837
- "EAI_AGAIN",
2838
- "EHOSTUNREACH",
2839
- "ENETUNREACH",
2840
- "UND_ERR_CONNECT_TIMEOUT",
2841
- "ERR_TLS_CERT_ALTNAME_INVALID",
2842
- "CERT_HAS_EXPIRED",
2843
- "UNABLE_TO_VERIFY_LEAF_SIGNATURE",
2844
- "DEPTH_ZERO_SELF_SIGNED_CERT",
2845
- "SELF_SIGNED_CERT_IN_CHAIN"
2846
- ]);
2847
- /**
2848
- * Classify a failed edge request. Node wraps the socket error: fetch in
2849
- * `cause`, a dual-stack connect in `cause.errors`, an HTTP/2 stream cancel in
2850
- * `cause`. A runtime without error codes (a Worker) is `unknown`.
2851
- */
2852
- function networkErrorVerdict(error) {
2853
- const pending = [error];
2854
- for (let seen = 0; pending.length > 0 && seen < 16; seen++) {
2855
- const current = pending.shift();
2856
- if (!current || typeof current !== "object") continue;
2857
- if (typeof current.code === "string" && CONNECT_PHASE_CODES.has(current.code)) return "undelivered";
2858
- if (current.cause !== void 0) pending.push(current.cause);
2859
- if (Array.isArray(current.errors)) pending.push(...current.errors);
2860
- }
2861
- return "unknown";
2862
- }
2863
2829
  //#endregion
2864
2830
  //#region src/direct-runtime-client.ts
2865
2831
  /**
@@ -3053,7 +3019,7 @@ var DirectRuntimeHttpClient = class {
3053
3019
  try {
3054
3020
  return { sent: await send(request) };
3055
3021
  } catch (error) {
3056
- if (canResendThroughApi && !init.signal?.aborted && !headers.has("x-no-retry") && (replaySafe || networkErrorVerdict(error) === "undelivered")) return { resent: await resendThroughApi() };
3022
+ if (canResendThroughApi && !init.signal?.aborted && !headers.has("x-no-retry") && (replaySafe || isUndelivered(error))) return { resent: await resendThroughApi() };
3057
3023
  throw error;
3058
3024
  }
3059
3025
  };
@@ -12079,7 +12045,7 @@ var SandboxInteractiveCapabilities = class extends SandboxPromptCapabilities {
12079
12045
  var SandboxSessionEvidenceCapabilities = class extends SandboxInteractiveCapabilities {
12080
12046
  /** @internal — invoked before the sandbox is deleted. */
12081
12047
  async _sessionExportRawEvidence(id, destination, options) {
12082
- const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-BqN1_X-V.js");
12048
+ const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-DCQgYdIF.js");
12083
12049
  await this.ensureRunning();
12084
12050
  await this.refresh();
12085
12051
  return exportRawEvidenceDirectory((signal, archiveId, cancel) => this.runtimeFetch(`/agents/sessions/${encodeURIComponent(id)}/raw-evidence/archive?${new URLSearchParams([
@@ -12110,7 +12076,7 @@ var SandboxSessionEvidenceCapabilities = class extends SandboxInteractiveCapabil
12110
12076
  * and the byte and file bounds are verified before the directory appears.
12111
12077
  */
12112
12078
  async exportRawEvidence(destination, options) {
12113
- const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-BqN1_X-V.js");
12079
+ const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-DCQgYdIF.js");
12114
12080
  await this.ensureRunning();
12115
12081
  await this.refresh();
12116
12082
  return exportRawEvidenceDirectory((signal, archiveId, cancel) => this.runtimeFetch(`/agents/raw-evidence/archive?${new URLSearchParams({
@@ -14242,7 +14208,7 @@ var SandboxFilesystemOperations = class extends DeclaredFilesystemOperations {
14242
14208
  totalBytes: size,
14243
14209
  percentage: 0
14244
14210
  });
14245
- const { uploadChunkedFromFile } = await import("./chunked-upload-file-FxIlaF8n.js");
14211
+ const { uploadChunkedFromFile } = await import("./chunked-upload-file-CxKU6yTt.js");
14246
14212
  await uploadChunkedFromFile({ fetch: (path, init) => this.host.runtimeFetch(path, init) }, remotePath, localPath, {
14247
14213
  mode: options?.permissions,
14248
14214
  onProgress: options?.onProgress ? (progress) => {
@@ -1,2 +1,2 @@
1
- import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as ITangleJobsAbi, g as JsonResponseParamTypes, h as JOB_SANDBOX_DELETE, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_CREATE, n as fetchQuote, o as validateQuote, p as AgentSandboxBlueprintAbi, r as inputsHashOf, s as BlueprintSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-rniKWozO.js";
1
+ import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as ITangleJobsAbi, g as JsonResponseParamTypes, h as JOB_SANDBOX_DELETE, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_CREATE, n as fetchQuote, o as validateQuote, p as AgentSandboxBlueprintAbi, r as inputsHashOf, s as BlueprintSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-D1hW4Guz.js";
2
2
  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,4 +1,4 @@
1
- import { L as readFilesystemIncarnationTuple, n as createSandboxInstanceFromResponse } from "./sandbox-B_5sumhE.js";
1
+ import { L as readFilesystemIncarnationTuple, n as createSandboxInstanceFromResponse } from "./sandbox-Dpdeoqhx.js";
2
2
  import { a as readResponseJson } from "./errors-Bh1udpJ0.js";
3
3
  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-CK-x8vXj.js";
4
4
  //#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.216",
3
+ "version": "1.0.218",
4
4
  "description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
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",
157
- "@repo/shared": "0.0.0",
158
156
  "@tangle-network/agent-profile-materialize": "0.27.1",
159
- "@tangle-network/runtime-contracts": "0.20.0",
160
- "@tangle-network/cli-agent-registry": "0.15.0"
157
+ "@repo/shared": "0.0.0",
158
+ "@products/sandbox-test-utils": "0.0.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": "4382ca935bd3376972cf4f9fbe496778622b366f",
164
- "mergedAt": "2026-11-04T04:42:03-08:00"
163
+ "sourceSha": "a5e3e038ac6b10800e3f72b143679902e7cf2679",
164
+ "mergedAt": "2026-11-04T05:50:32-08:00"
165
165
  },
166
166
  "scripts": {
167
167
  "build": "node scripts/build-dist.mjs",