@tangle-network/sandbox 1.0.87 → 1.0.88

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
1
  import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-CQJwjQkZ.js";
2
2
  import { O as assertCurrentBackendType } from "../interactive-controller-CkiJBT6m.js";
3
- import { t as SandboxInstance } from "../sandbox-CnLNPeh0.js";
3
+ import { t as SandboxInstance } from "../sandbox-ByQqeRBM.js";
4
4
  import { C as StateError, E as ValidationError, g as NotFoundError } from "../errors-BStusQVc.js";
5
- import { t as Sandbox } from "../client-TJrVpqwk.js";
5
+ import { t as Sandbox } from "../client-DEvRISF2.js";
6
6
  import { z } from "zod";
7
7
  //#region src/agent/instances.ts
8
8
  const managers = /* @__PURE__ */ new WeakMap();
@@ -1,6 +1,6 @@
1
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-CkiJBT6m.js";
2
2
  import { r as agentProfileSchema } from "./profile-schema-DFZTAn1S.js";
3
- import { A as normalizeSandboxCreateReceipt, B as generateIdempotencyKey, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeSandboxShape, H as isRateLimitCreateError, M as parseStopPhase, N as normalizeConnection, O as isRetryableProfileFileMaterializeFailure, P as normalizeEgressPolicyFields, R as DEPLOY_WINDOW_RETRY_MS, T as splitInlineProfileFileMounts, U as isRetryableCreateError, V as isDeployWindowCreateError, W as waitForCreateRetry, j as normalizeStartupDiagnostics, k as normalizeCaptureProof, n as createSandboxInstanceFromResponse, s as exportTraceBundle, z as createRetryDelayMs } from "./sandbox-CnLNPeh0.js";
3
+ import { A as normalizeSandboxCreateReceipt, B as generateIdempotencyKey, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeSandboxShape, H as isRateLimitCreateError, M as parseStopPhase, N as normalizeConnection, O as isRetryableProfileFileMaterializeFailure, P as normalizeEgressPolicyFields, R as DEPLOY_WINDOW_RETRY_MS, T as splitInlineProfileFileMounts, U as isRetryableCreateError, V as isDeployWindowCreateError, W as waitForCreateRetry, j as normalizeStartupDiagnostics, k as normalizeCaptureProof, n as createSandboxInstanceFromResponse, s as exportTraceBundle, z as createRetryDelayMs } from "./sandbox-ByQqeRBM.js";
4
4
  import { D as isInsideReservedDir, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, g as NotFoundError, h as NetworkError, i as readResponseJson, n as parseErrorResponse, r as parseResponseError, x as SandboxError } from "./errors-BStusQVc.js";
5
5
  import { n as combineAbortSignals } from "./abort-signal-JVaAyNMP.js";
6
6
  import { t as fetchSandboxApi } from "./api-request-B7cnX489.js";
@@ -1,5 +1,5 @@
1
1
  import { r as agentProfileSchema } from "./profile-schema-DFZTAn1S.js";
2
- import { G as canonicalAgentProfileDigest } from "./sandbox-CnLNPeh0.js";
2
+ import { G as canonicalAgentProfileDigest } from "./sandbox-ByQqeRBM.js";
3
3
  import { E as ValidationError, s as CapabilityError, x as SandboxError } from "./errors-BStusQVc.js";
4
4
  import { t as awaitWithAbort } from "./abort-signal-JVaAyNMP.js";
5
5
  import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-BoK5wpru.js";
package/dist/core.js CHANGED
@@ -1,7 +1,7 @@
1
- import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-CnLNPeh0.js";
1
+ import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-ByQqeRBM.js";
2
2
  import { C as StateError, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, d as FileWriteConflictError, g as NotFoundError, h as NetworkError, s as CapabilityError, v as ProfileFileMountPathError, x as SandboxError, y as QuotaError } from "./errors-BStusQVc.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-TJrVpqwk.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-DEvRISF2.js";
4
4
  import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-D9XmRZMl.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-w0cPi0zg.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-BiM2XyNm.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, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference, sandboxFailureKind };
