@cloudflare/sandbox 0.9.3 → 0.10.0

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.
@@ -2642,6 +2642,12 @@ interface ContainerControlConnectionOptions {
2642
2642
  stub: ContainerFetchStub;
2643
2643
  port?: number;
2644
2644
  logger?: Logger;
2645
+ /**
2646
+ * Total retry budget (ms) for 503 upgrade responses while the container
2647
+ * is starting. Defaults to 120 000 (2 minutes), matching the route-based
2648
+ * `WebSocketTransport`. Set to 0 to disable retries.
2649
+ */
2650
+ retryTimeoutMs?: number;
2645
2651
  }
2646
2652
  //#endregion
2647
2653
  //#region src/container-control/client.d.ts
@@ -2744,7 +2750,12 @@ declare class ContainerControlClient {
2744
2750
  get desktop(): SandboxDesktopAPI;
2745
2751
  get watch(): SandboxWatchAPI;
2746
2752
  get interpreter(): SandboxInterpreterAPI;
2747
- setRetryTimeoutMs(_ms: number): void;
2753
+ /**
2754
+ * Update the 503 upgrade-retry budget. Applies to the current connection
2755
+ * (if any) and is remembered for any future connections created after the
2756
+ * client is torn down and reconnected.
2757
+ */
2758
+ setRetryTimeoutMs(ms: number): void;
2748
2759
  getTransportMode(): SandboxTransport;
2749
2760
  isWebSocketConnected(): boolean;
2750
2761
  connect(): Promise<void>;
@@ -3473,4 +3484,4 @@ declare class Sandbox<Env = unknown> extends Container<Env> implements ISandbox
3473
3484
  }
3474
3485
  //#endregion
3475
3486
  export { BackupOptions as $, DesktopStopResponse as A, ProcessStartResult as At, ExecuteResponse as B, WatchOptions as Bt, ClickOptions as C, Process as Ct, DesktopStartOptions as D, ProcessListResult as Dt, DesktopClient as E, ProcessKillResult as Et, ScreenshotRegion as F, SandboxTransport as Ft, HttpClientOptions as G, CodeContext as Gt, BaseApiResponse as H, isProcess as Ht, ScreenshotResponse as I, SessionOptions as It, SessionRequest as J, ExecutionResult as Jt, RequestConfig as K, CreateContextOptions as Kt, ScrollDirection as L, StreamOptions as Lt, ScreenSizeResponse as M, RemoteMountBucketOptions as Mt, ScreenshotBytesResponse as N, RestoreBackupResult as Nt, DesktopStartResponse as O, ProcessLogsResult as Ot, ScreenshotOptions as P, SandboxOptions as Pt, StartProcessRequest as Q, TypeOptions as R, WaitForLogResult as Rt, WriteFileRequest as S, PortListResult as St, Desktop as T, ProcessInfoResult as Tt, ContainerStub as U, isProcessStatus as Ut, BackupClient as V, isExecResult as Vt, ErrorResponse as W, PtyOptions as Wt, ExecuteRequest as X, SandboxInterpreterAPI as Y, RunCodeOptions as Yt, ExposePortRequest as Z, GitClient as _, LocalMountBucketOptions as _t, CreateSessionRequest as a, DirectoryBackup as at, MkdirRequest as b, PortCloseResult as bt, DeleteSessionResponse as c, ExecResult as ct, ProcessClient as d, FileMetadata as dt, BaseExecOptions as et, PortClient as f, FileStreamEvent as ft, GitCheckoutRequest as g, ListFilesOptions as gt, InterpreterClient as h, ISandbox as ht, CommandsResponse as i, CheckChangesResult as it, KeyInput as j, ProcessStatus as jt, DesktopStatusResponse as k, ProcessOptions as kt, PingResponse as l, ExecutionSession as lt, ExecutionCallbacks as m, GitCheckoutResult as mt, getSandbox as n, BucketProvider as nt, CreateSessionResponse as o, ExecEvent as ot, UnexposePortRequest as p, FileWatchSSEEvent as pt, ResponseHandler as q, Execution as qt, SandboxClient as r, CheckChangesOptions as rt, DeleteSessionRequest as s, ExecOptions as st, Sandbox as t, BucketCredentials as tt, UtilityClient as u, FileChunk as ut, FileClient as v, LogEvent as vt, CursorPositionResponse as w, ProcessCleanupResult as wt, ReadFileRequest as x, PortExposeResult as xt, FileOperationRequest as y, MountBucketOptions as yt, CommandClient as z, WaitForPortOptions as zt };
3476
- //# sourceMappingURL=sandbox-CW4QeITP.d.ts.map
3487
+ //# sourceMappingURL=sandbox-C-AzrX_L.d.ts.map