@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/bridge/index.js +3 -3
- package/dist/{contexts-D6kt6WyG.d.ts → contexts-D_shbnJs.d.ts} +32 -2
- package/dist/contexts-D_shbnJs.d.ts.map +1 -0
- package/dist/{dist-Ilf8VjmX.js → dist-B_eXrP83.js} +35 -48
- package/dist/dist-B_eXrP83.js.map +1 -0
- package/dist/errors-CBi-O-pF.js +227 -0
- package/dist/errors-CBi-O-pF.js.map +1 -0
- package/dist/index.d.ts +27 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/openai/index.d.ts +1 -1
- package/dist/openai/index.js +1 -1
- package/dist/opencode/index.d.ts +2 -2
- package/dist/opencode/index.js +2 -2
- package/dist/{sandbox-Cf_Wjrzq.js → sandbox-CReFGUtF.js} +734 -64
- package/dist/sandbox-CReFGUtF.js.map +1 -0
- package/dist/{sandbox-Chr1Ebo-.d.ts → sandbox-YMrVC62F.d.ts} +453 -20
- package/dist/sandbox-YMrVC62F.d.ts.map +1 -0
- package/package.json +2 -1
- package/dist/contexts-D6kt6WyG.d.ts.map +0 -1
- package/dist/dist-Ilf8VjmX.js.map +0 -1
- package/dist/errors-Dk2rApYI.js +0 -162
- package/dist/errors-Dk2rApYI.js.map +0 -1
- package/dist/sandbox-Cf_Wjrzq.js.map +0 -1
- package/dist/sandbox-Chr1Ebo-.d.ts.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { a as DesktopCoordinateErrorContext, d as
|
|
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
|
|
186
|
+
private getInterpreterClient;
|
|
166
187
|
private contexts;
|
|
167
|
-
constructor(
|
|
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
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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":";;;;;;;;;;
|
|
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":";;;;;;;;;;AAoDgD,cAFnC,YAEmC,CAAA,WAFX,MAEW,CAAA,MAAA,EAAA,OAAA,CAAA,CAAA,SAFsB,KAAA,CAEtB;EAiBnC,SAAA,aAAA,EAjBsB,eAiBtB,CAjBoC,QAiBpC,CAAA;EAAA,WAAA,CAAA,aAAA,EAjBsB,eAiBtB,CAjBoC,QAiBpC,CAAA,EAAA,QAAA,EAAA;IAME,KAAA,CAAA,EAAA,OAAA;;cAvBiC;EAFsB,IAAA,OAAA,CAAA,CAAA,EAmBzD,QAnByD;EAAK,IAAA,UAAA,CAAA,CAAA,EAAA,MAAA;EA6Q9D,IAAA,SAAA,CAAA,CAAA,EA1PA,aAAA,GA0PuB,SAAA;EAAqB,IAAA,UAAA,CAAA,CAAA,EAAA,MAAA,GAAA,SAAA;EACd,IAAA,SAAA,CAAA,CAAA,EAAA,MAAA;EAAd,IAAA,aAAA,CAAA,CAAA,EAAA,MAAA,GAAA,SAAA;EADe,MAAA,CAAA,CAAA,EAAA;IAAY,IAAA,EAAA,MAAA;IA6X3C,OAAA,EAAA,MAAA;IAA8C,IAAA,EAjnB5C,SAinB4C;IAChB,OAAA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uCuC,CKvCxB,ULuCwB,CAAA,EAAA,MAAA,CAAA,EKtCtC,WLsCsC,CAAA,EKrC9C,aLqC8C,CKrChC,CLqCgC,CAAA;;;;;;iBKmD1B,qCACX,mBACD,cACR,cAAc;;;;ALqNjB;;;AAC6B,iBKlMb,wBLkMa,CAAA,CAAA,CAAA,CAAA,MAAA,EKjMnB,aLiMmB,CKjML,CLiMK,CAAA,EAAA,OA4X7B,CA5X6B,EAAA;EADe,MAAA,CAAA,EK9L/B,WL8L+B;EAAY,SAAA,CAAA,EAAA,CAAA,KAAA,EK7LhC,CL6LgC,EAAA,GAAA,MAAA;AA6XxD,CAAA,CAAA,EKxjBG,cLwjBU,CKxjBK,ULwjBL,CAAA;;;;;;AAxoBmC,cMvCnC,gBAAA,SAAyB,KAAA,CNuCU;EAiBnC,SAAA,IAAA,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-
|
|
2
|
-
import "./errors-
|
|
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
|
|
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 };
|
package/dist/openai/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as Sandbox } from "../sandbox-
|
|
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
|
package/dist/openai/index.js
CHANGED
package/dist/opencode/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Sandbox } from "../sandbox-
|
|
2
|
-
import { c as OpencodeStartupContext } from "../contexts-
|
|
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
|
|
package/dist/opencode/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as createLogger } from "../dist-
|
|
2
|
-
import {
|
|
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
|
/**
|