package/dist/index.js CHANGED
@@ -1,15 +1,15 @@
1
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-CkiJBT6m.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-BvtNDWql.js";
3
3
  import { i as SANDBOX_SIZE_PRESET_NAMES, r as agentProfileSchema, t as agentProfileConfidentialSchema } from "./profile-schema-DFZTAn1S.js";
4
- import { C as SandboxOperationFailedError, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, S as SandboxOperation, T as splitInlineProfileFileMounts, _ as collectAgentFinalMessageText, a as MAX_EGRESS_DENIALS_LIMIT, b as isToolBearingEvent, c as otelTraceIdForTangleTrace, d as SandboxSession, f as InteractiveSessionHandle, g as applySandboxEventText, h as createInteractiveTerminalSession, i as downloadFile, l as toOtelJson, m as createInteractiveTerminalCapture, o as buildTraceExportPayload, p as InteractiveTerminalFrameLog, r as WorkspaceImages, s as exportTraceBundle, t as SandboxInstance, u as SandboxTaskSession, v as collectAgentResponseText, w as materializeProfileFileMounts, x as ManagedProcessClient, y as getSandboxEventText } from "./sandbox-CnLNPeh0.js";
4
+ import { C as SandboxOperationFailedError, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, S as SandboxOperation, T as splitInlineProfileFileMounts, _ as collectAgentFinalMessageText, a as MAX_EGRESS_DENIALS_LIMIT, b as isToolBearingEvent, c as otelTraceIdForTangleTrace, d as SandboxSession, f as InteractiveSessionHandle, g as applySandboxEventText, h as createInteractiveTerminalSession, i as downloadFile, l as toOtelJson, m as createInteractiveTerminalCapture, o as buildTraceExportPayload, p as InteractiveTerminalFrameLog, r as WorkspaceImages, s as exportTraceBundle, t as SandboxInstance, u as SandboxTaskSession, v as collectAgentResponseText, w as materializeProfileFileMounts, x as ManagedProcessClient, y as getSandboxEventText } from "./sandbox-ByQqeRBM.js";
5
5
  import { C as StateError, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, b as ResumeEnvRequiredError, c as CompliancePlacementError, d as FileWriteConflictError, f as GpuProviderNotConfiguredError, g as NotFoundError, h as NetworkError, l as EdgeNotReadyError, o as BranchFanoutExceedsHostError, p as KeyBudgetExhaustedError, s as CapabilityError, t as TerminalStreamError, u as EgressProxyRecoveryError, v as ProfileFileMountPathError, w as StreamInterruptedError, x as SandboxError, y as QuotaError } from "./errors-BStusQVc.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-TJrVpqwk.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-DEvRISF2.js";
7
7
  import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-BULMqzR_.js";
8
8
  import { t as parseSSEStream } from "./sse-parser-BUIKfYAd.js";
9
9
  import { i as profileChannelReference, n as SandboxLines, r as lineInstanceKey, t as LinesClient } from "./lines-D9XmRZMl.js";
10
10
  import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
11
- 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-w0cPi0zg.js";
12
- import { s as TangleSandboxClient } from "./tangle-Ctnjc764.js";
11
+ 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-BiM2XyNm.js";
12
+ import { s as TangleSandboxClient } from "./tangle-B92HZ3ta.js";
13
13
  import { z } from "zod";
14
14
  //#region ../../../packages/runtime-contracts/dist/model-key-proxy.js
