@tangle-network/sandbox 1.0.479 → 1.0.481
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 +4 -4
- package/dist/agent/preview.js +1 -1
- package/dist/{api-request-BITmEqE_.js → api-request-DcSYHloX.js} +1 -1
- package/dist/{browser-interactive-control-controller-CmEc5s5E.js → browser-interactive-control-controller-D0WX1BIX.js} +1 -1
- package/dist/{client-BmWwfz2R.js → client-Bpl8b4S-.js} +5 -3
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-C8JApQ-0.js → collaboration-DidTeKVx.js} +1 -1
- package/dist/core.js +2 -2
- package/dist/{direct-http2-D5P-uUxG.js → direct-http2-DJYOowWN.js} +27 -12
- package/dist/gpu-lease/index.js +1 -1
- package/dist/index.js +7 -7
- package/dist/intelligence/index.js +1 -1
- package/dist/interactive-control.js +1 -1
- package/dist/{interactive-controller-Bxv-6g35.js → interactive-controller-D_d5Zj9D.js} +2 -2
- package/dist/{mcp-local-CL5dflez.js → mcp-local-C2T7m8PD.js} +2 -2
- package/dist/runtime.js +3 -3
- package/dist/{sandbox-CVq1OqGu.js → sandbox-yKOk2tmA.js} +16 -5
- package/dist/session-gateway/index.js +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-BtC-grIC.js → tangle-CvHNHE5C.js} +2 -2
- package/package.json +3 -3
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 { C as assertCurrentBackendType } from "../interactive-controller-
|
|
3
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
1
|
+
import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-C2T7m8PD.js";
|
|
2
|
+
import { C as assertCurrentBackendType } from "../interactive-controller-D_d5Zj9D.js";
|
|
3
|
+
import { t as SandboxInstance } from "../sandbox-yKOk2tmA.js";
|
|
4
4
|
import { O as ValidationError, T as StateError, v as NotFoundError } from "../errors-BY7a-Hpw.js";
|
|
5
|
-
import { t as Sandbox } from "../client-
|
|
5
|
+
import { t as Sandbox } from "../client-Bpl8b4S-.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-C2T7m8PD.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.481";
|
|
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 boundedEventContentRecordSchema, D as boundedJsonSchema, E as boundedJsonRecordSchema, O as boundedStringSchema, S as boundedEventContentJsonSchema, T as boundedIdentifierSchema, k as isBoundedEventContentJson, s as canonicalCandidateDigest, v as sha256DigestSchema, w as boundedEventContentStringSchema, x as CONTRACT_MAX_STRING_LENGTH, y as CONTRACT_MAX_ARRAY_LENGTH } from "./harness-QlDF8rzb.js";
|
|
2
2
|
import { t as agentExecutionPreparationReceiptSchema } from "./agent-execution-preparation-receipt-Cc9RZhlS.js";
|
|
3
3
|
import { t as awaitWithAbort } from "./abort-signal-BsriwJ8L.js";
|
|
4
|
-
import { i as fetchSandboxApi } from "./api-request-
|
|
4
|
+
import { i as fetchSandboxApi } from "./api-request-DcSYHloX.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.28/node_modules/@tangle-network/agent-interface/dist/native-session-event.js
|
|
7
7
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { C as assertCurrentBackendType, O as withProfileHarness, R as backendTypeSchema, S as applyRequestedModel, T as normalizeRuntimeBackendConfig, _ as encodePromptForWire, k as withoutCreateOnlyModelFields, o as requestInteractiveSessionToken, x as isBrowserRuntime } from "./interactive-controller-
|
|
1
|
+
import { C as assertCurrentBackendType, O as withProfileHarness, R as backendTypeSchema, S as applyRequestedModel, T as normalizeRuntimeBackendConfig, _ as encodePromptForWire, k as withoutCreateOnlyModelFields, o as requestInteractiveSessionToken, x as isBrowserRuntime } from "./interactive-controller-D_d5Zj9D.js";
|
|
2
2
|
import { r as agentProfileSchema } from "./profile-schema-BHeC7cOf.js";
|
|
3
|
-
import { $ as
|
|
3
|
+
import { $ as isCapacityShortageCreateError, B as parseLifecycleTimes, E as validateDeferredProfileFileMounts, F as normalizeCaptureProof, G as normalizeSandboxShape, H as normalizeConnection, I as normalizeSandboxCreateReceipt, J as DEPLOY_WINDOW_RETRY_MS, K as CAPACITY_ETA_MARGIN_MS, L as normalizeStartupDiagnostics, P as DirectRuntimeHttpClient, Q as generateIdempotencyKey, T as splitInlineProfileSkills, U as normalizeEgressPolicyFields, V as state, W as normalizeProxySecretReceipt, X as createRetryDelayMs, Y as awaitCreateResend, Z as extendableDeadline, d as sandboxLedgerUsd, et as isDeployWindowCreateError, it as SANDBOX_CREATE_DEADLINE_HEADER, n as createSandboxInstanceFromResponse, nt as isRetryableCreateError, o as exportTraceBundle, q as CAPACITY_ETA_WAIT_MAX_MS, rt as runtimeWorkspaceCwdSchema, tt as isRateLimitCreateError, w as splitInlineProfileFileMounts, x as deleteSandbox, z as dateOf } from "./sandbox-yKOk2tmA.js";
|
|
4
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-BY7a-Hpw.js";
|
|
5
5
|
import { n as combineAbortSignals } from "./abort-signal-BsriwJ8L.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-DcSYHloX.js";
|
|
8
8
|
import { l as SANDBOX_AGENT_HOME } from "./file-transfer-DOSTbUSR.js";
|
|
9
9
|
import { i as resolveTraceId } from "./trace-id-BTa6Db_2.js";
|
|
10
10
|
import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-BQJJVjzW.js";
|
|
@@ -1952,6 +1952,8 @@ var SandboxCreation = class extends SandboxManagement {
|
|
|
1952
1952
|
createReceipt: info.createReceipt ?? null
|
|
1953
1953
|
});
|
|
1954
1954
|
const instance = createSandboxInstanceFromResponse(this, info, withoutCreateOnlyModelFields(handleBackend), data);
|
|
1955
|
+
const runtimeClient = state(instance).client;
|
|
1956
|
+
if (runtimeClient instanceof DirectRuntimeHttpClient) runtimeClient.preconnect();
|
|
1955
1957
|
if (instance.status === "provisioning" || instance.status === "pending") {
|
|
1956
1958
|
const remainingMs = Math.max(0, deadline - Date.now());
|
|
1957
1959
|
try {
|
|
@@ -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-DidTeKVx.js";
|
|
2
2
|
export { CollaborationClient, CollaborationFileBridge, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { D as TimeoutError, _ as NetworkError, r as parseErrorResponse } from "./errors-BY7a-Hpw.js";
|
|
2
|
-
import { i as fetchSandboxApi } from "./api-request-
|
|
2
|
+
import { i as fetchSandboxApi } from "./api-request-DcSYHloX.js";
|
|
3
3
|
//#region src/collaboration/client.ts
|
|
4
4
|
function normalizeBaseUrl(url) {
|
|
5
5
|
return url.replace(/\/+$/, "");
|
package/dist/core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as ManagedProcessClient, r as WorkspaceImages, t as SandboxInstance } from "./sandbox-
|
|
1
|
+
import { S as ManagedProcessClient, r as WorkspaceImages, t as SandboxInstance } from "./sandbox-yKOk2tmA.js";
|
|
2
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-BY7a-Hpw.js";
|
|
3
|
-
import { a as InstancesClient, c as backendRegistryCapabilitiesSchema, d as backendRegistryResponseSchema, f as isBackendRegistryInteractionKind, i as InstanceRestartingError, l as backendRegistryEntrySchema, m as parseBackendRegistryResponseBody, p as parseBackendRegistryResponse, r as HostedInstance, t as Sandbox, u as backendRegistryInteractionKindSchema } from "./client-
|
|
3
|
+
import { a as InstancesClient, c as backendRegistryCapabilitiesSchema, d as backendRegistryResponseSchema, f as isBackendRegistryInteractionKind, i as InstanceRestartingError, l as backendRegistryEntrySchema, m as parseBackendRegistryResponseBody, p as parseBackendRegistryResponse, r as HostedInstance, t as Sandbox, u as backendRegistryInteractionKindSchema } from "./client-Bpl8b4S-.js";
|
|
4
4
|
import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-BWUWIrxa.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-BWiEs9yv.js";
|
|
@@ -7,24 +7,28 @@ const connectedAt = /* @__PURE__ */ new WeakMap();
|
|
|
7
7
|
const IDLE_SESSION_MS = 6e4;
|
|
8
8
|
const WINDOW = { initialWindowSize: 2 ** 21 };
|
|
9
9
|
const HOP_BY_HOP = "connection host keep-alive transfer-encoding upgrade".split(" ");
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Open the origin's session now, so the first call does not wait on its
|
|
12
|
+
* TCP and TLS handshake. A failed connect leaves no session: the first call
|
|
13
|
+
* opens its own, as it would without this.
|
|
14
|
+
*/
|
|
15
|
+
async function preconnectDirectHttp2(origin) {
|
|
16
|
+
const { connect } = await import("node:http2");
|
|
17
|
+
sessionFor(new URL(origin).origin, connect);
|
|
18
|
+
}
|
|
19
|
+
function sessionFor(origin, connect) {
|
|
20
|
+
let session = sessions.get(origin);
|
|
17
21
|
const reused = !!session && !session.closed && !session.destroyed;
|
|
18
22
|
if (!session || session.closed || session.destroyed) {
|
|
19
|
-
session = connect(
|
|
20
|
-
sessions.set(
|
|
23
|
+
session = connect(origin, { settings: WINDOW });
|
|
24
|
+
sessions.set(origin, session);
|
|
21
25
|
const opened = session;
|
|
22
26
|
opened.once("connect", () => {
|
|
23
27
|
connectedAt.set(opened, performance.now());
|
|
24
28
|
opened.setLocalWindowSize?.(2 ** 23);
|
|
25
29
|
});
|
|
26
30
|
const forget = () => {
|
|
27
|
-
if (sessions.get(
|
|
31
|
+
if (sessions.get(origin) === opened) sessions.delete(origin);
|
|
28
32
|
};
|
|
29
33
|
opened.on("error", forget);
|
|
30
34
|
opened.on("close", forget);
|
|
@@ -41,7 +45,18 @@ async function fetchDirectHttp2(url, init, timing) {
|
|
|
41
45
|
opened.once("close", () => clearInterval(heartbeat));
|
|
42
46
|
opened.unref();
|
|
43
47
|
}
|
|
44
|
-
|
|
48
|
+
return {
|
|
49
|
+
session,
|
|
50
|
+
reused
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
async function fetchDirectHttp2(url, init, timing) {
|
|
54
|
+
const { connect, constants } = await import("node:http2");
|
|
55
|
+
const { Readable } = await import("node:stream");
|
|
56
|
+
const request = new Request(url, init);
|
|
57
|
+
request.signal.throwIfAborted();
|
|
58
|
+
const target = new URL(url);
|
|
59
|
+
const { session: activeSession, reused } = sessionFor(target.origin, connect);
|
|
45
60
|
const headers = {
|
|
46
61
|
":method": request.method,
|
|
47
62
|
":path": target.pathname + target.search
|
|
@@ -114,4 +129,4 @@ async function fetchDirectHttp2(url, init, timing) {
|
|
|
114
129
|
return response;
|
|
115
130
|
}
|
|
116
131
|
//#endregion
|
|
117
|
-
export { fetchDirectHttp2 };
|
|
132
|
+
export { fetchDirectHttp2, preconnectDirectHttp2 };
|
package/dist/gpu-lease/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as fetchSandboxApi } from "../api-request-
|
|
1
|
+
import { i as fetchSandboxApi } from "../api-request-DcSYHloX.js";
|
|
2
2
|
import { t as ITangleJobsAbi } from "../abi-CQYNCS4F.js";
|
|
3
3
|
import { createPublicClient, createWalletClient, decodeAbiParameters, encodeAbiParameters, encodeFunctionData, hexToBytes, http, keccak256, parseAbi, parseAbiParameters, parseEventLogs, recoverMessageAddress, stringToHex } from "viem";
|
|
4
4
|
import { privateKeyToAccount } from "viem/accounts";
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { E as requestedPublicProfileDigest, F as TERMINAL_WS_ECHO_SUBPROTOCOL, L as ALL_BACKEND_TYPES, M as deriveAgentResultOutcome, N as deriveAgentRunOutcome, P as projectAgentTerminalRecord, R as backendTypeSchema, T as normalizeRuntimeBackendConfig, V as parseBackendType, i as terminalUpgradeHeadersSupported, j as createAgentRunOutcomeTracker, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, z as isolationPrincipalSchema } from "./interactive-controller-
|
|
1
|
+
import { E as requestedPublicProfileDigest, F as TERMINAL_WS_ECHO_SUBPROTOCOL, L as ALL_BACKEND_TYPES, M as deriveAgentResultOutcome, N as deriveAgentRunOutcome, P as projectAgentTerminalRecord, R as backendTypeSchema, T as normalizeRuntimeBackendConfig, V as parseBackendType, i as terminalUpgradeHeadersSupported, j as createAgentRunOutcomeTracker, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, z as isolationPrincipalSchema } from "./interactive-controller-D_d5Zj9D.js";
|
|
2
2
|
import { a as SANDBOX_SIZE_PRESET_NAMES, r as agentProfileSchema, t as agentProfileConfidentialSchema } from "./profile-schema-BHeC7cOf.js";
|
|
3
|
-
import { A as isMaterializerHarness, C as materializeProfileFileMounts, D as HARNESS_LAUNCH_MATERIALIZE_OPTIONS, E as validateDeferredProfileFileMounts, M as SandboxOperation, N as SandboxOperationFailedError, O as ProfileUnsupportedError, S as ManagedProcessClient, T as splitInlineProfileSkills, _ 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 materializeProfile, k as enforceWorkspacePlanSupport, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as exportTraceBundle, p as InteractiveTerminalFrameLog, r as WorkspaceImages,
|
|
4
|
-
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-
|
|
3
|
+
import { A as isMaterializerHarness, C as materializeProfileFileMounts, D as HARNESS_LAUNCH_MATERIALIZE_OPTIONS, E as validateDeferredProfileFileMounts, M as SandboxOperation, N as SandboxOperationFailedError, O as ProfileUnsupportedError, S as ManagedProcessClient, T as splitInlineProfileSkills, _ 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 materializeProfile, k as enforceWorkspacePlanSupport, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as exportTraceBundle, p as InteractiveTerminalFrameLog, r as WorkspaceImages, rt as runtimeWorkspaceCwdSchema, s as otelTraceIdForTangleTrace, t as SandboxInstance, u as SandboxSession, v as collectAgentResponseText, w as splitInlineProfileFileMounts, y as getSandboxEventText } from "./sandbox-yKOk2tmA.js";
|
|
4
|
+
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-D0WX1BIX.js";
|
|
5
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-BY7a-Hpw.js";
|
|
6
|
-
import { _ as validateBatchRunRequest, a as InstancesClient, c as backendRegistryCapabilitiesSchema, d as backendRegistryResponseSchema, f as isBackendRegistryInteractionKind, g as createBatchResultAccumulator, h as IntelligenceClient, i as InstanceRestartingError, l as backendRegistryEntrySchema, m as parseBackendRegistryResponseBody, n as RunsClient, o as SandboxFleetClient, p as parseBackendRegistryResponse, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as backendRegistryInteractionKindSchema } 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-
|
|
6
|
+
import { _ as validateBatchRunRequest, a as InstancesClient, c as backendRegistryCapabilitiesSchema, d as backendRegistryResponseSchema, f as isBackendRegistryInteractionKind, g as createBatchResultAccumulator, h as IntelligenceClient, i as InstanceRestartingError, l as backendRegistryEntrySchema, m as parseBackendRegistryResponseBody, n as RunsClient, o as SandboxFleetClient, p as parseBackendRegistryResponse, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as backendRegistryInteractionKindSchema } from "./client-Bpl8b4S-.js";
|
|
7
|
+
import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-DcSYHloX.js";
|
|
8
|
+
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-DidTeKVx.js";
|
|
9
9
|
import "./file-transfer-DOSTbUSR.js";
|
|
10
10
|
import { t as parseSSEStream } from "./sse-parser-DTgSRcZC.js";
|
|
11
11
|
import { i as profileChannelReference, n as SandboxLines, r as lineInstanceKey, t as LinesClient } from "./lines-BWUWIrxa.js";
|
|
@@ -13,7 +13,7 @@ import { t as downloadFile } from "./file-download-HPsIahnf.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-BWiEs9yv.js";
|
|
15
15
|
import { a as createSelectSeat, i as SeatSelectionError, o as gatewaySeatTransport } from "./select-seat-43fsQBjG.js";
|
|
16
|
-
import { s as BlueprintSandboxClient } from "./tangle-
|
|
16
|
+
import { s as BlueprintSandboxClient } from "./tangle-CvHNHE5C.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,5 +1,5 @@
|
|
|
1
1
|
import { D as TimeoutError, _ as NetworkError, r as parseErrorResponse, u as CapabilityError } from "../errors-BY7a-Hpw.js";
|
|
2
|
-
import { i as fetchSandboxApi } from "../api-request-
|
|
2
|
+
import { i as fetchSandboxApi } from "../api-request-DcSYHloX.js";
|
|
3
3
|
import { n as verifyDownload } from "../file-download-HPsIahnf.js";
|
|
4
4
|
import { t as rawEvidenceArchiveAttemptSchema } from "../raw-evidence-export-gCbAD5ZV.js";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -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-D0WX1BIX.js";
|
|
2
2
|
export { BrowserInteractiveSessionControlController, InteractiveSessionNotRunningError, browserInteractiveControlHolderId };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { D as boundedJsonSchema, T as boundedIdentifierSchema, s as canonicalCandidateDigest } from "./harness-QlDF8rzb.js";
|
|
2
2
|
import { r as agentProfileSchema } from "./profile-schema-BHeC7cOf.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-
|
|
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-D0WX1BIX.js";
|
|
4
4
|
import { O as ValidationError, _ as NetworkError, i as parseResponseError, s as retryWhen, t as TerminalStreamError, u as CapabilityError, w as ServerError } from "./errors-BY7a-Hpw.js";
|
|
5
5
|
import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-BsriwJ8L.js";
|
|
6
|
-
import { n as SDK_TIMEOUTS } from "./api-request-
|
|
6
|
+
import { n as SDK_TIMEOUTS } from "./api-request-DcSYHloX.js";
|
|
7
7
|
import { c as uploadChunked, l as awaitSdkResend } from "./chunked-upload-C44d_Ao7.js";
|
|
8
8
|
import { i as resolveTraceId, n as isTraceId, o as traceHeaders, r as mintTraceId, t as TRACE_ID_HEADER } from "./trace-id-BTa6Db_2.js";
|
|
9
9
|
import { t as parseSSEStream } from "./sse-parser-DTgSRcZC.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./api-request-
|
|
1
|
+
import "./api-request-DcSYHloX.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-DYH3y0cn.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.481"
|
|
400
400
|
}, { capabilities: { tools: {} } });
|
|
401
401
|
server.setRequestHandler(typesModule.ListToolsRequestSchema, async () => ({ tools: bindings.map(({ spec: s }) => ({
|
|
402
402
|
name: s.name,
|
package/dist/runtime.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { M as deriveAgentResultOutcome, N as deriveAgentRunOutcome, P as projectAgentTerminalRecord, c as SandboxRuntimeApi, j as createAgentRunOutcomeTracker, t as BrowserInteractiveSessionController } from "./interactive-controller-
|
|
2
|
-
import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-
|
|
1
|
+
import { M as deriveAgentResultOutcome, N as deriveAgentRunOutcome, P as projectAgentTerminalRecord, c as SandboxRuntimeApi, j as createAgentRunOutcomeTracker, t as BrowserInteractiveSessionController } from "./interactive-controller-D_d5Zj9D.js";
|
|
2
|
+
import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-D0WX1BIX.js";
|
|
3
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-BY7a-Hpw.js";
|
|
4
|
-
import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-
|
|
4
|
+
import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-DcSYHloX.js";
|
|
5
5
|
import { c as uploadChunked } from "./chunked-upload-C44d_Ao7.js";
|
|
6
6
|
//#region src/runtime-client.ts
|
|
7
7
|
function requireToken(token) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { A as withoutRuntimeSecrets, B as normalizeEffectiveBackend, C as assertCurrentBackendType, D as requestedSecretProfilePublicDigest, E as requestedPublicProfileDigest, I as AgentRuntimeAttachmentsSchema, M as deriveAgentResultOutcome, S as applyRequestedModel, T as normalizeRuntimeBackendConfig, _ as encodePromptForWire, a as assertScopedTokenActive, b as canUseNodeHttp2, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as callHeaders, g as validateAcceptedDispatchRunRef, h as resolveDispatchRunIdentity, i as terminalUpgradeHeadersSupported, j as createAgentRunOutcomeTracker, l as normalizeSessionInfo, m as assertFileWritePreconditions, n as InteractiveSessionController, p as sessionHeaders, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as encodeTextForWire, w as mergeRuntimeBackendConfig, y as runtimeFilesystemPath } from "./interactive-controller-
|
|
1
|
+
import { A as withoutRuntimeSecrets, B as normalizeEffectiveBackend, C as assertCurrentBackendType, D as requestedSecretProfilePublicDigest, E as requestedPublicProfileDigest, I as AgentRuntimeAttachmentsSchema, M as deriveAgentResultOutcome, S as applyRequestedModel, T as normalizeRuntimeBackendConfig, _ as encodePromptForWire, a as assertScopedTokenActive, b as canUseNodeHttp2, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as callHeaders, g as validateAcceptedDispatchRunRef, h as resolveDispatchRunIdentity, i as terminalUpgradeHeadersSupported, j as createAgentRunOutcomeTracker, l as normalizeSessionInfo, m as assertFileWritePreconditions, n as InteractiveSessionController, p as sessionHeaders, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as encodeTextForWire, w as mergeRuntimeBackendConfig, y as runtimeFilesystemPath } from "./interactive-controller-D_d5Zj9D.js";
|
|
2
2
|
import { O as boundedStringSchema, T as boundedIdentifierSchema, c as canonicalCandidateJson, s as canonicalCandidateDigest, v as sha256DigestSchema } from "./harness-QlDF8rzb.js";
|
|
3
3
|
import { o as ProxySecretReceiptSchema, r as agentProfileSchema } from "./profile-schema-BHeC7cOf.js";
|
|
4
|
-
import { A as agentInteractiveSessionStatusMatchesRef, B as PlanContinuationSchema, C as AgentInteractiveSessionStopAcknowledgementSchema, D as agentInteractiveSessionControlClaimMatchesRef, E as agentInteractiveSessionControlClaimIsNewer, F as AgentRunCancellationAcknowledgementSchema, G as InteractionResponseSchema, H as InteractionBindingSchema, I as AgentRunCancellationRequestSchema, L as agentRunCancellationAcknowledgementMatchesRequest, M as agentInteractiveDimensionSchema, N as sameAgentExactRun, O as agentInteractiveSessionPromptAcknowledgementMatchesCommand, P as AgentExactRunControlRefSchema, S as AgentInteractiveSessionStatusSchema, T as agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, U as InteractionRequestSchema, V as InteractionAcknowledgementSchema, W as InteractionResponseCommandSchema, _ as AgentInteractiveSessionControlClaimRequestSchema, b as AgentInteractiveSessionPromptCommandSchema, d as interactiveSessionControlClaimResponseSchema, f as interactiveSessionControlReleaseResponseSchema, g as AgentInteractiveSessionControlClaimAcknowledgementSchema, h as AgentInteractiveSessionAttachSchema, j as agentInteractiveSessionStopAcknowledgementMatchesCommand, l as createInteractiveControlHolderId, m as interactiveSessionStatusResponseSchema, p as interactiveSessionControlValidationResponseSchema, v as AgentInteractiveSessionControlClaimSchema, w as AgentInteractiveSessionStopCommandSchema, x as AgentInteractiveSessionRefSchema, y as AgentInteractiveSessionPromptAcknowledgementSchema } from "./browser-interactive-control-controller-
|
|
4
|
+
import { A as agentInteractiveSessionStatusMatchesRef, B as PlanContinuationSchema, C as AgentInteractiveSessionStopAcknowledgementSchema, D as agentInteractiveSessionControlClaimMatchesRef, E as agentInteractiveSessionControlClaimIsNewer, F as AgentRunCancellationAcknowledgementSchema, G as InteractionResponseSchema, H as InteractionBindingSchema, I as AgentRunCancellationRequestSchema, L as agentRunCancellationAcknowledgementMatchesRequest, M as agentInteractiveDimensionSchema, N as sameAgentExactRun, O as agentInteractiveSessionPromptAcknowledgementMatchesCommand, P as AgentExactRunControlRefSchema, S as AgentInteractiveSessionStatusSchema, T as agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, U as InteractionRequestSchema, V as InteractionAcknowledgementSchema, W as InteractionResponseCommandSchema, _ as AgentInteractiveSessionControlClaimRequestSchema, b as AgentInteractiveSessionPromptCommandSchema, d as interactiveSessionControlClaimResponseSchema, f as interactiveSessionControlReleaseResponseSchema, g as AgentInteractiveSessionControlClaimAcknowledgementSchema, h as AgentInteractiveSessionAttachSchema, j as agentInteractiveSessionStopAcknowledgementMatchesCommand, l as createInteractiveControlHolderId, m as interactiveSessionStatusResponseSchema, p as interactiveSessionControlValidationResponseSchema, v as AgentInteractiveSessionControlClaimSchema, w as AgentInteractiveSessionStopCommandSchema, x as AgentInteractiveSessionRefSchema, y as AgentInteractiveSessionPromptAcknowledgementSchema } from "./browser-interactive-control-controller-D0WX1BIX.js";
|
|
5
5
|
import { t as canonicalAgentProfileDigest } from "./agent-execution-preparation-B8PJuIsN.js";
|
|
6
6
|
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, y as PartialFailureError } from "./errors-BY7a-Hpw.js";
|
|
7
7
|
import { t as parseSandboxRetryAfterHeader } from "./retry-after-header-BZbs5rig.js";
|
|
8
8
|
import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-BsriwJ8L.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-DcSYHloX.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, t as isInsideReservedDir$1, u as SANDBOX_FILE_API_ABSOLUTE_ROOTS } from "./file-transfer-DOSTbUSR.js";
|
|
12
12
|
import { c as uploadChunked, l as awaitSdkResend, u as takeSdkTurn } from "./chunked-upload-C44d_Ao7.js";
|
|
13
13
|
import { i as resolveTraceId, n as isTraceId, r as mintTraceId, t as TRACE_ID_HEADER } from "./trace-id-BTa6Db_2.js";
|
|
@@ -3026,6 +3026,17 @@ var DirectRuntimeHttpClient = class {
|
|
|
3026
3026
|
if (connection?.hostUrl) return `${connection.hostUrl.replace(/\/$/, "")}/v1/sandboxes/${encodeURIComponent(this.sandboxId)}/runtime`;
|
|
3027
3027
|
return connection?.runtimeUrl || void 0;
|
|
3028
3028
|
}
|
|
3029
|
+
/**
|
|
3030
|
+
* Open the HTTP/2 session to the owning host now, in the background, so
|
|
3031
|
+
* the first runtime call reuses it. A failed connect changes nothing: the
|
|
3032
|
+
* first call connects (or falls back) exactly as it would have.
|
|
3033
|
+
*/
|
|
3034
|
+
preconnect() {
|
|
3035
|
+
const connection = this.getConnection();
|
|
3036
|
+
const origin = connection?.authToken ? connection.hostUrl : void 0;
|
|
3037
|
+
if (!origin || !canUseNodeHttp2()) return;
|
|
3038
|
+
import("./direct-http2-DJYOowWN.js").then(({ preconnectDirectHttp2 }) => preconnectDirectHttp2(origin)).catch(() => {});
|
|
3039
|
+
}
|
|
3029
3040
|
async fetch(path, options, fetchOptions) {
|
|
3030
3041
|
const throughApi = () => this.baseClient.fetch(path, options, fetchOptions);
|
|
3031
3042
|
const runtimePrefix = `/v1/sandboxes/${encodeURIComponent(this.sandboxId)}/runtime`;
|
|
@@ -3106,7 +3117,7 @@ var DirectRuntimeHttpClient = class {
|
|
|
3106
3117
|
};
|
|
3107
3118
|
const observe = this.onDirectRuntimeResponse;
|
|
3108
3119
|
if (!route) throw new NetworkError("Direct runtime route was withdrawn");
|
|
3109
|
-
const { fetchDirectHttp2: transport } = (route.useHost || route.useExec) && canUseNodeHttp2() ? await import("./direct-http2-
|
|
3120
|
+
const { fetchDirectHttp2: transport } = (route.useHost || route.useExec) && canUseNodeHttp2() ? await import("./direct-http2-DJYOowWN.js") : { fetchDirectHttp2: fetchWithKeepAlive };
|
|
3110
3121
|
return fetchSandboxApi({
|
|
3111
3122
|
baseUrl: route.origin,
|
|
3112
3123
|
timeoutMs: this.baseClient.timeoutMs,
|
|
@@ -18802,4 +18813,4 @@ var SandboxInstance = class SandboxInstance extends SandboxEgressCapabilities {
|
|
|
18802
18813
|
}
|
|
18803
18814
|
};
|
|
18804
18815
|
//#endregion
|
|
18805
|
-
export {
|
|
18816
|
+
export { isCapacityShortageCreateError as $, isMaterializerHarness as A, parseLifecycleTimes as B, materializeProfileFileMounts as C, HARNESS_LAUNCH_MATERIALIZE_OPTIONS as D, validateDeferredProfileFileMounts as E, normalizeCaptureProof as F, normalizeSandboxShape as G, normalizeConnection as H, normalizeSandboxCreateReceipt as I, DEPLOY_WINDOW_RETRY_MS as J, CAPACITY_ETA_MARGIN_MS as K, normalizeStartupDiagnostics as L, SandboxOperation as M, SandboxOperationFailedError as N, ProfileUnsupportedError as O, DirectRuntimeHttpClient as P, generateIdempotencyKey as Q, readFilesystemIncarnationTuple as R, ManagedProcessClient as S, splitInlineProfileSkills as T, normalizeEgressPolicyFields as U, state as V, normalizeProxySecretReceipt as W, createRetryDelayMs as X, awaitCreateResend as Y, extendableDeadline as Z, collectAgentFinalMessageText as _, buildTraceExportPayload as a, isToolBearingEvent as b, toOtelJson as c, sandboxLedgerUsd as d, isDeployWindowCreateError as et, InteractiveSessionHandle as f, applySandboxEventText as g, createInteractiveTerminalSession as h, MAX_EGRESS_DENIALS_LIMIT as i, SANDBOX_CREATE_DEADLINE_HEADER as it, materializeProfile as j, enforceWorkspacePlanSupport as k, SandboxTaskSession as l, createInteractiveTerminalCapture as m, createSandboxInstanceFromResponse as n, isRetryableCreateError as nt, exportTraceBundle as o, InteractiveTerminalFrameLog as p, CAPACITY_ETA_WAIT_MAX_MS as q, WorkspaceImages as r, runtimeWorkspaceCwdSchema$1 as rt, otelTraceIdForTangleTrace as s, SandboxInstance as t, isRateLimitCreateError as tt, SandboxSession as u, collectAgentResponseText as v, splitInlineProfileFileMounts as w, deleteSandbox as x, getSandboxEventText as y, dateOf as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as combineAbortSignals } from "../abort-signal-BsriwJ8L.js";
|
|
2
|
-
import { i as fetchSandboxApi } from "../api-request-
|
|
2
|
+
import { i as fetchSandboxApi } from "../api-request-DcSYHloX.js";
|
|
3
3
|
import "../sidecar-proxy-error-DVVfeGIP.js";
|
|
4
4
|
import { t as parseSSEStream } from "../sse-parser-DTgSRcZC.js";
|
|
5
5
|
import { PART_TEXT, PART_TEXT_SUFFIX } from "@tangle-network/agent-core/sse";
|
package/dist/tangle/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _ as SandboxCreateResponseParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as AgentSandboxBlueprintAbi, g as SandboxCreateParamTypes, h as JsonResponseParamTypes, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_DELETE, n as fetchQuote, o as validateQuote, p as JOB_SANDBOX_CREATE, r as inputsHashOf, s as BlueprintSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxIdParamTypes } from "../tangle-
|
|
1
|
+
import { _ as SandboxCreateResponseParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as AgentSandboxBlueprintAbi, g as SandboxCreateParamTypes, h as JsonResponseParamTypes, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_DELETE, n as fetchQuote, o as validateQuote, p as JOB_SANDBOX_CREATE, r as inputsHashOf, s as BlueprintSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxIdParamTypes } from "../tangle-CvHNHE5C.js";
|
|
2
2
|
import { t as ITangleJobsAbi } from "../abi-CQYNCS4F.js";
|
|
3
3
|
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 {
|
|
1
|
+
import { R as readFilesystemIncarnationTuple, n as createSandboxInstanceFromResponse } from "./sandbox-yKOk2tmA.js";
|
|
2
2
|
import { a as readResponseJson } from "./errors-BY7a-Hpw.js";
|
|
3
|
-
import { i as fetchSandboxApi } from "./api-request-
|
|
3
|
+
import { i as fetchSandboxApi } from "./api-request-DcSYHloX.js";
|
|
4
4
|
import { t as ITangleJobsAbi } from "./abi-CQYNCS4F.js";
|
|
5
5
|
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-fYi8g-M-.js";
|
|
6
6
|
//#region ../../../packages/runtime-contracts/dist/tangle-blueprint-abi.js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.481",
|
|
4
4
|
"description": "TypeScript SDK for Tangle Sandbox: create cloud sandboxes and run commands and coding agents in them",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -160,8 +160,8 @@
|
|
|
160
160
|
"@tangle-network/runtime-contracts": "0.20.0"
|
|
161
161
|
},
|
|
162
162
|
"tangleRelease": {
|
|
163
|
-
"sourceSha": "
|
|
164
|
-
"mergedAt": "2026-11-
|
|
163
|
+
"sourceSha": "59af1724ae0250510a4a176a92d49f1e5410a950",
|
|
164
|
+
"mergedAt": "2026-11-19T17:40:00-08:00"
|
|
165
165
|
},
|
|
166
166
|
"scripts": {
|
|
167
167
|
"build": "node scripts/build-dist.mjs && bash scripts/verify-dist.sh",
|