@tangle-network/sandbox 1.0.246 → 1.0.248
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.js +5 -5
- package/dist/agent/preview.js +1 -1
- package/dist/{api-request-DLF_ffb7.js → api-request-sdA8P2xw.js} +1 -1
- package/dist/{browser-interactive-control-controller-BKHZm89R.js → browser-interactive-control-controller-BFVntlhN.js} +1 -1
- package/dist/{chunked-upload-B_CfWth1.js → chunked-upload-DghS4NcV.js} +1 -1
- package/dist/{chunked-upload-file-16t2BxYx.js → chunked-upload-file-DAF94AqK.js} +1 -1
- package/dist/{client-D5sO7i3-.js → client-BF6sl3We.js} +5 -5
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-MeStHqr9.js → collaboration-BNSV1i3-.js} +2 -2
- package/dist/core.js +5 -5
- package/dist/{errors-LJAXbFuF.js → errors-C4YhW-wf.js} +5 -17
- package/dist/{file-download-BQZCoO5d.js → file-download-CB0_5puA.js} +1 -1
- package/dist/index.js +11 -11
- package/dist/intelligence/index.js +3 -3
- package/dist/interactive-control.js +1 -1
- package/dist/{interactive-controller-D584Tqu6.js → interactive-controller-DQtJ67nM.js} +4 -4
- package/dist/{lines-CIkCYod2.js → lines-0uTV6QCT.js} +1 -1
- package/dist/lines.js +1 -1
- package/dist/{mcp-local-t3boEa-e.js → mcp-local-BlmD75Pe.js} +2 -2
- package/dist/public-templates.js +1 -1
- package/dist/{raw-evidence-archive-Bg8v2G0F.js → raw-evidence-archive-NsHlYsny.js} +1 -1
- package/dist/runtime.js +5 -5
- package/dist/{sandbox-BzUNsPs5.js → sandbox-DUlOP3dJ.js} +10 -10
- package/dist/{select-seat-Bn2J3IsQ.js → select-seat-C8k25FUQ.js} +1 -1
- package/dist/select-seat-command.js +2 -2
- package/dist/session-gateway/index.js +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-BxFSQ5jB.js → tangle-CmWNSemC.js} +3 -3
- package/package.json +5 -5
package/dist/agent/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-
|
|
2
|
-
import { D as assertCurrentBackendType } from "../interactive-controller-
|
|
3
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
4
|
-
import { O as ValidationError, T as StateError, v as NotFoundError } from "../errors-
|
|
5
|
-
import { t as Sandbox } from "../client-
|
|
1
|
+
import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-BlmD75Pe.js";
|
|
2
|
+
import { D as assertCurrentBackendType } from "../interactive-controller-DQtJ67nM.js";
|
|
3
|
+
import { t as SandboxInstance } from "../sandbox-DUlOP3dJ.js";
|
|
4
|
+
import { O as ValidationError, T as StateError, v as NotFoundError } from "../errors-C4YhW-wf.js";
|
|
5
|
+
import { t as Sandbox } from "../client-BF6sl3We.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/agent/instances.ts
|
|
8
8
|
const managers = /* @__PURE__ */ new WeakMap();
|
package/dist/agent/preview.js
CHANGED
|
@@ -66,7 +66,7 @@ async function servePreviewMcp(request, config) {
|
|
|
66
66
|
if (typeof config.authorize !== "function") throw new Error("Preview MCP requires a host authorization callback");
|
|
67
67
|
const tools = config.tools ?? PREVIEW_TOOLS;
|
|
68
68
|
if (!tools.length || tools.some((tool) => !PREVIEW_TOOLS.includes(tool))) throw new Error("Preview MCP requires an explicit nonempty preview-only tool grant");
|
|
69
|
-
const [{ createMcpServer }, { WebStandardStreamableHTTPServerTransport }] = await Promise.all([import("../mcp-local-
|
|
69
|
+
const [{ createMcpServer }, { WebStandardStreamableHTTPServerTransport }] = await Promise.all([import("../mcp-local-BlmD75Pe.js").then((n) => n.n), import("@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js")]);
|
|
70
70
|
const handle = await createMcpServer(config.box, {
|
|
71
71
|
name: "tangle-previews",
|
|
72
72
|
sessionId: config.sessionId,
|
|
@@ -30,7 +30,7 @@ function rewrapResponse(original, headers, body = original.body) {
|
|
|
30
30
|
//#endregion
|
|
31
31
|
//#region src/lib/api-request.mjs
|
|
32
32
|
/** The package version tsdown.config.ts defines; unbuilt source reports 0.0.0. */
|
|
33
|
-
const SDK_VERSION = "1.0.
|
|
33
|
+
const SDK_VERSION = "1.0.248";
|
|
34
34
|
function withRequestContextHeaders(response, path, method, body = response.body) {
|
|
35
35
|
const headers = new Headers(response.headers);
|
|
36
36
|
headers.set("x-tangle-request-path", path);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as boundedIdentifierSchema, D as isBoundedEventContentJson, E as boundedStringSchema, S as boundedEventContentStringSchema, T as boundedJsonSchema, _ as CONTRACT_MAX_ARRAY_LENGTH, b as boundedEventContentJsonSchema, g as sha256DigestSchema, o as canonicalCandidateDigest, w as boundedJsonRecordSchema, x as boundedEventContentRecordSchema, y as CONTRACT_MAX_STRING_LENGTH } from "./harness--g8UQ5TZ.js";
|
|
2
2
|
import { t as agentExecutionPreparationReceiptSchema } from "./agent-execution-preparation-receipt-j1Z7Om0k.js";
|
|
3
3
|
import { t as awaitWithAbort } from "./abort-signal-CRxC2dlT.js";
|
|
4
|
-
import { i as fetchSandboxApi } from "./api-request-
|
|
4
|
+
import { i as fetchSandboxApi } from "./api-request-sdA8P2xw.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.20/node_modules/@tangle-network/agent-interface/dist/native-session-event.js
|
|
7
7
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as SandboxError, n as isTransientWrite, r as parseErrorResponse } from "./errors-
|
|
1
|
+
import { C as SandboxError, n as isTransientWrite, r as parseErrorResponse } from "./errors-C4YhW-wf.js";
|
|
2
2
|
import { c as retryBudget, i as awaitResend, n as SANDBOX_API_RETRY_SCOPE, r as abortableSleep } from "./retry-policy-oW3_ljoc.js";
|
|
3
3
|
import { i as FILE_UPLOAD_SESSION_MAX_BYTES, n as isFileTooLargeErrorBody, r as isPayloadTooLargeErrorBody } from "./file-transfer-DOSTbUSR.js";
|
|
4
4
|
//#region src/lib/sdk-retry.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as FILE_UPLOAD_SESSION_MAX_BYTES } from "./file-transfer-DOSTbUSR.js";
|
|
2
|
-
import { a as planCompression, i as partCount, n as commitSession, o as putPart, r as initUploadSession, t as abortSession } from "./chunked-upload-
|
|
2
|
+
import { a as planCompression, i as partCount, n as commitSession, o as putPart, r as initUploadSession, t as abortSession } from "./chunked-upload-DghS4NcV.js";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { open } from "node:fs/promises";
|
|
5
5
|
//#region src/lib/chunked-upload-file.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { D as assertCurrentBackendType, E as applyRequestedModel, M as withProfileHarness, N as withoutCreateOnlyModelFields, T as isBrowserRuntime, V as backendTypeSchema, k as normalizeRuntimeBackendConfig, o as requestInteractiveSessionToken, x as encodePromptForWire } from "./interactive-controller-
|
|
1
|
+
import { D as assertCurrentBackendType, E as applyRequestedModel, M as withProfileHarness, N as withoutCreateOnlyModelFields, T as isBrowserRuntime, V as backendTypeSchema, k as normalizeRuntimeBackendConfig, o as requestInteractiveSessionToken, x as encodePromptForWire } from "./interactive-controller-DQtJ67nM.js";
|
|
2
2
|
import { r as agentProfileSchema } from "./profile-schema-B11dRfGB.js";
|
|
3
|
-
import { $ as isDeployWindowCreateError, B as parseLifecycleTimes, D as splitInlineProfileSkills, E as splitInlineProfileFileMounts, F as normalizeCaptureProof, G as CAPACITY_ETA_MARGIN_MS, H as normalizeEgressPolicyFields, I as normalizeSandboxCreateReceipt, J as awaitCreateResend, K as CAPACITY_ETA_WAIT_MAX_MS, L as normalizeStartupDiagnostics, O as validateDeferredProfileFileMounts, Q as isCapacityShortageCreateError, U as normalizeProxySecretReceipt, V as normalizeConnection, W as normalizeSandboxShape, X as extendableDeadline, Y as createRetryDelayMs, Z as generateIdempotencyKey, d as sandboxLedgerUsd, et as isRateLimitCreateError, k as isRetryableProfileFileMaterializeFailure, n as createSandboxInstanceFromResponse, o as exportTraceBundle, q as DEPLOY_WINDOW_RETRY_MS, tt as isRetryableCreateError, x as deleteSandbox, z as dateOf } from "./sandbox-
|
|
4
|
-
import { C as SandboxError, D as TimeoutError, O as ValidationError, _ as NetworkError, a as readResponseJson, c as AuthError, i as parseResponseError, r as parseErrorResponse, v as NotFoundError, w as ServerError, y as PartialFailureError } from "./errors-
|
|
3
|
+
import { $ as isDeployWindowCreateError, B as parseLifecycleTimes, D as splitInlineProfileSkills, E as splitInlineProfileFileMounts, F as normalizeCaptureProof, G as CAPACITY_ETA_MARGIN_MS, H as normalizeEgressPolicyFields, I as normalizeSandboxCreateReceipt, J as awaitCreateResend, K as CAPACITY_ETA_WAIT_MAX_MS, L as normalizeStartupDiagnostics, O as validateDeferredProfileFileMounts, Q as isCapacityShortageCreateError, U as normalizeProxySecretReceipt, V as normalizeConnection, W as normalizeSandboxShape, X as extendableDeadline, Y as createRetryDelayMs, Z as generateIdempotencyKey, d as sandboxLedgerUsd, et as isRateLimitCreateError, k as isRetryableProfileFileMaterializeFailure, n as createSandboxInstanceFromResponse, o as exportTraceBundle, q as DEPLOY_WINDOW_RETRY_MS, tt as isRetryableCreateError, x as deleteSandbox, z as dateOf } from "./sandbox-DUlOP3dJ.js";
|
|
4
|
+
import { C as SandboxError, D as TimeoutError, O as ValidationError, _ as NetworkError, a as readResponseJson, c as AuthError, i as parseResponseError, r as parseErrorResponse, v as NotFoundError, w as ServerError, y as PartialFailureError } from "./errors-C4YhW-wf.js";
|
|
5
5
|
import { n as combineAbortSignals } from "./abort-signal-CRxC2dlT.js";
|
|
6
6
|
import { r as abortableSleep, t as RETRY_POLICY } from "./retry-policy-oW3_ljoc.js";
|
|
7
|
-
import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-
|
|
7
|
+
import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-sdA8P2xw.js";
|
|
8
8
|
import { l as SANDBOX_AGENT_HOME, t as isInsideReservedDir } from "./file-transfer-DOSTbUSR.js";
|
|
9
9
|
import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-sGVP8skk.js";
|
|
10
10
|
import { t as parseSSEStream } from "./sse-parser-BCG3iL9j.js";
|
|
11
|
-
import { t as LinesClient } from "./lines-
|
|
11
|
+
import { t as LinesClient } from "./lines-0uTV6QCT.js";
|
|
12
12
|
import { PublicTemplatesClient } from "./public-templates.js";
|
|
13
13
|
import { z } from "zod";
|
|
14
14
|
//#region ../../../packages/runtime-contracts/dist/git-policy.js
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-
|
|
1
|
+
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-BNSV1i3-.js";
|
|
2
2
|
export { CollaborationClient, CollaborationFileBridge, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as TimeoutError, _ as NetworkError, r as parseErrorResponse } from "./errors-
|
|
2
|
-
import { i as fetchSandboxApi } from "./api-request-
|
|
1
|
+
import { D as TimeoutError, _ as NetworkError, r as parseErrorResponse } from "./errors-C4YhW-wf.js";
|
|
2
|
+
import { i as fetchSandboxApi } from "./api-request-sdA8P2xw.js";
|
|
3
3
|
//#region src/collaboration/client.ts
|
|
4
4
|
function normalizeBaseUrl(url) {
|
|
5
5
|
return url.replace(/\/+$/, "");
|
package/dist/core.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as ManagedProcessClient, r as WorkspaceImages, t as SandboxInstance } from "./sandbox-
|
|
2
|
-
import { C as SandboxError, D as TimeoutError, O as ValidationError, T as StateError, _ as NetworkError, b as ProfileFileMountPathError, c as AuthError, m as FileWriteConflictError, o as responseMetadata, r as parseErrorResponse, u as CapabilityError, v as NotFoundError, w as ServerError, x as QuotaError, y as PartialFailureError } from "./errors-
|
|
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-
|
|
4
|
-
import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-
|
|
1
|
+
import { S as ManagedProcessClient, r as WorkspaceImages, t as SandboxInstance } from "./sandbox-DUlOP3dJ.js";
|
|
2
|
+
import { C as SandboxError, D as TimeoutError, O as ValidationError, T as StateError, _ as NetworkError, b as ProfileFileMountPathError, c as AuthError, m as FileWriteConflictError, o as responseMetadata, r as parseErrorResponse, u as CapabilityError, v as NotFoundError, w as ServerError, x as QuotaError, y as PartialFailureError } from "./errors-C4YhW-wf.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-BF6sl3We.js";
|
|
4
|
+
import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-0uTV6QCT.js";
|
|
5
5
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
6
6
|
import { a as parseLineApplicationResult, i as parseLineApplicationRequest, n as LINE_APPLICATION_REPLY_MAX_CHARS, o as sandboxFailureKind, r as LINE_APPLICATION_REQUEST_MAX_BYTES, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-CTkHtpap.js";
|
|
7
|
-
import { a as createSelectSeat, i as SeatSelectionError, o as gatewaySeatTransport } from "./select-seat-
|
|
7
|
+
import { a as createSelectSeat, i as SeatSelectionError, o as gatewaySeatTransport } from "./select-seat-C8k25FUQ.js";
|
|
8
8
|
export { AuthError, CapabilityError, FileWriteConflictError, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, InstanceRestartingError, InstancesClient, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, LinesClient, ManagedProcessClient, NetworkError, NotFoundError, PartialFailureError, ProfileFileMountPathError, PublicTemplatePublishError, PublicTemplatesClient, QuotaError, Sandbox, SandboxError, SandboxInstance, SeatSelectionError, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, createSelectSeat, gatewaySeatTransport, isBackendRegistryInteractionKind, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseErrorResponse, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference, responseMetadata, sandboxFailureKind };
|
|
@@ -193,11 +193,7 @@ const ALIASES = [
|
|
|
193
193
|
const ALIAS_CODE = new Map(ALIASES.map(([alias, code]) => [alias, code]));
|
|
194
194
|
//#endregion
|
|
195
195
|
//#region src/errors.ts
|
|
196
|
-
/**
|
|
197
|
-
* Sandbox SDK Errors
|
|
198
|
-
*
|
|
199
|
-
* The one parse point from an error response to a `SandboxError`.
|
|
200
|
-
*/
|
|
196
|
+
/** Sandbox SDK errors: the one parse point from an error response to a `SandboxError`. */
|
|
201
197
|
/** Catalog retryability owns retry decisions; loops state their deliberate exceptions. */
|
|
202
198
|
function retryWhen(error) {
|
|
203
199
|
return error instanceof SandboxError && error.retryable;
|
|
@@ -254,16 +250,11 @@ function parseRetryAfterMs(rawValue, data) {
|
|
|
254
250
|
if (typeof data.retryAfterMs === "number" && Number.isFinite(data.retryAfterMs)) return Math.max(0, data.retryAfterMs);
|
|
255
251
|
return parseSandboxRetryAfterHeader(rawValue);
|
|
256
252
|
}
|
|
257
|
-
/** Positive cell-measured ETA; independent of Retry-After pacing. */
|
|
258
|
-
function parseEtaSeconds(data) {
|
|
259
|
-
const raw = data.etaSeconds;
|
|
260
|
-
if (typeof raw !== "number" || !Number.isFinite(raw) || raw <= 0) return;
|
|
261
|
-
return raw;
|
|
262
|
-
}
|
|
263
253
|
/** Capacity refusal ETA and explicit internal-create customer-floor hold. */
|
|
264
254
|
function capacityRefusalMetadata(data) {
|
|
255
|
+
const eta = data.etaSeconds;
|
|
265
256
|
return {
|
|
266
|
-
etaSeconds:
|
|
257
|
+
etaSeconds: typeof eta === "number" && Number.isFinite(eta) && eta > 0 ? eta : void 0,
|
|
267
258
|
capacityHold: data.code === "CAPACITY_EXHAUSTED" && data.reason === "customer_floor" ? "customer_floor" : void 0
|
|
268
259
|
};
|
|
269
260
|
}
|
|
@@ -273,11 +264,8 @@ function inferOrigin(headers, context) {
|
|
|
273
264
|
if (headers.has("x-sidecar-version") || headers.has("x-sidecar-image") || headers.has("x-sidecar-image-tag")) return "sidecar";
|
|
274
265
|
if (headers.has("x-orchestrator-version")) return "control-plane";
|
|
275
266
|
if (derivedPath?.startsWith("/v1/")) return "sandbox-api";
|
|
276
|
-
if (derivedPath)
|
|
277
|
-
|
|
278
|
-
return "runtime";
|
|
279
|
-
}
|
|
280
|
-
return "unknown";
|
|
267
|
+
if (!derivedPath) return "unknown";
|
|
268
|
+
return /^\/(projects|sidecars|instances)/.test(derivedPath) ? "control-plane" : "runtime";
|
|
281
269
|
}
|
|
282
270
|
const ERROR_CODE_PATTERN = /^[A-Z][A-Z0-9_]{0,63}$/;
|
|
283
271
|
function asErrorCode(value) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as bytesToHex, t as sha256 } from "./sha2-BIoWepwn.js";
|
|
2
|
-
import { O as ValidationError } from "./errors-
|
|
2
|
+
import { O as ValidationError } from "./errors-C4YhW-wf.js";
|
|
3
3
|
//#region src/lib/file-download.ts
|
|
4
4
|
function downloadBounds(options) {
|
|
5
5
|
for (const [name, value] of Object.entries({
|
package/dist/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { A as requestedPublicProfileDigest, B as ALL_BACKEND_TYPES, F as createAgentRunOutcomeTracker, H as isolationPrincipalSchema, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, V as backendTypeSchema, W as parseBackendType, i as terminalUpgradeHeadersSupported, k as normalizeRuntimeBackendConfig, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, z as TERMINAL_WS_ECHO_SUBPROTOCOL } from "./interactive-controller-
|
|
1
|
+
import { A as requestedPublicProfileDigest, B as ALL_BACKEND_TYPES, F as createAgentRunOutcomeTracker, H as isolationPrincipalSchema, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, V as backendTypeSchema, W as parseBackendType, i as terminalUpgradeHeadersSupported, k as normalizeRuntimeBackendConfig, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, z as TERMINAL_WS_ECHO_SUBPROTOCOL } from "./interactive-controller-DQtJ67nM.js";
|
|
2
2
|
import { i as SANDBOX_SIZE_PRESET_NAMES, r as agentProfileSchema, t as agentProfileConfidentialSchema } from "./profile-schema-B11dRfGB.js";
|
|
3
|
-
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-
|
|
4
|
-
import { A as HARNESS_LAUNCH_MATERIALIZE_OPTIONS, C as SandboxOperation, D as splitInlineProfileSkills, E as splitInlineProfileFileMounts, M as enforceWorkspacePlanSupport, N as isMaterializerHarness, O as validateDeferredProfileFileMounts, P as materializeProfile, S as ManagedProcessClient, T as materializeProfileFileMounts, _ 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 ProfileUnsupportedError, 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 SandboxOperationFailedError, y as getSandboxEventText } from "./sandbox-
|
|
5
|
-
import { C as SandboxError, D as TimeoutError, E as StreamInterruptedError, O as ValidationError, S as ResumeEnvRequiredError, T as StateError, _ as NetworkError, b as ProfileFileMountPathError, c as AuthError, d as CompliancePlacementError, f as EdgeNotReadyError, g as KeyBudgetExhaustedError, h as GpuProviderNotConfiguredError, l as BranchFanoutExceedsHostError, m as FileWriteConflictError, o as responseMetadata, p as EgressProxyRecoveryError, r as parseErrorResponse, t as TerminalStreamError, u as CapabilityError, v as NotFoundError, w as ServerError, x as QuotaError, y as PartialFailureError } from "./errors-
|
|
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 { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-
|
|
8
|
-
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-
|
|
3
|
+
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-BFVntlhN.js";
|
|
4
|
+
import { A as HARNESS_LAUNCH_MATERIALIZE_OPTIONS, C as SandboxOperation, D as splitInlineProfileSkills, E as splitInlineProfileFileMounts, M as enforceWorkspacePlanSupport, N as isMaterializerHarness, O as validateDeferredProfileFileMounts, P as materializeProfile, S as ManagedProcessClient, T as materializeProfileFileMounts, _ 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 ProfileUnsupportedError, 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 SandboxOperationFailedError, y as getSandboxEventText } from "./sandbox-DUlOP3dJ.js";
|
|
5
|
+
import { C as SandboxError, D as TimeoutError, E as StreamInterruptedError, O as ValidationError, S as ResumeEnvRequiredError, T as StateError, _ as NetworkError, b as ProfileFileMountPathError, c as AuthError, d as CompliancePlacementError, f as EdgeNotReadyError, g as KeyBudgetExhaustedError, h as GpuProviderNotConfiguredError, l as BranchFanoutExceedsHostError, m as FileWriteConflictError, o as responseMetadata, p as EgressProxyRecoveryError, r as parseErrorResponse, t as TerminalStreamError, u as CapabilityError, v as NotFoundError, w as ServerError, x as QuotaError, y as PartialFailureError } from "./errors-C4YhW-wf.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-BF6sl3We.js";
|
|
7
|
+
import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-sdA8P2xw.js";
|
|
8
|
+
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-BNSV1i3-.js";
|
|
9
9
|
import "./file-transfer-DOSTbUSR.js";
|
|
10
10
|
import { t as parseSSEStream } from "./sse-parser-BCG3iL9j.js";
|
|
11
|
-
import { i as profileChannelReference, n as SandboxLines, r as lineInstanceKey, t as LinesClient } from "./lines-
|
|
12
|
-
import { t as downloadFile } from "./file-download-
|
|
11
|
+
import { i as profileChannelReference, n as SandboxLines, r as lineInstanceKey, t as LinesClient } from "./lines-0uTV6QCT.js";
|
|
12
|
+
import { t as downloadFile } from "./file-download-CB0_5puA.js";
|
|
13
13
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
14
14
|
import { a as parseLineApplicationResult, i as parseLineApplicationRequest, n as LINE_APPLICATION_REPLY_MAX_CHARS, o as sandboxFailureKind, r as LINE_APPLICATION_REQUEST_MAX_BYTES, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-CTkHtpap.js";
|
|
15
|
-
import { a as createSelectSeat, i as SeatSelectionError, o as gatewaySeatTransport } from "./select-seat-
|
|
16
|
-
import { s as BlueprintSandboxClient } from "./tangle-
|
|
15
|
+
import { a as createSelectSeat, i as SeatSelectionError, o as gatewaySeatTransport } from "./select-seat-C8k25FUQ.js";
|
|
16
|
+
import { s as BlueprintSandboxClient } from "./tangle-CmWNSemC.js";
|
|
17
17
|
import { z } from "zod";
|
|
18
18
|
//#region ../../../packages/runtime-contracts/dist/model-key-proxy.js
|
|
19
19
|
const MANAGED_MODEL_KEY_SENTINEL = "proxy-managed-per-request";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as TimeoutError, _ as NetworkError, r as parseErrorResponse, u as CapabilityError } from "../errors-
|
|
2
|
-
import { i as fetchSandboxApi } from "../api-request-
|
|
3
|
-
import { n as verifyDownload } from "../file-download-
|
|
1
|
+
import { D as TimeoutError, _ as NetworkError, r as parseErrorResponse, u as CapabilityError } from "../errors-C4YhW-wf.js";
|
|
2
|
+
import { i as fetchSandboxApi } from "../api-request-sdA8P2xw.js";
|
|
3
|
+
import { n as verifyDownload } from "../file-download-CB0_5puA.js";
|
|
4
4
|
import { t as rawEvidenceArchiveAttemptSchema } from "../raw-evidence-export-C6Xdl3nC.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region src/intelligence/run-session-capture.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-
|
|
1
|
+
import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-BFVntlhN.js";
|
|
2
2
|
export { BrowserInteractiveSessionControlController, InteractiveSessionNotRunningError, browserInteractiveControlHolderId };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { C as boundedIdentifierSchema, T as boundedJsonSchema, o as canonicalCandidateDigest } from "./harness--g8UQ5TZ.js";
|
|
2
2
|
import { r as agentProfileSchema } from "./profile-schema-B11dRfGB.js";
|
|
3
|
-
import { B as PlanContinuationSchema, D as agentInteractiveSessionControlClaimMatchesRef, P as AgentExactRunControlRefSchema, R as AgentExecutionOutcomeSchema, U as InteractionRequestSchema, c as assertInteractiveSessionRef, h as AgentInteractiveSessionAttachSchema, i as createBrowserInteractiveSessionControlTransport, o as InteractiveSessionControlController, r as browserInteractiveTerminalEndpoint, v as AgentInteractiveSessionControlClaimSchema, x as AgentInteractiveSessionRefSchema, z as DurablePlanSchema } from "./browser-interactive-control-controller-
|
|
4
|
-
import { O as ValidationError, _ as NetworkError, i as parseResponseError, s as retryWhen, t as TerminalStreamError, u as CapabilityError, w as ServerError } from "./errors-
|
|
3
|
+
import { B as PlanContinuationSchema, D as agentInteractiveSessionControlClaimMatchesRef, P as AgentExactRunControlRefSchema, R as AgentExecutionOutcomeSchema, U as InteractionRequestSchema, c as assertInteractiveSessionRef, h as AgentInteractiveSessionAttachSchema, i as createBrowserInteractiveSessionControlTransport, o as InteractiveSessionControlController, r as browserInteractiveTerminalEndpoint, v as AgentInteractiveSessionControlClaimSchema, x as AgentInteractiveSessionRefSchema, z as DurablePlanSchema } from "./browser-interactive-control-controller-BFVntlhN.js";
|
|
4
|
+
import { O as ValidationError, _ as NetworkError, i as parseResponseError, s as retryWhen, t as TerminalStreamError, u as CapabilityError, w as ServerError } from "./errors-C4YhW-wf.js";
|
|
5
5
|
import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-CRxC2dlT.js";
|
|
6
|
-
import { n as SDK_TIMEOUTS } from "./api-request-
|
|
7
|
-
import { c as awaitSdkResend, s as uploadChunked } from "./chunked-upload-
|
|
6
|
+
import { n as SDK_TIMEOUTS } from "./api-request-sdA8P2xw.js";
|
|
7
|
+
import { c as awaitSdkResend, s as uploadChunked } from "./chunked-upload-DghS4NcV.js";
|
|
8
8
|
import { t as parseSSEStream } from "./sse-parser-BCG3iL9j.js";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
import { PART_TEXT, PART_TEXT_SUFFIX } from "@tangle-network/agent-core/sse";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as ValidationError, r as parseErrorResponse } from "./errors-
|
|
1
|
+
import { O as ValidationError, r as parseErrorResponse } from "./errors-C4YhW-wf.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.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-0uTV6QCT.js";
|
|
2
2
|
export { LinesClient, SandboxLines, lineInstanceKey, profileChannelReference };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./api-request-
|
|
1
|
+
import "./api-request-sdA8P2xw.js";
|
|
2
2
|
import { u as SANDBOX_FILE_API_ABSOLUTE_ROOTS } from "./file-transfer-DOSTbUSR.js";
|
|
3
3
|
import { a as listAgentPreviews, i as getAgentPreview, o as publishAgentPreview, r as ensureAgentPreview, s as removeAgentPreview, t as AgentPreviewError } from "./preview-operations-DWL78boI.js";
|
|
4
4
|
//#region \0rolldown/runtime.js
|
|
@@ -396,7 +396,7 @@ async function createMcpServer(box, options = {}) {
|
|
|
396
396
|
const { bindings, handlers } = bindToolSpecs(box, options);
|
|
397
397
|
const server = new serverModule.Server({
|
|
398
398
|
name: options.name ?? "tangle-sandbox",
|
|
399
|
-
version: options.version ?? "1.0.
|
|
399
|
+
version: options.version ?? "1.0.248"
|
|
400
400
|
}, { capabilities: { tools: {} } });
|
|
401
401
|
server.setRequestHandler(typesModule.ListToolsRequestSchema, async () => ({ tools: bindings.map(({ spec: s }) => ({
|
|
402
402
|
name: s.name,
|
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-CB0_5puA.js";
|
|
2
2
|
import { t as runPreparedEvidence } from "./prepared-evidence-ibAysmX8.js";
|
|
3
3
|
import { t as rawEvidenceArchiveAttemptSchema } from "./raw-evidence-export-C6Xdl3nC.js";
|
|
4
4
|
import { z } from "zod";
|
package/dist/runtime.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, c as SandboxRuntimeApi, t as BrowserInteractiveSessionController } from "./interactive-controller-
|
|
2
|
-
import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-
|
|
3
|
-
import { C as SandboxError, D as TimeoutError, O as ValidationError, T as StateError, _ as NetworkError, b as ProfileFileMountPathError, c as AuthError, m as FileWriteConflictError, u as CapabilityError, v as NotFoundError, w as ServerError, x as QuotaError, y as PartialFailureError } from "./errors-
|
|
4
|
-
import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-
|
|
5
|
-
import { s as uploadChunked } from "./chunked-upload-
|
|
1
|
+
import { F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, c as SandboxRuntimeApi, t as BrowserInteractiveSessionController } from "./interactive-controller-DQtJ67nM.js";
|
|
2
|
+
import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-BFVntlhN.js";
|
|
3
|
+
import { C as SandboxError, D as TimeoutError, O as ValidationError, T as StateError, _ as NetworkError, b as ProfileFileMountPathError, c as AuthError, m as FileWriteConflictError, u as CapabilityError, v as NotFoundError, w as ServerError, x as QuotaError, y as PartialFailureError } from "./errors-C4YhW-wf.js";
|
|
4
|
+
import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-sdA8P2xw.js";
|
|
5
|
+
import { s as uploadChunked } from "./chunked-upload-DghS4NcV.js";
|
|
6
6
|
//#region src/runtime-client.ts
|
|
7
7
|
function requireToken(token) {
|
|
8
8
|
const value = token.trim();
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { A as requestedPublicProfileDigest, C as runtimeFilesystemPath, D as assertCurrentBackendType, E as applyRequestedModel, F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, O as mergeRuntimeBackendConfig, P as withoutRuntimeSecrets, S as encodeTextForWire, U as normalizeEffectiveBackend, _ as mintTraceId, a as assertScopedTokenActive, b as validateAcceptedDispatchRunRef, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as callHeaders, g as isTraceId, h as TRACE_ID_HEADER, i as terminalUpgradeHeadersSupported, j as requestedSecretProfilePublicDigest, k as normalizeRuntimeBackendConfig, l as normalizeSessionInfo, m as assertFileWritePreconditions, n as InteractiveSessionController, p as sessionHeaders, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as resolveTraceId, w as canUseNodeHttp2, x as encodePromptForWire, y as resolveDispatchRunIdentity } from "./interactive-controller-
|
|
1
|
+
import { A as requestedPublicProfileDigest, C as runtimeFilesystemPath, D as assertCurrentBackendType, E as applyRequestedModel, F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, O as mergeRuntimeBackendConfig, P as withoutRuntimeSecrets, S as encodeTextForWire, U as normalizeEffectiveBackend, _ as mintTraceId, a as assertScopedTokenActive, b as validateAcceptedDispatchRunRef, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as callHeaders, g as isTraceId, h as TRACE_ID_HEADER, i as terminalUpgradeHeadersSupported, j as requestedSecretProfilePublicDigest, k as normalizeRuntimeBackendConfig, l as normalizeSessionInfo, m as assertFileWritePreconditions, n as InteractiveSessionController, p as sessionHeaders, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as resolveTraceId, w as canUseNodeHttp2, x as encodePromptForWire, y as resolveDispatchRunIdentity } from "./interactive-controller-DQtJ67nM.js";
|
|
2
2
|
import { C as boundedIdentifierSchema$1, E as boundedStringSchema$1, g as sha256DigestSchema$1, o as canonicalCandidateDigest$1, s as canonicalCandidateJson$1 } from "./harness--g8UQ5TZ.js";
|
|
3
3
|
import { a as ProxySecretReceiptSchema$1, r as agentProfileSchema$1 } from "./profile-schema-B11dRfGB.js";
|
|
4
4
|
import { t as sha256$1 } from "./sha2-BIoWepwn.js";
|
|
5
|
-
import { A as agentInteractiveSessionStatusMatchesRef, B as PlanContinuationSchema, C as AgentInteractiveSessionStopAcknowledgementSchema, D as agentInteractiveSessionControlClaimMatchesRef, E as agentInteractiveSessionControlClaimIsNewer, F as AgentRunCancellationAcknowledgementSchema, G as InteractionResponseSchema, H as InteractionBindingSchema, I as AgentRunCancellationRequestSchema, L as agentRunCancellationAcknowledgementMatchesRequest, M as agentInteractiveDimensionSchema, N as sameAgentExactRun, O as agentInteractiveSessionPromptAcknowledgementMatchesCommand, P as AgentExactRunControlRefSchema, S as AgentInteractiveSessionStatusSchema, T as agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, U as InteractionRequestSchema, V as InteractionAcknowledgementSchema, W as InteractionResponseCommandSchema, _ as AgentInteractiveSessionControlClaimRequestSchema, b as AgentInteractiveSessionPromptCommandSchema, d as interactiveSessionControlClaimResponseSchema, f as interactiveSessionControlReleaseResponseSchema, g as AgentInteractiveSessionControlClaimAcknowledgementSchema, h as AgentInteractiveSessionAttachSchema, j as agentInteractiveSessionStopAcknowledgementMatchesCommand, l as createInteractiveControlHolderId, m as interactiveSessionStatusResponseSchema, p as interactiveSessionControlValidationResponseSchema, v as AgentInteractiveSessionControlClaimSchema, w as AgentInteractiveSessionStopCommandSchema, x as AgentInteractiveSessionRefSchema, y as AgentInteractiveSessionPromptAcknowledgementSchema } from "./browser-interactive-control-controller-
|
|
5
|
+
import { A as agentInteractiveSessionStatusMatchesRef, B as PlanContinuationSchema, C as AgentInteractiveSessionStopAcknowledgementSchema, D as agentInteractiveSessionControlClaimMatchesRef, E as agentInteractiveSessionControlClaimIsNewer, F as AgentRunCancellationAcknowledgementSchema, G as InteractionResponseSchema, H as InteractionBindingSchema, I as AgentRunCancellationRequestSchema, L as agentRunCancellationAcknowledgementMatchesRequest, M as agentInteractiveDimensionSchema, N as sameAgentExactRun, O as agentInteractiveSessionPromptAcknowledgementMatchesCommand, P as AgentExactRunControlRefSchema, S as AgentInteractiveSessionStatusSchema, T as agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, U as InteractionRequestSchema, V as InteractionAcknowledgementSchema, W as InteractionResponseCommandSchema, _ as AgentInteractiveSessionControlClaimRequestSchema, b as AgentInteractiveSessionPromptCommandSchema, d as interactiveSessionControlClaimResponseSchema, f as interactiveSessionControlReleaseResponseSchema, g as AgentInteractiveSessionControlClaimAcknowledgementSchema, h as AgentInteractiveSessionAttachSchema, j as agentInteractiveSessionStopAcknowledgementMatchesCommand, l as createInteractiveControlHolderId, m as interactiveSessionStatusResponseSchema, p as interactiveSessionControlValidationResponseSchema, v as AgentInteractiveSessionControlClaimSchema, w as AgentInteractiveSessionStopCommandSchema, x as AgentInteractiveSessionRefSchema, y as AgentInteractiveSessionPromptAcknowledgementSchema } from "./browser-interactive-control-controller-BFVntlhN.js";
|
|
6
6
|
import { t as canonicalAgentProfileDigest } from "./agent-execution-preparation-N1ksNIIJ.js";
|
|
7
|
-
import { C as SandboxError, D as TimeoutError, E as StreamInterruptedError, O as ValidationError, T as StateError, _ as NetworkError, a as readResponseJson, b as ProfileFileMountPathError, c as AuthError, f as EdgeNotReadyError, i as parseResponseError, n as isTransientWrite, o as responseMetadata, r as parseErrorResponse, s as retryWhen, t as TerminalStreamError, u as CapabilityError, v as NotFoundError, w as ServerError } from "./errors-
|
|
7
|
+
import { C as SandboxError, D as TimeoutError, E as StreamInterruptedError, O as ValidationError, T as StateError, _ as NetworkError, a as readResponseJson, b as ProfileFileMountPathError, c as AuthError, f as EdgeNotReadyError, i as parseResponseError, n as isTransientWrite, o as responseMetadata, r as parseErrorResponse, s as retryWhen, t as TerminalStreamError, u as CapabilityError, v as NotFoundError, w as ServerError } from "./errors-C4YhW-wf.js";
|
|
8
8
|
import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-CRxC2dlT.js";
|
|
9
9
|
import { a as backoffDelayMs, o as isUndelivered, r as abortableSleep } from "./retry-policy-oW3_ljoc.js";
|
|
10
|
-
import { a as isReplayableBody, i as fetchSandboxApi, n as SDK_TIMEOUTS, o as rewrapResponse, t as IDEMPOTENT_METHODS } from "./api-request-
|
|
10
|
+
import { a as isReplayableBody, i as fetchSandboxApi, n as SDK_TIMEOUTS, o as rewrapResponse, t as IDEMPOTENT_METHODS } from "./api-request-sdA8P2xw.js";
|
|
11
11
|
import { a as SANDBOX_PROXY_REQUEST_MAX_BYTES, c as PROFILE_FILE_MOUNT_OUTSIDE_ROOTS_CODE, d as isProfileFileMountOutsideRoots, f as profileFileMountOutsideRootsMessage, l as SANDBOX_AGENT_HOME, o as FILE_OPERATION_LIMITS, u as SANDBOX_FILE_API_ABSOLUTE_ROOTS } from "./file-transfer-DOSTbUSR.js";
|
|
12
|
-
import { c as awaitSdkResend, l as takeSdkTurn, s as uploadChunked } from "./chunked-upload-
|
|
12
|
+
import { c as awaitSdkResend, l as takeSdkTurn, s as uploadChunked } from "./chunked-upload-DghS4NcV.js";
|
|
13
13
|
import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-sGVP8skk.js";
|
|
14
14
|
import { t as SIDECAR_PROXY_ERROR_HEADER } from "./sidecar-proxy-error-DTdbCbUM.js";
|
|
15
15
|
import { t as parseSSEStream } from "./sse-parser-BCG3iL9j.js";
|
|
16
16
|
import { t as runPreparedProcess } from "./prepared-process-DQ_68Ofg.js";
|
|
17
17
|
import { a as isBackendType, r as cliAuthReferenceSchema } from "./cli-auth-bundle-C6DtK7GX-D8681c7j.js";
|
|
18
18
|
import "./cli-auth-bundle-D5ZBMpZ7.js";
|
|
19
|
-
import { n as SandboxLines } from "./lines-
|
|
20
|
-
import { t as downloadFile } from "./file-download-
|
|
19
|
+
import { n as SandboxLines } from "./lines-0uTV6QCT.js";
|
|
20
|
+
import { t as downloadFile } from "./file-download-CB0_5puA.js";
|
|
21
21
|
import { z } from "zod";
|
|
22
22
|
import { createHash } from "node:crypto";
|
|
23
23
|
import { constants } from "node:fs";
|
|
@@ -12014,7 +12014,7 @@ var SandboxInteractiveCapabilities = class extends SandboxPromptCapabilities {
|
|
|
12014
12014
|
var SandboxSessionEvidenceCapabilities = class extends SandboxInteractiveCapabilities {
|
|
12015
12015
|
/** @internal — invoked before the sandbox is deleted. */
|
|
12016
12016
|
async _sessionExportRawEvidence(id, destination, options) {
|
|
12017
|
-
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-
|
|
12017
|
+
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-NsHlYsny.js");
|
|
12018
12018
|
await this.ensureRunning();
|
|
12019
12019
|
await this.refresh();
|
|
12020
12020
|
return exportRawEvidenceDirectory((signal, archiveId, cancel) => this.runtimeFetch(`/agents/sessions/${encodeURIComponent(id)}/raw-evidence/archive?${new URLSearchParams([
|
|
@@ -12045,7 +12045,7 @@ var SandboxSessionEvidenceCapabilities = class extends SandboxInteractiveCapabil
|
|
|
12045
12045
|
* and the byte and file bounds are verified before the directory appears.
|
|
12046
12046
|
*/
|
|
12047
12047
|
async exportRawEvidence(destination, options) {
|
|
12048
|
-
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-
|
|
12048
|
+
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-NsHlYsny.js");
|
|
12049
12049
|
await this.ensureRunning();
|
|
12050
12050
|
await this.refresh();
|
|
12051
12051
|
return exportRawEvidenceDirectory((signal, archiveId, cancel) => this.runtimeFetch(`/agents/raw-evidence/archive?${new URLSearchParams({
|
|
@@ -14145,7 +14145,7 @@ var SandboxFilesystemOperations = class extends DeclaredFilesystemOperations {
|
|
|
14145
14145
|
totalBytes: size,
|
|
14146
14146
|
percentage: 0
|
|
14147
14147
|
});
|
|
14148
|
-
const { uploadChunkedFromFile } = await import("./chunked-upload-file-
|
|
14148
|
+
const { uploadChunkedFromFile } = await import("./chunked-upload-file-DAF94AqK.js");
|
|
14149
14149
|
await uploadChunkedFromFile({ fetch: (path, init) => this.host.runtimeFetch(path, init) }, remotePath, localPath, {
|
|
14150
14150
|
mode: options?.permissions,
|
|
14151
14151
|
onProgress: options?.onProgress ? (progress) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as agentProfileSchema } from "./profile-schema-B11dRfGB.js";
|
|
2
2
|
import { t as canonicalAgentProfileDigest } from "./agent-execution-preparation-N1ksNIIJ.js";
|
|
3
|
-
import { C as SandboxError, O as ValidationError, u as CapabilityError } from "./errors-
|
|
3
|
+
import { C as SandboxError, O as ValidationError, u as CapabilityError } from "./errors-C4YhW-wf.js";
|
|
4
4
|
import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-CRxC2dlT.js";
|
|
5
5
|
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-C6DtK7GX-D8681c7j.js";
|
|
6
6
|
import "./cli-auth-bundle-D5ZBMpZ7.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as SandboxError, O as ValidationError } from "./errors-
|
|
2
|
-
import { r as SEAT_OWNER_MAX_RESPONSE_BYTES, s as seatOwnerTimeoutMs, t as SEAT_COMMAND_TIMEOUT_MS } from "./select-seat-
|
|
1
|
+
import { C as SandboxError, O as ValidationError } from "./errors-C4YhW-wf.js";
|
|
2
|
+
import { r as SEAT_OWNER_MAX_RESPONSE_BYTES, s as seatOwnerTimeoutMs, t as SEAT_COMMAND_TIMEOUT_MS } from "./select-seat-C8k25FUQ.js";
|
|
3
3
|
import { spawn } from "node:child_process";
|
|
4
4
|
//#region src/select-seat-command.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as combineAbortSignals } from "../abort-signal-CRxC2dlT.js";
|
|
2
|
-
import { i as fetchSandboxApi } from "../api-request-
|
|
2
|
+
import { i as fetchSandboxApi } from "../api-request-sdA8P2xw.js";
|
|
3
3
|
import "../sidecar-proxy-error-DTdbCbUM.js";
|
|
4
4
|
import { t as parseSSEStream } from "../sse-parser-BCG3iL9j.js";
|
|
5
5
|
import { PART_TEXT, PART_TEXT_SUFFIX } from "@tangle-network/agent-core/sse";
|
package/dist/tangle/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as ITangleJobsAbi, g as JsonResponseParamTypes, h as JOB_SANDBOX_DELETE, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_CREATE, n as fetchQuote, o as validateQuote, p as AgentSandboxBlueprintAbi, r as inputsHashOf, s as BlueprintSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-
|
|
1
|
+
import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as ITangleJobsAbi, g as JsonResponseParamTypes, h as JOB_SANDBOX_DELETE, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_CREATE, n as fetchQuote, o as validateQuote, p as AgentSandboxBlueprintAbi, r as inputsHashOf, s as BlueprintSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-CmWNSemC.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, BlueprintSandboxClient, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, OperatorSession, OperatorSessionError, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as readFilesystemIncarnationTuple, n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
2
|
-
import { a as readResponseJson } from "./errors-
|
|
3
|
-
import { i as fetchSandboxApi } from "./api-request-
|
|
1
|
+
import { R as readFilesystemIncarnationTuple, n as createSandboxInstanceFromResponse } from "./sandbox-DUlOP3dJ.js";
|
|
2
|
+
import { a as readResponseJson } from "./errors-C4YhW-wf.js";
|
|
3
|
+
import { i as fetchSandboxApi } from "./api-request-sdA8P2xw.js";
|
|
4
4
|
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-BT2q9nkO.js";
|
|
5
5
|
//#region ../../../packages/runtime-contracts/dist/tangle-blueprint-abi.js
|
|
6
6
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.248",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -155,13 +155,13 @@
|
|
|
155
155
|
"yjs": "13.6.33",
|
|
156
156
|
"@products/sandbox-test-utils": "0.0.0",
|
|
157
157
|
"@repo/shared": "0.0.0",
|
|
158
|
+
"@tangle-network/cli-agent-registry": "0.15.0",
|
|
158
159
|
"@tangle-network/agent-profile-materialize": "0.27.1",
|
|
159
|
-
"@tangle-network/runtime-contracts": "0.20.0"
|
|
160
|
-
"@tangle-network/cli-agent-registry": "0.15.0"
|
|
160
|
+
"@tangle-network/runtime-contracts": "0.20.0"
|
|
161
161
|
},
|
|
162
162
|
"tangleRelease": {
|
|
163
|
-
"sourceSha": "
|
|
164
|
-
"mergedAt": "2026-11-
|
|
163
|
+
"sourceSha": "f908528b9dcf32d488a7be8687b1ea3fbf764f71",
|
|
164
|
+
"mergedAt": "2026-11-05T05:48:22-08:00"
|
|
165
165
|
},
|
|
166
166
|
"scripts": {
|
|
167
167
|
"build": "node scripts/build-dist.mjs",
|