@cloudflare/sandbox 0.9.0 → 0.9.2

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as CheckChangesOptions, A as DesktopStopResponse, At as SandboxOptions, B as ExecuteResponse, Bt as ExposePortRequest, C as ClickOptions, Ct as ProcessListResult, D as DesktopStartOptions, Dt as ProcessStatus, E as DesktopClient, Et as ProcessStartResult, F as ScreenshotRegion, Ft as WatchOptions, G as HttpClientOptions, Gt as Execution, H as BaseApiResponse, Ht as PtyOptions, I as ScreenshotResponse, It as isExecResult, J as SessionRequest, K as RequestConfig, Kt as ExecutionResult, L as ScrollDirection, Lt as isProcess, M as ScreenSizeResponse, Mt as StreamOptions, N as ScreenshotBytesResponse, Nt as WaitForLogResult, O as DesktopStartResponse, Ot as RemoteMountBucketOptions, P as ScreenshotOptions, Pt as WaitForPortOptions, Q as BucketProvider, R as TypeOptions, Rt as isProcessStatus, S as WriteFileRequest, St as ProcessKillResult, T as Desktop, Tt as ProcessOptions, U as ContainerStub, Ut as CodeContext, V as BackupClient, Vt as StartProcessRequest, W as ErrorResponse, Wt as CreateContextOptions, X as BaseExecOptions, Y as BackupOptions, Z as BucketCredentials, _ as GitClient, _t as PortExposeResult, a as CreateSessionRequest, at as ExecutionSession, b as MkdirRequest, bt as ProcessCleanupResult, c as DeleteSessionResponse, ct as FileStreamEvent, d as ProcessClient, dt as ISandbox, et as CheckChangesResult, f as PortClient, ft as ListFilesOptions, g as GitCheckoutRequest, gt as PortCloseResult, h as InterpreterClient, ht as MountBucketOptions, i as CommandsResponse, it as ExecResult, j as KeyInput, jt as SessionOptions, k as DesktopStatusResponse, kt as RestoreBackupResult, l as PingResponse, lt as FileWatchSSEEvent, m as ExecutionCallbacks, mt as LogEvent, n as getSandbox, nt as ExecEvent, o as CreateSessionResponse, ot as FileChunk, p as UnexposePortRequest, pt as LocalMountBucketOptions, q as ResponseHandler, qt as RunCodeOptions, r as SandboxClient, rt as ExecOptions, s as DeleteSessionRequest, st as FileMetadata, t as Sandbox, tt as DirectoryBackup, u as UtilityClient, ut as GitCheckoutResult, v as FileClient, vt as PortListResult, w as CursorPositionResponse, wt as ProcessLogsResult, x as ReadFileRequest, xt as ProcessInfoResult, y as FileOperationRequest, yt as Process, z as CommandClient, zt as ExecuteRequest } from "./sandbox-Chr1Ebo-.js";
2
- import { a as DesktopCoordinateErrorContext, d as SessionTerminatedContext, f as ErrorResponse$1, i as BackupRestoreContext, l as ProcessExitedBeforeReadyContext, m as ErrorCode, n as BackupExpiredContext, o as DesktopErrorContext, p as OperationType, r as BackupNotFoundContext, s as InvalidBackupConfigContext, t as BackupCreateContext, u as ProcessReadyTimeoutContext } from "./contexts-D6kt6WyG.js";
1
+ import { $ as BucketProvider, A as DesktopStopResponse, At as RestoreBackupResult, B as ExecuteResponse, Bt as ExecuteRequest, C as ClickOptions, Ct as ProcessKillResult, D as DesktopStartOptions, Dt as ProcessStartResult, E as DesktopClient, Et as ProcessOptions, F as ScreenshotRegion, Ft as WaitForPortOptions, G as HttpClientOptions, Gt as CreateContextOptions, H as BaseApiResponse, Ht as StartProcessRequest, I as ScreenshotResponse, It as WatchOptions, J as SessionRequest, Jt as RunCodeOptions, K as RequestConfig, Kt as Execution, L as ScrollDirection, Lt as isExecResult, M as ScreenSizeResponse, Mt as SessionOptions, N as ScreenshotBytesResponse, Nt as StreamOptions, O as DesktopStartResponse, Ot as ProcessStatus, P as ScreenshotOptions, Pt as WaitForLogResult, Q as BucketCredentials, R as TypeOptions, Rt as isProcess, S as WriteFileRequest, St as ProcessInfoResult, T as Desktop, Tt as ProcessLogsResult, U as ContainerStub, Ut as PtyOptions, V as BackupClient, Vt as ExposePortRequest, W as ErrorResponse, Wt as CodeContext, X as BackupOptions, Y as SandboxInterpreterAPI, Z as BaseExecOptions, _ as GitClient, _t as PortCloseResult, a as CreateSessionRequest, at as ExecResult, b as MkdirRequest, bt as Process, c as DeleteSessionResponse, ct as FileMetadata, d as ProcessClient, dt as GitCheckoutResult, et as CheckChangesOptions, f as PortClient, ft as ISandbox, g as GitCheckoutRequest, gt as MountBucketOptions, h as InterpreterClient, ht as LogEvent, i as CommandsResponse, it as ExecOptions, j as KeyInput, jt as SandboxOptions, k as DesktopStatusResponse, kt as RemoteMountBucketOptions, l as PingResponse, lt as FileStreamEvent, m as ExecutionCallbacks, mt as LocalMountBucketOptions, n as getSandbox, nt as DirectoryBackup, o as CreateSessionResponse, ot as ExecutionSession, p as UnexposePortRequest, pt as ListFilesOptions, q as ResponseHandler, qt as ExecutionResult, r as SandboxClient, rt as ExecEvent, s as DeleteSessionRequest, st as FileChunk, t as Sandbox, tt as CheckChangesResult, u as UtilityClient, ut as FileWatchSSEEvent, v as FileClient, vt as PortExposeResult, w as CursorPositionResponse, wt as ProcessListResult, x as ReadFileRequest, xt as ProcessCleanupResult, y as FileOperationRequest, yt as PortListResult, z as CommandClient, zt as isProcessStatus } from "./sandbox-YMrVC62F.js";
2
+ import { a as DesktopCoordinateErrorContext, d as RPCTransportContext, f as RPCTransportErrorKind, g as ErrorCode, h as OperationType, i as BackupRestoreContext, l as ProcessExitedBeforeReadyContext, m as ErrorResponse$1, n as BackupExpiredContext, o as DesktopErrorContext, p as SessionTerminatedContext, r as BackupNotFoundContext, s as InvalidBackupConfigContext, t as BackupCreateContext, u as ProcessReadyTimeoutContext } from "./contexts-D_shbnJs.js";
3
3
  import { ContainerProxy } from "@cloudflare/containers";
