@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.
Files changed (65) hide show
  1. package/dist/agent/index.d.ts +4 -4
  2. package/dist/agent/index.js +5 -5
  3. package/dist/agent/preview.d.ts +1 -1
  4. package/dist/agent/preview.js +2 -2
  5. package/dist/{agent-run-outcome-DlYhZnhD.d.ts → agent-run-outcome-C-VR-L0I.d.ts} +1 -1
  6. package/dist/auth/index.d.ts +2 -2
  7. package/dist/auth/index.js +1 -1
  8. package/dist/{backend-types-D6bYbvMB.js → backend-types-zuUBEJO1.js} +35 -1
  9. package/dist/{browser-interactive-control-controller-B6sySQFu.d.ts → browser-interactive-control-controller-CvObO_Kf.d.ts} +1 -1
  10. package/dist/{browser-interactive-control-controller-BJf0P_J4.js → browser-interactive-control-controller-DHx53yre.js} +16 -1
  11. package/dist/{chunked-upload-KJyRCAiC.js → chunked-upload-DN2twsUu.js} +1 -1
  12. package/dist/{chunked-upload-file-DfiGzqaR.js → chunked-upload-file-Dpv1YsoA.js} +2 -2
  13. package/dist/{cli-auth-bundle-CMgB8Ec3.js → cli-auth-bundle-R0Y7rngn.js} +8 -8
  14. package/dist/{client-Dl22CVOz.js → client-CGcWP4FX.js} +3271 -3271
  15. package/dist/client-CqpKC6n3.d.ts +6066 -0
  16. package/dist/collaboration/index.d.ts +1 -1
  17. package/dist/collaboration/index.js +1 -1
  18. package/dist/{collaboration-XHg5BEUI.js → collaboration-g_HzXa6f.js} +1 -1
  19. package/dist/core.d.ts +6 -7
  20. package/dist/core.js +5 -5
  21. package/dist/{direct-http2-Dq7tq6jV.js → direct-http2-CoGVOqVR.js} +1 -1
  22. package/dist/{errors-AB5BD3FM.js → errors-BfbOP_rx.js} +19 -1
  23. package/dist/{sandbox-DDdPhk2j.d.ts → index-D4OBUP5M.d.ts} +2105 -1461
  24. package/dist/index.d.ts +12 -4747
  25. package/dist/index.js +15 -11
  26. package/dist/intelligence/index.js +1 -1
  27. package/dist/interactive-control.d.ts +1 -1
  28. package/dist/interactive-control.js +1 -1
  29. package/dist/{interactive-controller-BSWoA0YE.d.ts → interactive-controller-BBwB_5QQ.d.ts} +3 -2
  30. package/dist/{interactive-controller-zE6hwv3C.js → interactive-controller-D4N4zqmu.js} +578 -610
  31. package/dist/{lines-hsXVdk60.d.ts → lines-5m11CEj-.d.ts} +21 -17
  32. package/dist/lines-C5ER4aN_.js +298 -0
  33. package/dist/lines.d.ts +1 -1
  34. package/dist/lines.js +1 -295
  35. package/dist/{local-cli-auth-C4QcPdZt.js → local-cli-auth-DVUBOY4y.js} +1 -1
  36. package/dist/{mcp-local-BYHcA72Z.js → mcp-local-BjLG7VHY.js} +1 -1
  37. package/dist/{preview-D8UAF7F9.d.ts → preview-CcJBQSjB.d.ts} +3 -3
  38. package/dist/{public-templates-BP3sTaSb.d.ts → public-templates-nv4AFFVc.d.ts} +2 -2
  39. package/dist/public-templates.d.ts +1 -1
  40. package/dist/public-templates.js +1 -1
  41. package/dist/runtime.d.ts +47 -40
  42. package/dist/runtime.js +4 -4
  43. package/dist/{sandbox-BJkpVtLN.js → sandbox-BDgvO9Z3.js} +9256 -9215
  44. package/dist/{secp256k1-DoWlH6ff.js → secp256k1-CmLpsmWl.js} +1 -1
  45. package/dist/session-gateway/index.d.ts +16 -17
  46. package/dist/session-gateway/index.js +20 -23
  47. package/dist/tangle/index.d.ts +1 -1
  48. package/dist/tangle/index.js +1 -1
  49. package/dist/{tangle-BBpguPfj.js → tangle-D-VfQGTu.js} +144 -138
  50. package/dist/terminal-stream-types-ClZCArRg.d.ts +662 -0
  51. package/dist/{types-BxZX2EVj.d.ts → types-BjyQe_CI.d.ts} +393 -315
  52. package/package.json +6 -6
  53. package/dist/client-DraGbXEP.d.ts +0 -1249
  54. package/dist/error-classes-BWS1a9HO.d.ts +0 -321
  55. package/dist/index-xS3mRl69.d.ts +0 -578
  56. package/dist/managed-process-B-pXdMLC.d.ts +0 -15
  57. package/dist/terminal-stream-DgD7GlFi.d.ts +0 -388
  58. /package/dist/{cli-auth-bundle-BKsrsbxy.d.ts → cli-auth-bundle-Dyw3hCGx.d.ts} +0 -0
  59. /package/dist/{index-DfA_usrZ.d.ts → index-C8VSFtWl.d.ts} +0 -0
  60. /package/dist/{index-CWUW8pqr.d.ts → index-CVjTnRWP.d.ts} +0 -0
  61. /package/dist/{keep-alive-fetch-CXvfSczd.js → keep-alive-fetch-CuwGi7gz.js} +0 -0
  62. /package/dist/{line-application-UtPFP0o4.js → line-application-DY9ZTdgF.js} +0 -0
  63. /package/dist/{preview-operations-Bvo5YcIq.js → preview-operations-Ca02vPDJ.js} +0 -0
  64. /package/dist/{raw-evidence-archive-Bxk6fUjS.js → raw-evidence-archive-CDYDqHNv.js} +0 -0
  65. /package/dist/{utils-B6gap92T.js → utils-BGvM02yJ.js} +0 -0
