@tangle-network/sandbox 1.0.215 → 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.
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +5 -5
- package/dist/agent/preview.d.ts +1 -1
- package/dist/agent/preview.js +1 -1
- package/dist/{agent-run-outcome-CP2N40aT.d.ts → agent-run-outcome-DW_S8f-u.d.ts} +2 -2
- package/dist/{api-request-BKzR6BJ4.js → api-request-C_bupPUV.js} +1 -1
- package/dist/{browser-interactive-control-controller-7wyaNSvi.d.ts → browser-interactive-control-controller-s9d82qc9.d.ts} +1 -1
- package/dist/{chunked-upload-D6ZCQ-iN.js → chunked-upload-4QOzIF2U.js} +1 -1
- package/dist/{chunked-upload-file-D3YxQdAl.js → chunked-upload-file-FxIlaF8n.js} +1 -1
- package/dist/{client-DBfpAz8x.js → client-BO6CLWUk.js} +5 -5
- package/dist/{client-DiLd0XGB.d.ts → client-CSMb6fHz.d.ts} +23 -6
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-BgSGO1KD.js → collaboration-Bv22hvgZ.js} +1 -1
- package/dist/{core-HKoYifvH.js → core-lu45UrVr.js} +2 -2
- package/dist/core.d.ts +6 -6
- package/dist/core.js +5 -5
- package/dist/{errors-CNszZUZ2.js → errors-Bh1udpJ0.js} +2 -0
- package/dist/{file-download-DrzpcvdM.js → file-download-B9UceD-P.js} +1 -1
- package/dist/{index-DyFU9hy7.d.ts → index-DB4MbfIb.d.ts} +5 -5
- package/dist/index.d.ts +10 -10
- package/dist/index.js +49 -10
- package/dist/intelligence/index.js +3 -3
- package/dist/interactive-control.d.ts +1 -1
- package/dist/{interactive-controller-BzObb8aT.d.ts → interactive-controller-Cl9Ablmg.d.ts} +3 -3
- package/dist/{interactive-controller-C-CuPVMA.js → interactive-controller-DzlxPT5W.js} +2 -2
- package/dist/{lines-D0dHQ3X5.d.ts → lines-DXdAUnUf.d.ts} +1 -1
- package/dist/{lines-DHOIUO-t.js → lines-DvSNh5dD.js} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/lines.js +1 -1
- package/dist/{mcp-local-YFGnFNBR.js → mcp-local-CPZ9Ya53.js} +2 -2
- package/dist/{preview-CrXG9Y8a.d.ts → preview-DhFcCERz.d.ts} +3 -3
- package/dist/{public-templates-Ba-DTf2O.d.ts → public-templates-D0QpNlni.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/public-templates.js +1 -1
- package/dist/{raw-evidence-archive-DrgeV9_0.js → raw-evidence-archive-BqN1_X-V.js} +1 -1
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +4 -4
- package/dist/{sandbox-CUPiQpiD.js → sandbox-B_5sumhE.js} +3383 -123
- package/dist/select-seat-command.d.ts +1 -1
- package/dist/select-seat-command.js +1 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-Bo9s-kSv.js → tangle-rniKWozO.js} +2 -2
- package/dist/{terminal-stream-types-DeH8FF0d.d.ts → terminal-stream-types-B74nb8jV.d.ts} +3 -1
- package/dist/{types-BE70nj5h.d.ts → types-DzB-PS9p.d.ts} +1 -1
- 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-
|
|
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-
|
|
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-
|
|
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-
|
|
7
|
-
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-
|
|
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-
|
|
10
|
-
import { t as downloadFile } from "./file-download-
|
|
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-
|
|
13
|
-
import { s as BlueprintSandboxClient } from "./tangle-
|
|
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-
|
|
2
|
-
import { r as fetchSandboxApi } from "../api-request-
|
|
3
|
-
import { n as verifyDownload } from "../file-download-
|
|
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-
|
|
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-
|
|
2
|
-
import { Cn as TerminalStream } from "./types-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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.
|
|
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-
|
|
2
|
-
import { F as EnsureDevServerOptions, H as PreviewLinkInfo } from "./types-
|
|
3
|
-
import { t as Sandbox } from "./client-
|
|
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 {
|
|
2
|
-
import { Cr as PublishPublicTemplateVersionOptions, Sr as PublishPublicTemplateOptions, Xr as HttpClient, br as PublicTemplateInfo, xr as PublicTemplateVersionInfo } from "./types-
|
|
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-
|
|
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 };
|
package/dist/public-templates.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as verifyDownload } from "./file-download-
|
|
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
|
|
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-
|
|
3
|
-
import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-
|
|
4
|
-
import { t as BrowserInteractiveSessionController } from "./interactive-controller-
|
|
5
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
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-
|
|
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-
|
|
4
|
-
import { s as uploadChunked } from "./chunked-upload-
|
|
5
|
-
import { r as fetchSandboxApi } from "./api-request-
|
|
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) {
|