@tangle-network/sandbox 1.0.214 → 1.0.216

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.
Files changed (46) hide show
  1. package/dist/agent/index.d.ts +4 -4
  2. package/dist/agent/index.js +5 -5
  3. package/dist/agent/preview.d.ts +1 -1
  4. package/dist/agent/preview.js +1 -1
  5. package/dist/{agent-run-outcome-CP2N40aT.d.ts → agent-run-outcome-DW_S8f-u.d.ts} +2 -2
  6. package/dist/{api-request-BU2YdvEg.js → api-request-C_bupPUV.js} +1 -1
  7. package/dist/{browser-interactive-control-controller-7wyaNSvi.d.ts → browser-interactive-control-controller-s9d82qc9.d.ts} +1 -1
  8. package/dist/{chunked-upload-D6ZCQ-iN.js → chunked-upload-4QOzIF2U.js} +1 -1
  9. package/dist/{chunked-upload-file-D3YxQdAl.js → chunked-upload-file-FxIlaF8n.js} +1 -1
  10. package/dist/{client-BgFXO29k.js → client-BO6CLWUk.js} +5 -5
  11. package/dist/{client-DiLd0XGB.d.ts → client-CSMb6fHz.d.ts} +23 -6
  12. package/dist/collaboration/index.js +1 -1
  13. package/dist/{collaboration-BgSGO1KD.js → collaboration-Bv22hvgZ.js} +1 -1
  14. package/dist/{core-BY8cDUkh.js → core-lu45UrVr.js} +2 -2
  15. package/dist/core.d.ts +6 -6
  16. package/dist/core.js +5 -5
  17. package/dist/{errors-CNszZUZ2.js → errors-Bh1udpJ0.js} +2 -0
  18. package/dist/{file-download-DrzpcvdM.js → file-download-B9UceD-P.js} +1 -1
  19. package/dist/{index-DyFU9hy7.d.ts → index-DB4MbfIb.d.ts} +5 -5
  20. package/dist/index.d.ts +10 -10
  21. package/dist/index.js +49 -10
  22. package/dist/intelligence/index.js +3 -3
  23. package/dist/interactive-control.d.ts +1 -1
  24. package/dist/{interactive-controller-BzObb8aT.d.ts → interactive-controller-Cl9Ablmg.d.ts} +3 -3
  25. package/dist/{interactive-controller-C-CuPVMA.js → interactive-controller-DzlxPT5W.js} +2 -2
  26. package/dist/{lines-D0dHQ3X5.d.ts → lines-DXdAUnUf.d.ts} +1 -1
  27. package/dist/{lines-DHOIUO-t.js → lines-DvSNh5dD.js} +1 -1
  28. package/dist/lines.d.ts +1 -1
  29. package/dist/lines.js +1 -1
  30. package/dist/{mcp-local-pCj4wu7P.js → mcp-local-CPZ9Ya53.js} +2 -2
  31. package/dist/{preview-CrXG9Y8a.d.ts → preview-DhFcCERz.d.ts} +3 -3
  32. package/dist/{public-templates-Ba-DTf2O.d.ts → public-templates-D0QpNlni.d.ts} +2 -2
  33. package/dist/public-templates.d.ts +1 -1
  34. package/dist/public-templates.js +1 -1
  35. package/dist/{raw-evidence-archive-DrgeV9_0.js → raw-evidence-archive-BqN1_X-V.js} +1 -1
  36. package/dist/runtime.d.ts +5 -5
  37. package/dist/runtime.js +4 -4
  38. package/dist/{sandbox-BhYnH1y4.js → sandbox-B_5sumhE.js} +3383 -123
  39. package/dist/select-seat-command.d.ts +1 -1
  40. package/dist/select-seat-command.js +1 -1
  41. package/dist/tangle/index.d.ts +1 -1
  42. package/dist/tangle/index.js +1 -1
  43. package/dist/{tangle-BofEDCFl.js → tangle-rniKWozO.js} +2 -2
  44. package/dist/{terminal-stream-types-DeH8FF0d.d.ts → terminal-stream-types-B74nb8jV.d.ts} +3 -1
  45. package/dist/{types-BE70nj5h.d.ts → types-DzB-PS9p.d.ts} +1 -1
  46. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -1,16 +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-C-CuPVMA.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-DzlxPT5W.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 { C as SandboxOperationFailedError, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, 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, 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-BhYnH1y4.js";
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-CNszZUZ2.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-BgFXO29k.js";
7
- import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-BgSGO1KD.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";
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";
7
+ import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-Bv22hvgZ.js";
8
+ import "./file-transfer-BSe4ayU9.js";
8
9
  import { t as parseSSEStream } from "./sse-parser-DOCszo1K.js";
9
- import { i as profileChannelReference, n as SandboxLines, r as lineInstanceKey, t as LinesClient } from "./lines-DHOIUO-t.js";
10
- import { t as downloadFile } from "./file-download-DrzpcvdM.js";
10
+ import { i as profileChannelReference, n as SandboxLines, r as lineInstanceKey, t as LinesClient } from "./lines-DvSNh5dD.js";
11
+ import { t as downloadFile } from "./file-download-B9UceD-P.js";
11
12
  import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
12
- 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-BY8cDUkh.js";
13
- import { s as BlueprintSandboxClient } from "./tangle-BofEDCFl.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";
14
15
  import { z } from "zod";
15
16
  //#region ../../../packages/runtime-contracts/dist/model-key-proxy.js
16
17
  const MANAGED_MODEL_KEY_SENTINEL = "proxy-managed-per-request";
@@ -1226,6 +1227,44 @@ function buildControlPlaneMcpConfig(options) {
1226
1227
  };
1227
1228
  }