@@ -1,388 +0,0 @@
1
- import { z } from "zod";
2
- import { AgentInteractiveSessionControlClaim, AgentInteractiveSessionRef } from "@tangle-network/agent-interface";
3
-
4
- //#region ../../../packages/runtime-contracts/dist/terminal-websocket.d.ts
5
- /** Non-credential protocol selected during a successful terminal handshake. */
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>;
32
- declare const terminalReadyMessageSchema: z.ZodObject<{
33
- type: z.ZodLiteral<"ready">;
34
- connectionId: z.ZodString;
35
- sessionId: z.ZodString;
36
- restored: z.ZodBoolean;
37
- detachTimeoutMs: z.ZodNumber;
38
- attachCount: z.ZodOptional<z.ZodNumber>;
39
- cursors: z.ZodOptional<z.ZodObject<{
40
- earliest: z.ZodNumber;
41
- latest: z.ZodNumber;
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>>;
61
- }, z.core.$strip>;
62
- type TerminalReadyMessage = z.infer<typeof terminalReadyMessageSchema>;
63
- type TerminalReadyInfo = Omit<TerminalReadyMessage, "type">;
64
- /** One sequenced output frame for an exact interactive terminal. */
65
- declare const terminalOutputMessageSchema: z.ZodObject<{
66
- type: z.ZodLiteral<"output">;
67
- seq: z.ZodNumber;
68
- data: z.ZodString;
69
- }, z.core.$strip>;
70
- type TerminalOutputMessage = z.infer<typeof terminalOutputMessageSchema>;
71
- declare const terminalExitMessageSchema: z.ZodObject<{
72
- type: z.ZodLiteral<"exit">;
73
- exitCode: z.ZodOptional<z.ZodNumber>;
74
- exitSignal: z.ZodOptional<z.ZodString>;
75
- }, z.core.$strip>;
76
- type TerminalExitMessage = z.infer<typeof terminalExitMessageSchema>;
77
- type TerminalExitInfo = Omit<TerminalExitMessage, "type">;
78
- type TerminalStreamAuthFormat = "edge" | "sidecar-direct";
79
- interface TerminalInteractiveSessionIdentity {
80
- incarnationId: AgentInteractiveSessionRef["incarnationId"];
81
- control: AgentInteractiveSessionControlClaim;
82
- }
83
- //#endregion
84
- //#region src/scoped-token-types.d.ts
85
- /**
86
- * Public types for scoped consumer-side tokens.
87
- *
88
- * This module intentionally has no SDK implementation imports. Terminal
89
- * streams and token requests share these contracts without depending on the
90
- * SDK's aggregate types module.
91
- */
92
- /**
93
- * Scope of a `box.mintScopedToken()` request. `session` and `project` mint
94
- * SessionGateway read tokens. `session-runtime` and `read-only` mint sidecar
95
- * capability tokens for browser-safe runtime access.
96
- */
97
- type ScopedTokenScope = "session" | "session-runtime" | "project" | "read-only";
98
- interface MintScopedTokenBase {
99
- /** TTL in minutes. Default 5; clamped to [1, 15]. */
100
- ttlMinutes?: number;
101
- /** Cancel the token request before it reaches the terminal dial. */
102
- signal?: AbortSignal;
103
- }
104
- /** Options for `box.mintScopedToken()`, narrowed by consumer scope. */
105
- type MintScopedTokenOptions = (MintScopedTokenBase & {
106
- scope: "session"; /** Client-facing browser session ID. */
107
- sessionId: string; /** Actual runtime session ID used to filter the sandbox event stream. */
108
- runtimeSessionId: string;
109
- }) | (MintScopedTokenBase & {
110
- scope: "session-runtime";
111
- sessionId: string;
112
- runtimeSessionId?: never;
113
- }) | (MintScopedTokenBase & {
114
- scope: "project" | "read-only";
115
- sessionId?: never;
116
- runtimeSessionId?: never;
117
- });
118
- /** Options for the server-side exact interactive-session token request. */
119
- type MintInteractiveSessionTokenOptions = Pick<MintScopedTokenBase, "ttlMinutes" | "signal">;
120
- /**
121
- * Returned by `box.mintScopedToken()`. Use session/project tokens with
122
- * `SessionGatewayClient`; use session-runtime/read-only tokens with
123
- * `SandboxRuntimeClient`.
124
- */
125
- interface ScopedToken {
126
- /** Bearer token (JWT) for the consumer selected by `scope`. */
127
- token: string;
128
- /** When the token expires. */
129
- expiresAt: Date;
130
- /** The runtime's direct edge URL. Use with runtime scopes; session/project
131
- * tokens instead connect to the Sandbox API's `/session` WebSocket. */
132
- runtimeUrl: string;
133
- /** Browser-safe Sandbox API proxy base for terminal and runtime requests. */
134
- sidecarProxyUrl: string;
135
- /** Echo of the requested scope. */
136
- scope: ScopedTokenScope;
137
- }
138
- //#endregion
139
- //#region src/terminal-stream.d.ts
140
- /** A protocol `error` control frame or a transport failure. */
141
- declare class TerminalStreamError extends Error {
142
- /** Protocol error code (e.g. `INIT_FAILED`) or `TRANSPORT` for socket faults. */
143
- readonly code: string;
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
- });
154
- }
155
- /**
156
- * Event callbacks, passed at construction (the same idiom as
157
- * `SessionGatewayClient`'s `handlers` config). Registering them up front is
158
- * load-bearing: the server replays PTY history immediately after `ready`, so
159
- * a handler attached after connect would miss the replayed screen.
160
- */
161
- interface TerminalStreamHandlers {
162
- /** Raw PTY output bytes (both live output and reattach history replay). */
163
- onData?: (data: Uint8Array) => void;
164
- /** Server-sequenced output for exact interactive terminal sessions. */
165
- onOutput?: (seq: number, data: Uint8Array) => void;
166
- onReady?: (info: TerminalReadyInfo) => void;
167
- onExit?: (info: TerminalExitInfo) => void;
168
- /** Protocol `error` frames and post-connect transport failures. */
169
- onError?: (error: TerminalStreamError) => void;
170
- /** Socket closed — by the server, the network, or a local `close()`. */
171
- onClose?: (code: number, reason: string) => void;
172
- }
173
- /**
174
- * Which WebSocket-subprotocol auth envelope to offer. A WebSocket client
175
- * cannot set an Authorization header, so the bearer rides the
176
- * `Sec-WebSocket-Protocol` offer — and the two dialable endpoints expect
177
- * DIFFERENT envelopes:
178
- *
179
- * - `"edge"` (default): the public API proxy
180
- * (`wss://<api>/v1/sidecar-proxy/{sidecarId}/terminals/{id}/ws`) expects
181
- * `bearer.<base64url(token)>` — see `parseTerminalWsSubprotocolToken` in
182
- * `products/sandbox/api/src/lib/terminal-websocket.ts`. The fixed
183
- * `tangle.terminal.v1` marker is offered alongside the credential (see
184
- * {@link TERMINAL_WS_ECHO_SUBPROTOCOL}).
185
- * - `"sidecar-direct"`: the sidecar's own `/terminals/{id}/ws` route expects
186
- * `tangle.bearer.<token>` plus the same `tangle.terminal.v1` echo marker —
187
- * see `apps/sidecar/src/routes/ws-subprotocol-auth.ts`. Only
188
- * platform-internal callers (and the composed integration tests) dial the
189
- * sidecar directly.
190
- */
191
- /**
192
- * Bearer credential for the dial: a token string, or a provider invoked on
193
- * EVERY dial (including {@link TerminalStream.reconnect}). The provider
194
- * receives that dial's AbortSignal so token minting observes cancellation.
195
- * Scoped terminal tokens are short-lived (the platform clamps them to <= 15
196
- * minutes), so a provider lets the SDK re-mint a fresh token per dial.
197
- */
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
- }
233
- /** Authority refreshed before an interactive stream reconnects. */
234
- interface TerminalStreamReconnectBinding {
235
- incarnationId: TerminalInteractiveSessionIdentity["incarnationId"];
236
- control: TerminalInteractiveSessionIdentity["control"];
237
- /** Release a claim if the new socket cannot be opened. */
238
- onFailure?: () => Promise<void> | void;
239
- }
240
- /** Internal SDK hook that reclaims interactive authority before reconnect. */
241
- interface TerminalStreamReconnectAuthority {
242
- acquire(signal?: AbortSignal): Promise<TerminalStreamReconnectBinding>;
243
- }
244
- interface TerminalStreamOptions {
245
- /**
246
- * Absolute URL of the terminal WebSocket endpoint. `http(s)` URLs are
247
- * converted to `ws(s)` automatically.
248
- */
249
- url: string;
250
- /**
251
- * Bearer token carried in the auth subprotocol (see `authFormat`) — a
252
- * string, or a provider re-invoked on every dial so short-lived scoped
253
- * tokens stay fresh across reconnects.
254
- */
255
- token: TerminalStreamToken;
256
- /**
257
- * PTY connection id — also sent in the `init` frame; the server rejects a
258
- * mismatch with the URL's id. Reusing an id reattaches the existing PTY.
259
- */
260
- connectionId: string;
261
- cols?: number;
262
- rows?: number;
263
- /** Command to run when the id has no live PTY (defaults to the shell). */
264
- command?: string;
265
- cwd?: string;
266
- env?: Record<string, string>;
267
- /**
268
- * Exact interactive-agent incarnation. Ordinary terminal consumers omit
269
- * both interactive fields and retain the existing wire contract.
270
- */
271
- incarnationId?: TerminalInteractiveSessionIdentity["incarnationId"];
272
- /** Exact active control claim for the interactive-agent incarnation. */
273
- control?: TerminalInteractiveSessionIdentity["control"];
274
- /** Auth subprotocol envelope. Default `"edge"`. */
275
- authFormat?: TerminalStreamAuthFormat;
276
- handlers?: TerminalStreamHandlers;
277
- /** Reject `connect()` if `ready` has not arrived within this window. */
278
- connectTimeoutMs?: number;
279
- /** Cancel token resolution or an in-progress WebSocket handshake. */
280
- signal?: AbortSignal;
281
- /** Reclaim interactive authority before a reconnecting dial. */
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;
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;
300
- /**
301
- * Client for one terminal WebSocket connection. Construct via
302
- * {@link TerminalStream.connect}, which resolves once the server
303
- * acknowledges the attach with `ready` (history replay then streams through
304
- * `handlers.onData`).
305
- */
306
- declare class TerminalStream {
307
- #private;
308
- private readonly ws;
309
- private readonly interactiveIdentity;
310
- private readonly handlers;
311
- private readonly attachTraceId;
312
- private readonly initOnUpgrade;
313
- private readonly dialStartedAt;
314
- private openedAt;
315
- private readyAt;
316
- private firstByteAt;
317
- private firstWriteAt;
318
- private echoRttMs;
319
- private readyInfo;
320
- private closed;
321
- private closeWaiters;
322
- private readonly textDecoder;
323
- private reconnectInFlight?;
324
- /**
325
- * Dial the endpoint, send `init` as the first frame, and resolve once the
326
- * server responds `ready`. Rejects on a protocol `error` frame, a socket
327
- * close/failure before `ready`, or the connect timeout — always with the
328
- * reason the server gave. A token PROVIDER is awaited here, before the
329
- * socket opens, so every dial (first connect and each reconnect) carries a
330
- * fresh credential.
331
- */
332
- static connect(options: TerminalStreamOptions): Promise<TerminalStream>;
333
- private constructor();
334
- private establish;
335
- private handleMessage;
336
- /** PTY connection id this stream is attached to. */
337
- get connectionId(): string;
338
- /** The server's `ready` acknowledgement. Set once `connect()` resolves. */
339
- get ready(): TerminalReadyInfo;
340
- /** Correlation id of this attach (`x-tangle-trace-id` / `traceId`). */
341
- get traceId(): string;
342
- /**
343
- * Timings of this attach. `firstByteMs` and `echoRttMs` appear once the
344
- * stream has produced the output they measure.
345
- */
346
- get timings(): TerminalAttachTimings;
347
- /** Stamp the first output byte after `ready`, and the first one after the first write. */
348
- private noteOutput;
349
- /** True while the socket is open. */
350
- get isOpen(): boolean;
351
- /**
352
- * Send input keystrokes to the PTY. `Uint8Array` input is decoded as
353
- * UTF-8 (the wire protocol carries input as JSON text). Input larger than
354
- * the server's 1 MiB frame cap is split across multiple `input` frames in
355
- * order on the same socket, so delivery order is preserved.
356
- */
357
- write(data: string | Uint8Array): void;
358
- /** Resize the PTY. */
359
- resize(cols: number, rows: number): void;
360
- /**
361
- * Detach cleanly: close the socket and resolve once the close completes.
362
- * The PTY survives server-side for `ready.detachTimeoutMs` (5 minutes
363
- * today) — reattach within that window via {@link reconnect} (or a fresh
364
- * `connect()` with the same connectionId) to replay history and continue.
365
- */
366
- close(): Promise<void>;
367
- /**
368
- * Re-dial the same endpoint with the same connectionId on a fresh socket
369
- * — the server reattaches the PTY and replays its buffered history. When
370
- * the stream was constructed with a token PROVIDER, it is re-invoked for
371
- * the new dial (scoped terminal tokens expire within minutes, so the
372
- * original credential may be dead by reconnect time); with a plain string
373
- * token, pass a fresh `token` override yourself when it may have expired.
374
- * `handlers` rebinds callbacks for the new stream.
375
- */
376
- reconnect(overrides?: {
377
- token?: TerminalStreamToken;
378
- handlers?: TerminalStreamHandlers;
379
- cols?: number;
380
- rows?: number;
381
- signal?: AbortSignal;
382
- }): Promise<TerminalStream>;
383
- private reconnectOnce;
384
- private handlersForReconnect;
385
- private assertOpen;
386
- }
387
- //#endregion
388
- 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 };
File without changes