4
4
 
5
5
  //#region src/errors/classes.d.ts
@@ -10,7 +10,9 @@ import { ContainerProxy } from "@cloudflare/containers";
10
10
  */
11
11
  declare class SandboxError<TContext = Record<string, unknown>> extends Error {
12
12
  readonly errorResponse: ErrorResponse$1<TContext>;
13
- constructor(errorResponse: ErrorResponse$1<TContext>);
13
+ constructor(errorResponse: ErrorResponse$1<TContext>, options?: {
14
+ cause?: unknown;
15
+ });
14
16
  get code(): ErrorCode;
15
17
  get context(): TContext;
16
18
  get httpStatus(): number;
@@ -118,6 +120,25 @@ declare class DesktopInvalidOptionsError extends SandboxError<DesktopErrorContex
118
120
  declare class DesktopInvalidCoordinatesError extends SandboxError<DesktopCoordinateErrorContext> {
119
121
  constructor(errorResponse: ErrorResponse$1<DesktopCoordinateErrorContext>);
120
122
  }
123
+ /**
124
+ * Raised when the capnweb WebSocket session itself fails on the SDK side.
125
+ * Unlike the rest of the SandboxError tree, the container never produces
126
+ * this error — it is synthesised by `translateRPCError` from the plain
127
+ * Errors capnweb / DeferredTransport raise when the connection dies.
128
+ *
129
+ * `kind` distinguishes the failure mode (peer close, upgrade failed, etc.)
130
+ * so callers can branch on a structured code instead of substring-matching
131
+ * on the message.
132
+ *
133
+ * Always retryable: the SDK opens a fresh connection on the next call.
134
+ */
135
+ declare class RPCTransportError extends SandboxError<RPCTransportContext> {
136
+ constructor(errorResponse: ErrorResponse$1<RPCTransportContext>, options?: {
137
+ cause?: unknown;
138
+ });
139
+ get kind(): RPCTransportErrorKind;
140
+ get originalMessage(): string;
141
+ }
121
142
  //#endregion
122
143
  //#region src/file-stream.d.ts
123
144
  /**
@@ -162,9 +183,9 @@ declare function collectFile(stream: ReadableStream<Uint8Array>): Promise<{
162
183
  //#endregion
163
184
  //#region src/interpreter.d.ts
164
185
  declare class CodeInterpreter {
165
- private interpreterClient;
186
+ private getInterpreterClient;
166
187
  private contexts;
167
- constructor(sandbox: Sandbox);
188
+ constructor(interpreterClient: SandboxInterpreterAPI | (() => SandboxInterpreterAPI));
168
189
  /**
169
190
  * Create a new code execution context
170
191
  */
@@ -266,5 +287,5 @@ declare class InvalidMountConfigError extends BucketMountError {
266
287
  constructor(message: string);
267
288
  }
268
289
  //#endregion
269
- export { BackupClient, BackupCreateError, BackupExpiredError, BackupNotFoundError, type BackupOptions, BackupRestoreError, type BaseApiResponse, type BaseExecOptions, type BucketCredentials, BucketMountError, type BucketProvider, BucketUnmountError, type CheckChangesOptions, type CheckChangesResult, type ClickOptions, type CodeContext, CodeInterpreter, CommandClient, type ExecuteResponse as CommandExecuteResponse, type CommandsResponse, ContainerProxy, type ContainerStub, type CreateContextOptions, type CreateSessionRequest, type CreateSessionResponse, type CursorPositionResponse, type DeleteSessionRequest, type DeleteSessionResponse, type Desktop, DesktopClient, DesktopInvalidCoordinatesError, DesktopInvalidOptionsError, DesktopNotStartedError, DesktopProcessCrashedError, DesktopStartFailedError, type DesktopStartOptions, type DesktopStartResponse, type DesktopStatusResponse, type DesktopStopResponse, DesktopUnavailableError, type DirectoryBackup, type ErrorResponse, type ExecEvent, type ExecOptions, type ExecResult, type ExecuteRequest, type ExecutionCallbacks, type ExecutionResult, type ExecutionSession, type ExposePortRequest, type FileChunk, FileClient, type FileMetadata, type FileOperationRequest, type FileStreamEvent, type FileWatchSSEEvent, type GitCheckoutRequest, type GitCheckoutResult, GitClient, type ISandbox, type InterpreterClient, InvalidBackupConfigError, InvalidMountConfigError, type KeyInput, type ListFilesOptions, type LocalMountBucketOptions, type LogEvent, MissingCredentialsError, type MkdirRequest, type MountBucketOptions, type PingResponse, PortClient, type PortCloseResult, type PortExposeResult, type PortListResult, type Process, type ProcessCleanupResult, ProcessClient, ProcessExitedBeforeReadyError, type ProcessInfoResult, type ProcessKillResult, type ProcessListResult, type ProcessLogsResult, type ProcessOptions, ProcessReadyTimeoutError, type ProcessStartResult, type ProcessStatus, type PtyOptions, type ReadFileRequest, type RemoteMountBucketOptions, type RequestConfig, type ResponseHandler, type RestoreBackupResult, type RouteInfo, type RunCodeOptions, S3FSMountError, Sandbox, SandboxClient, type HttpClientOptions as SandboxClientOptions, type SandboxEnv, type SandboxOptions, type ScreenSizeResponse, type ScreenshotBytesResponse, type ScreenshotOptions, type ScreenshotRegion, type ScreenshotResponse, type ScrollDirection, type SessionOptions, type SessionRequest, SessionTerminatedError, type StartProcessRequest, type StreamOptions, type TypeOptions, type UnexposePortRequest, UtilityClient, type WaitForLogResult, type WaitForPortOptions, type WatchOptions, type WriteFileRequest, asyncIterableToSSEStream, collectFile, getSandbox, isExecResult, isProcess, isProcessStatus, parseSSEStream, proxyTerminal, proxyToSandbox, responseToAsyncIterable, streamFile };
290
+ export { BackupClient, BackupCreateError, BackupExpiredError, BackupNotFoundError, type BackupOptions, BackupRestoreError, type BaseApiResponse, type BaseExecOptions, type BucketCredentials, BucketMountError, type BucketProvider, BucketUnmountError, type CheckChangesOptions, type CheckChangesResult, type ClickOptions, type CodeContext, CodeInterpreter, CommandClient, type ExecuteResponse as CommandExecuteResponse, type CommandsResponse, ContainerProxy, type ContainerStub, type CreateContextOptions, type CreateSessionRequest, type CreateSessionResponse, type CursorPositionResponse, type DeleteSessionRequest, type DeleteSessionResponse, type Desktop, DesktopClient, DesktopInvalidCoordinatesError, DesktopInvalidOptionsError, DesktopNotStartedError, DesktopProcessCrashedError, DesktopStartFailedError, type DesktopStartOptions, type DesktopStartResponse, type DesktopStatusResponse, type DesktopStopResponse, DesktopUnavailableError, type DirectoryBackup, type ErrorResponse, type ExecEvent, type ExecOptions, type ExecResult, type ExecuteRequest, type ExecutionCallbacks, type ExecutionResult, type ExecutionSession, type ExposePortRequest, type FileChunk, FileClient, type FileMetadata, type FileOperationRequest, type FileStreamEvent, type FileWatchSSEEvent, type GitCheckoutRequest, type GitCheckoutResult, GitClient, type ISandbox, type InterpreterClient, InvalidBackupConfigError, InvalidMountConfigError, type KeyInput, type ListFilesOptions, type LocalMountBucketOptions, type LogEvent, MissingCredentialsError, type MkdirRequest, type MountBucketOptions, type PingResponse, PortClient, type PortCloseResult, type PortExposeResult, type PortListResult, type Process, type ProcessCleanupResult, ProcessClient, ProcessExitedBeforeReadyError, type ProcessInfoResult, type ProcessKillResult, type ProcessListResult, type ProcessLogsResult, type ProcessOptions, ProcessReadyTimeoutError, type ProcessStartResult, type ProcessStatus, type PtyOptions, type RPCTransportContext, RPCTransportError, type RPCTransportErrorKind, type ReadFileRequest, type RemoteMountBucketOptions, type RequestConfig, type ResponseHandler, type RestoreBackupResult, type RouteInfo, type RunCodeOptions, S3FSMountError, Sandbox, SandboxClient, type HttpClientOptions as SandboxClientOptions, type SandboxEnv, type SandboxOptions, type ScreenSizeResponse, type ScreenshotBytesResponse, type ScreenshotOptions, type ScreenshotRegion, type ScreenshotResponse, type ScrollDirection, type SessionOptions, type SessionRequest, SessionTerminatedError, type StartProcessRequest, type StreamOptions, type TypeOptions, type UnexposePortRequest, UtilityClient, type WaitForLogResult, type WaitForPortOptions, type WatchOptions, type WriteFileRequest, asyncIterableToSSEStream, collectFile, getSandbox, isExecResult, isProcess, isProcessStatus, parseSSEStream, proxyTerminal, proxyToSandbox, responseToAsyncIterable, streamFile };
270
291
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/errors/classes.ts","../src/file-stream.ts","../src/interpreter.ts","../src/pty/proxy.ts","../src/request-handler.ts","../src/sse-parser.ts","../src/storage-mount/errors.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;AAiD0D,cAD7C,YAC6C,CAAA,WADrB,MACqB,CAAA,MAAA,EAAA,OAAA,CAAA,CAAA,SADY,KAAA,CACZ;EAS7C,SAAA,aAAA,EATgC,eAShC,CAT8C,QAS9C,CAAA;EAAA,WAAA,CAAA,aAAA,EATgC,eAShC,CAT8C,QAS9C,CAAA;EAME,IAAA,IAAA,CAAA,CAAA,EAf2C,SAe3C;iBANF;;EAVyD,IAAA,SAAA,CAAA,CAAA,EAUzD,aAAA,GAVyD,SAAA;EAAK,IAAA,UAAA,CAAA,CAAA,EAAA,MAAA,GAAA,SAAA;EAgQ9D,IAAA,SAAA,CAAA,CAAA,EAAA,MAAA;EAA4C,IAAA,aAAA,CAAA,CAAA,EAAA,MAAA,GAAA,SAAA;EACd,MAAA,CAAA,CAAA,EAAA;IAAd,IAAA,EAAA,MAAA;IADe,OAAA,EAAA,MAAA;IAAY,IAAA,EAhPzC,SAgPyC;IA6X3C,OAAA,UAAA;IAA8C,UAAA,EAAA,MAAA;IAChB,SA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8BQ,GAAA,IAAA,CAAA;;;;;;;;AAD7C;;;;AAC2D,iBKrCpC,cLqCoC,CAAA,CAAA,CAAA,CAAA,MAAA,EKpCjD,cLoCiD,CKpClC,ULoCkC,CAAA,EAAA,MAAA,CAAA,EKnChD,WLmCgD,CAAA,EKlCxD,aLkCwD,CKlC1C,CLkC0C,CAAA;;;;;;iBKsDpC,qCACX,mBACD,cACR,cAAc;;;;ALsMjB;;;AAC6B,iBKnLb,wBLmLa,CAAA,CAAA,CAAA,CAAA,MAAA,EKlLnB,aLkLmB,CKlLL,CLkLK,CAAA,EAAA,OA4X7B,CA5X6B,EAAA;EADe,MAAA,CAAA,EK/K/B,WL+K+B;EAAY,SAAA,CAAA,EAAA,CAAA,KAAA,EK9KhC,CL8KgC,EAAA,GAAA,MAAA;AA6XxD,CAAA,CAAA,EKziBG,cLyiBU,CKziBK,ULyiBL,CAAA;;;;;;AA5nB6C,cMpC7C,gBAAA,SAAyB,KAAA,CNoCoB;EAS7C,SAAA,IAAA,EM5CW,SN4CX;EAAA,WAAA,CAAA,OAAA,EAAA,MAAA,EAAA,IAAA,CAAA,EM1CwB,SN0CxB;;;;;AAV8D,cMtB9D,cAAA,SAAuB,gBAAA,CNsBuC;EAgQ9D,WAAA,CAAA,OAAA,EAAA,MAAuB;;;;;AAAoB,cM5Q3C,kBAAA,SAA2B,gBAAA,CN4QgB;EA6X3C,WAAA,CAAA,OAAA,EAAA,MAAyB;;;;;AAAoB,cM/nB7C,uBAAA,SAAgC,gBAAA,CN+nBa;EAwB7C,WAAA,CAAA,OAAA,EAAA,MAAA;;;;;AAAkD,cM7oBlD,uBAAA,SAAgC,gBAAA,CN6oBkB;EA4BlD,WAAA,CAAA,OAAA,EAAA,MAAoB"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/errors/classes.ts","../src/file-stream.ts","../src/interpreter.ts","../src/pty/proxy.ts","../src/request-handler.ts","../src/sse-parser.ts","../src/storage-mount/errors.ts"],"sourcesContent":[],"m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,EMvDW,SNuDX;EAAA,WAAA,CAAA,OAAA,EAAA,MAAA,EAAA,IAAA,CAAA,EMrDwB,SNqDxB;;;;;AAnB8D,cMxB9D,cAAA,SAAuB,gBAAA,CNwBuC;EA6Q9D,WAAA,CAAA,OAAA,EAAA,MAAuB;;;;;AAAoB,cM3R3C,kBAAA,SAA2B,gBAAA,CN2RgB;EA6X3C,WAAA,CAAA,OAAA,EAAA,MAAyB;;;;;AAAoB,cM9oB7C,uBAAA,SAAgC,gBAAA,CN8oBa;EAwB7C,WAAA,CAAA,OAAA,EAAA,MAAA;;;;;AAAkD,cM5pBlD,uBAAA,SAAgC,gBAAA,CN4pBkB;EA4BlD,WAAA,CAAA,OAAA,EAAA,MAAoB"}
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { a as isExecResult, o as isProcess, s as isProcessStatus } from "./dist-Ilf8VjmX.js";
2
- import "./errors-Dk2rApYI.js";
3
- import { A as DesktopInvalidOptionsError, C as CommandClient, D as BackupNotFoundError, E as BackupExpiredError, F as InvalidBackupConfigError, I as ProcessExitedBeforeReadyError, L as ProcessReadyTimeoutError, M as DesktopProcessCrashedError, N as DesktopStartFailedError, O as BackupRestoreError, P as DesktopUnavailableError, R as SessionTerminatedError, S as DesktopClient, T as BackupCreateError, _ as UtilityClient, a as BucketMountError, b as GitClient, c as MissingCredentialsError, d as parseSSEStream, f as responseToAsyncIterable, g as SandboxClient, h as streamFile, i as proxyTerminal, j as DesktopNotStartedError, k as DesktopInvalidCoordinatesError, l as S3FSMountError, m as collectFile, n as getSandbox, o as BucketUnmountError, p as CodeInterpreter, r as proxyToSandbox, s as InvalidMountConfigError, t as Sandbox, u as asyncIterableToSSEStream, v as ProcessClient, w as BackupClient, x as FileClient, y as PortClient } from "./sandbox-Cf_Wjrzq.js";
1
+ import { a as isExecResult, o as isProcess, s as isProcessStatus } from "./dist-B_eXrP83.js";
2
+ import "./errors-CBi-O-pF.js";
3
+ import { A as DesktopInvalidOptionsError, C as CommandClient, D as BackupNotFoundError, E as BackupExpiredError, F as InvalidBackupConfigError, I as ProcessExitedBeforeReadyError, L as ProcessReadyTimeoutError, M as DesktopProcessCrashedError, N as DesktopStartFailedError, O as BackupRestoreError, P as DesktopUnavailableError, R as RPCTransportError, S as DesktopClient, T as BackupCreateError, _ as UtilityClient, a as BucketMountError, b as GitClient, c as MissingCredentialsError, d as parseSSEStream, f as responseToAsyncIterable, g as SandboxClient, h as streamFile, i as proxyTerminal, j as DesktopNotStartedError, k as DesktopInvalidCoordinatesError, l as S3FSMountError, m as collectFile, n as getSandbox, o as BucketUnmountError, p as CodeInterpreter, r as proxyToSandbox, s as InvalidMountConfigError, t as Sandbox, u as asyncIterableToSSEStream, v as ProcessClient, w as BackupClient, x as FileClient, y as PortClient, z as SessionTerminatedError } from "./sandbox-CReFGUtF.js";
4
4
  import { ContainerProxy } from "@cloudflare/containers";