1228
1229
  //#endregion
1230
+ //#region src/profile-create-verdict.ts
1231
+ /**
1232
+ * Whether `harness` can run `profile`, before any box and with no network call: file-mount rules,
1233
+ * wire bound (default: the gateway bound), and the sidecar's own materialization, which reruns it per turn.
1234
+ */
1235
+ function validateProfileForCreate(profile, harness, options = {}) {
1236
+ try {
1237
+ const failOnError = profile.resources?.failOnError;
1238
+ const split = splitInlineProfileFileMounts(profile);
1239
+ validateDeferredProfileFileMounts(split.deferredFiles, { failOnError });
1240
+ const bound = options.maxProfileBytes ?? 1048576;
1241
+ const bytes = new TextEncoder().encode(JSON.stringify(split.leanProfile)).length;
1242
+ if (bytes > bound) throw new SandboxError(`Profile is ${bytes} bytes without its inline files; the bound is ${bound}. Move large content into inline resources.files.`, {
1243
+ code: "PAYLOAD_TOO_LARGE",
1244
+ status: 413
1245
+ });
1246
+ if (!isMaterializerHarness(harness)) return { ok: true };
1247
+ enforceWorkspacePlanSupport(materializeProfile(split.leanProfile, harness, {
1248
+ ...HARNESS_LAUNCH_MATERIALIZE_OPTIONS[harness],
1249
+ runtimeAttachments: options.runtimeAttachments
1250
+ }), failOnError);
1251
+ return { ok: true };
1252
+ } catch (error) {
1253
+ if (error instanceof SandboxError) return {
1254
+ ok: false,
1255
+ error
1256
+ };
1257
+ return {
1258
+ ok: false,
1259
+ error: new ValidationError(error instanceof Error ? error.message : String(error), error instanceof ProfileUnsupportedError ? {
1260
+ code: error.code,
1261
+ status: error.status,
1262
+ cause: error
1263
+ } : { cause: error })
1264
+ };
1265
+ }
1266
+ }
1267
+ //#endregion
1229
1268
  //#region ../../../packages/runtime-contracts/dist/sandbox-shape.js