15
15
  /**
@@ -15,7 +15,7 @@ import { n as SandboxLines } from "./lines-D9XmRZMl.js";
15
15
  import { z } from "zod";
16
16
  import { createHash } from "node:crypto";
17
17
  import { constants } from "node:fs";
18
- import { dirname } from "node:path";
18
+ import "node:path";
19
19
  import "node:fs/promises";
20
20
  import { readTokenCostUsd, readTokenUsage } from "@tangle-network/agent-core";
21
21
  import "@tangle-network/agent-interface/environment-provider";
@@ -2809,26 +2809,6 @@ const MATERIALIZER_MARKER = "tangle-agent-profile-materialize: generated";
2809
2809
  const MATERIALIZER_CONTEXT_MARKER_NOTE = "do not edit; the next profile materialization replaces this file";
2810
2810
  `${MATERIALIZER_MARKER}`;
2811
2811
  `${MATERIALIZER_CONTEXT_MARKER_NOTE}`;
2812
- /**
2813
- * cwd-relative native skill dir per harness, or null if the harness has no
2814
- * cwd skill primitive (skills live in a user/global dir the workspace plan
2815
- * cannot reach). Public so consumers composing a profile can (a) render the
2816
- * exact path the platform will mount a skill at into their prompts instead
2817
- * of hardcoding `~/.claude/skills/...`, and (b) branch on skill support
2818
- * ahead of materialization instead of catching the materialize-time throw.
2819
- */
2820
- const HARNESS_SKILL_DIRS = {
2821
- "claude-code": ".claude/skills",
2822
- nanoclaw: ".claude/skills",
2823
- codex: ".codex/skills",
2824
- opencode: ".opencode/skills",
2825
- "kimi-code": ".kimi/skills",
2826
- pi: ".pi/skills",
2827
- prime: ".prime/agent/skills",
2828
- gemini: ".gemini/skills",
2829
- hermes: null,
2830
- openclaw: "skills"
2831
- };
2832
2812
  //#endregion
2833
2813
  //#region ../../../packages/agent-profile-materialize/dist/workspace-files.js
2834
2814
  const compareStrings = (a, b) => a < b ? -1 : a > b ? 1 : 0;
@@ -2927,14 +2907,6 @@ function profileFileBundleKey(mounts) {
2927
2907
  files: profileBundleFileTable(mounts)
2928
2908
  });
2929
2909
  }
2930
- //#endregion
2931
- //#region ../../../packages/agent-profile-materialize/dist/secret-session-view.js
2932
- /**
2933
- * The profile's mounted skills, at the cwd-relative directory the platform
2934
- * publishes for products to name in their prompts (`.opencode/skills`).
2935
- */
2936
- const SKILLS_DIR = HARNESS_SKILL_DIRS.opencode;
2937
- dirname(SKILLS_DIR);
2938
2910
  const PROFILE_FILE_MOUNT_RETRY_MAX_MS = 2e3;
2939
2911
  /**
2940
2912
  * Wall-clock ceiling for retrying one file API batch write that got no decided
@@ -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 TangleSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-Ctnjc764.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 TangleSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-B92HZ3ta.js";
2
2
  export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, OperatorSession, OperatorSessionError, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
@@ -1,4 +1,4 @@
1
- import { n as createSandboxInstanceFromResponse } from "./sandbox-CnLNPeh0.js";
1
+ import { n as createSandboxInstanceFromResponse } from "./sandbox-ByQqeRBM.js";
2
2
  import { i as readResponseJson } from "./errors-BStusQVc.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-BXgE8UHJ.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.87",
3
+ "version": "1.0.88",
4
4
  "description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -154,14 +154,14 @@
154
154
  "ws": "^8.22.0",
155
155
  "yjs": "13.6.33",
156
156
  "@products/sandbox-test-utils": "0.0.0",
157
- "@repo/shared": "0.0.0",
158
157
  "@tangle-network/agent-profile-materialize": "0.27.1",
159
158
  "@tangle-network/cli-agent-registry": "0.14.0",
159
+ "@repo/shared": "0.0.0",
160
160
  "@tangle-network/runtime-contracts": "0.20.0"
161
161
  },
162
162
  "tangleRelease": {
163
- "sourceSha": "317182be2d49d5ca117256b3c807d12ad023a844",
164
- "mergedAt": "2026-10-29T05:44:32-06:00"
163
+ "sourceSha": "e1ecd78f5d47a173d00aacd2e9f1093add237cfe",
164
+ "mergedAt": "2026-10-29T05:58:32-06:00"
165
165
  },
166
166
  "scripts": {
167
167
  "build": "node scripts/build-dist.mjs",