@tangle-network/sandbox 0.63.20 → 0.63.22
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 +5 -5
- package/dist/agent/preview.d.ts +1 -1
- package/dist/agent/preview.js +2 -2
- package/dist/{agent-run-outcome-DlYhZnhD.d.ts → agent-run-outcome-C-VR-L0I.d.ts} +1 -1
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.js +1 -1
- package/dist/{backend-types-D6bYbvMB.js → backend-types-zuUBEJO1.js} +35 -1
- package/dist/{browser-interactive-control-controller-B6sySQFu.d.ts → browser-interactive-control-controller-CvObO_Kf.d.ts} +1 -1
- package/dist/{browser-interactive-control-controller-BJf0P_J4.js → browser-interactive-control-controller-DHx53yre.js} +16 -1
- package/dist/{chunked-upload-KJyRCAiC.js → chunked-upload-DN2twsUu.js} +1 -1
- package/dist/{chunked-upload-file-DfiGzqaR.js → chunked-upload-file-Dpv1YsoA.js} +2 -2
- package/dist/{cli-auth-bundle-CMgB8Ec3.js → cli-auth-bundle-R0Y7rngn.js} +8 -8
- package/dist/{client-Dl22CVOz.js → client-CGcWP4FX.js} +3271 -3271
- package/dist/client-CqpKC6n3.d.ts +6066 -0
- package/dist/collaboration/index.d.ts +1 -1
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-XHg5BEUI.js → collaboration-g_HzXa6f.js} +1 -1
- package/dist/core.d.ts +6 -7
- package/dist/core.js +5 -5
- package/dist/{direct-http2-Dq7tq6jV.js → direct-http2-CoGVOqVR.js} +1 -1
- package/dist/{errors-AB5BD3FM.js → errors-BfbOP_rx.js} +19 -1
- package/dist/{sandbox-DDdPhk2j.d.ts → index-D4OBUP5M.d.ts} +2105 -1461
- package/dist/index.d.ts +12 -4747
- package/dist/index.js +15 -11
- package/dist/intelligence/index.js +1 -1
- package/dist/interactive-control.d.ts +1 -1
- package/dist/interactive-control.js +1 -1
- package/dist/{interactive-controller-BSWoA0YE.d.ts → interactive-controller-BBwB_5QQ.d.ts} +3 -2
- package/dist/{interactive-controller-zE6hwv3C.js → interactive-controller-D4N4zqmu.js} +578 -610
- package/dist/{lines-hsXVdk60.d.ts → lines-5m11CEj-.d.ts} +21 -17
- package/dist/lines-C5ER4aN_.js +298 -0
- package/dist/lines.d.ts +1 -1
- package/dist/lines.js +1 -295
- package/dist/{local-cli-auth-C4QcPdZt.js → local-cli-auth-DVUBOY4y.js} +1 -1
- package/dist/{mcp-local-BYHcA72Z.js → mcp-local-BjLG7VHY.js} +1 -1
- package/dist/{preview-D8UAF7F9.d.ts → preview-CcJBQSjB.d.ts} +3 -3
- package/dist/{public-templates-BP3sTaSb.d.ts → public-templates-nv4AFFVc.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/public-templates.js +1 -1
- package/dist/runtime.d.ts +47 -40
- package/dist/runtime.js +4 -4
- package/dist/{sandbox-BJkpVtLN.js → sandbox-BDgvO9Z3.js} +9256 -9215
- package/dist/{secp256k1-DoWlH6ff.js → secp256k1-CmLpsmWl.js} +1 -1
- package/dist/session-gateway/index.d.ts +16 -17
- package/dist/session-gateway/index.js +20 -23
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-BBpguPfj.js → tangle-D-VfQGTu.js} +144 -138
- package/dist/terminal-stream-types-ClZCArRg.d.ts +662 -0
- package/dist/{types-BxZX2EVj.d.ts → types-BjyQe_CI.d.ts} +393 -315
- package/package.json +6 -6
- package/dist/client-DraGbXEP.d.ts +0 -1249
- package/dist/error-classes-BWS1a9HO.d.ts +0 -321
- package/dist/index-xS3mRl69.d.ts +0 -578
- package/dist/managed-process-B-pXdMLC.d.ts +0 -15
- package/dist/terminal-stream-DgD7GlFi.d.ts +0 -388
- /package/dist/{cli-auth-bundle-BKsrsbxy.d.ts → cli-auth-bundle-Dyw3hCGx.d.ts} +0 -0
- /package/dist/{index-DfA_usrZ.d.ts → index-C8VSFtWl.d.ts} +0 -0
- /package/dist/{index-CWUW8pqr.d.ts → index-CVjTnRWP.d.ts} +0 -0
- /package/dist/{keep-alive-fetch-CXvfSczd.js → keep-alive-fetch-CuwGi7gz.js} +0 -0
- /package/dist/{line-application-UtPFP0o4.js → line-application-DY9ZTdgF.js} +0 -0
- /package/dist/{preview-operations-Bvo5YcIq.js → preview-operations-Ca02vPDJ.js} +0 -0
- /package/dist/{raw-evidence-archive-Bxk6fUjS.js → raw-evidence-archive-CDYDqHNv.js} +0 -0
- /package/dist/{utils-B6gap92T.js → utils-BGvM02yJ.js} +0 -0
|
@@ -1,321 +0,0 @@
|
|
|
1
|
-
import { oo as SandboxCreateReceipt } from "./types-BxZX2EVj.js";
|
|
2
|
-
|
|
3
|
-
//#region src/error-classes.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Base error class for all Sandbox SDK errors.
|
|
6
|
-
*/
|
|
7
|
-
declare class SandboxError extends Error {
|
|
8
|
-
/** HTTP status code if applicable */
|
|
9
|
-
readonly status?: number;
|
|
10
|
-
/** Error code for programmatic handling */
|
|
11
|
-
readonly code: string;
|
|
12
|
-
/** Best-effort origin of the failing request */
|
|
13
|
-
readonly origin?: SandboxErrorOrigin;
|
|
14
|
-
/** Request path or endpoint when known */
|
|
15
|
-
readonly endpoint?: string;
|
|
16
|
-
/** Retry-after duration in ms when surfaced by the upstream */
|
|
17
|
-
readonly retryAfterMs?: number;
|
|
18
|
-
/** Sidecar version when the runtime emitted it */
|
|
19
|
-
readonly sidecarVersion?: string;
|
|
20
|
-
/** Sidecar image/tag/sha when the runtime emitted it */
|
|
21
|
-
readonly containerImage?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Seconds the control plane expects to need before it can serve this
|
|
24
|
-
* request, when it published one. Today only a capacity refusal on create
|
|
25
|
-
* carries it: the cell sizes it from the host add already in flight plus
|
|
26
|
-
* the measured p95 host-birth time, so it is a real wait, not a backoff
|
|
27
|
-
* hint. `retryAfterMs` paces the SDK's own retry; this is the number to
|
|
28
|
-
* show a human or feed to a scheduler.
|
|
29
|
-
*/
|
|
30
|
-
readonly etaSeconds?: number;
|
|
31
|
-
/**
|
|
32
|
-
* On create's top-level error, proves this call's attempts admitted no
|
|
33
|
-
* sandbox. Absence is unknown. Earlier errors in `cause` describe only
|
|
34
|
-
* their attempt prefix, not subsequent attempts or earlier calls using
|
|
35
|
-
* the same idempotency key.
|
|
36
|
-
*/
|
|
37
|
-
readonly createFailureDisposition?: "not-admitted";
|
|
38
|
-
constructor(message: string, code: string, status?: number, metadata?: SandboxErrorMetadata);
|
|
39
|
-
}
|
|
40
|
-
type SandboxErrorOrigin = "sidecar" | "sandbox-api" | "control-plane" | "runtime" | "unknown";
|
|
41
|
-
interface SandboxErrorMetadata {
|
|
42
|
-
origin?: SandboxErrorOrigin;
|
|
43
|
-
endpoint?: string;
|
|
44
|
-
retryAfterMs?: number;
|
|
45
|
-
sidecarVersion?: string;
|
|
46
|
-
containerImage?: string;
|
|
47
|
-
etaSeconds?: number;
|
|
48
|
-
/** How long the operation ran, for a TimeoutError that measured it. */
|
|
49
|
-
elapsedMs?: number;
|
|
50
|
-
createFailureDisposition?: "not-admitted";
|
|
51
|
-
}
|
|
52
|
-
type SandboxErrorJson = string | number | boolean | null | {
|
|
53
|
-
[key: string]: SandboxErrorJson;
|
|
54
|
-
} | SandboxErrorJson[];
|
|
55
|
-
type SandboxFailureDetail = {
|
|
56
|
-
[key: string]: SandboxErrorJson;
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* Authentication failed or API key is invalid.
|
|
60
|
-
*/
|
|
61
|
-
declare class AuthError extends SandboxError {
|
|
62
|
-
constructor(message?: string, metadata?: SandboxErrorMetadata);
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* The requested resource was not found.
|
|
66
|
-
*/
|
|
67
|
-
declare class NotFoundError extends SandboxError {
|
|
68
|
-
/** The resource type that was not found */
|
|
69
|
-
readonly resourceType: string;
|
|
70
|
-
/** The resource ID that was not found */
|
|
71
|
-
readonly resourceId: string;
|
|
72
|
-
constructor(resourceType: string, resourceId: string, metadata?: SandboxErrorMetadata, message?: string, code?: string);
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Account quota or rate limit exceeded.
|
|
76
|
-
*/
|
|
77
|
-
declare class QuotaError extends SandboxError {
|
|
78
|
-
/** The type of quota that was exceeded */
|
|
79
|
-
readonly quotaType: string;
|
|
80
|
-
/** Current usage */
|
|
81
|
-
readonly current?: number;
|
|
82
|
-
/** Maximum allowed */
|
|
83
|
-
readonly limit?: number;
|
|
84
|
-
/** Suggested retry-after duration in ms */
|
|
85
|
-
readonly retryAfterMs?: number;
|
|
86
|
-
constructor(quotaType: string, message?: string, current?: number, limit?: number, metadata?: SandboxErrorMetadata, status?: number);
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* The requested capability is unavailable for the account, driver, or sandbox.
|
|
90
|
-
*/
|
|
91
|
-
declare class CapabilityError extends SandboxError {
|
|
92
|
-
/** Capability or feature that was rejected when known */
|
|
93
|
-
readonly capability?: string;
|
|
94
|
-
constructor(message: string, code?: string, status?: number, metadata?: SandboxErrorMetadata, capability?: string);
|
|
95
|
-
}
|
|
96
|
-
/** What one supported GPU provider needs, as a refusal reports it. */
|
|
97
|
-
interface GpuProviderRequirement {
|
|
98
|
-
provider: string;
|
|
99
|
-
/** `ready`, `credential-invalid`, `unverified`, `not-configured`, `disabled`. */
|
|
100
|
-
state: string;
|
|
101
|
-
/** Orchestrator environment variables it needs (`A|B`: either). */
|
|
102
|
-
envVars: string[];
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* No configured GPU provider can take the lease: none is configured, the
|
|
106
|
-
* named one is not, or the provider refused its credential. Status 503, code
|
|
107
|
-
* `GPU_PROVIDER_NOT_CONFIGURED`. The message names every supported provider
|
|
108
|
-
* and the orchestrator variables it needs; `providers` carries the same.
|
|
109
|
-
*/
|
|
110
|
-
declare class GpuProviderNotConfiguredError extends CapabilityError {
|
|
111
|
-
readonly providers: GpuProviderRequirement[];
|
|
112
|
-
constructor(message: string, providers?: GpuProviderRequirement[], status?: number, metadata?: SandboxErrorMetadata);
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* A multi-resource operation failed for one or more branches.
|
|
116
|
-
*/
|
|
117
|
-
declare class PartialFailureError extends SandboxError {
|
|
118
|
-
/** Per-resource failures returned by the API when available */
|
|
119
|
-
readonly failures?: SandboxFailureDetail[];
|
|
120
|
-
/** The operation that failed after another resource was already created. */
|
|
121
|
-
readonly cause?: unknown;
|
|
122
|
-
/** Allocation returned before create readiness failed. */
|
|
123
|
-
readonly allocationId?: string;
|
|
124
|
-
/** Key used for the create call that returned the allocation. */
|
|
125
|
-
readonly idempotencyKey?: string;
|
|
126
|
-
/** Ownership verdict returned by that create call, if available. */
|
|
127
|
-
readonly createReceipt?: SandboxCreateReceipt | null;
|
|
128
|
-
constructor(message: string, code?: string, status?: number, metadata?: SandboxErrorMetadata, failures?: SandboxFailureDetail[], cause?: unknown, createFailure?: {
|
|
129
|
-
allocationId: string;
|
|
130
|
-
idempotencyKey: string;
|
|
131
|
-
createReceipt: SandboxCreateReceipt | null;
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* The request was invalid or malformed.
|
|
136
|
-
*/
|
|
137
|
-
declare class ValidationError extends SandboxError {
|
|
138
|
-
/** Field-level validation errors */
|
|
139
|
-
readonly fields?: Record<string, string>;
|
|
140
|
-
constructor(message: string, fields?: Record<string, string>, metadata?: SandboxErrorMetadata, code?: string);
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* A profile file mount names a path that the sidecar file API refuses: an
|
|
144
|
-
* absolute path outside `SANDBOX_FILE_API_ABSOLUTE_ROOTS`. create() throws it
|
|
145
|
-
* before it provisions a sandbox, and a turn throws it before any write. The
|
|
146
|
-
* status is 422 and the code is `PROFILE_FILE_MOUNT_OUTSIDE_ROOTS`: a retry
|
|
147
|
-
* with the same profile gets the same refusal.
|
|
148
|
-
*/
|
|
149
|
-
declare class ProfileFileMountPathError extends SandboxError {
|
|
150
|
-
/** The refused mount path, exactly as the profile gave it. */
|
|
151
|
-
readonly path: string;
|
|
152
|
-
constructor(path: string, message: string, code: string, metadata?: SandboxErrorMetadata);
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* The sandbox is not in a valid state for the requested operation.
|
|
156
|
-
*/
|
|
157
|
-
declare class StateError extends SandboxError {
|
|
158
|
-
/** Current state of the sandbox */
|
|
159
|
-
readonly currentState: string;
|
|
160
|
-
/** Required state for the operation */
|
|
161
|
-
readonly requiredState?: string;
|
|
162
|
-
constructor(message: string, currentState: string, requiredState?: string, metadata?: SandboxErrorMetadata, code?: string);
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* The sandbox lifecycle is running, but its consumer-facing runtime edge is
|
|
166
|
-
* still attaching or has failed to attach.
|
|
167
|
-
*/
|
|
168
|
-
declare class EdgeNotReadyError extends SandboxError {
|
|
169
|
-
/** Current public edge state. */
|
|
170
|
-
readonly edgeStatus: "pending" | "failed";
|
|
171
|
-
constructor(message: string, edgeStatus: "pending" | "failed", metadata?: SandboxErrorMetadata);
|
|
172
|
-
}
|
|
173
|
-
declare class FileWriteConflictError extends SandboxError {
|
|
174
|
-
readonly path: string;
|
|
175
|
-
readonly currentHash: string | null;
|
|
176
|
-
readonly currentMtime: number | null;
|
|
177
|
-
readonly expectedHash?: string;
|
|
178
|
-
constructor(message: string, path: string, expectedHash: string | undefined, currentHash: string | null, currentMtime: number | null, metadata?: SandboxErrorMetadata);
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* The Platform key funding the request has no lifetime budget left.
|
|
182
|
-
*
|
|
183
|
-
* A budgeted key funds any number of sandboxes until its budget is spent;
|
|
184
|
-
* then every create, resume, and model credential it funds is refused with
|
|
185
|
-
* this error. The refusal is decided: retrying cannot succeed until the
|
|
186
|
-
* budget is raised or another key is used, so the SDK never retries it.
|
|
187
|
-
*/
|
|
188
|
-
declare class KeyBudgetExhaustedError extends SandboxError {
|
|
189
|
-
/**
|
|
190
|
-
* The key the refusal names: the budgeted key with nothing left when
|
|
191
|
-
* Platform refused a delegation, or the presented key when authentication
|
|
192
|
-
* refused it. Absent when the server named none.
|
|
193
|
-
*/
|
|
194
|
-
readonly keyId?: string;
|
|
195
|
-
/** That key's lifetime budget, in USD, when Platform reported it. */
|
|
196
|
-
readonly budgetUsd?: number;
|
|
197
|
-
/** What that key has spent, in USD. */
|
|
198
|
-
readonly spentUsd?: number;
|
|
199
|
-
/** What that key has reserved for budgeted children, in USD. */
|
|
200
|
-
readonly reservedUsd?: number;
|
|
201
|
-
constructor(message: string, details?: {
|
|
202
|
-
keyId?: string;
|
|
203
|
-
budgetUsd?: number;
|
|
204
|
-
spentUsd?: number;
|
|
205
|
-
reservedUsd?: number;
|
|
206
|
-
}, metadata?: SandboxErrorMetadata);
|
|
207
|
-
}
|
|
208
|
-
declare class EgressProxyRecoveryError extends SandboxError {
|
|
209
|
-
readonly phase: "egress_proxy_recovery";
|
|
210
|
-
constructor(message: string, metadata?: SandboxErrorMetadata);
|
|
211
|
-
}
|
|
212
|
-
/**
|
|
213
|
-
* Resume must build a new runtime, and that runtime needs public env values
|
|
214
|
-
* the platform does not store at rest: a per-run coordination or capability
|
|
215
|
-
* token, or a secret passed at create. Resume again with each key in
|
|
216
|
-
* `missingEnvKeys` in `ResumeOptions.env`.
|
|
217
|
-
*/
|
|
218
|
-
declare class ResumeEnvRequiredError extends SandboxError {
|
|
219
|
-
/** The env keys the next resume must carry. */
|
|
220
|
-
readonly missingEnvKeys: readonly string[];
|
|
221
|
-
constructor(message: string, missingEnvKeys: readonly string[], metadata?: SandboxErrorMetadata);
|
|
222
|
-
}
|
|
223
|
-
/**
|
|
224
|
-
* A branch asked for more children than the parent's host has memory for.
|
|
225
|
-
* Children can only live on the parent's host (their clone is local to its
|
|
226
|
-
* volume), so no other host can take the rest. `maxChildren` is how many
|
|
227
|
-
* children that host admits now; branch that many or fewer, or wait for the
|
|
228
|
-
* host to free memory. Nothing was created and nothing is held.
|
|
229
|
-
*
|
|
230
|
-
* A retry under the same idempotency key replays this refusal unchanged,
|
|
231
|
-
* `maxChildren` included, so the count is the host's room when the key was
|
|
232
|
-
* first used. To branch fewer children, use a new key.
|
|
233
|
-
*/
|
|
234
|
-
declare class BranchFanoutExceedsHostError extends SandboxError {
|
|
235
|
-
/** Children the parent's host admitted when it refused (0 when none). */
|
|
236
|
-
readonly maxChildren?: number;
|
|
237
|
-
/** The fan-out width this request asked for. */
|
|
238
|
-
readonly requestedChildren?: number;
|
|
239
|
-
constructor(message: string, counts: {
|
|
240
|
-
maxChildren?: number;
|
|
241
|
-
requestedChildren?: number;
|
|
242
|
-
}, metadata?: SandboxErrorMetadata);
|
|
243
|
-
}
|
|
244
|
-
/**
|
|
245
|
-
* The request timed out.
|
|
246
|
-
*/
|
|
247
|
-
declare class TimeoutError extends SandboxError {
|
|
248
|
-
/** The operation's configured budget, in milliseconds. NOT how long it ran. */
|
|
249
|
-
readonly timeoutMs: number;
|
|
250
|
-
/**
|
|
251
|
-
* How long the operation actually ran before this error, in milliseconds,
|
|
252
|
-
* when the thrower measured it.
|
|
253
|
-
*
|
|
254
|
-
* `create()` can end before its budget: when a server-supplied `Retry-After`
|
|
255
|
-
* outlasts the remaining budget, no further attempt can follow that sleep,
|
|
256
|
-
* so the create ends there rather than idling. Reading `timeoutMs` as the
|
|
257
|
-
* duration would record a two-minute timeout for a three-second refusal.
|
|
258
|
-
* Absent means the thrower did not measure it; it never means `timeoutMs`.
|
|
259
|
-
*/
|
|
260
|
-
readonly elapsedMs?: number;
|
|
261
|
-
/**
|
|
262
|
-
* The last typed failure the operation had already received when the
|
|
263
|
-
* deadline fired, when there was one.
|
|
264
|
-
*
|
|
265
|
-
* An operation that spends its budget across several attempts (create's
|
|
266
|
-
* bounded POST retry) usually learns the server's failure class on an
|
|
267
|
-
* earlier attempt — `CONTAINER_START_FAILED`, `PROVISIONING_ERROR`,
|
|
268
|
-
* `RATE_LIMIT_EXCEEDED`. Without this field that class dies at the
|
|
269
|
-
* deadline and the caller is left with a timeout that names no cause,
|
|
270
|
-
* which is the last discard in a chain built specifically to deliver it.
|
|
271
|
-
*/
|
|
272
|
-
readonly cause?: SandboxError;
|
|
273
|
-
constructor(timeoutMs: number, message?: string, metadata?: SandboxErrorMetadata, cause?: SandboxError);
|
|
274
|
-
}
|
|
275
|
-
/**
|
|
276
|
-
* A network or connection error occurred.
|
|
277
|
-
*/
|
|
278
|
-
declare class NetworkError extends SandboxError {
|
|
279
|
-
/** The underlying error */
|
|
280
|
-
readonly cause?: Error;
|
|
281
|
-
constructor(message: string, causeOrMetadata?: Error | SandboxErrorMetadata, metadata?: SandboxErrorMetadata);
|
|
282
|
-
}
|
|
283
|
-
/** Why the SDK stopped rejoining an execution whose stream dropped. */
|
|
284
|
-
type StreamInterruptionReason = /** The caller's reconnect window elapsed while the execution stayed unreachable. */"reconnect-window-elapsed" /** The sandbox is stopped, failed, expired or deleted; the run cannot resume. */ | "sandbox-not-running" /** The runtime kept answering that it has no such execution. */ | "execution-not-found";
|
|
285
|
-
/**
|
|
286
|
-
* The stream of an admitted execution ended without its terminal event, and
|
|
287
|
-
* the SDK could not rejoin it. The execution's outcome is UNKNOWN: it may
|
|
288
|
-
* still be running, or it may have finished while no reader was attached.
|
|
289
|
-
* This is never a failure verdict. Rejoin later with `streamPrompt(message,
|
|
290
|
-
* { executionId, lastEventId, sessionId })`, or read the session status.
|
|
291
|
-
*/
|
|
292
|
-
declare class StreamInterruptedError extends SandboxError {
|
|
293
|
-
readonly executionId: string;
|
|
294
|
-
readonly sessionId?: string;
|
|
295
|
-
/** The last event id delivered to the caller; replay resumes after it. */
|
|
296
|
-
readonly lastEventId?: string;
|
|
297
|
-
readonly reason: StreamInterruptionReason;
|
|
298
|
-
/** Last HTTP status the replay endpoint answered, when it answered. */
|
|
299
|
-
readonly lastReplayStatus?: number;
|
|
300
|
-
/** Last execution status the runtime reported, when it reported one. */
|
|
301
|
-
readonly lastExecutionStatus?: string;
|
|
302
|
-
readonly cause?: unknown;
|
|
303
|
-
constructor(details: {
|
|
304
|
-
message: string;
|
|
305
|
-
executionId: string;
|
|
306
|
-
sessionId?: string;
|
|
307
|
-
lastEventId?: string;
|
|
308
|
-
reason: StreamInterruptionReason;
|
|
309
|
-
lastReplayStatus?: number;
|
|
310
|
-
lastExecutionStatus?: string;
|
|
311
|
-
cause?: unknown;
|
|
312
|
-
});
|
|
313
|
-
}
|
|
314
|
-
/**
|
|
315
|
-
* The server returned an unexpected error.
|
|
316
|
-
*/
|
|
317
|
-
declare class ServerError extends SandboxError {
|
|
318
|
-
constructor(message: string, status?: number, metadata?: SandboxErrorMetadata, code?: string);
|
|
319
|
-
}
|
|
320
|
-
//#endregion
|
|
321
|
-
export { TimeoutError as C, StreamInterruptionReason as S, SandboxErrorJson as _, EgressProxyRecoveryError as a, StateError as b, GpuProviderRequirement as c, NotFoundError as d, PartialFailureError as f, SandboxError as g, ResumeEnvRequiredError as h, EdgeNotReadyError as i, KeyBudgetExhaustedError as l, QuotaError as m, BranchFanoutExceedsHostError as n, FileWriteConflictError as o, ProfileFileMountPathError as p, CapabilityError as r, GpuProviderNotConfiguredError as s, AuthError as t, NetworkError as u, SandboxFailureDetail as v, ValidationError as w, StreamInterruptedError as x, ServerError as y };
|