@tangle-network/sandbox 0.68.0 → 0.68.2
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/README.md +2 -2
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +4 -4
- package/dist/agent/preview.d.ts +1 -1
- package/dist/agent/preview.js +2 -2
- package/dist/{agent-run-outcome-BgjrBItu.d.ts → agent-run-outcome-BZUuKIbL.d.ts} +1 -1
- package/dist/api-request-D8Mni27A.js +89 -0
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.js +1 -1
- package/dist/{browser-interactive-control-controller-D8SrLrsD.d.ts → browser-interactive-control-controller-CH7CLpmc.d.ts} +1 -1
- package/dist/{chunked-upload-file-BiblJyeE.js → chunked-upload-file-CbbWlCFt.js} +1 -1
- package/dist/{client-KtiB43NY.d.ts → client-BPcdRhgx.d.ts} +5 -5
- package/dist/{client-C2pwbpBn.js → client-CtpCYHJC.js} +20 -86
- package/dist/collaboration/index.d.ts +1 -1
- package/dist/{core-DUpukePg.js → core-BKs0Yy2i.js} +1 -1
- package/dist/core.d.ts +6 -6
- package/dist/core.js +4 -4
- package/dist/{direct-http2-Hcum3yHf.js → direct-http2-BhGER8b8.js} +1 -1
- package/dist/{index-BW-T6kvo.d.ts → index-Bk4Hsycj.d.ts} +6 -6
- package/dist/index.d.ts +11 -11
- package/dist/index.js +6 -6
- package/dist/intelligence/index.js +13 -31
- package/dist/interactive-control.d.ts +1 -1
- package/dist/{interactive-controller-WtWzmN_T.d.ts → interactive-controller-Db_8jnl7.d.ts} +3 -3
- package/dist/{interactive-controller-CqdnD7nC.js → interactive-controller-ThIeP_oZ.js} +1 -1
- package/dist/lib/prepared-evidence.js +1 -1
- package/dist/lib/prepared-process.js +1 -1
- package/dist/{lines-S_uqC5e8.d.ts → lines-D5XpPinb.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/lines.js +1 -1
- package/dist/{local-cli-auth--crCWGcG.js → local-cli-auth-fCKtTFG9.js} +1 -1
- package/dist/{mcp-local-CjcoVT7f.js → mcp-local-ClJ5TD-m.js} +1 -1
- package/dist/openai/index.js +23 -8
- package/dist/{preview-D7SgZwYA.d.ts → preview-CGZfio1_.d.ts} +3 -3
- package/dist/{public-templates-TnAldaBU.d.ts → public-templates-B5uA7KJv.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/{raw-evidence-archive-Dh6E0L0h.js → raw-evidence-archive-iDPF8eF_.js} +1 -1
- package/dist/response-rewrap-Bsj87BIq.js +28 -0
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +14 -22
- package/dist/{sandbox-Be3DcloI.js → sandbox-DLbiLJjB.js} +12 -38
- package/dist/{secp256k1-_-uZfzOX.js → secp256k1-CoRKQn1k.js} +1 -1
- package/dist/select-seat-command.d.ts +1 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-uptUv4ZY.js → tangle-DL5MgMwB.js} +47 -36
- package/dist/{types-CnK30PRn.d.ts → types-BVsCs_Mz.d.ts} +2 -2
- package/package.json +11 -11
- /package/dist/{chunked-upload-cuXIVwac.js → chunked-upload-CbtLVV6-.js} +0 -0
- /package/dist/{cli-auth-bundle-DKp1d5dJ.d.ts → cli-auth-bundle-Can3oLKY.d.ts} +0 -0
- /package/dist/{cli-auth-bundle-Ymv99-5G.js → cli-auth-bundle-yr4ZESxY.js} +0 -0
- /package/dist/{index-BMbJOPfn.d.ts → index-B8xo7y26.d.ts} +0 -0
- /package/dist/{index-DcEJnM4x.d.ts → index-mz8_2rr2.d.ts} +0 -0
- /package/dist/{keep-alive-fetch-_KZcsAS_.js → keep-alive-fetch-C92u8Kce.js} +0 -0
- /package/dist/{lines-BO1jPFsj.js → lines-DgRXUg5y.js} +0 -0
- /package/dist/{prepared-evidence-Bqxb-qWc.js → prepared-evidence-Di89Tatw.js} +0 -0
- /package/dist/{prepared-process-DNX-AVJ3.js → prepared-process-DuWP6Kb7.js} +0 -0
- /package/dist/{preview-operations-D5hsnCHF.js → preview-operations-BL7YCkes.js} +0 -0
- /package/dist/{terminal-stream-types-D7gI9X3V.d.ts → terminal-stream-types-yAt76vk7.d.ts} +0 -0
- /package/dist/{utils-Bl-H3KsQ.js → utils-C86i6t3C.js} +0 -0
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { a as normalizeEffectiveBackend, r as backendTypeSchema } from "./backend-types-CLvdSX8V.js";
|
|
2
|
-
import { A as normalizeRuntimeBackendConfig, C as encodePromptForWire, D as assertCurrentBackendType, E as applyRequestedModel, F as withoutRuntimeSecrets, I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, M as requestedSecretProfilePublicDigest, S as validateAcceptedDispatchRunRef, T as canUseNodeHttp2, _ as mintTraceId, a as assertScopedTokenActive, b as parseSSEStream, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as sessionHeaders, g as isTraceId, h as TRACE_ID_HEADER, i as terminalUpgradeHeadersSupported, j as requestedPublicProfileDigest, k as mergeRuntimeBackendConfig, l as normalizeSessionInfo, m as waitForRetryAfter, n as InteractiveSessionController, p as isRetryableCredentialRefusal, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as resolveTraceId, w as encodeTextForWire, x as resolveDispatchRunIdentity, y as traceHeaders } from "./interactive-controller-
|
|
2
|
+
import { A as normalizeRuntimeBackendConfig, C as encodePromptForWire, D as assertCurrentBackendType, E as applyRequestedModel, F as withoutRuntimeSecrets, I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, M as requestedSecretProfilePublicDigest, S as validateAcceptedDispatchRunRef, T as canUseNodeHttp2, _ as mintTraceId, a as assertScopedTokenActive, b as parseSSEStream, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as sessionHeaders, g as isTraceId, h as TRACE_ID_HEADER, i as terminalUpgradeHeadersSupported, j as requestedPublicProfileDigest, k as mergeRuntimeBackendConfig, l as normalizeSessionInfo, m as waitForRetryAfter, n as InteractiveSessionController, p as isRetryableCredentialRefusal, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as resolveTraceId, w as encodeTextForWire, x as resolveDispatchRunIdentity, y as traceHeaders } from "./interactive-controller-ThIeP_oZ.js";
|
|
3
3
|
import { A as SANDBOX_PROXY_REQUEST_MAX_BYTES, C as StateError, E as ValidationError, F as isProfileFileMountOutsideRoots, I as profileFileMountOutsideRootsMessage, M as PROFILE_FILE_MOUNT_OUTSIDE_ROOTS_CODE, N as SANDBOX_AGENT_HOME, P as SANDBOX_FILE_API_ABSOLUTE_ROOTS, S as ServerError, T as TimeoutError, a as AuthError, g as NotFoundError, h as NetworkError, i as readResponseJson, l as EdgeNotReadyError, n as parseErrorResponse, r as parseResponseError, s as CapabilityError, t as TerminalStreamError, v as ProfileFileMountPathError, w as StreamInterruptedError, x as SandboxError, y as QuotaError } from "./errors-Bs5G7JdV.js";
|
|
4
4
|
import { _ as interactiveSessionStatusResponseSchema, d as awaitWithAbort, f as combineAbortSignals, g as interactiveSessionControlValidationResponseSchema, h as interactiveSessionControlReleaseResponseSchema, l as createInteractiveControlHolderId, m as interactiveSessionControlClaimResponseSchema, p as delayUntilAborted } from "./browser-interactive-control-controller-k1KkqDGF.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
5
|
+
import { t as rewrapResponse } from "./response-rewrap-Bsj87BIq.js";
|
|
6
|
+
import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-C92u8Kce.js";
|
|
7
|
+
import { s as uploadChunked } from "./chunked-upload-CbtLVV6-.js";
|
|
8
|
+
import { t as runPreparedProcess } from "./prepared-process-DuWP6Kb7.js";
|
|
9
|
+
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-yr4ZESxY.js";
|
|
10
|
+
import { n as SandboxLines } from "./lines-DgRXUg5y.js";
|
|
10
11
|
import { z } from "zod";
|
|
11
12
|
import { AgentExactRunControlRefSchema, AgentInteractiveSessionAttachSchema, AgentInteractiveSessionControlClaimAcknowledgementSchema, AgentInteractiveSessionControlClaimRequestSchema, AgentInteractiveSessionControlClaimSchema, AgentInteractiveSessionPromptAcknowledgementSchema, AgentInteractiveSessionPromptCommandSchema, AgentInteractiveSessionRefSchema, AgentInteractiveSessionStartSchema, AgentInteractiveSessionStopAcknowledgementSchema, AgentInteractiveSessionStopCommandSchema, AgentRunCancellationAcknowledgementSchema, AgentRunCancellationRequestSchema, InteractionAcknowledgementSchema, InteractionBindingSchema, InteractionRequestSchema, InteractionResponseCommandSchema, InteractionResponseSchema, PlanContinuationSchema, TerminalInputSchema, TerminalOutputEventSchema, TerminalReplayWindowSchema, TerminalResizeSchema, TerminalSessionRefSchema, agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, agentInteractiveSessionControlClaimIsNewer, agentInteractiveSessionControlClaimMatchesRef, agentInteractiveSessionPromptAcknowledgementMatchesCommand, agentInteractiveSessionPromptRequestDigest, agentInteractiveSessionRefMatchesStart, agentInteractiveSessionStatusMatchesRef, agentInteractiveSessionStopAcknowledgementMatchesCommand, agentProfileSchema, agentRunCancellationAcknowledgementMatchesRequest, canonicalCandidateDigest, canonicalCandidateJson, exactAgentInteractiveSessionStart, sha256DigestSchema, terminalSessionUsable } from "@tangle-network/agent-interface";
|
|
12
13
|
import { AgentInteractiveSessionControlClaimSchema as AgentInteractiveSessionControlClaimSchema$1, AgentInteractiveSessionPromptAcknowledgementSchema as AgentInteractiveSessionPromptAcknowledgementSchema$1, AgentInteractiveSessionRefSchema as AgentInteractiveSessionRefSchema$1, AgentInteractiveSessionStatusSchema, AgentInteractiveSessionStopAcknowledgementSchema as AgentInteractiveSessionStopAcknowledgementSchema$1 } from "@tangle-network/agent-interface/environment-interactive-control";
|
|
@@ -16,33 +17,6 @@ import { dirname } from "node:path";
|
|
|
16
17
|
import "node:fs/promises";
|
|
17
18
|
import { readTokenCostUsd, readTokenUsage } from "@tangle-network/agent-core";
|
|
18
19
|
import "@tangle-network/agent-interface/environment-provider";
|
|
19
|
-
//#region src/lib/response-rewrap.ts
|
|
20
|
-
/**
|
|
21
|
-
* Response wrappers that must outlive the fetch Response they wrap.
|
|
22
|
-
*
|
|
23
|
-
* Node's fetch (undici) cancels a response body when the Response object that
|
|
24
|
-
* fetch returned is garbage collected while its body is still unread. A
|
|
25
|
-
* wrapper built with `new Response(original.body, …)` shares that body stream
|
|
26
|
-
* but not that lifetime: once the original is collected, the wrapper's body is
|
|
27
|
-
* already cancelled and every read throws `TypeError: Body is unusable: Body
|
|
28
|
-
* has already been read`. It depends on when the collector runs, so it shows
|
|
29
|
-
* up as a rare failure on any call whose body is read after a longer await.
|
|
30
|
-
*
|
|
31
|
-
* The map holds each original for as long as its wrapper is reachable, so the
|
|
32
|
-
* body stays readable. When both are unreachable, undici's own cleanup runs.
|
|
33
|
-
*/
|
|
34
|
-
const originals = /* @__PURE__ */ new WeakMap();
|
|
35
|
-
/** A Response retaining `original`'s lifetime, with optional body decoration. */
|
|
36
|
-
function rewrapResponse(original, headers, body = original.body) {
|
|
37
|
-
const wrapper = new Response(body, {
|
|
38
|
-
status: original.status,
|
|
39
|
-
statusText: original.statusText,
|
|
40
|
-
headers
|
|
41
|
-
});
|
|
42
|
-
originals.set(wrapper, original);
|
|
43
|
-
return wrapper;
|
|
44
|
-
}
|
|
45
|
-
//#endregion
|
|
46
20
|
//#region src/normalize.ts
|
|
47
21
|
/**
|
|
48
22
|
* Normalize a raw `connection` payload from the Sandbox API into the SDK's
|
|
@@ -1481,7 +1455,7 @@ var DirectRuntimeHttpClient = class {
|
|
|
1481
1455
|
};
|
|
1482
1456
|
if (!route) throw new NetworkError("Direct runtime route was withdrawn");
|
|
1483
1457
|
if ((route.useHost || route.useExec) && canUseNodeHttp2()) {
|
|
1484
|
-
const { fetchDirectHttp2 } = await import("./direct-http2-
|
|
1458
|
+
const { fetchDirectHttp2 } = await import("./direct-http2-BhGER8b8.js");
|
|
1485
1459
|
return fetchDirectHttp2(route.url, request, timing);
|
|
1486
1460
|
}
|
|
1487
1461
|
return fetchWithKeepAlive(route.url, request, timing);
|
|
@@ -7411,7 +7385,7 @@ var SandboxInteractiveCapabilities = class extends SandboxPromptCapabilities {
|
|
|
7411
7385
|
var SandboxSessionEvidenceCapabilities = class extends SandboxInteractiveCapabilities {
|
|
7412
7386
|
/** @internal — invoked before the sandbox is deleted. */
|
|
7413
7387
|
async _sessionExportRawEvidence(id, destination, options) {
|
|
7414
|
-
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-
|
|
7388
|
+
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-iDPF8eF_.js");
|
|
7415
7389
|
await this.ensureRunning();
|
|
7416
7390
|
await this.refresh();
|
|
7417
7391
|
return exportRawEvidenceDirectory((signal, archiveId, cancel) => this.runtimeFetch(`/agents/sessions/${encodeURIComponent(id)}/raw-evidence/archive?${new URLSearchParams([
|
|
@@ -7442,7 +7416,7 @@ var SandboxSessionEvidenceCapabilities = class extends SandboxInteractiveCapabil
|
|
|
7442
7416
|
* and the byte and file bounds are verified before the directory appears.
|
|
7443
7417
|
*/
|
|
7444
7418
|
async exportRawEvidence(destination, options) {
|
|
7445
|
-
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-
|
|
7419
|
+
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-iDPF8eF_.js");
|
|
7446
7420
|
await this.ensureRunning();
|
|
7447
7421
|
await this.refresh();
|
|
7448
7422
|
return exportRawEvidenceDirectory((signal, archiveId, cancel) => this.runtimeFetch(`/agents/raw-evidence/archive?${new URLSearchParams({
|
|
@@ -9752,7 +9726,7 @@ var SandboxFilesystemOperations = class {
|
|
|
9752
9726
|
totalBytes: size,
|
|
9753
9727
|
percentage: 0
|
|
9754
9728
|
});
|
|
9755
|
-
const { uploadChunkedFromFile } = await import("./chunked-upload-file-
|
|
9729
|
+
const { uploadChunkedFromFile } = await import("./chunked-upload-file-CbbWlCFt.js");
|
|
9756
9730
|
await uploadChunkedFromFile({ fetch: (path, init) => this.host.runtimeFetch(path, init) }, remotePath, localPath, {
|
|
9757
9731
|
mode: options?.permissions,
|
|
9758
9732
|
onProgress: options?.onProgress ? (progress) => {
|
|
@@ -10589,4 +10563,4 @@ var SandboxInstance = class SandboxInstance extends SandboxEgressCapabilities {
|
|
|
10589
10563
|
}
|
|
10590
10564
|
};
|
|
10591
10565
|
//#endregion
|
|
10592
|
-
export { normalizeSandboxCreateReceipt as A, SandboxOperationFailedError as C, validateDeferredProfileFileMounts as D, splitInlineProfileSkills as E, normalizeSandboxShape as F,
|
|
10566
|
+
export { normalizeSandboxCreateReceipt as A, SandboxOperationFailedError as C, validateDeferredProfileFileMounts as D, splitInlineProfileSkills as E, normalizeSandboxShape as F, parseStopPhase as M, normalizeConnection as N, isRetryableProfileFileMaterializeFailure as O, normalizeEgressPolicyFields as P, SandboxOperation as S, splitInlineProfileFileMounts as T, collectAgentFinalMessageText as _, buildTraceExportPayload as a, isToolBearingEvent as b, toOtelJson as c, InteractiveSessionHandle as d, agentInteractiveSessionPromptRequestDigest as f, applySandboxEventText as g, createInteractiveTerminalSession as h, MAX_EGRESS_DENIALS_LIMIT as i, normalizeStartupDiagnostics as j, normalizeCaptureProof as k, SandboxTaskSession as l, createInteractiveTerminalCapture as m, createSandboxInstanceFromResponse as n, exportTraceBundle as o, InteractiveTerminalFrameLog as p, WorkspaceImages as r, otelTraceIdForTangleTrace as s, SandboxInstance as t, SandboxSession as u, collectAgentResponseText as v, materializeProfileFileMounts as w, ManagedProcessClient as x, getSandboxEventText as y };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as anumber, c as concatBytes$1, f as randomBytes, h as toBytes, i as ahash, l as createHasher$1, n as abytes$1, o as aoutput, p as rotr, r as aexists, s as clean, t as Hash, u as createView, x as split } from "./utils-
|
|
1
|
+
import { a as anumber, c as concatBytes$1, f as randomBytes, h as toBytes, i as ahash, l as createHasher$1, n as abytes$1, o as aoutput, p as rotr, r as aexists, s as clean, t as Hash, u as createView, x as split } from "./utils-C86i6t3C.js";
|
|
2
2
|
//#region ../../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_md.js
|
|
3
3
|
/**
|
|
4
4
|
* Internal Merkle-Damgard hash utils.
|
package/dist/tangle/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as JOB_SANDBOX_DELETE, T as SandboxCreateResponseParamTypes, _ as TANGLE_JOBS_CONTRACT, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as TANGLE_CHAIN_ID, h as TangleSandboxClient, i as SignedQuote, l as validateQuote, m as SignMessage, n as QuoteDomain, o as inputsHashOf, p as OperatorSessionToken, r as QuoteError, s as jobQuoteDigest, t as JobQuoteDetails, u as OperatorChallenge, v as TangleSandboxClientConfig, w as SandboxCreateParamTypes, x as JOB_SANDBOX_CREATE, y as ITangleJobsAbi } from "../index-
|
|
1
|
+
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as JOB_SANDBOX_DELETE, T as SandboxCreateResponseParamTypes, _ as TANGLE_JOBS_CONTRACT, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as TANGLE_CHAIN_ID, h as TangleSandboxClient, i as SignedQuote, l as validateQuote, m as SignMessage, n as QuoteDomain, o as inputsHashOf, p as OperatorSessionToken, r as QuoteError, s as jobQuoteDigest, t as JobQuoteDetails, u as OperatorChallenge, v as TangleSandboxClientConfig, w as SandboxCreateParamTypes, x as JOB_SANDBOX_CREATE, y as ITangleJobsAbi } from "../index-Bk4Hsycj.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JobQuoteDetails, JsonResponseParamTypes, OperatorChallenge, OperatorSession, OperatorSessionError, OperatorSessionToken, QuoteDomain, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, SignMessage, SignedQuote, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, TangleSandboxClientConfig, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
|
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-DL5MgMwB.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,6 +1,6 @@
|
|
|
1
1
|
import { i as readResponseJson } from "./errors-Bs5G7JdV.js";
|
|
2
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
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-
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-DLbiLJjB.js";
|
|
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-C86i6t3C.js";
|
|
4
4
|
//#region ../../../packages/runtime-contracts/dist/tangle-blueprint-abi.js
|
|
5
5
|
/**
|
|
6
6
|
* Tangle blueprint wire contract shared by the orchestrator's Tangle driver and
|
|
@@ -1147,10 +1147,10 @@ var TangleSandboxClient = class {
|
|
|
1147
1147
|
}
|
|
1148
1148
|
};
|
|
1149
1149
|
//#endregion
|
|
1150
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
1151
|
-
const version = "2.
|
|
1150
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/errors/version.js
|
|
1151
|
+
const version = "2.57.10";
|
|
1152
1152
|
//#endregion
|
|
1153
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
1153
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/errors/base.js
|
|
1154
1154
|
let errorConfig = {
|
|
1155
1155
|
getDocsUrl: ({ docsBaseUrl, docsPath = "", docsSlug }) => docsPath ? `${docsBaseUrl ?? "https://viem.sh"}${docsPath}${docsSlug ? `#${docsSlug}` : ""}` : void 0,
|
|
1156
1156
|
version: `viem@${version}`
|
|
@@ -1232,7 +1232,7 @@ function walk(err, fn) {
|
|
|
1232
1232
|
return fn ? null : err;
|
|
1233
1233
|
}
|
|
1234
1234
|
//#endregion
|
|
1235
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
1235
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/errors/address.js
|
|
1236
1236
|
var InvalidAddressError = class extends BaseError {
|
|
1237
1237
|
constructor({ address }) {
|
|
1238
1238
|
super(`Address "${address}" is invalid.`, {
|
|
@@ -1242,14 +1242,14 @@ var InvalidAddressError = class extends BaseError {
|
|
|
1242
1242
|
}
|
|
1243
1243
|
};
|
|
1244
1244
|
//#endregion
|
|
1245
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
1245
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/data/isHex.js
|
|
1246
1246
|
function isHex(value, { strict = true } = {}) {
|
|
1247
1247
|
if (!value) return false;
|
|
1248
1248
|
if (typeof value !== "string") return false;
|
|
1249
1249
|
return strict ? /^0x[0-9a-fA-F]*$/.test(value) : value.startsWith("0x");
|
|
1250
1250
|
}
|
|
1251
1251
|
//#endregion
|
|
1252
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
1252
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/errors/data.js
|
|
1253
1253
|
var SliceOffsetOutOfBoundsError = class extends BaseError {
|
|
1254
1254
|
constructor({ offset, position, size }) {
|
|
1255
1255
|
super(`Slice ${position === "start" ? "starting" : "ending"} at offset "${offset}" is out-of-bounds (size: ${size}).`, { name: "SliceOffsetOutOfBoundsError" });
|
|
@@ -1261,7 +1261,7 @@ var SizeExceedsPaddingSizeError = class extends BaseError {
|
|
|
1261
1261
|
}
|
|
1262
1262
|
};
|
|
1263
1263
|
//#endregion
|
|
1264
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
1264
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/data/pad.js
|
|
1265
1265
|
function pad(hexOrBytes, { dir, size = 32 } = {}) {
|
|
1266
1266
|
if (typeof hexOrBytes === "string") return padHex(hexOrBytes, {
|
|
1267
1267
|
dir,
|
|
@@ -1297,7 +1297,7 @@ function padBytes(bytes, { dir, size = 32 } = {}) {
|
|
|
1297
1297
|
return paddedBytes;
|
|
1298
1298
|
}
|
|
1299
1299
|
//#endregion
|
|
1300
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
1300
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/errors/encoding.js
|
|
1301
1301
|
var IntegerOutOfRangeError = class extends BaseError {
|
|
1302
1302
|
constructor({ max, min, signed, size, value }) {
|
|
1303
1303
|
super(`Number "${value}" is not in safe ${size ? `${size * 8}-bit ${signed ? "signed" : "unsigned"} ` : ""}integer range ${max ? `(${min} to ${max})` : `(above ${min})`}`, { name: "IntegerOutOfRangeError" });
|
|
@@ -1309,7 +1309,7 @@ var SizeOverflowError = class extends BaseError {
|
|
|
1309
1309
|
}
|
|
1310
1310
|
};
|
|
1311
1311
|
//#endregion
|
|
1312
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
1312
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/data/size.js
|
|
1313
1313
|
/**
|
|
1314
1314
|
* @description Retrieves the size of the value (in bytes).
|
|
1315
1315
|
*
|
|
@@ -1321,7 +1321,7 @@ function size(value) {
|
|
|
1321
1321
|
return value.length;
|
|
1322
1322
|
}
|
|
1323
1323
|
//#endregion
|
|
1324
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
1324
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/encoding/fromHex.js
|
|
1325
1325
|
function assertSize(hexOrBytes, { size: size$1 }) {
|
|
1326
1326
|
if (size(hexOrBytes) > size$1) throw new SizeOverflowError({
|
|
1327
1327
|
givenSize: size(hexOrBytes),
|
|
@@ -1352,7 +1352,7 @@ function hexToBigInt(hex, opts = {}) {
|
|
|
1352
1352
|
if (opts.size) assertSize(hex, { size: opts.size });
|
|
1353
1353
|
const value = BigInt(hex);
|
|
1354
1354
|
if (!signed) return value;
|
|
1355
|
-
const size = (hex.length - 2) / 2;
|
|
1355
|
+
const size = Math.ceil((hex.length - 2) / 2);
|
|
1356
1356
|
if (value <= (1n << BigInt(size) * 8n - 1n) - 1n) return value;
|
|
1357
1357
|
return value - BigInt(`0x${"f".padStart(size * 2, "f")}`) - 1n;
|
|
1358
1358
|
}
|
|
@@ -1388,7 +1388,7 @@ function hexToNumber(hex, opts = {}) {
|
|
|
1388
1388
|
return number;
|
|
1389
1389
|
}
|
|
1390
1390
|
//#endregion
|
|
1391
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
1391
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/encoding/toHex.js
|
|
1392
1392
|
const hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_v, i) => i.toString(16).padStart(2, "0"));
|
|
1393
1393
|
/**
|
|
1394
1394
|
* Encodes a string, number, bigint, or ByteArray into a hex string
|
|
@@ -1550,7 +1550,7 @@ function stringToHex(value_, opts = {}) {
|
|
|
1550
1550
|
return bytesToHex(encoder$1.encode(value_), opts);
|
|
1551
1551
|
}
|
|
1552
1552
|
//#endregion
|
|
1553
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
1553
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/encoding/toBytes.js
|
|
1554
1554
|
const encoder = /* @__PURE__ */ new TextEncoder();
|
|
1555
1555
|
/**
|
|
1556
1556
|
* Encodes a UTF-8 string, hex value, bigint, number or boolean to a byte array.
|
|
@@ -1909,7 +1909,7 @@ const genShake = (suffix, blockLen, outputLen) => createXOFer((opts = {}) => new
|
|
|
1909
1909
|
genShake(31, 168, 128 / 8);
|
|
1910
1910
|
genShake(31, 136, 256 / 8);
|
|
1911
1911
|
//#endregion
|
|
1912
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
1912
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/hash/keccak256.js
|
|
1913
1913
|
function keccak256(value, to_) {
|
|
1914
1914
|
const to = to_ || "hex";
|
|
1915
1915
|
const bytes = keccak_256(isHex(value, { strict: false }) ? toBytes(value) : value);
|
|
@@ -1917,7 +1917,7 @@ function keccak256(value, to_) {
|
|
|
1917
1917
|
return toHex(bytes);
|
|
1918
1918
|
}
|
|
1919
1919
|
//#endregion
|
|
1920
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
1920
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/lru.js
|
|
1921
1921
|
/**
|
|
1922
1922
|
* Map with a LRU (Least recently used) policy.
|
|
1923
1923
|
*
|
|
@@ -1953,7 +1953,7 @@ var LruMap = class extends Map {
|
|
|
1953
1953
|
}
|
|
1954
1954
|
};
|
|
1955
1955
|
//#endregion
|
|
1956
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
1956
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/address/isAddress.js
|
|
1957
1957
|
const addressRegex = /^0x[a-fA-F0-9]{40}$/;
|
|
1958
1958
|
/** @internal */
|
|
1959
1959
|
const isAddressCache = /* @__PURE__ */ new LruMap(8192);
|
|
@@ -1971,7 +1971,7 @@ function isAddress(address, options) {
|
|
|
1971
1971
|
return result;
|
|
1972
1972
|
}
|
|
1973
1973
|
//#endregion
|
|
1974
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
1974
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/address/getAddress.js
|
|
1975
1975
|
const checksumAddressCache = /* @__PURE__ */ new LruMap(8192);
|
|
1976
1976
|
function checksumAddress(address_, chainId) {
|
|
1977
1977
|
if (checksumAddressCache.has(`${address_}.${chainId}`)) return checksumAddressCache.get(`${address_}.${chainId}`);
|
|
@@ -1991,7 +1991,7 @@ function getAddress(address, chainId) {
|
|
|
1991
1991
|
return checksumAddress(address, chainId);
|
|
1992
1992
|
}
|
|
1993
1993
|
//#endregion
|
|
1994
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
1994
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/accounts/utils/publicKeyToAddress.js
|
|
1995
1995
|
/**
|
|
1996
1996
|
* @description Converts an ECDSA public key to an address.
|
|
1997
1997
|
*
|
|
@@ -2003,7 +2003,7 @@ function publicKeyToAddress(publicKey) {
|
|
|
2003
2003
|
return checksumAddress(`0x${keccak256(`0x${publicKey.substring(4)}`).substring(26)}`);
|
|
2004
2004
|
}
|
|
2005
2005
|
//#endregion
|
|
2006
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
2006
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/errors/abi.js
|
|
2007
2007
|
var AbiEncodingArrayLengthMismatchError = class extends BaseError {
|
|
2008
2008
|
constructor({ expectedLength, givenLength, type }) {
|
|
2009
2009
|
super([
|
|
@@ -2046,7 +2046,7 @@ var InvalidArrayError = class extends BaseError {
|
|
|
2046
2046
|
}
|
|
2047
2047
|
};
|
|
2048
2048
|
//#endregion
|
|
2049
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
2049
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/data/slice.js
|
|
2050
2050
|
/**
|
|
2051
2051
|
* @description Returns a section of the hex or byte array given a start/end bytes offset.
|
|
2052
2052
|
*
|
|
@@ -2099,7 +2099,7 @@ function sliceHex(value_, start, end, { strict } = {}) {
|
|
|
2099
2099
|
return value;
|
|
2100
2100
|
}
|
|
2101
2101
|
//#endregion
|
|
2102
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
2102
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/data/concat.js
|
|
2103
2103
|
function concat(values) {
|
|
2104
2104
|
if (typeof values[0] === "string") return concatHex(values);
|
|
2105
2105
|
return concatBytes(values);
|
|
@@ -2119,11 +2119,11 @@ function concatHex(values) {
|
|
|
2119
2119
|
return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
|
|
2120
2120
|
}
|
|
2121
2121
|
//#endregion
|
|
2122
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
2122
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/regex.js
|
|
2123
2123
|
const bytesRegex = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
|
|
2124
2124
|
const integerRegex = /^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;
|
|
2125
2125
|
//#endregion
|
|
2126
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
2126
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js
|
|
2127
2127
|
/**
|
|
2128
2128
|
* @description Encodes a list of primitive values into an ABI-encoded hex value.
|
|
2129
2129
|
*
|
|
@@ -2360,23 +2360,23 @@ function isDynamicType(param) {
|
|
|
2360
2360
|
return false;
|
|
2361
2361
|
}
|
|
2362
2362
|
//#endregion
|
|
2363
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
2363
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/stringify.js
|
|
2364
2364
|
const stringify = (value, replacer, space) => JSON.stringify(value, (key, value_) => {
|
|
2365
2365
|
const value = typeof value_ === "bigint" ? value_.toString() : value_;
|
|
2366
2366
|
return typeof replacer === "function" ? replacer(key, value) : value;
|
|
2367
2367
|
}, space);
|
|
2368
2368
|
//#endregion
|
|
2369
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
2369
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/address/isAddressEqual.js
|
|
2370
2370
|
function isAddressEqual(a, b) {
|
|
2371
2371
|
if (!isAddress(a, { strict: false })) throw new InvalidAddressError({ address: a });
|
|
2372
2372
|
if (!isAddress(b, { strict: false })) throw new InvalidAddressError({ address: b });
|
|
2373
2373
|
return a.toLowerCase() === b.toLowerCase();
|
|
2374
2374
|
}
|
|
2375
2375
|
//#endregion
|
|
2376
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
2376
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/signature/recoverPublicKey.js
|
|
2377
2377
|
async function recoverPublicKey({ hash, signature }) {
|
|
2378
2378
|
const hashHex = isHex(hash) ? hash : toHex(hash);
|
|
2379
|
-
const { secp256k1 } = await import("./secp256k1-
|
|
2379
|
+
const { secp256k1 } = await import("./secp256k1-CoRKQn1k.js");
|
|
2380
2380
|
return `0x${(() => {
|
|
2381
2381
|
if (typeof signature === "object" && "r" in signature && "s" in signature) {
|
|
2382
2382
|
const { r, s, v, yParity } = signature;
|
|
@@ -2396,7 +2396,7 @@ function toRecoveryBit(yParityOrV) {
|
|
|
2396
2396
|
throw new Error("Invalid yParityOrV value");
|
|
2397
2397
|
}
|
|
2398
2398
|
//#endregion
|
|
2399
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
2399
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/signature/recoverAddress.js
|
|
2400
2400
|
async function recoverAddress({ hash, signature }) {
|
|
2401
2401
|
return publicKeyToAddress(await recoverPublicKey({
|
|
2402
2402
|
hash,
|
|
@@ -2404,7 +2404,7 @@ async function recoverAddress({ hash, signature }) {
|
|
|
2404
2404
|
}));
|
|
2405
2405
|
}
|
|
2406
2406
|
//#endregion
|
|
2407
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
2407
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/errors/typedData.js
|
|
2408
2408
|
var InvalidDomainError = class extends BaseError {
|
|
2409
2409
|
constructor({ domain }) {
|
|
2410
2410
|
super(`Invalid domain "${stringify(domain)}".`, { metaMessages: ["Must be a valid EIP-712 domain."] });
|
|
@@ -2426,14 +2426,25 @@ var InvalidStructTypeError = class extends BaseError {
|
|
|
2426
2426
|
});
|
|
2427
2427
|
}
|
|
2428
2428
|
};
|
|
2429
|
+
var InvalidTypedDataTypeError = class extends BaseError {
|
|
2430
|
+
constructor({ type }) {
|
|
2431
|
+
const canonicalType = type.replace(/^(u?int)/, "$&256");
|
|
2432
|
+
super(`Type "${type}" is not a valid EIP-712 type.`, {
|
|
2433
|
+
metaMessages: [`Use "${canonicalType}" instead.`],
|
|
2434
|
+
name: "InvalidTypedDataTypeError"
|
|
2435
|
+
});
|
|
2436
|
+
}
|
|
2437
|
+
};
|
|
2429
2438
|
//#endregion
|
|
2430
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
2439
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/typedData.js
|
|
2431
2440
|
function validateTypedData(parameters) {
|
|
2432
2441
|
const { domain, message, primaryType, types } = parameters;
|
|
2433
2442
|
const validateData = (struct, data) => {
|
|
2434
2443
|
for (const param of struct) {
|
|
2435
2444
|
const { name, type } = param;
|
|
2436
2445
|
const value = data[name];
|
|
2446
|
+
const baseType = type.replace(/(\[[0-9]*\])+$/, "");
|
|
2447
|
+
if (baseType === "int" || baseType === "uint") throw new InvalidTypedDataTypeError({ type });
|
|
2437
2448
|
const integerMatch = type.match(integerRegex);
|
|
2438
2449
|
if (integerMatch && (typeof value === "number" || typeof value === "bigint")) {
|
|
2439
2450
|
const [_type, base, size_] = integerMatch;
|
|
@@ -2474,7 +2485,7 @@ function getTypesForEIP712Domain({ domain }) {
|
|
|
2474
2485
|
name: "name",
|
|
2475
2486
|
type: "string"
|
|
2476
2487
|
},
|
|
2477
|
-
domain?.version && {
|
|
2488
|
+
typeof domain?.version === "string" && {
|
|
2478
2489
|
name: "version",
|
|
2479
2490
|
type: "string"
|
|
2480
2491
|
},
|
|
@@ -2497,7 +2508,7 @@ function validateReference(type) {
|
|
|
2497
2508
|
if (type === "address" || type === "bool" || type === "string" || type.startsWith("bytes") || type.startsWith("uint") || type.startsWith("int")) throw new InvalidStructTypeError({ type });
|
|
2498
2509
|
}
|
|
2499
2510
|
//#endregion
|
|
2500
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
2511
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/signature/hashTypedData.js
|
|
2501
2512
|
function hashTypedData(parameters) {
|
|
2502
2513
|
const { domain = {}, message, primaryType } = parameters;
|
|
2503
2514
|
const types = {
|
|
@@ -2602,7 +2613,7 @@ function encodeField({ types, name, type, value }) {
|
|
|
2602
2613
|
return [{ type }, value];
|
|
2603
2614
|
}
|
|
2604
2615
|
//#endregion
|
|
2605
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
2616
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/signature/recoverTypedDataAddress.js
|
|
2606
2617
|
async function recoverTypedDataAddress(parameters) {
|
|
2607
2618
|
const { domain, message, primaryType, signature, types } = parameters;
|
|
2608
2619
|
return recoverAddress({
|
|
@@ -2616,7 +2627,7 @@ async function recoverTypedDataAddress(parameters) {
|
|
|
2616
2627
|
});
|
|
2617
2628
|
}
|
|
2618
2629
|
//#endregion
|
|
2619
|
-
//#region ../../../node_modules/.pnpm/viem@2.
|
|
2630
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/signature/verifyTypedData.js
|
|
2620
2631
|
/**
|
|
2621
2632
|
* Verify that typed data was signed by the provided address.
|
|
2622
2633
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { K as SandboxCreateReceipt, a as TerminalStreamOptions, g as TerminalReadyInfo, i as TerminalStreamHandlers, s as TerminalStreamToken, t as TerminalAttachTimings } from "./terminal-stream-types-
|
|
2
|
-
import { t as CliAuthReference } from "./cli-auth-bundle-
|
|
1
|
+
import { K as SandboxCreateReceipt, a as TerminalStreamOptions, g as TerminalReadyInfo, i as TerminalStreamHandlers, s as TerminalStreamToken, t as TerminalAttachTimings } from "./terminal-stream-types-yAt76vk7.js";
|
|
2
|
+
import { t as CliAuthReference } from "./cli-auth-bundle-Can3oLKY.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
5
5
|
import { AgentExactRunControlRef, AgentProfile, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileValidationResult, AgentRuntimeAttachments, PlanContinuation, ReasoningEffort, SandboxSizePreset } from "@tangle-network/agent-interface";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.68.
|
|
3
|
+
"version": "0.68.2",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -150,31 +150,31 @@
|
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
152
|
"devDependencies": {
|
|
153
|
-
"@hocuspocus/provider": "^4.
|
|
153
|
+
"@hocuspocus/provider": "^4.7.1",
|
|
154
154
|
"@mastra/core": "1.67.0",
|
|
155
155
|
"@types/node": "25.6.0",
|
|
156
156
|
"@types/tar-stream": "3.1.4",
|
|
157
|
-
"@types/ws": "^8.18.
|
|
158
|
-
"@vitest/coverage-v8": "^4.1.
|
|
157
|
+
"@types/ws": "^8.18.2",
|
|
158
|
+
"@vitest/coverage-v8": "^4.1.12",
|
|
159
159
|
"ai": "7.0.107",
|
|
160
|
-
"openai": "^6.
|
|
160
|
+
"openai": "^6.49.0",
|
|
161
161
|
"proper-lockfile": "4.1.2",
|
|
162
162
|
"tsdown": "0.21.10",
|
|
163
163
|
"typescript": "^6.0.3",
|
|
164
|
-
"vitest": "^4.1.
|
|
165
|
-
"ws": "^8.
|
|
164
|
+
"vitest": "^4.1.12",
|
|
165
|
+
"ws": "^8.22.0",
|
|
166
166
|
"yjs": "13.6.30",
|
|
167
167
|
"@products/sandbox-test-utils": "0.0.0",
|
|
168
|
-
"@repo/shared": "0.0.0",
|
|
169
|
-
"@tangle-network/agent-profile-materialize": "0.26.0",
|
|
170
168
|
"@tangle-network/cli-agent-registry": "0.10.2",
|
|
169
|
+
"@tangle-network/agent-profile-materialize": "0.26.0",
|
|
170
|
+
"@repo/shared": "0.0.0",
|
|
171
171
|
"@tangle-network/runtime-contracts": "0.19.0",
|
|
172
172
|
"@tangle-network/sdk": "4.0.16",
|
|
173
173
|
"@tangle-network/sse-core": "0.0.0"
|
|
174
174
|
},
|
|
175
175
|
"tangleRelease": {
|
|
176
|
-
"sourceSha": "
|
|
177
|
-
"mergedAt": "2026-10-
|
|
176
|
+
"sourceSha": "0984d38ccbb6dfa20c8b44d81e8886664c7a720b",
|
|
177
|
+
"mergedAt": "2026-10-25T20:02:18-06:00"
|
|
178
178
|
},
|
|
179
179
|
"scripts": {
|
|
180
180
|
"build": "node scripts/build-dist.mjs",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|