1230
1269
  /** Sandbox resource vocabulary shared by Node, Worker and public SDK consumers. */
1231
1270
  /**
@@ -1713,4 +1752,4 @@ function stripUndefined(value) {
1713
1752
  return Object.fromEntries(Object.entries(value).filter(([, v]) => v !== void 0).map(([k, v]) => [k, stripUndefined(v)]));
1714
1753
  }
1715
1754
  //#endregion
1716
- export { ALL_BACKEND_TYPES, AuthError, BlueprintSandboxClient, BranchFanoutExceedsHostError, BrowserInteractiveSessionControlController, BrowserInteractiveSessionController, CONTROL_PLANE_MCP_SERVER_NAME, CapabilityError, CollaborationClient, CollaborationFileBridge, CompliancePlacementError, DECLARED_SECRET_HOSTS_ENV_VAR, DEFAULT_MAX_EXECUTION_TTL_MS, DEFAULT_SANDBOX_SIZE, EdgeNotReadyError, EgressProxyRecoveryError, FileWriteConflictError, GPU_LEASE_PROVIDER_NAMES, GpuProviderNotConfiguredError, HostedInstance, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, ISOLATED_CREATION_ATTESTATION_VERSION, Image, ImageBuilder, InstanceRestartingError, InstancesClient, IntelligenceClient, InteractiveSessionControlController, InteractiveSessionController, InteractiveSessionHandle, InteractiveSessionNotRunningError, InteractiveTerminalFrameLog, KeyBudgetExhaustedError, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, LinesClient, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, ManagedProcessClient, NetworkError, NotFoundError, PartialFailureError, ProfileFileMountPathError, PublicTemplatePublishError, PublicTemplatesClient, QuotaError, ResumeEnvRequiredError, RunsClient, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, Sandbox, SandboxError, SandboxFleet, SandboxFleetClient, SandboxInstance, SandboxLines, SandboxOperation, SandboxOperationFailedError, SandboxSession, SandboxTaskSession, SeatSelectionError, ServerError, StateError, StreamInterruptedError, TERMINAL_WS_ECHO_SUBPROTOCOL, TerminalStream, TerminalStreamError, TimeoutError, ValidationError, WorkspaceImages, applySandboxEventText, assertDeclaredSecretsHeld, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, baseProxyToken, browserInteractiveControlHolderId, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentFinalMessageText, collectAgentResponseText, createAgentRunOutcomeTracker, createBatchResultAccumulator, createConfidentialSandbox, createInteractiveControlHolderId, createInteractiveTerminalCapture, createInteractiveTerminalSession, createManageSandboxesTool, createSelectSeat, declaredSecretBaseToken, deriveAgentResultOutcome, deriveAgentRunOutcome, downloadFile, exportTraceBundle, fetchTangleRouterSearchConfig, gatewaySeatTransport, generateAttestationNonce, generateDockerfile, getSandboxEventText, agentInteractiveSessionPromptRequestDigest as interactivePromptRequestDigest, interactiveSessionIdentityDigest, isBackendRegistryInteractionKind, isToolBearingEvent, lineInstanceKey, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseDeclaredSecretsEnv, parseErrorResponse, parseLineApplicationRequest, parseLineApplicationResult, parseSSEStream, profileChannelReference, projectAgentTerminalRecord, requestedPublicProfileDigest, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxFailureKind, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, terminalUpgradeHeadersSupported, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
1755
+ export { ALL_BACKEND_TYPES, AuthError, BlueprintSandboxClient, BranchFanoutExceedsHostError, BrowserInteractiveSessionControlController, BrowserInteractiveSessionController, CONTROL_PLANE_MCP_SERVER_NAME, CapabilityError, CollaborationClient, CollaborationFileBridge, CompliancePlacementError, DECLARED_SECRET_HOSTS_ENV_VAR, DEFAULT_MAX_EXECUTION_TTL_MS, DEFAULT_SANDBOX_SIZE, EdgeNotReadyError, EgressProxyRecoveryError, FileWriteConflictError, GPU_LEASE_PROVIDER_NAMES, GpuProviderNotConfiguredError, HostedInstance, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, ISOLATED_CREATION_ATTESTATION_VERSION, Image, ImageBuilder, InstanceRestartingError, InstancesClient, IntelligenceClient, InteractiveSessionControlController, InteractiveSessionController, InteractiveSessionHandle, InteractiveSessionNotRunningError, InteractiveTerminalFrameLog, KeyBudgetExhaustedError, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, LinesClient, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, ManagedProcessClient, NetworkError, NotFoundError, PartialFailureError, ProfileFileMountPathError, PublicTemplatePublishError, PublicTemplatesClient, QuotaError, ResumeEnvRequiredError, RunsClient, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, Sandbox, SandboxError, SandboxFleet, SandboxFleetClient, SandboxInstance, SandboxLines, SandboxOperation, SandboxOperationFailedError, SandboxSession, SandboxTaskSession, SeatSelectionError, ServerError, StateError, StreamInterruptedError, TERMINAL_WS_ECHO_SUBPROTOCOL, TerminalStream, TerminalStreamError, TimeoutError, ValidationError, WorkspaceImages, applySandboxEventText, assertDeclaredSecretsHeld, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, baseProxyToken, browserInteractiveControlHolderId, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentFinalMessageText, collectAgentResponseText, createAgentRunOutcomeTracker, createBatchResultAccumulator, createConfidentialSandbox, createInteractiveControlHolderId, createInteractiveTerminalCapture, createInteractiveTerminalSession, createManageSandboxesTool, createSelectSeat, declaredSecretBaseToken, deriveAgentResultOutcome, deriveAgentRunOutcome, downloadFile, exportTraceBundle, fetchTangleRouterSearchConfig, gatewaySeatTransport, generateAttestationNonce, generateDockerfile, getSandboxEventText, agentInteractiveSessionPromptRequestDigest as interactivePromptRequestDigest, interactiveSessionIdentityDigest, isBackendRegistryInteractionKind, isToolBearingEvent, lineInstanceKey, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseDeclaredSecretsEnv, parseErrorResponse, parseLineApplicationRequest, parseLineApplicationResult, parseSSEStream, profileChannelReference, projectAgentTerminalRecord, requestedPublicProfileDigest, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxFailureKind, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, terminalUpgradeHeadersSupported, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts, validateProfileForCreate };
@@ -1,6 +1,6 @@
1
- import { E as TimeoutError, g as NetworkError, r as parseErrorResponse } from "../errors-CNszZUZ2.js";
2
- import { r as fetchSandboxApi } from "../api-request-BU2YdvEg.js";
3
- import { n as verifyDownload } from "../file-download-DrzpcvdM.js";
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";
3
+ import { n as verifyDownload } from "../file-download-B9UceD-P.js";
4
4
  //#region src/intelligence/index.ts
5
5
  /**
6
6
  * `@tangle-network/sandbox/intelligence` — browser-safe typed client for the
@@ -1,2 +1,2 @@
1
- import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, n as BrowserInteractiveSessionControlControllerOptions, r as browserInteractiveControlHolderId, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-7wyaNSvi.js";
1
+ import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, n as BrowserInteractiveSessionControlControllerOptions, r as browserInteractiveControlHolderId, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-s9d82qc9.js";
2
2
  export { BrowserInteractiveSessionControlController, type BrowserInteractiveSessionControlControllerOptions, type InteractiveSessionIdentity, InteractiveSessionNotRunningError, browserInteractiveControlHolderId };
@@ -1,6 +1,6 @@
1
- import { k as AgentInteractiveSessionRef, o as TerminalStreamReconnectAuthority, u as ScopedToken } from "./terminal-stream-types-DeH8FF0d.js";
2
- import { Cn as TerminalStream } from "./types-BE70nj5h.js";
3
- import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, f as InteractiveAttachOptions, g as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, s as InteractiveSessionControlTransport } from "./browser-interactive-control-controller-7wyaNSvi.js";
1
+ import { k as AgentInteractiveSessionRef, o as TerminalStreamReconnectAuthority, u as ScopedToken } from "./terminal-stream-types-B74nb8jV.js";
2
+ import { Cn as TerminalStream } from "./types-DzB-PS9p.js";
3
+ import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, f as InteractiveAttachOptions, g as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, s as InteractiveSessionControlTransport } from "./browser-interactive-control-controller-s9d82qc9.js";
4
4
 
5
5
  //#region src/interactive-controller.d.ts
6
6
  /** The request fields supplied by an attach caller before control is claimed. */
