@tangle-network/sandbox 0.60.69 → 0.60.77-develop.20261016230332.7f22d61
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 +46 -0
- 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-BBk2-5vp.d.ts → agent-run-outcome-CTEpjCEZ.d.ts} +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/backend-types-D6bYbvMB.js +42 -0
- package/dist/{browser-interactive-control-controller-JUW3gOGH.d.ts → browser-interactive-control-controller-rpTbyvAS.d.ts} +1 -1
- package/dist/{chunked-upload-BklCn3Li.js → chunked-upload-DtIvkKNo.js} +1 -1
- package/dist/{chunked-upload-file-Cp-iWsWN.js → chunked-upload-file-DnsHEjg0.js} +1 -1
- package/dist/{cli-auth-bundle-D61iX68d.js → cli-auth-bundle-cSJjPeFF.js} +2 -2
- package/dist/{client-DUDqUYDG.js → client-CRkHfByN.js} +21 -9
- package/dist/{client-DVouBFPR.d.ts → client-Lhxo82x1.d.ts} +10 -6
- package/dist/collaboration/index.d.ts +1 -1
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-B2g1j2ey.js → collaboration-DaJU5O0E.js} +1 -1
- package/dist/core.d.ts +6 -6
- package/dist/core.js +3 -3
- package/dist/{errors-iWIsey1D.js → errors-DSJBKmGZ.js} +60 -1
- package/dist/{errors-5j_Hlkm-.d.ts → errors-mPL-qvgF.d.ts} +79 -2
- package/dist/{index-DaJrtipt.d.ts → index-DRto9Ijb.d.ts} +2 -2
- package/dist/index.d.ts +19 -17
- package/dist/index.js +9 -9
- package/dist/intelligence/index.js +1 -1
- package/dist/interactive-control.d.ts +1 -1
- package/dist/{interactive-controller-DaYmUCO_.js → interactive-controller-CJ24g8Va.js} +237 -25
- package/dist/{lines-D07bn-mu.d.ts → lines-DodQslsf.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/lines.js +1 -1
- package/dist/{local-cli-auth-t8KUbrfI.js → local-cli-auth-CBV7Vjk5.js} +1 -1
- package/dist/{managed-process-RMyVq_du.d.ts → managed-process-B7WfqKmi.d.ts} +1 -1
- package/dist/{preview-dIOd13_U.d.ts → preview-wpGGk0bu.d.ts} +3 -3
- package/dist/runtime.d.ts +5 -6
- package/dist/runtime.js +3 -3
- package/dist/{sandbox-C7wOeFZB.d.ts → sandbox-CoIGxzm_.d.ts} +78 -24
- package/dist/{sandbox-Dg0WI1ZF.js → sandbox-DzSEprto.js} +732 -79
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-CaY9_VGA.js → tangle-DHFKq9sn.js} +2 -2
- package/dist/{terminal-stream-CV1pMSKC.d.ts → terminal-stream-jdYomM1m.d.ts} +123 -4
- package/dist/{types-BLCY5T4s.d.ts → types-B_QF-iHm.d.ts} +242 -28
- package/package.json +5 -5
- package/dist/backend-types-C7b_Gpa0.js +0 -59
- package/dist/interactive-controller-DNbLzamS.d.ts +0 -40
- /package/dist/{index-BgmgfYZZ.d.ts → index-DO7GVpk_.d.ts} +0 -0
- /package/dist/{index-DHuHjNie.d.ts → index-DZ27pdB8.d.ts} +0 -0
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-DRto9Ijb.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-DHFKq9sn.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 { C as readResponseJson } from "./errors-DSJBKmGZ.js";
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-DzSEprto.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-B7_9Hl_z.js";
|
|
4
4
|
//#region src/tangle/abi.ts
|
|
5
5
|
/**
|
|
@@ -1,9 +1,34 @@
|
|
|
1
|
-
import { AgentInteractiveSessionControlClaim, AgentInteractiveSessionRef } from "@tangle-network/agent-interface";
|
|
2
1
|
import { z } from "zod";
|
|
2
|
+
import { AgentInteractiveSessionControlClaim, AgentInteractiveSessionRef } from "@tangle-network/agent-interface";
|
|
3
3
|
|
|
4
4
|
//#region ../../../packages/runtime-contracts/dist/terminal-websocket.d.ts
|
|
5
5
|
/** Non-credential protocol selected during a successful terminal handshake. */
|
|
6
6
|
declare const TERMINAL_WS_ECHO_SUBPROTOCOL = "tangle.terminal.v1";
|
|
7
|
+
/**
|
|
8
|
+
* Server stamps for one attach, in epoch milliseconds on the sidecar's clock.
|
|
9
|
+
* They are absolute so a caller can lay them against its own marks and read
|
|
10
|
+
* each leg (client clock skew is the only error). `spawn*` and `initPersistAt`
|
|
11
|
+
* are absent when the attach adopted a PTY that already existed.
|
|
12
|
+
*/
|
|
13
|
+
declare const terminalReadyTimingsSchema: z.ZodObject<{
|
|
14
|
+
upgradeAt: z.ZodNumber;
|
|
15
|
+
authAt: z.ZodNumber;
|
|
16
|
+
initAt: z.ZodNumber;
|
|
17
|
+
loadAt: z.ZodNumber;
|
|
18
|
+
spawnAt: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
initPersistAt: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
loadedAt: z.ZodNumber;
|
|
21
|
+
historyAt: z.ZodNumber;
|
|
22
|
+
historyEvents: z.ZodNumber;
|
|
23
|
+
historyBytes: z.ZodNumber;
|
|
24
|
+
readyAt: z.ZodNumber;
|
|
25
|
+
via: z.ZodEnum<{
|
|
26
|
+
upgrade: "upgrade";
|
|
27
|
+
frame: "frame";
|
|
28
|
+
}>;
|
|
29
|
+
ptid: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
type TerminalReadyTimings = z.infer<typeof terminalReadyTimingsSchema>;
|
|
7
32
|
declare const terminalReadyMessageSchema: z.ZodObject<{
|
|
8
33
|
type: z.ZodLiteral<"ready">;
|
|
9
34
|
connectionId: z.ZodString;
|
|
@@ -15,6 +40,24 @@ declare const terminalReadyMessageSchema: z.ZodObject<{
|
|
|
15
40
|
earliest: z.ZodNumber;
|
|
16
41
|
latest: z.ZodNumber;
|
|
17
42
|
}, z.core.$strip>>;
|
|
43
|
+
timings: z.ZodOptional<z.ZodObject<{
|
|
44
|
+
upgradeAt: z.ZodNumber;
|
|
45
|
+
authAt: z.ZodNumber;
|
|
46
|
+
initAt: z.ZodNumber;
|
|
47
|
+
loadAt: z.ZodNumber;
|
|
48
|
+
spawnAt: z.ZodOptional<z.ZodNumber>;
|
|
49
|
+
initPersistAt: z.ZodOptional<z.ZodNumber>;
|
|
50
|
+
loadedAt: z.ZodNumber;
|
|
51
|
+
historyAt: z.ZodNumber;
|
|
52
|
+
historyEvents: z.ZodNumber;
|
|
53
|
+
historyBytes: z.ZodNumber;
|
|
54
|
+
readyAt: z.ZodNumber;
|
|
55
|
+
via: z.ZodEnum<{
|
|
56
|
+
upgrade: "upgrade";
|
|
57
|
+
frame: "frame";
|
|
58
|
+
}>;
|
|
59
|
+
ptid: z.ZodOptional<z.ZodString>;
|
|
60
|
+
}, z.core.$strip>>;
|
|
18
61
|
}, z.core.$strip>;
|
|
19
62
|
type TerminalReadyMessage = z.infer<typeof terminalReadyMessageSchema>;
|
|
20
63
|
type TerminalReadyInfo = Omit<TerminalReadyMessage, "type">;
|
|
@@ -98,7 +141,16 @@ interface ScopedToken {
|
|
|
98
141
|
declare class TerminalStreamError extends Error {
|
|
99
142
|
/** Protocol error code (e.g. `INIT_FAILED`) or `TRANSPORT` for socket faults. */
|
|
100
143
|
readonly code: string;
|
|
101
|
-
|
|
144
|
+
/**
|
|
145
|
+
* True when the socket never reached OPEN: the upgrade was refused (a
|
|
146
|
+
* WebSocket client cannot read the HTTP status, so a 401 and a network drop
|
|
147
|
+
* look alike) or the runtime rejected the dial's options. No PTY work had
|
|
148
|
+
* started on the client's side of that dial.
|
|
149
|
+
*/
|
|
150
|
+
readonly beforeOpen: boolean;
|
|
151
|
+
constructor(message: string, code: string, options?: {
|
|
152
|
+
beforeOpen?: boolean;
|
|
153
|
+
});
|
|
102
154
|
}
|
|
103
155
|
/**
|
|
104
156
|
* Event callbacks, passed at construction (the same idiom as
|
|
@@ -143,7 +195,41 @@ interface TerminalStreamHandlers {
|
|
|
143
195
|
* Scoped terminal tokens are short-lived (the platform clamps them to <= 15
|
|
144
196
|
* minutes), so a provider lets the SDK re-mint a fresh token per dial.
|
|
145
197
|
*/
|
|
146
|
-
type
|
|
198
|
+
type TerminalStreamBearerToken = string | ScopedToken | ((signal?: AbortSignal) => Promise<string | ScopedToken> | string | ScopedToken);
|
|
199
|
+
/**
|
|
200
|
+
* The account API key, sent as the `Authorization` header of the upgrade
|
|
201
|
+
* instead of a subprotocol credential. Only a runtime that can set headers on
|
|
202
|
+
* a WebSocket upgrade (Node, Bun) can dial this way — see
|
|
203
|
+
* {@link terminalUpgradeHeadersSupported}; a browser keeps a scoped token. The
|
|
204
|
+
* public API proxy takes its owner path for the key, so no scoped token is
|
|
205
|
+
* minted first. Dial the public API proxy with it, never the sidecar directly.
|
|
206
|
+
*/
|
|
207
|
+
interface TerminalStreamApiKey {
|
|
208
|
+
readonly apiKey: string;
|
|
209
|
+
}
|
|
210
|
+
type TerminalStreamToken = TerminalStreamBearerToken | TerminalStreamApiKey;
|
|
211
|
+
/**
|
|
212
|
+
* Wall-clock marks for one attach, in milliseconds on the caller's monotonic
|
|
213
|
+
* clock. `server` holds the sidecar's absolute stamps from the `ready` frame
|
|
214
|
+
* (epoch milliseconds on the sidecar's clock); a caller lays them against its
|
|
215
|
+
* own epoch marks to split each leg.
|
|
216
|
+
*/
|
|
217
|
+
interface TerminalAttachTimings {
|
|
218
|
+
/** The caller's wall to mint the scoped token; absent when the dial used the API key. */
|
|
219
|
+
mintMs?: number;
|
|
220
|
+
/** WebSocket construction to `open`: the upgrade round trip. */
|
|
221
|
+
wsOpenMs: number;
|
|
222
|
+
/** `open` to `ready`. One client/sidecar round trip plus the sidecar's work when `init` was a frame; the sidecar's work alone once the PTY starts on the upgrade. */
|
|
223
|
+
initToReadyMs: number;
|
|
224
|
+
/** `ready` to the first output byte (replayed screen or live output); absent until it arrives. */
|
|
225
|
+
firstByteMs?: number;
|
|
226
|
+
/** The first `write()` to the next output byte; absent until it arrives. */
|
|
227
|
+
echoRttMs?: number;
|
|
228
|
+
/** How the init was offered: on the upgrade URL as well as in the frame (a default-shell attach), or in the frame alone. */
|
|
229
|
+
init: "upgrade" | "frame";
|
|
230
|
+
/** The sidecar's stamps; absent from a sidecar that predates them. */
|
|
231
|
+
server?: TerminalReadyTimings;
|
|
232
|
+
}
|
|
147
233
|
/** Authority refreshed before an interactive stream reconnects. */
|
|
148
234
|
interface TerminalStreamReconnectBinding {
|
|
149
235
|
incarnationId: TerminalInteractiveSessionIdentity["incarnationId"];
|
|
@@ -194,7 +280,23 @@ interface TerminalStreamOptions {
|
|
|
194
280
|
signal?: AbortSignal;
|
|
195
281
|
/** Reclaim interactive authority before a reconnecting dial. */
|
|
196
282
|
reconnectAuthority?: TerminalStreamReconnectAuthority;
|
|
283
|
+
/**
|
|
284
|
+
* Correlation id for this attach: sent as `x-tangle-trace-id` where the
|
|
285
|
+
* runtime can set upgrade headers, and on the upgrade URL and the `init`
|
|
286
|
+
* frame everywhere else. A fresh id is minted when omitted.
|
|
287
|
+
*/
|
|
288
|
+
traceId?: string;
|
|
289
|
+
/** Wall the caller spent minting this dial's credential, reported in {@link TerminalAttachTimings}. */
|
|
290
|
+
mintMs?: number;
|
|
197
291
|
}
|
|
292
|
+
/**
|
|
293
|
+
* Whether this runtime's global `WebSocket` accepts request headers on the
|
|
294
|
+
* upgrade (Node >= 22 through undici, and Bun): the condition for dialing with
|
|
295
|
+
* the API key and for sending `x-tangle-trace-id` as a header. Browsers and
|
|
296
|
+
* Workers cannot. A runtime that is judged able but ignores the headers is
|
|
297
|
+
* still safe: the upgrade is refused, and the caller dials with a scoped token.
|
|
298
|
+
*/
|
|
299
|
+
declare function terminalUpgradeHeadersSupported(): boolean;
|
|
198
300
|
/**
|
|
199
301
|
* Client for one terminal WebSocket connection. Construct via
|
|
200
302
|
* {@link TerminalStream.connect}, which resolves once the server
|
|
@@ -207,6 +309,14 @@ declare class TerminalStream {
|
|
|
207
309
|
private readonly interactiveIdentity;
|
|
208
310
|
private readonly initMessage;
|
|
209
311
|
private readonly handlers;
|
|
312
|
+
private readonly attachTraceId;
|
|
313
|
+
private readonly initOnUpgrade;
|
|
314
|
+
private readonly dialStartedAt;
|
|
315
|
+
private openedAt;
|
|
316
|
+
private readyAt;
|
|
317
|
+
private firstByteAt;
|
|
318
|
+
private firstWriteAt;
|
|
319
|
+
private echoRttMs;
|
|
210
320
|
private readyInfo;
|
|
211
321
|
private closed;
|
|
212
322
|
private closeWaiters;
|
|
@@ -228,6 +338,15 @@ declare class TerminalStream {
|
|
|
228
338
|
get connectionId(): string;
|
|
229
339
|
/** The server's `ready` acknowledgement. Set once `connect()` resolves. */
|
|
230
340
|
get ready(): TerminalReadyInfo;
|
|
341
|
+
/** Correlation id of this attach (`x-tangle-trace-id` / `traceId`). */
|
|
342
|
+
get traceId(): string;
|
|
343
|
+
/**
|
|
344
|
+
* Timings of this attach. `firstByteMs` and `echoRttMs` appear once the
|
|
345
|
+
* stream has produced the output they measure.
|
|
346
|
+
*/
|
|
347
|
+
get timings(): TerminalAttachTimings;
|
|
348
|
+
/** Stamp the first output byte after `ready`, and the first one after the first write. */
|
|
349
|
+
private noteOutput;
|
|
231
350
|
/** True while the socket is open. */
|
|
232
351
|
get isOpen(): boolean;
|
|
233
352
|
/**
|
|
@@ -267,4 +386,4 @@ declare class TerminalStream {
|
|
|
267
386
|
private assertOpen;
|
|
268
387
|
}
|
|
269
388
|
//#endregion
|
|
270
|
-
export {
|
|
389
|
+
export { TerminalInteractiveSessionIdentity as _, TerminalStreamError as a, TerminalReadyTimings as b, TerminalStreamReconnectAuthority as c, MintInteractiveSessionTokenOptions as d, MintScopedTokenOptions as f, TerminalExitInfo as g, TERMINAL_WS_ECHO_SUBPROTOCOL as h, TerminalStreamBearerToken as i, TerminalStreamToken as l, ScopedTokenScope as m, TerminalStream as n, TerminalStreamHandlers as o, ScopedToken as p, TerminalStreamApiKey as r, TerminalStreamOptions as s, TerminalAttachTimings as t, terminalUpgradeHeadersSupported as u, TerminalOutputMessage as v, TerminalStreamAuthFormat as x, TerminalReadyInfo as y };
|
|
@@ -1,25 +1,39 @@
|
|
|
1
1
|
import { t as CliAuthReference } from "./cli-auth-bundle-ODe06Ts7.js";
|
|
2
|
-
import {
|
|
3
|
-
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
4
|
-
import { AgentExactRunControlRef, AgentProfile, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileValidationResult, AgentRuntimeAttachments, HarnessType, ReasoningEffort, SandboxSizePreset } from "@tangle-network/agent-interface";
|
|
2
|
+
import { n as TerminalStream, o as TerminalStreamHandlers } from "./terminal-stream-jdYomM1m.js";
|
|
5
3
|
import { z } from "zod";
|
|
4
|
+
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
5
|
+
import { AgentExactRunControlRef, AgentProfile, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileValidationResult, AgentRuntimeAttachments, PlanContinuation, ReasoningEffort, SandboxSizePreset } from "@tangle-network/agent-interface";
|
|
6
6
|
//#region ../../../packages/runtime-contracts/dist/backend-types.d.ts
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* This distribution's backend vocabulary, declared positively. The shared
|
|
9
|
+
* Interface vocabulary also contains historical and differently hosted harnesses;
|
|
10
|
+
* knowing one upstream must not require installing it here or make this module
|
|
11
|
+
* throw at import time. Keep old wire identities readable when retiring execution.
|
|
9
12
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*/
|
|
14
|
-
declare const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
* Gemini is not a direct Sandbox backend; it is available only through a backing
|
|
14
|
+
* transport. Adding it upstream never implicitly makes it dispatchable here.
|
|
15
|
+
* The spec/adapter composition must still prove every backend it actually enables.
|
|
16
|
+
*/
|
|
17
|
+
declare const BACKEND_TYPE: {
|
|
18
|
+
readonly OPENCODE: "opencode";
|
|
19
|
+
readonly CLAUDE_CODE: "claude-code";
|
|
20
|
+
readonly KIMI_CODE: "kimi-code";
|
|
21
|
+
readonly CODEX: "codex";
|
|
22
|
+
readonly AMP: "amp";
|
|
23
|
+
readonly FACTORY_DROIDS: "factory-droids";
|
|
24
|
+
readonly PI: "pi";
|
|
25
|
+
readonly PRIME: "prime";
|
|
26
|
+
readonly HERMES: "hermes";
|
|
27
|
+
readonly FORGE: "forge";
|
|
28
|
+
readonly OPENCLAW: "openclaw";
|
|
29
|
+
readonly NANOCLAW: "nanoclaw";
|
|
30
|
+
readonly ACP: "acp";
|
|
31
|
+
readonly CURSOR: "cursor";
|
|
32
|
+
readonly CLI_BASE: "cli-base";
|
|
33
|
+
};
|
|
34
|
+
/** Derived from the local declaration, not the complement of the upstream enum. */
|
|
35
|
+
type BackendType = (typeof BACKEND_TYPE)[keyof typeof BACKEND_TYPE];
|
|
36
|
+
/** Stable declaration order; registry tests check the shipped spec composition. */
|
|
23
37
|
declare const ALL_BACKEND_TYPES: [BackendType, ...BackendType[]];
|
|
24
38
|
declare function parseBackendType(value: string): BackendType;
|
|
25
39
|
//#endregion
|
|
@@ -965,8 +979,8 @@ declare const batchBackendSchema: z.ZodObject<{
|
|
|
965
979
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
966
980
|
maxThinkingTokens: z.ZodOptional<z.ZodNumber>;
|
|
967
981
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
968
|
-
api: "api";
|
|
969
982
|
cli: "cli";
|
|
983
|
+
api: "api";
|
|
970
984
|
}>>;
|
|
971
985
|
}, z.core.$strict>>;
|
|
972
986
|
server: z.ZodOptional<z.ZodObject<{
|
|
@@ -1011,8 +1025,8 @@ declare const publicBatchRunRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1011
1025
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1012
1026
|
maxThinkingTokens: z.ZodOptional<z.ZodNumber>;
|
|
1013
1027
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
1014
|
-
api: "api";
|
|
1015
1028
|
cli: "cli";
|
|
1029
|
+
api: "api";
|
|
1016
1030
|
}>>;
|
|
1017
1031
|
}, z.core.$strict>>;
|
|
1018
1032
|
server: z.ZodOptional<z.ZodObject<{
|
|
@@ -1075,8 +1089,8 @@ declare const publicBatchRunRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1075
1089
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1076
1090
|
maxThinkingTokens: z.ZodOptional<z.ZodNumber>;
|
|
1077
1091
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
1078
|
-
api: "api";
|
|
1079
1092
|
cli: "cli";
|
|
1093
|
+
api: "api";
|
|
1080
1094
|
}>>;
|
|
1081
1095
|
}, z.core.$strict>>;
|
|
1082
1096
|
server: z.ZodOptional<z.ZodObject<{
|
|
@@ -1482,7 +1496,61 @@ interface SandboxCreateReceipt {
|
|
|
1482
1496
|
};
|
|
1483
1497
|
}
|
|
1484
1498
|
//#endregion
|
|
1499
|
+
//#region src/lib/keep-alive-fetch.d.ts
|
|
1500
|
+
/** Phases of one request, in milliseconds. A phase that did not happen is absent. */
|
|
1501
|
+
interface SdkRequestPhases {
|
|
1502
|
+
/** Name lookup. Absent on a reused socket and for an IP literal. */
|
|
1503
|
+
dnsMs?: number;
|
|
1504
|
+
/** TCP connect. Absent on a reused socket. */
|
|
1505
|
+
connectMs?: number;
|
|
1506
|
+
/** TLS handshake. Absent on a reused socket and on plain HTTP. */
|
|
1507
|
+
tlsMs?: number;
|
|
1508
|
+
/** Request written to response headers: the network round trip plus the server's work. */
|
|
1509
|
+
ttfbMs: number;
|
|
1510
|
+
/** Response headers to the end of the body. */
|
|
1511
|
+
bodyMs?: number;
|
|
1512
|
+
}
|
|
1513
|
+
/**
|
|
1514
|
+
* One timed span the SDK reports through `SandboxConfig.onTiming`.
|
|
1515
|
+
*
|
|
1516
|
+
* - `sdk.ensureRunning`: the status check before a runtime call. `desc` says
|
|
1517
|
+
* why a status read happened (`unobserved`, `not-running`) or `cached` when
|
|
1518
|
+
* none did.
|
|
1519
|
+
* - `sdk.refresh`: one status read. `desc` is the reason it was sent, the same
|
|
1520
|
+
* value the `x-tangle-refresh-reason` header carries.
|
|
1521
|
+
* - `sdk.request`: one HTTP request. `durMs` runs from the call to the end of
|
|
1522
|
+
* the body, or to the response headers when the body is not read here.
|
|
1523
|
+
*/
|
|
1524
|
+
interface SdkTimingEntry {
|
|
1525
|
+
name: "sdk.ensureRunning" | "sdk.refresh" | "sdk.request";
|
|
1526
|
+
durMs: number;
|
|
1527
|
+
desc: string;
|
|
1528
|
+
/** `sdk.request` only. */
|
|
1529
|
+
method?: string;
|
|
1530
|
+
/** `sdk.request` only: the SDK path of the call, not the wire URL. */
|
|
1531
|
+
path?: string;
|
|
1532
|
+
/** `sdk.request` only; absent when the request failed before a response. */
|
|
1533
|
+
status?: number;
|
|
1534
|
+
/** `sdk.request` only; absent when the runtime exposes no socket events. */
|
|
1535
|
+
socket?: "new" | "reused";
|
|
1536
|
+
/** `sdk.request` only; absent when the runtime exposes no socket events. */
|
|
1537
|
+
phases?: SdkRequestPhases;
|
|
1538
|
+
}
|
|
1539
|
+
type SdkTimingHook = (entry: SdkTimingEntry) => void;
|
|
1540
|
+
//#endregion
|
|
1485
1541
|
//#region src/types.d.ts
|
|
1542
|
+
/**
|
|
1543
|
+
* HTTP client interface for making requests.
|
|
1544
|
+
*/
|
|
1545
|
+
interface HttpClient {
|
|
1546
|
+
fetch(path: string, options?: RequestInit, fetchOptions?: {
|
|
1547
|
+
timeoutMs?: number;
|
|
1548
|
+
}): Promise<Response>;
|
|
1549
|
+
getApiKey?(): string | undefined;
|
|
1550
|
+
getBaseUrl?(): string | undefined;
|
|
1551
|
+
/** Receives the SDK's timing spans; see `SandboxConfig.onTiming`. */
|
|
1552
|
+
readonly onTiming?: SdkTimingHook;
|
|
1553
|
+
}
|
|
1486
1554
|
type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
1487
1555
|
[key: string]: JsonValue;
|
|
1488
1556
|
};
|
|
@@ -1659,6 +1727,21 @@ interface SandboxConfig {
|
|
|
1659
1727
|
* files for remote endpoints.
|
|
1660
1728
|
*/
|
|
1661
1729
|
trustLocalCliAuth?: boolean;
|
|
1730
|
+
/**
|
|
1731
|
+
* Receives the SDK's own timing spans, so a call's wall time can be split
|
|
1732
|
+
* into what the SDK, the network and the server each spent:
|
|
1733
|
+
*
|
|
1734
|
+
* - `sdk.ensureRunning`: the status check before a runtime call; `desc` is
|
|
1735
|
+
* `cached` when no status read was needed.
|
|
1736
|
+
* - `sdk.refresh`: one status read; `desc` is why it was sent, the value of
|
|
1737
|
+
* the `x-tangle-refresh-reason` request header.
|
|
1738
|
+
* - `sdk.request`: one HTTP request, with `socket` (`new` or `reused`) and
|
|
1739
|
+
* `phases` (dns, connect, tls, ttfb, body) where the runtime exposes them
|
|
1740
|
+
* (Node).
|
|
1741
|
+
*
|
|
1742
|
+
* A hook that throws is ignored. With no hook the SDK measures nothing.
|
|
1743
|
+
*/
|
|
1744
|
+
onTiming?: SdkTimingHook;
|
|
1662
1745
|
}
|
|
1663
1746
|
/**
|
|
1664
1747
|
* Status of a sandbox instance.
|
|
@@ -2531,8 +2614,9 @@ interface SandboxTerminalAttachOptions {
|
|
|
2531
2614
|
}
|
|
2532
2615
|
/**
|
|
2533
2616
|
* `box.terminals` — the REST terminal manager plus the live PTY attach
|
|
2534
|
-
* surface. `attach()` opens the terminal WebSocket
|
|
2535
|
-
* sidecar proxy
|
|
2617
|
+
* surface. `attach()` opens the terminal WebSocket through the secured
|
|
2618
|
+
* sidecar proxy — a Node caller sends its API key on the upgrade, a browser a
|
|
2619
|
+
* short-lived scoped token minted per dial — as a
|
|
2536
2620
|
* {@link TerminalStream}: reusing a connection id reattaches the existing
|
|
2537
2621
|
* PTY and replays its history; a new id spawns a fresh shell (or `command`).
|
|
2538
2622
|
*/
|
|
@@ -2818,7 +2902,9 @@ interface DurablePlanSnapshot {
|
|
|
2818
2902
|
body: string;
|
|
2819
2903
|
submittedAt: string;
|
|
2820
2904
|
}
|
|
2821
|
-
type DurablePlan = DurablePlanSnapshot &
|
|
2905
|
+
type DurablePlan = DurablePlanSnapshot & {
|
|
2906
|
+
/** Canonical original source turn of this exact authenticated plan revision. */sourceTurnId: string;
|
|
2907
|
+
} & ({
|
|
2822
2908
|
status: "pending";
|
|
2823
2909
|
} | {
|
|
2824
2910
|
status: "approved";
|
|
@@ -2836,11 +2922,33 @@ type DurablePlan = DurablePlanSnapshot & ({
|
|
|
2836
2922
|
withdrawnAt: string;
|
|
2837
2923
|
reason: string;
|
|
2838
2924
|
});
|
|
2925
|
+
interface DurablePlanDecisionOptions {
|
|
2926
|
+
/** Caller prepares and dispatches the existing follow-up with fresh grants and pins. */
|
|
2927
|
+
followUp?: {
|
|
2928
|
+
mode: "caller";
|
|
2929
|
+
};
|
|
2930
|
+
}
|
|
2931
|
+
interface DurablePlanFollowUpResume {
|
|
2932
|
+
/** Original native source turn; join immutable caller profile context using this ID. */
|
|
2933
|
+
sourceTurnId: string;
|
|
2934
|
+
continuation: PlanContinuation;
|
|
2935
|
+
/** Transient existing lease-bound admission nonce; never persist or log it. */
|
|
2936
|
+
credential: string;
|
|
2937
|
+
callbackUrl: string;
|
|
2938
|
+
expiresAt: string;
|
|
2939
|
+
}
|
|
2940
|
+
/** Fields accepted only on a message/preparation, never on session creation. */
|
|
2941
|
+
type TurnBackendConfig = Partial<BackendConfig> & {
|
|
2942
|
+
planContinuation?: PlanContinuation;
|
|
2943
|
+
};
|
|
2839
2944
|
interface DurablePlanDecisionResult {
|
|
2840
2945
|
plan: DurablePlan;
|
|
2841
2946
|
followUp: {
|
|
2842
2947
|
turnId: string;
|
|
2843
|
-
state: "queued" | "leased" | "started" | "completed" | "failed";
|
|
2948
|
+
state: "awaiting_caller" | "queued" | "leased" | "started" | "completed" | "failed";
|
|
2949
|
+
mode?: "caller";
|
|
2950
|
+
executionId?: string;
|
|
2951
|
+
resume?: DurablePlanFollowUpResume;
|
|
2844
2952
|
};
|
|
2845
2953
|
/** True when the server replayed a decision it had already recorded. */
|
|
2846
2954
|
idempotent: boolean;
|
|
@@ -3762,7 +3870,7 @@ type SessionMessageInputPart = PromptInputPart | {
|
|
|
3762
3870
|
interface SendSessionMessageRequest {
|
|
3763
3871
|
messageId?: string;
|
|
3764
3872
|
/** Per-turn overrides within the session's native backend. */
|
|
3765
|
-
backend?:
|
|
3873
|
+
backend?: TurnBackendConfig;
|
|
3766
3874
|
/** Caller pin for the exact public backend request before native dispatch. */
|
|
3767
3875
|
expectedPublicProfileRequestDigest?: `sha256:${string}`;
|
|
3768
3876
|
/** Provider-composed native revision prepared for this public turn. */
|
|
@@ -3781,6 +3889,8 @@ interface SendSessionMessageRequest {
|
|
|
3781
3889
|
runControlRef?: AgentExactRunControlRef;
|
|
3782
3890
|
/** Absolute UTC deadline for admitting the first native provider call. */
|
|
3783
3891
|
admissionDeadline?: string;
|
|
3892
|
+
/** Execution time limit in milliseconds; a positive integer bounded by the runtime deployment ceiling. */
|
|
3893
|
+
ttlMs?: number;
|
|
3784
3894
|
parts: SessionMessageInputPart[];
|
|
3785
3895
|
system?: string;
|
|
3786
3896
|
agent?: string;
|
|
@@ -3794,6 +3904,8 @@ interface SendSessionMessageRequest {
|
|
|
3794
3904
|
}
|
|
3795
3905
|
/** Per-call controls for `SandboxSession.sendMessage`. */
|
|
3796
3906
|
interface SendSessionMessageOptions {
|
|
3907
|
+
/** Existing decision admission proof; used only for a caller-owned prepared follow-up. */
|
|
3908
|
+
planFollowUp?: DurablePlanFollowUpResume;
|
|
3797
3909
|
credentials?: SessionBackendCredentials;
|
|
3798
3910
|
timeoutMs?: number;
|
|
3799
3911
|
signal?: AbortSignal;
|
|
@@ -4226,6 +4338,14 @@ interface SnapshotOptions {
|
|
|
4226
4338
|
* directly and keeps no operation ledger, so the key would guard nothing.
|
|
4227
4339
|
*/
|
|
4228
4340
|
idempotencyKey?: string;
|
|
4341
|
+
/**
|
|
4342
|
+
* `false` answers as soon as the capture is durably accepted and returns a
|
|
4343
|
+
* {@link SandboxOperation} whose result names the snapshot. Writes made
|
|
4344
|
+
* before the call are in it; writes made after it returns may or may not
|
|
4345
|
+
* be — wait for the operation when nothing later may land in it. Default
|
|
4346
|
+
* `true`. Not supported with `storage`.
|
|
4347
|
+
*/
|
|
4348
|
+
wait?: boolean;
|
|
4229
4349
|
}
|
|
4230
4350
|
/**
|
|
4231
4351
|
* How a keyed snapshot resolved.
|
|
@@ -4291,6 +4411,47 @@ interface SnapshotProvenance {
|
|
|
4291
4411
|
/** When the profile was materialized into the sandbox. */
|
|
4292
4412
|
materializedAt: string;
|
|
4293
4413
|
}
|
|
4414
|
+
/** A verb that can finish in the background (`wait: false`). */
|
|
4415
|
+
type SandboxOperationKind = "stop" | "snapshot" | "delete";
|
|
4416
|
+
/** `accepted` and `running` are open; `succeeded` and `failed` are terminal. */
|
|
4417
|
+
type SandboxOperationState = "accepted" | "running" | "succeeded" | "failed";
|
|
4418
|
+
/** An operation as last read from the API. */
|
|
4419
|
+
interface SandboxOperationInfo {
|
|
4420
|
+
/** Empty for a verb the API finished synchronously. */
|
|
4421
|
+
id: string;
|
|
4422
|
+
kind: SandboxOperationKind;
|
|
4423
|
+
sandboxId: string;
|
|
4424
|
+
state: SandboxOperationState;
|
|
4425
|
+
/** What an open operation is doing now, when the API reports it. */
|
|
4426
|
+
phase?: string;
|
|
4427
|
+
acceptedAt: Date;
|
|
4428
|
+
completedAt?: Date;
|
|
4429
|
+
/** Where to poll it; empty for a verb that finished synchronously. */
|
|
4430
|
+
statusUrl: string;
|
|
4431
|
+
/** Present once succeeded. */
|
|
4432
|
+
result?: {
|
|
4433
|
+
/** stop: where the final workspace generation was durable when it finished. */durability?: "local" | "remote"; /** snapshot: the snapshot it took. */
|
|
4434
|
+
snapshot?: SnapshotResult; /** stop: the sandbox record when it finished, in the API's shape. */
|
|
4435
|
+
sandbox?: Record<string, unknown>;
|
|
4436
|
+
};
|
|
4437
|
+
/** Present once failed. */
|
|
4438
|
+
error?: {
|
|
4439
|
+
code: string;
|
|
4440
|
+
message: string;
|
|
4441
|
+
};
|
|
4442
|
+
}
|
|
4443
|
+
/** Options for a stop. */
|
|
4444
|
+
interface StopOptions {
|
|
4445
|
+
/**
|
|
4446
|
+
* `false` answers as soon as the stop is durably accepted and returns a
|
|
4447
|
+
* {@link SandboxOperation}; the stop finishes in the background, billing
|
|
4448
|
+
* runs until the runtime actually stops, and a resume issued meanwhile
|
|
4449
|
+
* waits for it. Default `true`: resolve once the sandbox is stopped.
|
|
4450
|
+
*/
|
|
4451
|
+
wait?: boolean;
|
|
4452
|
+
/** Retry identity: a retry with the same key answers the same operation. */
|
|
4453
|
+
idempotencyKey?: string;
|
|
4454
|
+
}
|
|
4294
4455
|
/**
|
|
4295
4456
|
* Outcome of deleting a snapshot.
|
|
4296
4457
|
*
|
|
@@ -4444,7 +4605,8 @@ interface WorkspaceOperationLookup {
|
|
|
4444
4605
|
failure?: {
|
|
4445
4606
|
status: number;
|
|
4446
4607
|
error: string;
|
|
4447
|
-
code?: string;
|
|
4608
|
+
code?: string; /** Refusal fields beyond `error` and `code`, e.g. `maxChildren`. */
|
|
4609
|
+
details?: Record<string, unknown>;
|
|
4448
4610
|
};
|
|
4449
4611
|
}
|
|
4450
4612
|
interface RestoreSnapshotOptions {
|
|
@@ -5357,8 +5519,53 @@ interface SandboxAccelerator {
|
|
|
5357
5519
|
/** Minimum device memory in megabytes when the exact GPU class is flexible. */
|
|
5358
5520
|
memoryMB?: number;
|
|
5359
5521
|
}
|
|
5360
|
-
declare const GPU_LEASE_PROVIDER_NAMES: readonly ["runpod", "vast-ai", "lambda-labs", "tensordock", "paperspace", "aws", "gcp", "azure", "crusoe", "fluidstack"];
|
|
5522
|
+
declare const GPU_LEASE_PROVIDER_NAMES: readonly ["runpod", "vast-ai", "lambda-labs", "tensordock", "paperspace", "aws", "gcp", "azure", "crusoe", "fluidstack", "modal"];
|
|
5361
5523
|
type GpuLeaseProviderName = (typeof GPU_LEASE_PROVIDER_NAMES)[number];
|
|
5524
|
+
/**
|
|
5525
|
+
* Whether a deployment can place a GPU lease on a provider right now.
|
|
5526
|
+
*
|
|
5527
|
+
* - `ready`: configured, and the provider accepted the credential just now.
|
|
5528
|
+
* - `credential-invalid`: configured, but the provider refused the
|
|
5529
|
+
* credential; it is never selected until the key is rotated.
|
|
5530
|
+
* - `unverified`: configured, but the check could not reach a verdict.
|
|
5531
|
+
* - `not-configured`: a required orchestrator variable is missing.
|
|
5532
|
+
* - `disabled`: configured but excluded by GPU_LEASE_PROVIDERS.
|
|
5533
|
+
*/
|
|
5534
|
+
type GpuLeaseProviderState = "ready" | "credential-invalid" | "unverified" | "not-configured" | "disabled";
|
|
5535
|
+
interface GpuLeaseProviderStatus {
|
|
5536
|
+
provider: GpuLeaseProviderName;
|
|
5537
|
+
state: GpuLeaseProviderState;
|
|
5538
|
+
/** Orchestrator environment variables the provider needs (`A|B`: either). */
|
|
5539
|
+
envVars: string[];
|
|
5540
|
+
/** Where an operator creates the credential. */
|
|
5541
|
+
keyUrl?: string;
|
|
5542
|
+
credential?: {
|
|
5543
|
+
verdict: "working" | "rejected" | "absent" | "indeterminate"; /** Operator-facing reason; never carries a credential value. */
|
|
5544
|
+
detail: string;
|
|
5545
|
+
checkedAt: string;
|
|
5546
|
+
latencyMs: number;
|
|
5547
|
+
};
|
|
5548
|
+
/** Price of the requested accelerator on this provider, per hour. */
|
|
5549
|
+
estimate?: {
|
|
5550
|
+
providerInstanceType?: string;
|
|
5551
|
+
region?: string;
|
|
5552
|
+
pricingSource?: "live" | "configured" | "static";
|
|
5553
|
+
providerCostPerHourUsd: number;
|
|
5554
|
+
customerPricePerHourUsd: number;
|
|
5555
|
+
};
|
|
5556
|
+
/** Why no price could be quoted, e.g. the provider has no such GPU. */
|
|
5557
|
+
estimateError?: string;
|
|
5558
|
+
}
|
|
5559
|
+
interface GpuLeaseProvidersOptions {
|
|
5560
|
+
/** Quote a price for this accelerator kind, e.g. `nvidia-h100`. */
|
|
5561
|
+
accelerator?: SandboxAccelerator;
|
|
5562
|
+
}
|
|
5563
|
+
interface GpuLeaseProviders {
|
|
5564
|
+
/** Providers a lease may be placed on now. Empty: no GPU lease can attach. */
|
|
5565
|
+
usable: GpuLeaseProviderName[];
|
|
5566
|
+
/** Every supported provider, configured or not. */
|
|
5567
|
+
statuses: GpuLeaseProviderStatus[];
|
|
5568
|
+
}
|
|
5362
5569
|
interface GpuLeaseProviderSelection {
|
|
5363
5570
|
strategy: "explicit" | "cheapest";
|
|
5364
5571
|
selectedProvider: GpuLeaseProviderName;
|
|
@@ -5450,6 +5657,13 @@ interface GpuLeaseExecResult {
|
|
|
5450
5657
|
result: GpuLeaseCommandResult;
|
|
5451
5658
|
}
|
|
5452
5659
|
interface GpuLeaseManager {
|
|
5660
|
+
/**
|
|
5661
|
+
* Every supported GPU provider on this sandbox's deployment: whether it is
|
|
5662
|
+
* configured, whether its credential works (checked now with a read-only
|
|
5663
|
+
* provider call), the orchestrator variables it needs and, when an
|
|
5664
|
+
* accelerator is given, its current price.
|
|
5665
|
+
*/
|
|
5666
|
+
providers(options?: GpuLeaseProvidersOptions): Promise<GpuLeaseProviders>;
|
|
5453
5667
|
attach(options: AttachGpuLeaseOptions): Promise<GpuLease>;
|
|
5454
5668
|
list(): Promise<GpuLease[]>;
|
|
5455
5669
|
exec(leaseId: string, options: GpuLeaseExecOptions): Promise<GpuLeaseExecResult>;
|
|
@@ -7656,4 +7870,4 @@ interface ManagedProcessJobs {
|
|
|
7656
7870
|
cancel(id: string, options?: ManagedProcessOptions): Promise<ManagedProcessRecord | null>;
|
|
7657
7871
|
}
|
|
7658
7872
|
//#endregion
|
|
7659
|
-
export { DownloadOptions as $,
|
|
7873
|
+
export { DownloadOptions as $, WriteManyOptions as $a, SendSessionMessageOptions as $i, ProcessListOptions as $n, SandboxFleetMachineMeteredUsage as $r, ForkIdempotency as $t, CommitTaskSessionOptions as A, TaskSessionChanges as Aa, SandboxResources as Ai, ListMessagesOptions as An, RolloutTurnPart as Ar, FileTreeOptions as At, CreateSandboxOptions as B, TokenRefreshHandler as Ba, SandboxTerminalInfo as Bi, ManagedProcessState as Bn, SandboxEvent as Br, FleetDispatchResultBuffer as Bt, BranchOptions as C, SnapshotResult as Ca, SandboxOperationInfo as Ci, InstalledTool as Cn, ResumeOptions as Cr, FileReadBatchOptions as Ct, CodeExecutionResult as D, StopOptions as Da, SandboxPortPreviewLink as Di, IntelligenceReportSubjectType as Dn, RolloutScorer as Dr, FileRenameResult as Dt, CodeExecutionOptions as E, StartupOperation as Ea, SandboxPortBinding as Ei, IntelligenceReportCompareTo as En, RolloutOptions as Er, FileReadResult as Et, CreateIntelligenceReportOptions as F, TeeAttestationOptions as Fa, SandboxShapePreset as Fi, ManagedProcessJobs as Fn, SandboxDeleteAcknowledgement as Fr, FleetAgentId as Ft, DeleteMatchingSandboxesFilter as G, UploadOptions as Ga, SandboxTraceEvent as Gi, NonHostAgentDriverConfig as Gn, SandboxFleetCostEstimate as Gr, FleetExecDispatchOptions as Gt, CreateTaskSessionOptions as H, TurnBackendConfig as Ha, SandboxTerminalRequestOptions as Hi, MkdirOptions as Hn, SandboxFleetAgentSpec as Hr, FleetDispatchStreamOptions as Ht, CreateRequestOptions as I, TeeAttestationReport as Ia, SandboxShapesInfo as Ii, ManagedProcessOptions as In, SandboxDeleteOptions as Ir, FleetAgentPlacement as It, DeleteOptions as J, WaitForOptions as Ja, SandboxUser as Ji, PreviewLinkInfo as Jn, SandboxFleetDriverCapability as Jr, FleetPromptDispatchOptions as Jt, DeleteMatchingSandboxesOptions as K, UploadProgress as Ka, SandboxTraceExport as Ki, PermissionLevel as Kn, SandboxFleetDispatchFailureClass as Kr, FleetExecDispatchResult as Kt, CreateSandboxFleetOptions as L, TeeAttestationResponse as La, SandboxStatus as Li, ManagedProcessRecord as Ln, SandboxDeleteOutcome as Lr, FleetAgentResult as Lt, ConversationTurnOptions as M, TaskSessionFileChange as Ma, SandboxRuntimeCapabilities as Mi, ListSandboxFleetOptions as Mn, SSHCredentials as Mr, FileUsageOptions as Mt, ConversationTurnResult as N, TaskSessionInfo as Na, SandboxRuntimeHealth as Ni, ListSandboxOptions as Nn, SandboxConfig as Nr, FileUsageResult as Nt, CodeLanguage as O, StorageConfig as Oa, SandboxRemovalState as Oi, IntelligenceReportWindow as On, RolloutStartResult as Or, FileSystem as Ot, CreateGpuLeaseOptions as P, TaskSessionProfile as Pa, SandboxShape as Pi, MAX_EGRESS_DENIALS_LIMIT as Pn, SandboxConnection as Pr, FileWriteResult as Pt, DispatchedSession as Q, WriteManyFile as Qa, SecretsManager as Qi, ProcessInfo as Qn, SandboxFleetMachine as Qr, ForkCounts as Qt, CreateSandboxFleetTokenOptions as R, TeePublicKey as Ra, SandboxTerminalAttachOptions as Ri, ManagedProcessResumeOptions as Rn, SandboxEgressUsage as Rr, FleetAgentRunStatus as Rt, BatchTaskResult as S, SnapshotRemoteSync as Sa, SandboxIntelligenceEnvelope as Si, HttpClient as Sn, RestoreSnapshotOptions as Sr, FileInfo as St, ChunkedUploadResult as T, StartupDiagnostics as Ta, SandboxOperationState as Ti, IntelligenceReportBudget as Tn, RolloutChildResult as Tr, FileReadError as Tt, DeleteMatchingSandboxOutcome as U, TurnDriveResult as Ua, SandboxTerminals as Ui, NetworkConfig as Un, SandboxFleetArtifact as Ur, FleetDriveTurnOutcome as Ut, CreateSessionOptions as V, TokenUsage as Va, SandboxTerminalManager as Vi, McpServerConfig as Vn, SandboxFleetAgent as Vr, FleetDispatchResultBufferOptions as Vt, DeleteMatchingSandboxResult as W, UpdateUserOptions as Wa, SandboxTraceBundle as Wi, NetworkManager as Wn, SandboxFleetArtifactSpec as Wr, FleetDriveTurnRequest as Wt, DirectoryPermission as X, WorkspaceOperationLookup as Xa, SearchOptions as Xi, PreviewLinkWaitOptions as Xn, SandboxFleetInfo as Xr, FleetRunEvent as Xt, DevServerInfo as Y, WaitForRolloutOptions as Ya, SearchMatch as Yi, PreviewLinkManager as Yn, SandboxFleetDriverTimings as Yr, FleetPromptDispatchResult as Yt, DispatchPromptOptions as Z, WriteFileOptions as Za, SecretInfo as Zi, Process as Zn, SandboxFleetIntelligenceEnvelope as Zr, FleetRunOptions as Zt, BatchBackend as _, SnapshotDeleteOutcome as _a, SandboxFleetWorkspaceReconcileResult as _i, GpuLeaseProviders as _n, BatchSidecarGroup as _o, ReapExpiredSandboxFleetsOptions as _r, EnsureDevServerOptions as _t, AgentQuestionRequest as a, SessionExecutionStatus as aa, SandboxFleetParent as ai, GitConfig as an, RawEvidenceArchiveManifest as ao, PromptInputPart as ar, DriverType as at, BatchRunRequest as b, SnapshotOptions as ba, SandboxIdentity as bi, HostAgentDriverConfig as bn, BackendType as bo, ReconcileSandboxFleetsResult as br, ExecOptions as bt, AttachGpuLeaseOptions as c, SessionInfo as ca, SandboxFleetProfileRef as ci, GpuLease as cn, RawEvidenceNativeFile as co, ProvisionEvent as cr, DurablePlanDecisionResult as ct, BackendConfig as d, SessionMessage as da, SandboxFleetTraceBundle as di, GpuLeaseExecOptions as dn, WorkspaceImagePublishResult as do, ProvisionStep as dr, EffectiveBackend as dt, SendSessionMessageRequest as ea, SandboxFleetMachineRecord as ei, ForkLookupOptions as en, SdkTimingHook as eo, ProcessLogEntry as er, DownloadProgress as et, BackendInfo as f, SessionMessageAdmission as fa, SandboxFleetTraceEvent as fi, GpuLeaseExecResult as fn, InteractionResolutionAcknowledgement as fo, PublicProfileConflict as fr, EffectiveBackendProfile as ft, BackendStatus as g, SnapshotDeleteAcknowledgement as ga, SandboxFleetWorkspace as gi, GpuLeaseProviderStatus as gn, BatchEventDataMap as go, PublishPublicTemplateVersionOptions as gr, EgressPolicy as gt, BackendRuntimeConfigUpdate as h, SessionStatus as ha, SandboxFleetUsage as hi, GpuLeaseProviderState as hn, BatchEvent as ho, PublishPublicTemplateOptions as hr, EgressManager as ht, AgentApprovalRequirement as i, SessionExecutionInfo as ia, SandboxFleetOperationsSummary as ii, GitCommit as in, SandboxEnvRecoveryView as io, ProcessStatus as ir, DriverInfo as it, CompletedTurnResult as j, TaskSessionCommitResult as ja, SandboxRunGeneration as ji, ListOptions as jn, SSHCommandDescriptor as jr, FileTreeResult as jt, CodeResultPart as k, SubscriptionInfo as ka, SandboxResourceUsage as ki, JsonValue as kn, RolloutStatus as kr, FileTreeFile as kt, AttachSandboxFleetMachineOptions as l, SessionInterruptOptions as la, SandboxFleetSpend as li, GpuLeaseBilling as ln, RawEvidencePayloadFile as lo, ProvisionResult as lr, DurablePlanFollowUpResume as lt, BackendMcpServerStatus as m, SessionResultOptions as ma, SandboxFleetTraceOptions as mi, GpuLeaseProviderName as mn, BatchBackendStats as mo, PublicTemplateVersionInfo as mr, EgressDenial as mt, AccessPolicyRule as n, SessionBackendCredentials as na, SandboxFleetManifest as ni, GitAuth as nn, SandboxCreateReceipt as no, ProcessSignal as nr, DriveTurnOptions as nt, AgentRunStatus as o, SessionFailureReason as oa, SandboxFleetPlacement as oi, GitDiff as on, RawEvidenceDirectoryExport as oo, PromptOptions as or, DurablePlan as ot, BackendManager as p, SessionMessageInputPart as pa, SandboxFleetTraceExport as pi, GpuLeaseManager as pn, PublicBatchRunRequest as po, PublicTemplateInfo as pr, EffectiveBackendSource as pt, DeleteMatchingSandboxesResult as q, UsageInfo as qa, SandboxTraceOptions as qi, PermissionsManager as qn, SandboxFleetDispatchResponse as qr, FleetMachineId as qt, AddUserOptions as r, SessionEventStreamOptions as ra, SandboxFleetManifestMachine as ri, GitBranch as rn, SandboxEnvRecovery as ro, ProcessSpawnOptions as rr, DriverConfig as rt, AgentToolInvocation as s, SessionForkOptions as sa, SandboxFleetPolicy as si, GitStatus as sn, RawEvidenceExportOptions as so, PromptResult as sr, DurablePlanDecisionOptions as st, AcceleratorKind as t, SentSessionMessage as ta, SandboxFleetMachineSpec as ti, GPU_LEASE_PROVIDER_NAMES as tn, SandboxCreateOutcome as to, ProcessManager as tr, DownloadResult as tt, BackendCapabilities as u, SessionListOptions as ua, SandboxFleetToken as ui, GpuLeaseCommandResult as un, RawEvidenceRecordsFile as uo, ProvisionStatus as ur, DurablePlanSnapshot as ut, BatchResult as v, SnapshotIdempotency as va, SandboxFleetWorkspaceRestoreResult as vi, GpuLeaseProvidersOptions as vn, BatchTaskUsage as vo, ReapExpiredSandboxFleetsResult as vr, EventStreamOptions as vt, ChunkedUploadOptions as w, SshKeysManager as wa, SandboxOperationKind as wi, IntelligenceReport as wn, Rollout as wr, FileReadBatchResult as wt, BatchTask as x, SnapshotProvenance as xa, SandboxInfo as xi, HostAgentRuntimeBackend as xn, parseBackendType as xo, RenameOptions as xr, ExecResult as xt, BatchRunOptions as y, SnapshotInfo as ya, SandboxFleetWorkspaceSnapshotResult as yi, GpuLeaseStatus as yn, ALL_BACKEND_TYPES as yo, ReconcileSandboxFleetsOptions as yr, ExactProcessSpawnOptions as yt, CreateSandboxFleetWithCoordinatorOptions as z, TeePublicKeyResponse as za, SandboxTerminalCreateOptions as zi, ManagedProcessSpec as zn, SandboxEnvironment as zr, FleetDispatchCancelResult as zt };
|