@tangle-network/sandbox 1.0.118 → 1.0.120
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 +2 -2
- package/dist/agent/preview.d.ts +1 -1
- package/dist/{agent-run-outcome-1zf14Qvo.d.ts → agent-run-outcome-DwA5rn-P.d.ts} +2 -2
- package/dist/{browser-interactive-control-controller-DjgTiPSK.d.ts → browser-interactive-control-controller-B3P192sF.d.ts} +1 -1
- package/dist/{client-51zzwdCg.d.ts → client-CimQxH-A.d.ts} +5 -5
- package/dist/{client-DvLeWxd6.js → client-O5_N175q.js} +1 -1
- package/dist/{core-CPmZrgBo.js → core-yHfMbWMG.js} +1 -1
- package/dist/core.d.ts +7 -7
- package/dist/core.js +5 -5
- package/dist/{index-DlCzW_SB.d.ts → index-ChKSM_if.d.ts} +5 -5
- package/dist/index.d.ts +10 -10
- package/dist/index.js +6 -6
- package/dist/interactive-control.d.ts +1 -1
- package/dist/{interactive-controller-U_ClwSA2.d.ts → interactive-controller-DFpM_UPj.d.ts} +3 -3
- package/dist/{lines-xAhkGjwI.d.ts → lines-B5m_Cz9t.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/{preview-Dhe5MKdu.d.ts → preview-Cg38QkTD.d.ts} +3 -3
- package/dist/{public-templates-B-bkdTUO.d.ts → public-templates-B-t1QILX.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/runtime.d.ts +5 -5
- package/dist/{sandbox-gF473YxX.js → sandbox-FrS60n3X.js} +2 -7
- 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-TNrvVHbo.js → tangle-DqvFn9wa.js} +1 -1
- package/dist/{terminal-stream-types-CpPRMcYv.d.ts → terminal-stream-types-DS0FCaXq.d.ts} +12 -1
- package/dist/{types-DeLaTirQ.d.ts → types-UtRlYsxh.d.ts} +4372 -4377
- package/package.json +6 -6
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-ChKSM_if.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-DqvFn9wa.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-FrS60n3X.js";
|
|
2
2
|
import { i as readResponseJson } from "./errors-ystNl7Ae.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
|
|
@@ -383,6 +383,17 @@ declare class ServerError extends SandboxError {
|
|
|
383
383
|
}
|
|
384
384
|
//#endregion
|
|
385
385
|
//#region src/errors.d.ts
|
|
386
|
+
/**
|
|
387
|
+
* Parse an error response from the API.
|
|
388
|
+
* @param status - HTTP status code
|
|
389
|
+
* @param body - Response body text
|
|
390
|
+
* @param context - Optional request context for better error messages
|
|
391
|
+
*/
|
|
392
|
+
declare function parseErrorResponse(status: number, body: string, context?: {
|
|
393
|
+
method?: string;
|
|
394
|
+
path?: string;
|
|
395
|
+
allPreviousCreateAttemptsRefused?: boolean;
|
|
396
|
+
}, headers?: Headers): SandboxError;
|
|
386
397
|
/** A protocol `error` control frame or a transport failure. */
|
|
387
398
|
declare class TerminalStreamError extends Error {
|
|
388
399
|
/** Protocol error code (e.g. `INIT_FAILED`) or `TRANSPORT` for socket faults. */
|
|
@@ -2825,4 +2836,4 @@ interface TerminalStreamOptions {
|
|
|
2825
2836
|
mintMs?: number;
|
|
2826
2837
|
}
|
|
2827
2838
|
//#endregion
|
|
2828
|
-
export { ProxySecretReceipt as $, AgentInteractiveSessionStatus as A, InteractionAcknowledgement as B, AgentInteractiveSessionAttach as C,
|
|
2839
|
+
export { ProxySecretReceipt as $, AgentInteractiveSessionStatus as A, SandboxCreateReceipt as At, InteractionAcknowledgement as B, AgentInteractiveSessionAttach as C, ServerError as Ct, AgentInteractiveSessionPromptAcknowledgement as D, TimeoutError as Dt, AgentInteractiveSessionControlClaimRequest as E, StreamInterruptionReason as Et, TerminalOutputEvent as F, AgentProfileConfidential as G, InteractionResponseCommand as H, TerminalReplayWindow as I, AgentProfileMcpServer as J, AgentProfileConfigValue as K, AgentExactRunControlRef as L, AgentInteractiveSessionStopCommand as M, AgentInteractiveTerminalSession as N, AgentInteractiveSessionPromptCommand as O, ValidationError as Ot, agentInteractiveSessionPromptRequestDigest as P, ReasoningEffort as Q, AgentRunCancellationAcknowledgement as R, AgentInteractiveSessionStart as S, SandboxFailureDetail as St, AgentInteractiveSessionControlClaimAcknowledgement as T, StreamInterruptedError as Tt, AgentProfile as U, InteractionRequest as V, AgentProfileCapabilities as W, AgentProfileSeat as X, AgentProfileMetadata as Y, AgentProfileValidationResult as Z, TerminalReadyTimings as _, ProfileFileMountPathError as _t, TerminalStreamOptions as a, BranchFanoutExceedsHostError as at, SandboxSizePreset as b, SandboxError as bt, MintInteractiveSessionTokenOptions as c, EdgeNotReadyError as ct, ScopedTokenScope as d, GpuProviderNotConfiguredError as dt, InteractionData as et, TERMINAL_WS_ECHO_SUBPROTOCOL as f, GpuProviderRequirement as ft, TerminalReadyInfo as g, PartialFailureError as gt, TerminalOutputMessage as h, NotFoundError as ht, TerminalStreamHandlers as i, AuthError as it, AgentInteractiveSessionStopAcknowledgement as j, AgentInteractiveSessionRef as k, SandboxCreateOutcome as kt, MintScopedTokenOptions as l, EgressProxyRecoveryError as lt, TerminalInteractiveSessionIdentity as m, NetworkError as mt, TerminalStreamApiKey as n, TerminalStreamError as nt, TerminalStreamReconnectAuthority as o, CapabilityError as ot, TerminalExitInfo as p, KeyBudgetExhaustedError as pt, AgentProfileFileMount as q, TerminalStreamBearerToken as r, parseErrorResponse as rt, TerminalStreamToken as s, CompliancePlacementError as st, TerminalAttachTimings as t, PlanContinuation as tt, ScopedToken as u, FileWriteConflictError as ut, TerminalStreamAuthFormat as v, QuotaError as vt, AgentInteractiveSessionControlClaim as w, StateError as wt, AgentRuntimeAttachments as x, SandboxErrorJson as xt, SANDBOX_SIZE_PRESET_NAMES as y, ResumeEnvRequiredError as yt, AgentRunCancellationRequest as z };
|