@tangle-network/sandbox 0.63.16 → 0.63.18
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.d.ts +4 -4
- package/dist/agent/index.js +4 -4
- package/dist/agent/preview.d.ts +1 -1
- package/dist/{agent-run-outcome-3p-OlQJG.d.ts → agent-run-outcome-DlYhZnhD.d.ts} +1 -1
- package/dist/{chunked-upload-B867njKv.js → chunked-upload-KJyRCAiC.js} +1 -1
- package/dist/{chunked-upload-file-Bs5qcfRB.js → chunked-upload-file-DfiGzqaR.js} +2 -2
- package/dist/{client-Be-_CMPh.js → client-Dl22CVOz.js} +7 -4
- package/dist/{client-MQkP1a3i.d.ts → client-DraGbXEP.d.ts} +7 -5
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-CXtTwK3x.js → collaboration-XHg5BEUI.js} +1 -1
- package/dist/core.d.ts +7 -7
- package/dist/core.js +3 -3
- package/dist/{direct-http2-D8mo1ePx.js → direct-http2-Dq7tq6jV.js} +1 -1
- package/dist/{errors-BJIX8RRM.d.ts → error-classes-BWS1a9HO.d.ts} +2 -2
- package/dist/{errors-Bfhg_Zc6.js → errors-AB5BD3FM.js} +29 -27
- package/dist/{index-YVbORwwO.d.ts → index-xS3mRl69.d.ts} +2 -2
- package/dist/index.d.ts +9 -9
- package/dist/index.js +6 -6
- package/dist/intelligence/index.js +1 -1
- package/dist/{interactive-controller-C0bJnKLu.js → interactive-controller-zE6hwv3C.js} +2 -2
- package/dist/{keep-alive-fetch-qPVvvkgJ.js → keep-alive-fetch-CXvfSczd.js} +6 -1
- package/dist/{lines-CINbUZJ6.d.ts → lines-hsXVdk60.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/lines.js +1 -1
- package/dist/{managed-process-Coh-wv8s.d.ts → managed-process-B-pXdMLC.d.ts} +1 -1
- package/dist/{preview-Dyn4ECT8.d.ts → preview-D8UAF7F9.d.ts} +3 -3
- package/dist/{public-templates-CYURc1KE.d.ts → public-templates-BP3sTaSb.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/public-templates.js +1 -1
- package/dist/runtime.d.ts +3 -3
- package/dist/runtime.js +3 -3
- package/dist/{sandbox-C6Y2Hzlv.js → sandbox-BJkpVtLN.js} +483 -336
- package/dist/{sandbox-BAwRXm2a.d.ts → sandbox-DDdPhk2j.d.ts} +3 -3
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-DUDjP2F4.js → tangle-BBpguPfj.js} +2 -2
- package/dist/{types-B2SfJtb1.d.ts → types-BxZX2EVj.d.ts} +18 -0
- package/package.json +5 -5
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as CliAuthReference } from "./cli-auth-bundle-BKsrsbxy.js";
|
|
2
|
-
import { $ as BackendManager, $n as SandboxConnection, Ba as SandboxEvent, C as StopOptions, Ct as PublicProfileConflict, Da as DurablePlanDecisionOptions, Dr as SandboxResourceUsage, Ea as DurablePlan, Ei as DriverInfo, Et as SentSessionMessage, Fr as NetworkManager, Ft as SessionListOptions, Ga as SandboxTraceOptions, Gi as CodeExecutionResult, Ha as SandboxTraceBundle, Ht as TaskSessionCommitResult, I as WaitForOptions, Ia as IntelligenceReportWindow, It as SessionMessage, Ki as CodeLanguage, Kt as TurnDriveResult, La as PromptInputPart, Lt as SessionMessageAdmission, M as ResumeOptions, Ma as IntelligenceReport, Mt as SessionForkOptions, Na as IntelligenceReportBudget, Nt as SessionInfo, O as ProvisionEvent, Oa as DurablePlanDecisionResult, Or as SandboxRuntimeCapabilities, Ot as SessionEventStreamOptions, Pa as IntelligenceReportCompareTo, Pi as GpuLeaseManager, Pt as SessionInterruptOptions, Qn as SSHCredentials, Ra as PromptOptions, S as SnapshotResult, Sr as SandboxShape, St as ListMessagesOptions, Tr as SandboxStatus, Tt as SendSessionMessageRequest, Vn as SandboxFleetTraceBundle, Vt as TaskSessionChanges, W as ProcessManager, Wi as CodeExecutionOptions, Wt as TaskSessionInfo, Y as PreviewLinkManager, Ya as BackendConfig, Zn as SSHCommandDescriptor, Zr as FileSystem, _o as RawEvidenceExportOptions, _r as TeePublicKeyResponse, _t as CreateSessionOptions, aa as ForkIdempotency, ar as SandboxTerminalAttachOptions, at as GitBranch, b as SnapshotProvenance, bt as DispatchedSession, c as SandboxDeleteAcknowledgement, co as SandboxEnvRecovery, ct as GitStatus, d as SandboxOperationInfo, da as RolloutStartResult, di as WriteManyOptions, dr as StartupDiagnostics, ea as HttpClient, er as SandboxInfo, f as SandboxOperationKind, fi as SearchMatch, ft as CommitTaskSessionOptions, go as RawEvidenceDirectoryExport, gt as ConversationTurnResult, h as SnapshotDeleteAcknowledgement, hi as ExecResult, ho as RawEvidenceBoxExportOptions, hr as TeeAttestationResponse, ht as ConversationTurnOptions, ia as ForkCounts, ir as SandboxRuntimeHealth, ja as EventStreamOptions, jr as EgressManager, k as ProvisionResult, ki as GpuLease, kt as SessionExecutionInfo, l as SandboxDeleteOptions, la as RolloutOptions, li as WriteFileOptions, lo as SandboxEnvRecoveryView, ma as WaitForRolloutOptions, mi as ExecOptions, mo as RawEvidenceBoxDirectoryExport, mt as CompletedTurnResult, nt as PermissionsManager, oa as ForkLookupOptions, oo as SandboxCreateReceipt, ot as GitCommit, p as SandboxOperationState, pi as SearchOptions, pr as TeeAttestationOptions, qa as TurnBackendConfig, ra as BranchOptions, ri as FileWriteResult, s as RestoreSnapshotOptions, sa as Rollout, so as WorkspaceImagePublishResult$1, st as GitDiff, t as InstalledTool, ta as JsonValue, tr as SandboxPortBinding, ui as WriteManyFile, ur as SandboxTerminals, v as SnapshotInfo, vt as CreateTaskSessionOptions, w as WorkspaceOperationLookup, wt as SendSessionMessageOptions, xo as InteractionResolutionAcknowledgement, xt as DriveTurnOptions, y as SnapshotOptions, yt as DispatchPromptOptions, za as PromptResult, zt as SessionResultOptions } from "./types-
|
|
2
|
+
import { $ as BackendManager, $n as SandboxConnection, Ba as SandboxEvent, C as StopOptions, Ct as PublicProfileConflict, Da as DurablePlanDecisionOptions, Dr as SandboxResourceUsage, Ea as DurablePlan, Ei as DriverInfo, Et as SentSessionMessage, Fr as NetworkManager, Ft as SessionListOptions, Ga as SandboxTraceOptions, Gi as CodeExecutionResult, Ha as SandboxTraceBundle, Ht as TaskSessionCommitResult, I as WaitForOptions, Ia as IntelligenceReportWindow, It as SessionMessage, Ki as CodeLanguage, Kt as TurnDriveResult, La as PromptInputPart, Lt as SessionMessageAdmission, M as ResumeOptions, Ma as IntelligenceReport, Mt as SessionForkOptions, Na as IntelligenceReportBudget, Nt as SessionInfo, O as ProvisionEvent, Oa as DurablePlanDecisionResult, Or as SandboxRuntimeCapabilities, Ot as SessionEventStreamOptions, Pa as IntelligenceReportCompareTo, Pi as GpuLeaseManager, Pt as SessionInterruptOptions, Qn as SSHCredentials, Ra as PromptOptions, S as SnapshotResult, Sr as SandboxShape, St as ListMessagesOptions, Tr as SandboxStatus, Tt as SendSessionMessageRequest, Vn as SandboxFleetTraceBundle, Vt as TaskSessionChanges, W as ProcessManager, Wi as CodeExecutionOptions, Wt as TaskSessionInfo, Y as PreviewLinkManager, Ya as BackendConfig, Zn as SSHCommandDescriptor, Zr as FileSystem, _o as RawEvidenceExportOptions, _r as TeePublicKeyResponse, _t as CreateSessionOptions, aa as ForkIdempotency, ar as SandboxTerminalAttachOptions, at as GitBranch, b as SnapshotProvenance, bt as DispatchedSession, c as SandboxDeleteAcknowledgement, co as SandboxEnvRecovery, ct as GitStatus, d as SandboxOperationInfo, da as RolloutStartResult, di as WriteManyOptions, dr as StartupDiagnostics, ea as HttpClient, er as SandboxInfo, f as SandboxOperationKind, fi as SearchMatch, ft as CommitTaskSessionOptions, go as RawEvidenceDirectoryExport, gt as ConversationTurnResult, h as SnapshotDeleteAcknowledgement, hi as ExecResult, ho as RawEvidenceBoxExportOptions, hr as TeeAttestationResponse, ht as ConversationTurnOptions, ia as ForkCounts, ir as SandboxRuntimeHealth, ja as EventStreamOptions, jr as EgressManager, k as ProvisionResult, ki as GpuLease, kt as SessionExecutionInfo, l as SandboxDeleteOptions, la as RolloutOptions, li as WriteFileOptions, lo as SandboxEnvRecoveryView, ma as WaitForRolloutOptions, mi as ExecOptions, mo as RawEvidenceBoxDirectoryExport, mt as CompletedTurnResult, nt as PermissionsManager, oa as ForkLookupOptions, oo as SandboxCreateReceipt, ot as GitCommit, p as SandboxOperationState, pi as SearchOptions, pr as TeeAttestationOptions, qa as TurnBackendConfig, ra as BranchOptions, ri as FileWriteResult, s as RestoreSnapshotOptions, sa as Rollout, so as WorkspaceImagePublishResult$1, st as GitDiff, t as InstalledTool, ta as JsonValue, tr as SandboxPortBinding, ui as WriteManyFile, ur as SandboxTerminals, v as SnapshotInfo, vt as CreateTaskSessionOptions, w as WorkspaceOperationLookup, wt as SendSessionMessageOptions, xo as InteractionResolutionAcknowledgement, xt as DriveTurnOptions, y as SnapshotOptions, yt as DispatchPromptOptions, za as PromptResult, zt as SessionResultOptions } from "./types-BxZX2EVj.js";
|
|
3
3
|
import { c as TerminalStreamReconnectAuthority, f as MintScopedTokenOptions, n as TerminalStream, o as TerminalStreamHandlers, p as ScopedToken, y as TerminalReadyInfo } from "./terminal-stream-DgD7GlFi.js";
|
|
4
4
|
import { f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-B6sySQFu.js";
|
|
5
5
|
import { r as InteractiveAttachRequest } from "./interactive-controller-BSWoA0YE.js";
|
|
6
|
-
import { z as SandboxLines } from "./lines-
|
|
7
|
-
import { g as SandboxError } from "./
|
|
6
|
+
import { z as SandboxLines } from "./lines-hsXVdk60.js";
|
|
7
|
+
import { g as SandboxError } from "./error-classes-BWS1a9HO.js";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { AgentInteractiveSessionAttach, AgentInteractiveSessionControlClaim, AgentInteractiveSessionControlClaimAcknowledgement, AgentInteractiveSessionControlClaimRequest, AgentInteractiveSessionPromptAcknowledgement, AgentInteractiveSessionPromptCommand, AgentInteractiveSessionRef, AgentInteractiveSessionStart, AgentInteractiveSessionStopAcknowledgement, AgentInteractiveSessionStopCommand, AgentInteractiveTerminalSession, AgentInteractiveTerminalSession as AgentInteractiveTerminalSession$1, AgentProfile, AgentProfileFileMount, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, InteractionAcknowledgement, InteractionData, InteractionRequest, InteractionResponseCommand, TerminalOutputEvent, TerminalReplayWindow, agentInteractiveSessionPromptRequestDigest } from "@tangle-network/agent-interface";
|
|
10
10
|
|
package/dist/tangle/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as ITangleJobsAbi, T as SandboxCreateResponseParamTypes, _ as JOB_SANDBOX_DELETE, a as fetchQuote, b as TangleSandboxClientConfig, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as JOB_SANDBOX_CREATE, 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 TANGLE_CHAIN_ID, w as SandboxCreateParamTypes, x as AgentSandboxBlueprintAbi, y as TANGLE_JOBS_CONTRACT } from "../index-
|
|
1
|
+
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as ITangleJobsAbi, T as SandboxCreateResponseParamTypes, _ as JOB_SANDBOX_DELETE, a as fetchQuote, b as TangleSandboxClientConfig, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as JOB_SANDBOX_CREATE, 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 TANGLE_CHAIN_ID, w as SandboxCreateParamTypes, x as AgentSandboxBlueprintAbi, y as TANGLE_JOBS_CONTRACT } from "../index-xS3mRl69.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 JOB_SANDBOX_DELETE, f as TANGLE_CHAIN_ID, g as JsonResponseParamTypes, h as ITangleJobsAbi, i as jobQuoteDigest, l as OperatorSessionError, m as AgentSandboxBlueprintAbi, n as fetchQuote, o as validateQuote, p as TANGLE_JOBS_CONTRACT, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as JOB_SANDBOX_CREATE, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-
|
|
1
|
+
import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as JOB_SANDBOX_DELETE, f as TANGLE_CHAIN_ID, g as JsonResponseParamTypes, h as ITangleJobsAbi, i as jobQuoteDigest, l as OperatorSessionError, m as AgentSandboxBlueprintAbi, n as fetchQuote, o as validateQuote, p as TANGLE_JOBS_CONTRACT, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as JOB_SANDBOX_CREATE, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-BBpguPfj.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,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
1
|
+
import { r as readResponseJson } from "./errors-AB5BD3FM.js";
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-BJkpVtLN.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-B6gap92T.js";
|
|
4
4
|
//#region src/tangle/abi.ts
|
|
5
5
|
/**
|
|
@@ -2706,6 +2706,13 @@ interface SdkTimingEntry {
|
|
|
2706
2706
|
socket?: "new" | "reused";
|
|
2707
2707
|
/** `sdk.request` only; absent when the runtime exposes no socket events. */
|
|
2708
2708
|
phases?: SdkRequestPhases;
|
|
2709
|
+
/** Observed diagnostic events on failure; none proves peer receipt.
|
|
2710
|
+
* Absent without capture; false means unobserved, not proof nothing was sent. */
|
|
2711
|
+
failure?: {
|
|
2712
|
+
requestCreated: boolean;
|
|
2713
|
+
requestHeadersSent: boolean;
|
|
2714
|
+
responseHeadersReceived: boolean;
|
|
2715
|
+
};
|
|
2709
2716
|
}
|
|
2710
2717
|
type SdkTimingHook = (entry: SdkTimingEntry) => void;
|
|
2711
2718
|
//#endregion
|
|
@@ -2721,6 +2728,8 @@ interface HttpClient {
|
|
|
2721
2728
|
getBaseUrl?(): string | undefined;
|
|
2722
2729
|
/** Receives the SDK's timing spans; see `SandboxConfig.onTiming`. */
|
|
2723
2730
|
readonly onTiming?: SdkTimingHook | undefined;
|
|
2731
|
+
/** False keeps exec on the API; see `SandboxConfig.directExec`. */
|
|
2732
|
+
readonly directExec?: boolean;
|
|
2724
2733
|
}
|
|
2725
2734
|
type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
2726
2735
|
[key: string]: JsonValue;
|
|
@@ -4662,6 +4671,15 @@ interface SandboxConfig {
|
|
|
4662
4671
|
* A hook that throws is ignored. With no hook the SDK measures nothing.
|
|
4663
4672
|
*/
|
|
4664
4673
|
onTiming?: SdkTimingHook;
|
|
4674
|
+
/**
|
|
4675
|
+
* Send exec-family runtime calls (spawn, exec, terminal) straight to the
|
|
4676
|
+
* sandbox's cell when its connection carries an exec grant (`execHost` and
|
|
4677
|
+
* `execToken`), instead of through the API and the orchestrator. Default
|
|
4678
|
+
* `true`. A command the cell provably never received falls back to the
|
|
4679
|
+
* API, which resumes a stopped sandbox. `false` sends every runtime call
|
|
4680
|
+
* through the API.
|
|
4681
|
+
*/
|
|
4682
|
+
directExec?: boolean;
|
|
4665
4683
|
}
|
|
4666
4684
|
/**
|
|
4667
4685
|
* Status of a sandbox instance.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.63.
|
|
3
|
+
"version": "0.63.18",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -159,8 +159,8 @@
|
|
|
159
159
|
"vitest": "^4.1.11",
|
|
160
160
|
"ws": "^8.20.0",
|
|
161
161
|
"yjs": "13.6.30",
|
|
162
|
-
"@repo/shared": "0.0.0",
|
|
163
162
|
"@products/sandbox-test-utils": "0.0.0",
|
|
163
|
+
"@repo/shared": "0.0.0",
|
|
164
164
|
"@tangle-network/agent-profile-materialize": "0.26.0",
|
|
165
165
|
"@tangle-network/cli-agent-registry": "0.10.2",
|
|
166
166
|
"@tangle-network/runtime-contracts": "0.19.0",
|
|
@@ -168,8 +168,8 @@
|
|
|
168
168
|
"@tangle-network/sse-core": "0.0.0"
|
|
169
169
|
},
|
|
170
170
|
"tangleRelease": {
|
|
171
|
-
"sourceSha": "
|
|
172
|
-
"mergedAt": "2026-10-
|
|
171
|
+
"sourceSha": "2939a0310258b97f1b31e96cf8ce6b535bb05ee6",
|
|
172
|
+
"mergedAt": "2026-10-20T20:02:40-06:00"
|
|
173
173
|
},
|
|
174
174
|
"scripts": {
|
|
175
175
|
"build": "node scripts/build-dist.mjs",
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
"check-types": "tsc --noEmit && tsc --noEmit -p tsconfig.type-tests.json && tsc --noEmit -p tsconfig.examples.json && node scripts/generate-quickstart-examples.mjs --check",
|
|
178
178
|
"check-examples": "tsc -p tsconfig.examples.json && tsc -p tsconfig.worker-example.json",
|
|
179
179
|
"verify-dist": "bash scripts/verify-dist.sh",
|
|
180
|
-
"test": "vitest run",
|
|
180
|
+
"test": "pnpm run build && vitest run",
|
|
181
181
|
"test:watch": "vitest",
|
|
182
182
|
"test:coverage": "vitest run --coverage",
|
|
183
183
|
"test:e2e": "vitest run --config vitest.e2e.config.ts",
|