@tangle-network/sandbox 0.59.0 → 0.60.1-develop.20261001222100.ea1ca0e935
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 +6 -0
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +4 -4
- package/dist/agent/preview.d.ts +2 -2
- package/dist/agent/preview.js +54 -4
- package/dist/{agent-run-outcome-C45u1fzK.d.ts → agent-run-outcome-C1GJ1YCD.d.ts} +2 -1
- package/dist/auth/index.js +1 -1
- package/dist/{browser-interactive-control-controller-DRBQ-jf0.js → browser-interactive-control-controller-BJf0P_J4.js} +40 -3
- package/dist/{browser-interactive-control-controller-BzR8sFjo.d.ts → browser-interactive-control-controller-C2qVGzQz.d.ts} +7 -2
- package/dist/{cli-auth-bundle-CzmAaefZ.js → cli-auth-bundle-ChOdvrjd.js} +1 -1
- package/dist/{client-DYgEM_h5.d.ts → client-jPPuv6Ns.d.ts} +4 -4
- package/dist/{client-BbiV61Yy.js → client-p2T45dAv.js} +5 -5
- package/dist/collaboration/index.js +1 -1
- package/dist/core.d.ts +4 -4
- package/dist/core.js +3 -3
- package/dist/{index-C8Y65I3y.d.ts → index-CZjj0Wj3.d.ts} +2 -2
- package/dist/index.d.ts +10 -9
- package/dist/index.js +8 -8
- package/dist/interactive-control.d.ts +2 -2
- package/dist/interactive-control.js +2 -2
- package/dist/{runtime-api-CACSOP5L.js → interactive-controller-DV1HT3NR.js} +850 -8
- package/dist/interactive-controller-Dghv9yMk.d.ts +40 -0
- package/dist/{lines-VAnaqs-K.d.ts → lines-BoT0rBrj.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/{local-cli-auth-ChDP5zu4.js → local-cli-auth-CdIM0B6p.js} +1 -1
- package/dist/{mcp-local-DY1CnWBn.js → mcp-local-BSvH4yAU.js} +1 -1
- package/dist/{preview-3G1piYer.d.ts → preview-iD-q8YLe.d.ts} +19 -6
- package/dist/runtime.d.ts +6 -3
- package/dist/runtime.js +3 -3
- package/dist/{sandbox-D0-Q1vpS.d.ts → sandbox-BY7KZweP.d.ts} +9 -40
- package/dist/{sandbox-BJLb1q3b.js → sandbox-DeE2MDx9.js} +160 -878
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-Csb8unvj.js → tangle-DsvldZtQ.js} +1 -1
- package/dist/{types-Br35Gfpw.d.ts → types-Cs-0Hy_K.d.ts} +24 -4
- package/package.json +6 -4
- package/dist/abort-signal-BpYYr4JT.js +0 -31
- /package/dist/{collaboration-d8Xcvel7.js → collaboration-C1JAl5kE.js} +0 -0
- /package/dist/{line-application-9k30rhb2.js → line-application-DJYY1v8U.js} +0 -0
- /package/dist/{preview-operations-CbTiBE-a.js → preview-operations-BLsclF88.js} +0 -0
- /package/dist/{specs-CnqSWFNT-CHd9ACzP.js → specs-CnqSWFNT-i2wJxPoD.js} +0 -0
- /package/dist/{terminal-stream-CB2DF-qq.d.ts → terminal-stream-C9jxoB07.d.ts} +0 -0
package/dist/tangle/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TANGLE_JOBS_CONTRACT, c as ITangleJobsAbi, d as SandboxCreateResponseParamTypes, f as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as JsonResponseParamTypes, n as JOB_SANDBOX_CREATE, o as TangleSandboxClientConfig, r as JOB_SANDBOX_DELETE, s as AgentSandboxBlueprintAbi, t as TangleSandboxClient, u as SandboxCreateParamTypes } from "../index-
|
|
1
|
+
import { a as TANGLE_JOBS_CONTRACT, c as ITangleJobsAbi, d as SandboxCreateResponseParamTypes, f as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as JsonResponseParamTypes, n as JOB_SANDBOX_CREATE, o as TangleSandboxClientConfig, r as JOB_SANDBOX_DELETE, s as AgentSandboxBlueprintAbi, t as TangleSandboxClient, u as SandboxCreateParamTypes } from "../index-CZjj0Wj3.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, TangleSandboxClientConfig };
|
package/dist/tangle/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TANGLE_JOBS_CONTRACT, c as JsonResponseParamTypes, d as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as SandboxCreateParamTypes, n as JOB_SANDBOX_CREATE, o as AgentSandboxBlueprintAbi, r as JOB_SANDBOX_DELETE, s as ITangleJobsAbi, t as TangleSandboxClient, u as SandboxCreateResponseParamTypes } from "../tangle-
|
|
1
|
+
import { a as TANGLE_JOBS_CONTRACT, c as JsonResponseParamTypes, d as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as SandboxCreateParamTypes, n as JOB_SANDBOX_CREATE, o as AgentSandboxBlueprintAbi, r as JOB_SANDBOX_DELETE, s as ITangleJobsAbi, t as TangleSandboxClient, u as SandboxCreateResponseParamTypes } from "../tangle-DsvldZtQ.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as parseErrorResponse } from "./errors-CKl_BSlD.js";
|
|
2
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-DeE2MDx9.js";
|
|
3
3
|
//#region src/tangle/abi.ts
|
|
4
4
|
/**
|
|
5
5
|
* Tangle Contract ABI Definitions
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as TerminalStreamHandlers, t as TerminalStream } from "./terminal-stream-
|
|
1
|
+
import { r as TerminalStreamHandlers, t as TerminalStream } from "./terminal-stream-C9jxoB07.js";
|
|
2
2
|
import { t as CliAuthReference } from "./cli-auth-bundle-gs7xEnA1.js";
|
|
3
3
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
4
4
|
import { AgentExactRunControlRef, AgentProfile, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileValidationResult, AgentRuntimeAttachments, HarnessType, ReasoningEffort, SandboxSizePreset } from "@tangle-network/agent-interface";
|
|
@@ -2615,6 +2615,8 @@ interface PromptResult {
|
|
|
2615
2615
|
error?: string;
|
|
2616
2616
|
/** Machine-readable error code from the runtime, e.g. `empty_visible_output`. */
|
|
2617
2617
|
errorCode?: string;
|
|
2618
|
+
/** Native HTTP failure status when the provider reported it. */
|
|
2619
|
+
statusCode?: number;
|
|
2618
2620
|
/** Tool calls the agent made this run, including failures (`isError`). */
|
|
2619
2621
|
toolInvocations?: AgentToolInvocation[];
|
|
2620
2622
|
/** Set when `status === "blocked_on_approval"`. */
|
|
@@ -3229,7 +3231,8 @@ interface SandboxRuntimeCapabilities {
|
|
|
3229
3231
|
sendPrompt: boolean; /** Send terminal input to the existing TUI. */
|
|
3230
3232
|
input: boolean; /** Resize the existing TUI. */
|
|
3231
3233
|
resize: boolean; /** Stop the exact TUI session. */
|
|
3232
|
-
stop: boolean;
|
|
3234
|
+
stop: boolean; /** Start Claude Code with the CLI's subscription login in its private HOME. */
|
|
3235
|
+
claudeSubscription?: boolean;
|
|
3233
3236
|
};
|
|
3234
3237
|
}
|
|
3235
3238
|
/**
|
|
@@ -3293,6 +3296,8 @@ interface SessionFailureReason {
|
|
|
3293
3296
|
message: string;
|
|
3294
3297
|
/** Machine-readable code when the runtime classified the failure. */
|
|
3295
3298
|
code?: string;
|
|
3299
|
+
/** Native HTTP failure status when the provider reported it. */
|
|
3300
|
+
statusCode?: number;
|
|
3296
3301
|
/** Execution whose failure this describes. */
|
|
3297
3302
|
executionId?: string;
|
|
3298
3303
|
}
|
|
@@ -6445,9 +6450,22 @@ interface ChunkedUploadResult {
|
|
|
6445
6450
|
interface DownloadOptions {
|
|
6446
6451
|
/** Overwrite local file if exists (default: true) */
|
|
6447
6452
|
overwrite?: boolean;
|
|
6453
|
+
/** Maximum streamed bytes; refusal leaves the destination intact. */
|
|
6454
|
+
maxBytes?: number;
|
|
6455
|
+
/** Exact expected byte count, checked before publishing the local file. */
|
|
6456
|
+
expectedSize?: number;
|
|
6457
|
+
/** Expected SHA-256 digest, with an optional sha256: prefix. */
|
|
6458
|
+
expectedSha256?: string;
|
|
6459
|
+
/** Cancel the request and remove its incomplete local file. */
|
|
6460
|
+
signal?: AbortSignal;
|
|
6448
6461
|
/** Progress callback for large files */
|
|
6449
6462
|
onProgress?: (progress: DownloadProgress) => void;
|
|
6450
6463
|
}
|
|
6464
|
+
/** Exact bytes retained by a completed download. */
|
|
6465
|
+
interface DownloadResult {
|
|
6466
|
+
sizeBytes: number;
|
|
6467
|
+
sha256: string;
|
|
6468
|
+
}
|
|
6451
6469
|
/**
|
|
6452
6470
|
* Download progress information.
|
|
6453
6471
|
*/
|
|
@@ -6603,6 +6621,8 @@ interface WriteManyOptions {
|
|
|
6603
6621
|
interface FileSystem {
|
|
6604
6622
|
/** True when write/writeMany honor Unix mode bits such as 0o755. */
|
|
6605
6623
|
supportsWriteMode?: true;
|
|
6624
|
+
/** True when download enforces bounds and cancellation and returns a digest receipt. */
|
|
6625
|
+
supportsBoundedDownload?: true;
|
|
6606
6626
|
/**
|
|
6607
6627
|
* Read a file's contents as a string.
|
|
6608
6628
|
* For binary files, use download() instead.
|
|
@@ -6724,7 +6744,7 @@ interface FileSystem {
|
|
|
6724
6744
|
* await box.fs.download("/workspace/output.zip", "./results.zip");
|
|
6725
6745
|
* ```
|
|
6726
6746
|
*/
|
|
6727
|
-
download(remotePath: string, localPath: string, options?: DownloadOptions): Promise<
|
|
6747
|
+
download(remotePath: string, localPath: string, options?: DownloadOptions): Promise<DownloadResult>;
|
|
6728
6748
|
/**
|
|
6729
6749
|
* Upload a local directory to the sandbox.
|
|
6730
6750
|
* Uses tar for efficient transfer.
|
|
@@ -6935,4 +6955,4 @@ interface CodeExecutionOptions {
|
|
|
6935
6955
|
idempotencyKey?: string;
|
|
6936
6956
|
}
|
|
6937
6957
|
//#endregion
|
|
6938
|
-
export { DownloadOptions as $,
|
|
6958
|
+
export { DownloadOptions as $, SnapshotDeleteAcknowledgement as $i, PublicTemplateInfo as $n, SandboxFleetTraceEvent as $r, GPU_LEASE_PROVIDER_NAMES as $t, CommitTaskSessionOptions as A, WriteFileOptions as Aa, SandboxTraceOptions as Ai, NetworkConfig as An, SandboxFleetArtifact as Ar, FileUsageOptions as At, CreateSandboxOptions as B, BackendType as Ba, SessionEventStreamOptions as Bi, ProcessListOptions as Bn, SandboxFleetMachineMeteredUsage as Br, FleetDispatchStreamOptions as Bt, BranchOptions as C, UpdateUserOptions as Ca, SandboxTerminalInfo as Ci, ListMessagesOptions as Cn, SandboxDeleteAcknowledgement as Cr, FileReadError as Ct, CodeExecutionResult as D, WaitForOptions as Da, SandboxTraceBundle as Di, MAX_EGRESS_DENIALS_LIMIT as Dn, SandboxEvent as Dr, FileTreeFile as Dt, CodeExecutionOptions as E, UsageInfo as Ea, SandboxTerminals as Ei, ListSandboxOptions as En, SandboxEnvironment as Er, FileSystem as Et, CreateIntelligenceReportOptions as F, BatchEventDataMap as Fa, SecretsManager as Fi, PreviewLinkInfo as Fn, SandboxFleetDriverCapability as Fr, FleetAgentResult as Ft, DeleteMatchingSandboxesFilter as G, ManagedProcessRecord as Ga, SessionInfo as Gi, ProcessStatus as Gn, SandboxFleetOperationsSummary as Gr, FleetMachineId as Gt, CreateTaskSessionOptions as H, ManagedProcessClient as Ha, SessionExecutionStatus as Hi, ProcessManager as Hn, SandboxFleetMachineSpec as Hr, FleetDriveTurnRequest as Ht, CreateRequestOptions as I, BatchSidecarGroup as Ia, SendSessionMessageOptions as Ii, PreviewLinkManager as In, SandboxFleetDriverTimings as Ir, FleetAgentRunStatus as It, DeleteOptions as J, SessionMessage as Ji, PromptResult as Jn, SandboxFleetPolicy as Jr, FleetRunEvent as Jt, DeleteMatchingSandboxesOptions as K, ManagedProcessSpec as Ka, SessionInterruptOptions as Ki, PromptInputPart as Kn, SandboxFleetParent as Kr, FleetPromptDispatchOptions as Kt, CreateSandboxFleetOptions as L, BatchTaskUsage as La, SendSessionMessageRequest as Li, PreviewLinkWaitOptions as Ln, SandboxFleetInfo as Lr, FleetDispatchCancelResult as Lt, ConversationTurnOptions as M, WriteManyOptions as Ma, SearchMatch as Mi, NonHostAgentDriverConfig as Mn, SandboxFleetCostEstimate as Mr, FileWriteResult as Mt, ConversationTurnResult as N, BatchBackendStats as Na, SearchOptions as Ni, PermissionLevel as Nn, SandboxFleetDispatchFailureClass as Nr, FleetAgentId as Nt, CodeLanguage as O, WaitForRolloutOptions as Oa, SandboxTraceEvent as Oi, McpServerConfig as On, SandboxFleetAgent as Or, FileTreeOptions as Ot, CreateGpuLeaseOptions as P, BatchEvent as Pa, SecretInfo as Pi, PermissionsManager as Pn, SandboxFleetDispatchResponse as Pr, FleetAgentPlacement as Pt, DispatchedSession as Q, SessionStatus as Qi, ProvisionStep as Qn, SandboxFleetTraceBundle as Qr, ForkLookupOptions as Qt, CreateSandboxFleetTokenOptions as R, PublicBatchRunRequest as Ra, SentSessionMessage as Ri, Process as Rn, SandboxFleetIntelligenceEnvelope as Rr, FleetDispatchResultBuffer as Rt, BatchTaskResult as S, TurnDriveResult as Sa, SandboxTerminalCreateOptions as Si, JsonValue as Sn, SandboxCreateReceipt as Sr, FileReadBatchResult as St, ChunkedUploadResult as T, UploadProgress as Ta, SandboxTerminalRequestOptions as Ti, ListSandboxFleetOptions as Tn, SandboxDeleteOutcome as Tr, FileRenameResult as Tt, DeleteMatchingSandboxOutcome as U, ManagedProcessJobs as Ua, SessionFailureReason as Ui, ProcessSignal as Un, SandboxFleetManifest as Ur, FleetExecDispatchOptions as Ut, CreateSessionOptions as V, parseBackendType as Va, SessionExecutionInfo as Vi, ProcessLogEntry as Vn, SandboxFleetMachineRecord as Vr, FleetDriveTurnOutcome as Vt, DeleteMatchingSandboxResult as W, ManagedProcessOptions as Wa, SessionForkOptions as Wi, ProcessSpawnOptions as Wn, SandboxFleetManifestMachine as Wr, FleetExecDispatchResult as Wt, DirectoryPermission as X, SessionMessageInputPart as Xi, ProvisionResult as Xn, SandboxFleetSpend as Xr, ForkCounts as Xt, DevServerInfo as Y, SessionMessageAdmission as Yi, ProvisionEvent as Yn, SandboxFleetProfileRef as Yr, FleetRunOptions as Yt, DispatchPromptOptions as Z, SessionResultOptions as Zi, ProvisionStatus as Zn, SandboxFleetToken as Zr, ForkIdempotency as Zt, BatchBackend as _, TeeAttestationResponse as _a, SandboxShape as _i, IntelligenceReport as _n, SSHCommandDescriptor as _r, ExactProcessSpawnOptions as _t, AgentQuestionRequest as a, SshKeysManager as aa, SandboxFleetWorkspaceRestoreResult as ai, GitStatus as an, ReconcileSandboxFleetsOptions as ar, DriverType as at, BatchRunRequest as b, TokenRefreshHandler as ba, SandboxStatus as bi, IntelligenceReportSubjectType as bn, SandboxConnection as br, FileInfo as bt, AttachGpuLeaseOptions as c, StorageConfig as ca, SandboxInfo as ci, GpuLeaseCommandResult as cn, RestoreSnapshotOptions as cr, DurablePlanSnapshot as ct, BackendConfig as d, TaskSessionCommitResult as da, SandboxPortPreviewLink as di, GpuLeaseManager as dn, RolloutChildResult as dr, EffectiveBackendSource as dt, SnapshotDeleteOutcome as ea, SandboxFleetTraceExport as ei, GitAuth as en, PublicTemplateVersionInfo as er, DownloadProgress as et, BackendInfo as f, TaskSessionFileChange as fa, SandboxRemovalState as fi, GpuLeaseProviderName as fn, RolloutOptions as fr, EgressDenial as ft, BackendStatus as g, TeeAttestationReport as ga, SandboxRuntimeHealth as gi, InstalledTool as gn, RolloutTurnPart as gr, EventStreamOptions as gt, BackendRuntimeConfigUpdate as h, TeeAttestationOptions as ha, SandboxRuntimeCapabilities as hi, HostAgentRuntimeBackend as hn, RolloutStatus as hr, EnsureDevServerOptions as ht, AgentApprovalRequirement as i, SnapshotResult as ia, SandboxFleetWorkspaceReconcileResult as ii, GitDiff as in, ReapExpiredSandboxFleetsResult as ir, DriverInfo as it, CompletedTurnResult as j, WriteManyFile as ja, SandboxUser as ji, NetworkManager as jn, SandboxFleetArtifactSpec as jr, FileUsageResult as jt, CodeResultPart as k, WorkspaceOperationLookup as ka, SandboxTraceExport as ki, MkdirOptions as kn, SandboxFleetAgentSpec as kr, FileTreeResult as kt, AttachSandboxFleetMachineOptions as l, SubscriptionInfo as la, SandboxIntelligenceEnvelope as li, GpuLeaseExecOptions as ln, ResumeOptions as lr, EffectiveBackend as lt, BackendMcpServerStatus as m, TaskSessionProfile as ma, SandboxResources as mi, HostAgentDriverConfig as mn, RolloutStartResult as mr, EgressPolicy as mt, AccessPolicyRule as n, SnapshotInfo as na, SandboxFleetUsage as ni, GitCommit as nn, PublishPublicTemplateVersionOptions as nr, DriveTurnOptions as nt, AgentRunStatus as o, StartupDiagnostics as oa, SandboxFleetWorkspaceSnapshotResult as oi, GpuLease as on, ReconcileSandboxFleetsResult as or, DurablePlan as ot, BackendManager as p, TaskSessionInfo as pa, SandboxResourceUsage as pi, GpuLeaseStatus as pn, RolloutScorer as pr, EgressManager as pt, DeleteMatchingSandboxesResult as q, ManagedProcessState as qa, SessionListOptions as qi, PromptOptions as qn, SandboxFleetPlacement as qr, FleetPromptDispatchResult as qt, AddUserOptions as r, SnapshotOptions as ra, SandboxFleetWorkspace as ri, GitConfig as rn, ReapExpiredSandboxFleetsOptions as rr, DriverConfig as rt, AgentToolInvocation as s, StartupOperation as sa, SandboxIdentity as si, GpuLeaseBilling as sn, RenameOptions as sr, DurablePlanDecisionResult as st, AcceleratorKind as t, SnapshotIdempotency as ta, SandboxFleetTraceOptions as ti, GitBranch as tn, PublishPublicTemplateOptions as tr, DownloadResult as tt, BackendCapabilities as u, TaskSessionChanges as ua, SandboxPortBinding as ui, GpuLeaseExecResult as un, Rollout as ur, EffectiveBackendProfile as ut, BatchResult as v, TeePublicKey as va, SandboxShapePreset as vi, IntelligenceReportBudget as vn, SSHCredentials as vr, ExecOptions as vt, ChunkedUploadOptions as w, UploadOptions as wa, SandboxTerminalManager as wi, ListOptions as wn, SandboxDeleteOptions as wr, FileReadResult as wt, BatchTask as x, TokenUsage as xa, SandboxTerminalAttachOptions as xi, IntelligenceReportWindow as xn, SandboxCreateOutcome as xr, FileReadBatchOptions as xt, BatchRunOptions as y, TeePublicKeyResponse as ya, SandboxShapesInfo as yi, IntelligenceReportCompareTo as yn, SandboxConfig as yr, ExecResult as yt, CreateSandboxFleetWithCoordinatorOptions as z, ALL_BACKEND_TYPES as za, SessionBackendCredentials as zi, ProcessInfo as zn, SandboxFleetMachine as zr, FleetDispatchResultBufferOptions as zt };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.60.1-develop.20261001222100.ea1ca0e935",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
},
|
|
107
107
|
"dependencies": {
|
|
108
108
|
"@tangle-network/agent-core": "^0.10.2",
|
|
109
|
-
"@tangle-network/agent-interface": "^2.
|
|
109
|
+
"@tangle-network/agent-interface": "^2.16.0",
|
|
110
110
|
"zod": "4.6.5"
|
|
111
111
|
},
|
|
112
112
|
"peerDependencies": {
|
|
@@ -137,6 +137,7 @@
|
|
|
137
137
|
"@hocuspocus/provider": "^4.0.0",
|
|
138
138
|
"@mastra/core": "1.67.0",
|
|
139
139
|
"@types/node": "25.6.0",
|
|
140
|
+
"@types/ws": "^8.18.1",
|
|
140
141
|
"@vitest/coverage-v8": "^4.1.5",
|
|
141
142
|
"ai": "7.0.107",
|
|
142
143
|
"dotenv": "^16.4.5",
|
|
@@ -149,9 +150,10 @@
|
|
|
149
150
|
"yjs": "13.6.30",
|
|
150
151
|
"@repo/shared": "0.0.0",
|
|
151
152
|
"@tangle-network/agent-profile-materialize": "0.20.5",
|
|
153
|
+
"@products/sandbox-test-utils": "0.0.0",
|
|
152
154
|
"@tangle-network/cli-agent-registry": "0.4.17",
|
|
153
|
-
"@tangle-network/
|
|
154
|
-
"@tangle-network/
|
|
155
|
+
"@tangle-network/runtime-contracts": "0.11.0",
|
|
156
|
+
"@tangle-network/sse-core": "0.0.0"
|
|
155
157
|
},
|
|
156
158
|
"scripts": {
|
|
157
159
|
"build": "node scripts/build-dist.mjs",
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
//#region src/lib/abort-signal.ts
|
|
2
|
-
function combineAbortSignals(signals) {
|
|
3
|
-
return AbortSignal.any(signals);
|
|
4
|
-
}
|
|
5
|
-
function awaitWithAbort(work, signal) {
|
|
6
|
-
if (!signal) return work;
|
|
7
|
-
signal.throwIfAborted();
|
|
8
|
-
return new Promise((resolve, reject) => {
|
|
9
|
-
let settled = false;
|
|
10
|
-
const onAbort = () => {
|
|
11
|
-
if (settled) return;
|
|
12
|
-
settled = true;
|
|
13
|
-
signal.removeEventListener("abort", onAbort);
|
|
14
|
-
reject(signal.reason ?? new DOMException("The request was aborted", "AbortError"));
|
|
15
|
-
};
|
|
16
|
-
signal.addEventListener("abort", onAbort, { once: true });
|
|
17
|
-
work.then((value) => {
|
|
18
|
-
if (settled) return;
|
|
19
|
-
settled = true;
|
|
20
|
-
signal.removeEventListener("abort", onAbort);
|
|
21
|
-
resolve(value);
|
|
22
|
-
}, (cause) => {
|
|
23
|
-
if (settled) return;
|
|
24
|
-
settled = true;
|
|
25
|
-
signal.removeEventListener("abort", onAbort);
|
|
26
|
-
reject(cause);
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
//#endregion
|
|
31
|
-
export { combineAbortSignals as n, awaitWithAbort as t };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|