@tangle-network/sandbox 1.0.61 → 1.0.62
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 +2 -2
- package/dist/{client-fAhCkcRh.js → client-CB8fk-35.js} +7 -3
- package/dist/{core-eAdKeKPo.js → core-f9uxff1T.js} +1 -1
- package/dist/core.js +3 -3
- package/dist/index.js +4 -4
- package/dist/{sandbox-C_IZHl45.js → sandbox-CkSdNOmZ.js} +25 -10
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-D05S-A_g.js → tangle-Dd1RSvh3.js} +1 -1
- package/package.json +6 -6
package/dist/agent/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-CQJwjQkZ.js";
|
|
2
2
|
import { D as assertCurrentBackendType } from "../interactive-controller-BRUzaI-G.js";
|
|
3
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
3
|
+
import { t as SandboxInstance } from "../sandbox-CkSdNOmZ.js";
|
|
4
4
|
import { C as StateError, E as ValidationError, g as NotFoundError } from "../errors-BStusQVc.js";
|
|
5
|
-
import { t as Sandbox } from "../client-
|
|
5
|
+
import { t as Sandbox } from "../client-CB8fk-35.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/agent/instances.ts
|
|
8
8
|
const managers = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as normalizeRuntimeBackendConfig, D as assertCurrentBackendType, E as applyRequestedModel, H as backendTypeSchema, N as withProfileHarness, O as foldModelRoutingFields, P as withoutCreateOnlyModelFields, S as encodePromptForWire, T as isBrowserRuntime, o as requestInteractiveSessionToken } from "./interactive-controller-BRUzaI-G.js";
|
|
2
2
|
import { r as agentProfileSchema } from "./profile-schema-DFZTAn1S.js";
|
|
3
|
-
import { A as normalizeSandboxCreateReceipt, B as generateIdempotencyKey, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeSandboxShape, H as
|
|
3
|
+
import { A as normalizeSandboxCreateReceipt, B as generateIdempotencyKey, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeSandboxShape, H as isRateLimitCreateError, M as parseStopPhase, N as normalizeConnection, O as isRetryableProfileFileMaterializeFailure, P as normalizeEgressPolicyFields, R as DEPLOY_WINDOW_RETRY_MS, T as splitInlineProfileFileMounts, U as isRetryableCreateError, V as isDeployWindowCreateError, W as waitForCreateRetry, j as normalizeStartupDiagnostics, k as normalizeCaptureProof, n as createSandboxInstanceFromResponse, s as exportTraceBundle, z as createRetryDelayMs } from "./sandbox-CkSdNOmZ.js";
|
|
4
4
|
import { D as isInsideReservedDir, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, g as NotFoundError, h as NetworkError, i as readResponseJson, n as parseErrorResponse, r as parseResponseError, x as SandboxError } from "./errors-BStusQVc.js";
|
|
5
5
|
import { n as combineAbortSignals } from "./abort-signal-JVaAyNMP.js";
|
|
6
6
|
import { t as fetchSandboxApi } from "./api-request-B7cnX489.js";
|
|
@@ -1912,6 +1912,8 @@ var SandboxCreation = class extends SandboxManagement {
|
|
|
1912
1912
|
let lastServerError;
|
|
1913
1913
|
let allPreviousCreateAttemptsRefused = true;
|
|
1914
1914
|
let proxyTimedOutCreate = false;
|
|
1915
|
+
let pacedByServer = false;
|
|
1916
|
+
const isPacedCreateError = (cause) => isDeployWindowCreateError(cause) || pacedByServer && isRateLimitCreateError(cause);
|
|
1915
1917
|
const createTimeoutError = () => {
|
|
1916
1918
|
const etaSeconds = lastServerError?.etaSeconds;
|
|
1917
1919
|
const elapsedMs = Date.now() - startedAt;
|
|
@@ -1932,7 +1934,7 @@ var SandboxCreation = class extends SandboxManagement {
|
|
|
1932
1934
|
}
|
|
1933
1935
|
};
|
|
1934
1936
|
const waitBeforeRetry = async (cause, failedAttempt) => {
|
|
1935
|
-
if (
|
|
1937
|
+
if (isPacedCreateError(cause)) {
|
|
1936
1938
|
const delayMs = Math.max(createRetryDelayMs(cause, failedAttempt), 250);
|
|
1937
1939
|
if (delayMs >= deployWindowDeadline - Date.now()) throw deployWindowDeadline === deadline ? createTimeoutError() : cause;
|
|
1938
1940
|
await sleepBeforeRetry(delayMs);
|
|
@@ -1950,7 +1952,7 @@ var SandboxCreation = class extends SandboxManagement {
|
|
|
1950
1952
|
const exhaustsRetryBudget = (error) => {
|
|
1951
1953
|
if (!isRetryableCreateError(error)) return true;
|
|
1952
1954
|
if (options?.retry?.capacity === false && error instanceof SandboxError && error.code === "CAPACITY_EXHAUSTED") return true;
|
|
1953
|
-
if (
|
|
1955
|
+
if (isPacedCreateError(error)) return false;
|
|
1954
1956
|
if (proxyTimedOutCreate && error instanceof SandboxError && error.code === "IDEMPOTENT_CREATE_IN_PROGRESS") return false;
|
|
1955
1957
|
shortBudgetFailures += 1;
|
|
1956
1958
|
return shortBudgetFailures >= 5;
|
|
@@ -1965,6 +1967,7 @@ var SandboxCreation = class extends SandboxManagement {
|
|
|
1965
1967
|
}, { timeoutMs });
|
|
1966
1968
|
} catch (error) {
|
|
1967
1969
|
allPreviousCreateAttemptsRefused = false;
|
|
1970
|
+
pacedByServer = false;
|
|
1968
1971
|
if (requestOptions?.signal?.aborted) throw error;
|
|
1969
1972
|
if (error instanceof SandboxError && !(error instanceof TimeoutError)) lastServerError = error;
|
|
1970
1973
|
if (postDeadline.aborted || Date.now() >= deadline || error instanceof TimeoutError || error instanceof Error && (error.name === "AbortError" || error.name === "TimeoutError")) throw createTimeoutError();
|
|
@@ -1980,6 +1983,7 @@ var SandboxCreation = class extends SandboxManagement {
|
|
|
1980
1983
|
if (error.code === "SANDBOX_CREATE_RECONCILING" && lastServerError && lastServerError.code !== "SANDBOX_CREATE_RECONCILING") throw lastServerError;
|
|
1981
1984
|
lastServerError = error;
|
|
1982
1985
|
if (exhaustsRetryBudget(error)) throw error;
|
|
1986
|
+
pacedByServer = isPacedCreateError(error);
|
|
1983
1987
|
await waitBeforeRetry(error, attempt);
|
|
1984
1988
|
response = void 0;
|
|
1985
1989
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as agentProfileSchema } from "./profile-schema-DFZTAn1S.js";
|
|
2
|
-
import {
|
|
2
|
+
import { G as canonicalAgentProfileDigest } from "./sandbox-CkSdNOmZ.js";
|
|
3
3
|
import { E as ValidationError, s as CapabilityError, x as SandboxError } from "./errors-BStusQVc.js";
|
|
4
4
|
import { t as awaitWithAbort } from "./abort-signal-JVaAyNMP.js";
|
|
5
5
|
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-BoK5wpru.js";
|
package/dist/core.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-
|
|
1
|
+
import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-CkSdNOmZ.js";
|
|
2
2
|
import { C as StateError, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, d as FileWriteConflictError, g as NotFoundError, h as NetworkError, s as CapabilityError, v as ProfileFileMountPathError, x as SandboxError, y as QuotaError } from "./errors-BStusQVc.js";
|
|
3
|
-
import { a as InstancesClient, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, p as isBackendRegistryInteractionKind, r as HostedInstance, t as Sandbox, u as backendRegistryEntrySchema } from "./client-
|
|
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-CB8fk-35.js";
|
|
4
4
|
import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-D9XmRZMl.js";
|
|
5
5
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
6
|
-
import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-
|
|
6
|
+
import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-f9uxff1T.js";
|
|
7
7
|
export { AuthError, CapabilityError, FileWriteConflictError, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, InstanceRestartingError, InstancesClient, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, LinesClient, ManagedProcessClient, NetworkError, NotFoundError, PartialFailureError, ProfileFileMountPathError, PublicTemplatePublishError, PublicTemplatesClient, QuotaError, Sandbox, SandboxError, SandboxInstance, SeatSelectionError, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, createSelectSeat, gatewaySeatTransport, isBackendRegistryInteractionKind, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference, sandboxFailureKind };
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { A as normalizeRuntimeBackendConfig, B as TERMINAL_WS_ECHO_SUBPROTOCOL, G as parseBackendType, H as backendTypeSchema, I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, R as deriveAgentRunOutcome, U as isolationPrincipalSchema, V as ALL_BACKEND_TYPES, i as terminalUpgradeHeadersSupported, j as requestedPublicProfileDigest, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, z as projectAgentTerminalRecord } from "./interactive-controller-BRUzaI-G.js";
|
|
2
2
|
import { a as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, k as agentInteractiveSessionPromptRequestDigest, l as createInteractiveControlHolderId, n as browserInteractiveControlHolderId, o as InteractiveSessionControlController, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController, u as interactiveSessionIdentityDigest } from "./browser-interactive-control-controller-BvtNDWql.js";
|
|
3
3
|
import { i as SANDBOX_SIZE_PRESET_NAMES, r as agentProfileSchema, t as agentProfileConfidentialSchema } from "./profile-schema-DFZTAn1S.js";
|
|
4
|
-
import { C as SandboxOperationFailedError, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, S as SandboxOperation, T as splitInlineProfileFileMounts, _ as collectAgentFinalMessageText, a as MAX_EGRESS_DENIALS_LIMIT, b as isToolBearingEvent, c as otelTraceIdForTangleTrace, d as SandboxSession, f as InteractiveSessionHandle, g as applySandboxEventText, h as createInteractiveTerminalSession, i as downloadFile, l as toOtelJson, m as createInteractiveTerminalCapture, o as buildTraceExportPayload, p as InteractiveTerminalFrameLog, r as WorkspaceImages, s as exportTraceBundle, t as SandboxInstance, u as SandboxTaskSession, v as collectAgentResponseText, w as materializeProfileFileMounts, x as ManagedProcessClient, y as getSandboxEventText } from "./sandbox-
|
|
4
|
+
import { C as SandboxOperationFailedError, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, S as SandboxOperation, T as splitInlineProfileFileMounts, _ as collectAgentFinalMessageText, a as MAX_EGRESS_DENIALS_LIMIT, b as isToolBearingEvent, c as otelTraceIdForTangleTrace, d as SandboxSession, f as InteractiveSessionHandle, g as applySandboxEventText, h as createInteractiveTerminalSession, i as downloadFile, l as toOtelJson, m as createInteractiveTerminalCapture, o as buildTraceExportPayload, p as InteractiveTerminalFrameLog, r as WorkspaceImages, s as exportTraceBundle, t as SandboxInstance, u as SandboxTaskSession, v as collectAgentResponseText, w as materializeProfileFileMounts, x as ManagedProcessClient, y as getSandboxEventText } from "./sandbox-CkSdNOmZ.js";
|
|
5
5
|
import { C as StateError, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, b as ResumeEnvRequiredError, c as CompliancePlacementError, d as FileWriteConflictError, f as GpuProviderNotConfiguredError, g as NotFoundError, h as NetworkError, l as EdgeNotReadyError, o as BranchFanoutExceedsHostError, p as KeyBudgetExhaustedError, s as CapabilityError, t as TerminalStreamError, u as EgressProxyRecoveryError, v as ProfileFileMountPathError, w as StreamInterruptedError, x as SandboxError, y as QuotaError } from "./errors-BStusQVc.js";
|
|
6
|
-
import { _ as createBatchResultAccumulator, a as InstancesClient, c as runtimeWorkspaceCwdSchema, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, g as IntelligenceClient, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, n as RunsClient, o as SandboxFleetClient, p as isBackendRegistryInteractionKind, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as backendRegistryEntrySchema, v as validateBatchRunRequest } from "./client-
|
|
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-CB8fk-35.js";
|
|
7
7
|
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-BULMqzR_.js";
|
|
8
8
|
import { t as parseSSEStream } from "./sse-parser-BUIKfYAd.js";
|
|
9
9
|
import { i as profileChannelReference, n as SandboxLines, r as lineInstanceKey, t as LinesClient } from "./lines-D9XmRZMl.js";
|
|
10
10
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
11
|
-
import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-
|
|
12
|
-
import { s as TangleSandboxClient } from "./tangle-
|
|
11
|
+
import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-f9uxff1T.js";
|
|
12
|
+
import { s as TangleSandboxClient } from "./tangle-Dd1RSvh3.js";
|
|
13
13
|
import { z } from "zod";
|
|
14
14
|
//#region ../../../packages/runtime-contracts/dist/model-key-proxy.js
|
|
15
15
|
/**
|
|
@@ -267,15 +267,16 @@ const RETRYABLE_CREATE_STATUS_CODES = new Set([
|
|
|
267
267
|
]);
|
|
268
268
|
/**
|
|
269
269
|
* 503 classes that mean "the cell cannot place a create right now, ask
|
|
270
|
-
* again", not "this create failed".
|
|
271
|
-
*
|
|
272
|
-
*
|
|
273
|
-
*
|
|
274
|
-
*
|
|
275
|
-
*
|
|
276
|
-
*
|
|
277
|
-
*
|
|
278
|
-
*
|
|
270
|
+
* again", not "this create failed". A full fleet answers `CAPACITY_EXHAUSTED`
|
|
271
|
+
* at once with `Retry-After` (nothing queues in the controller; the refusal
|
|
272
|
+
* wakes the autoscaler and this re-POST meets the host it bought), and so
|
|
273
|
+
* does a host-agent roll that drains placement on the only host.
|
|
274
|
+
* `HOST_PRESSURE` and `PROVISIONING_PAUSED` are the sibling placement
|
|
275
|
+
* refusals the orchestrator maps to 503, and a keyed create cannot verify its
|
|
276
|
+
* ref while the agent is down (`IDEMPOTENT_CREATE_PROBE_FAILED`). Re-POSTing
|
|
277
|
+
* is safe: the placement refusals started no provision, the probe answer is
|
|
278
|
+
* the Worker declining to act until it can prove what exists, and the
|
|
279
|
+
* idempotency key joins whichever provision did start.
|
|
279
280
|
*
|
|
280
281
|
* `SANDBOX_CREATE_RECONCILING` is deliberately not in the family. The Worker
|
|
281
282
|
* answers it (Retry-After 2) when a same-key create meets a journaled D1
|
|
@@ -325,6 +326,20 @@ const DEPLOY_WINDOW_RETRY_MS = 15e4;
|
|
|
325
326
|
function isDeployWindowCreateError(cause) {
|
|
326
327
|
return cause instanceof SandboxError && cause.status === 503 && DEPLOY_WINDOW_RETRY_CODES.has(cause.code);
|
|
327
328
|
}
|
|
329
|
+
/**
|
|
330
|
+
* The plan rate limiter's 429 (`RATE_LIMIT_EXCEEDED`, or the platform's own
|
|
331
|
+
* limiter): `quotaType` is the limiter's default `rate_limit`, never one of
|
|
332
|
+
* the create quotas, which name their reason. Every paced re-POST above is a
|
|
333
|
+
* Worker management request that limiter counts (the free plan allows 60 a
|
|
334
|
+
* minute, and one create retrying every 2 s is 30 of them), so in a full
|
|
335
|
+
* fleet two concurrent creates meet it. Answered right after a capacity
|
|
336
|
+
* refusal on the same key, it is part of that pacing, not a new failure: it
|
|
337
|
+
* is retried on its own `Retry-After` on the time budget, and spends none of
|
|
338
|
+
* the attempt budget.
|
|
339
|
+
*/
|
|
340
|
+
function isRateLimitCreateError(cause) {
|
|
341
|
+
return cause instanceof QuotaError && cause.status === 429 && cause.quotaType === "rate_limit";
|
|
342
|
+
}
|
|
328
343
|
function isRetryableCreateError(cause) {
|
|
329
344
|
if (cause instanceof NetworkError) return true;
|
|
330
345
|
if (cause instanceof GpuProviderNotConfiguredError) return false;
|
|
@@ -10851,4 +10866,4 @@ var SandboxInstance = class SandboxInstance extends SandboxEgressCapabilities {
|
|
|
10851
10866
|
}
|
|
10852
10867
|
};
|
|
10853
10868
|
//#endregion
|
|
10854
|
-
export { normalizeSandboxCreateReceipt as A, generateIdempotencyKey as B, SandboxOperationFailedError as C, validateDeferredProfileFileMounts as D, splitInlineProfileSkills as E, normalizeSandboxShape as F,
|
|
10869
|
+
export { normalizeSandboxCreateReceipt as A, generateIdempotencyKey as B, SandboxOperationFailedError as C, validateDeferredProfileFileMounts as D, splitInlineProfileSkills as E, normalizeSandboxShape as F, canonicalAgentProfileDigest as G, isRateLimitCreateError as H, DEFAULT_CREATE_TIMEOUT_MS as I, DEFAULT_GPU_CREATE_TIMEOUT_MS as L, parseStopPhase as M, normalizeConnection as N, isRetryableProfileFileMaterializeFailure as O, normalizeEgressPolicyFields as P, DEPLOY_WINDOW_RETRY_MS as R, SandboxOperation as S, splitInlineProfileFileMounts as T, isRetryableCreateError as U, isDeployWindowCreateError as V, waitForCreateRetry as W, collectAgentFinalMessageText as _, MAX_EGRESS_DENIALS_LIMIT as a, isToolBearingEvent as b, otelTraceIdForTangleTrace as c, SandboxSession as d, InteractiveSessionHandle as f, applySandboxEventText as g, createInteractiveTerminalSession as h, downloadFile as i, normalizeStartupDiagnostics as j, normalizeCaptureProof as k, toOtelJson as l, createInteractiveTerminalCapture as m, createSandboxInstanceFromResponse as n, buildTraceExportPayload as o, InteractiveTerminalFrameLog as p, WorkspaceImages as r, exportTraceBundle as s, SandboxInstance as t, SandboxTaskSession as u, collectAgentResponseText as v, materializeProfileFileMounts as w, ManagedProcessClient as x, getSandboxEventText as y, createRetryDelayMs as z };
|
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 TangleSandboxClient, 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 TangleSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-Dd1RSvh3.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, OperatorSession, OperatorSessionError, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
1
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-CkSdNOmZ.js";
|
|
2
2
|
import { i as readResponseJson } from "./errors-BStusQVc.js";
|
|
3
3
|
import { _ as rotlBH, a as anumber, b as rotlSL, d as createXOFer, g as u32, h as toBytes$1, l as createHasher, m as swap32IfBE, n as abytes, o as aoutput, r as aexists, s as clean, t as Hash, v as rotlBL, x as split, y as rotlSH } from "./utils-BXgE8UHJ.js";
|
|
4
4
|
//#region ../../../packages/runtime-contracts/dist/tangle-blueprint-abi.js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.62",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -153,15 +153,15 @@
|
|
|
153
153
|
"vitest": "^4.1.12",
|
|
154
154
|
"ws": "^8.22.0",
|
|
155
155
|
"yjs": "13.6.33",
|
|
156
|
-
"@products/sandbox-test-utils": "0.0.0",
|
|
157
|
-
"@tangle-network/agent-profile-materialize": "0.27.1",
|
|
158
156
|
"@repo/shared": "0.0.0",
|
|
157
|
+
"@tangle-network/agent-profile-materialize": "0.27.1",
|
|
158
|
+
"@products/sandbox-test-utils": "0.0.0",
|
|
159
159
|
"@tangle-network/cli-agent-registry": "0.14.0",
|
|
160
|
-
"@tangle-network/runtime-contracts": "0.
|
|
160
|
+
"@tangle-network/runtime-contracts": "0.20.0"
|
|
161
161
|
},
|
|
162
162
|
"tangleRelease": {
|
|
163
|
-
"sourceSha": "
|
|
164
|
-
"mergedAt": "2026-10-28T20:
|
|
163
|
+
"sourceSha": "2d7fa55d84e3ee1f3af97191187fedef743472db",
|
|
164
|
+
"mergedAt": "2026-10-28T20:21:32-06:00"
|
|
165
165
|
},
|
|
166
166
|
"scripts": {
|
|
167
167
|
"build": "node scripts/build-dist.mjs",
|