5
5
 
6
- export { BackupClient, BackupCreateError, BackupExpiredError, BackupNotFoundError, BackupRestoreError, BucketMountError, BucketUnmountError, CodeInterpreter, CommandClient, ContainerProxy, DesktopClient, DesktopInvalidCoordinatesError, DesktopInvalidOptionsError, DesktopNotStartedError, DesktopProcessCrashedError, DesktopStartFailedError, DesktopUnavailableError, FileClient, GitClient, InvalidBackupConfigError, InvalidMountConfigError, MissingCredentialsError, PortClient, ProcessClient, ProcessExitedBeforeReadyError, ProcessReadyTimeoutError, S3FSMountError, Sandbox, SandboxClient, SessionTerminatedError, UtilityClient, asyncIterableToSSEStream, collectFile, getSandbox, isExecResult, isProcess, isProcessStatus, parseSSEStream, proxyTerminal, proxyToSandbox, responseToAsyncIterable, streamFile };
6
+ export { BackupClient, BackupCreateError, BackupExpiredError, BackupNotFoundError, BackupRestoreError, BucketMountError, BucketUnmountError, CodeInterpreter, CommandClient, ContainerProxy, DesktopClient, DesktopInvalidCoordinatesError, DesktopInvalidOptionsError, DesktopNotStartedError, DesktopProcessCrashedError, DesktopStartFailedError, DesktopUnavailableError, FileClient, GitClient, InvalidBackupConfigError, InvalidMountConfigError, MissingCredentialsError, PortClient, ProcessClient, ProcessExitedBeforeReadyError, ProcessReadyTimeoutError, RPCTransportError, S3FSMountError, Sandbox, SandboxClient, SessionTerminatedError, UtilityClient, asyncIterableToSSEStream, collectFile, getSandbox, isExecResult, isProcess, isProcessStatus, parseSSEStream, proxyTerminal, proxyToSandbox, responseToAsyncIterable, streamFile };
@@ -1,4 +1,4 @@
1
- import { t as Sandbox } from "../sandbox-Chr1Ebo-.js";
1
+ import { t as Sandbox } from "../sandbox-YMrVC62F.js";
2
2
  import { ApplyPatchOperation, ApplyPatchResult, Editor as Editor$1, Shell as Shell$1, ShellAction, ShellResult } from "@openai/agents";