@@ -1,9 +1,9 @@
1
1
  import { C as boundedIdentifierSchema, T as boundedJsonSchema, o as canonicalCandidateDigest } from "./harness-DMaNgn0S.js";
2
2
  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-BiP6TJFP.js";
3
3
  import { r as agentProfileSchema } from "./profile-schema-C1KpT-wS.js";
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-CNszZUZ2.js";
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-D6ZCQ-iN.js";
6
+ import { c as awaitSdkResend, s as uploadChunked } from "./chunked-upload-4QOzIF2U.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,4 +1,4 @@
1
- import { Tn as CreateSandboxOptions, ga as BackendConfig } from "./types-BE70nj5h.js";
1
+ import { Tn as CreateSandboxOptions, ga as BackendConfig } from "./types-DzB-PS9p.js";
2
2
 
3
3
  //#region src/line-application.d.ts
4
4
  /** Bounded callback request bytes after canonicalization, including JSON framing. */
@@ -1,4 +1,4 @@
1
- import { D as ValidationError, r as parseErrorResponse } from "./errors-CNszZUZ2.js";
1
+ import { D as ValidationError, r as parseErrorResponse } from "./errors-Bh1udpJ0.js";
2
2
  //#region src/line-identity.ts
3
3
  /**
4
4
  * The instance key that serves one member: `keyPrefix` plus the first 32 hex
package/dist/lines.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { A as LineRespondAgent, B as LineVoiceOptions, C as LineMessage, D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, I as LineSenderVerificationStart, L as LineThread, M as LineRole, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, R as LineTransport, S as LineMemberSpec, T as LineProvider, V as LinesHttpClient, _ 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, 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-D0dHQ3X5.js";
1
+ import { A as LineRespondAgent, B as LineVoiceOptions, C as LineMessage, D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, I as LineSenderVerificationStart, L as LineThread, M as LineRole, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, R as LineTransport, S as LineMemberSpec, T as LineProvider, V as LinesHttpClient, _ 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, 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-DXdAUnUf.js";
2
2
  export { Line, LineAgentRolePolicy, LineAllowance, LineAllowanceSubject, LineApplicationAttachOptions, LineAttachOptions, LineAttachment, LineAttachmentReauthorization, LineExecutionKey, LineFromConnectionInput, LineImage, LineInstanceAttachOptions, LineInstanceCreate, LineLimits, LineMember, LineMemberInstance, LineMemberPatch, LineMemberSpec, LineMessage, LineNumberInventory, LineProvider, LineReminderPreferences, LineReplyCode, LineReplyCodeInput, LineReplyGate, LineRespondAgent, LineRespondView, LineRole, LineSendInput, LineSendReceipt, LineSenderVerification, LineSenderVerificationStart, LineThread, LineTransport, LineVoice, LineVoiceOptions, LinesClient, LinesHttpClient, SandboxLines, lineInstanceKey, profileChannelReference };
package/dist/lines.js CHANGED
@@ -1,2 +1,2 @@
1
- import { i as profileChannelReference, n as SandboxLines, r as lineInstanceKey, t as LinesClient } from "./lines-DHOIUO-t.js";
1
+ import { i as profileChannelReference, n as SandboxLines, r as lineInstanceKey, t as LinesClient } from "./lines-DvSNh5dD.js";
2
2
  export { LinesClient, SandboxLines, lineInstanceKey, profileChannelReference };
@@ -1,5 +1,5 @@
1
1
  import { u as SANDBOX_FILE_API_ABSOLUTE_ROOTS } from "./file-transfer-BSe4ayU9.js";
2
- import "./api-request-BU2YdvEg.js";
2
+ import "./api-request-C_bupPUV.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.214"
399
+ version: options.version ?? "1.0.216"
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
- import { O as SandboxInstance } from "./index-DyFU9hy7.js";
2
- import { F as EnsureDevServerOptions, H as PreviewLinkInfo } from "./types-BE70nj5h.js";
3
- import { t as Sandbox } from "./client-DiLd0XGB.js";
1
+ import { O as SandboxInstance } from "./index-DB4MbfIb.js";
2
+ import { F as EnsureDevServerOptions, H as PreviewLinkInfo } from "./types-DzB-PS9p.js";
3
+ import { t as Sandbox } from "./client-CSMb6fHz.js";
4
4
 
5
5
  //#region src/agent/preview-operations.d.ts
6
6
  type AgentPreviewOptions = Pick<EnsureDevServerOptions, "sessionId" | "cwd"> & {
@@ -1,5 +1,5 @@
1
- import { bt as SandboxError } from "./terminal-stream-types-DeH8FF0d.js";
2
- import { Cr as PublishPublicTemplateVersionOptions, Sr as PublishPublicTemplateOptions, Xr as HttpClient, br as PublicTemplateInfo, xr as PublicTemplateVersionInfo } from "./types-BE70nj5h.js";
1
+ import { xt as SandboxError } from "./terminal-stream-types-B74nb8jV.js";
2
+ import { Cr as PublishPublicTemplateVersionOptions, Sr as PublishPublicTemplateOptions, Xr as HttpClient, br as PublicTemplateInfo, xr as PublicTemplateVersionInfo } from "./types-DzB-PS9p.js";
3
3
  import { z } from "zod";
4
4
 
5
5
  //#region src/public-templates.d.ts
@@ -1,2 +1,2 @@
1
- import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-Ba-DTf2O.js";
1
+ import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-D0QpNlni.js";
2
2
  export { PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient };
@@ -1,4 +1,4 @@
1
- import { S as SandboxError, a as readResponseJson } from "./errors-CNszZUZ2.js";
1
+ import { S as SandboxError, a as readResponseJson } from "./errors-Bh1udpJ0.js";
2
2
  import { z } from "zod";
3
3
  //#region src/public-templates.ts
4
4
  const publicationStatus = z.enum([
@@ -1,4 +1,4 @@
1
- import { n as verifyDownload } from "./file-download-DrzpcvdM.js";
1
+ import { n as verifyDownload } from "./file-download-B9UceD-P.js";
2
2
  import { t as runPreparedEvidence } from "./prepared-evidence--rjwnXGD.js";
3
3
  import { z } from "zod";
4
4
  //#region src/lib/raw-evidence-archive.ts
package/dist/runtime.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { Ct as ServerError, Dt as TimeoutError, Ot as ValidationError, St as SandboxFailureDetail, _t as ProfileFileMountPathError, bt as SandboxError, gt as PartialFailureError, ht as NotFoundError, it as AuthError, mt as NetworkError, ot as CapabilityError, u as ScopedToken, ut as FileWriteConflictError, vt as QuotaError, wt as StateError, xt as SandboxErrorJson } from "./terminal-stream-types-DeH8FF0d.js";
2
- import { $i as SessionExecutionStatus, Bi as CreateSessionOptions, Cn as TerminalStream, Di as SandboxEvent, Fi as CommitTaskSessionOptions, Gi as ListMessagesOptions, Gn as ChunkedUploadResult, Ji as SendSessionMessageRequest, Qi as SessionExecutionInfo, Qn as FileReadBatchResult, Vi as CreateTaskSessionOptions, Wn as ChunkedUploadOptions, Yi as SentSessionMessage, Zi as SessionEventStreamOptions, Zn as FileReadBatchOptions, aa as SessionMessage, ar as FileTreeResult, cr as FileWriteResult, dn as SandboxTerminalCreateOptions, dr as RenameOptions, fa as TaskSessionInfo, fn as SandboxTerminalInfo, ir as FileTreeOptions, la as TaskSessionChanges, ln as SandboxRuntimeHealth, mn as SandboxTerminalRequestOptions, mr as WriteFileOptions, na as SessionInfo, oa as SessionMessageAdmission, on as SandboxPortBinding, or as FileUsageOptions, pn as SandboxTerminalManager, pr as UploadProgress, qi as SendSessionMessageOptions, sr as FileUsageResult, tr as FileRenameResult, ua as TaskSessionCommitResult } from "./types-BE70nj5h.js";
3
- import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-7wyaNSvi.js";
4
- import { t as BrowserInteractiveSessionController } from "./interactive-controller-BzObb8aT.js";
5
- import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-CP2N40aT.js";
1
+ import { Ct as SandboxFailureDetail, Ot as TimeoutError, St as SandboxErrorJson, Tt as StateError, _t as PartialFailureError, at as AuthError, dt as FileWriteConflictError, gt as NotFoundError, ht as NetworkError, kt as ValidationError, st as CapabilityError, u as ScopedToken, vt as ProfileFileMountPathError, wt as ServerError, xt as SandboxError, yt as QuotaError } from "./terminal-stream-types-B74nb8jV.js";
2
+ import { $i as SessionExecutionStatus, Bi as CreateSessionOptions, Cn as TerminalStream, Di as SandboxEvent, Fi as CommitTaskSessionOptions, Gi as ListMessagesOptions, Gn as ChunkedUploadResult, Ji as SendSessionMessageRequest, Qi as SessionExecutionInfo, Qn as FileReadBatchResult, Vi as CreateTaskSessionOptions, Wn as ChunkedUploadOptions, Yi as SentSessionMessage, Zi as SessionEventStreamOptions, Zn as FileReadBatchOptions, aa as SessionMessage, ar as FileTreeResult, cr as FileWriteResult, dn as SandboxTerminalCreateOptions, dr as RenameOptions, fa as TaskSessionInfo, fn as SandboxTerminalInfo, ir as FileTreeOptions, la as TaskSessionChanges, ln as SandboxRuntimeHealth, mn as SandboxTerminalRequestOptions, mr as WriteFileOptions, na as SessionInfo, oa as SessionMessageAdmission, on as SandboxPortBinding, or as FileUsageOptions, pn as SandboxTerminalManager, pr as UploadProgress, qi as SendSessionMessageOptions, sr as FileUsageResult, tr as FileRenameResult, ua as TaskSessionCommitResult } from "./types-DzB-PS9p.js";
3
+ import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-s9d82qc9.js";
4
+ import { t as BrowserInteractiveSessionController } from "./interactive-controller-Cl9Ablmg.js";
5
+ import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-DW_S8f-u.js";
6
6
 
7
7
  //#region src/lib/chunked-upload.d.ts
8
8
  /** The transport a caller wires this module to — {@link SandboxInstance.runtimeFetch}
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-C-CuPVMA.js";
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";
2
2
  import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-BiP6TJFP.js";
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-CNszZUZ2.js";
4
- import { s as uploadChunked } from "./chunked-upload-D6ZCQ-iN.js";
5
- import { r as fetchSandboxApi } from "./api-request-BU2YdvEg.js";
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";
6
6
  //#region src/runtime-client.ts
7
7
  const DEFAULT_RUNTIME_TIMEOUT_MS = 3e4;
8
8
  function requireToken(token) {