3
3
 
4
4
  //#region src/openai/index.d.ts
@@ -1,4 +1,4 @@
1
- import { u as createLogger } from "../dist-Ilf8VjmX.js";
1
+ import { u as createLogger } from "../dist-B_eXrP83.js";
2
2
  import { applyDiff } from "@openai/agents";
3
3
 
4
4
  //#region src/openai/index.ts
@@ -1,5 +1,5 @@
1
- import { t as Sandbox } from "../sandbox-Chr1Ebo-.js";
2
- import { c as OpencodeStartupContext } from "../contexts-D6kt6WyG.js";
1
+ import { t as Sandbox } from "../sandbox-YMrVC62F.js";
2
+ import { c as OpencodeStartupContext } from "../contexts-D_shbnJs.js";
3
3
  import { OpencodeClient } from "@opencode-ai/sdk/v2/client";
4
4
  import { Config } from "@opencode-ai/sdk/v2";
5
5
 
@@ -1,5 +1,5 @@
1
- import { u as createLogger } from "../dist-Ilf8VjmX.js";
2
- import { t as ErrorCode } from "../errors-Dk2rApYI.js";
1
+ import { u as createLogger } from "../dist-B_eXrP83.js";
2
+ import { r as ErrorCode } from "../errors-CBi-O-pF.js";
3
3
 
4
4
  //#region src/opencode/types.ts
5
5
  /**