coding-agents-sdk 0.10.0 → 0.12.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.
- package/README.md +12 -9
- package/dist/Agent-4TZ8JK66.mjs +4 -0
- package/dist/{SdkAgent-DQfLwPwY.mjs → SdkAgent-p0nJ6dWV.mjs} +1 -1
- package/dist/adapters/claude-code-cli/index.d.mts +2 -2
- package/dist/adapters/claude-code-cli/index.mjs +1 -1
- package/dist/adapters/claude-code-cli-pty/index.d.mts +3 -0
- package/dist/adapters/claude-code-cli-pty/index.mjs +35 -0
- package/dist/adapters/claude-code-sdk/index.d.mts +2 -2
- package/dist/adapters/claude-code-sdk/index.mjs +4 -4
- package/dist/adapters/codex-cli/index.d.mts +2 -2
- package/dist/adapters/codex-cli/index.mjs +2 -2
- package/dist/adapters/codex-sdk/index.d.mts +2 -2
- package/dist/adapters/codex-sdk/index.mjs +1 -1
- package/dist/adapters/cursor-cli/index.d.mts +2 -2
- package/dist/adapters/cursor-cli/index.mjs +1 -1
- package/dist/adapters/cursor-sdk/index.d.mts +2 -2
- package/dist/adapters/cursor-sdk/index.mjs +1 -1
- package/dist/adapters/gemini-cli/index.d.mts +2 -2
- package/dist/adapters/gemini-cli/index.mjs +1 -1
- package/dist/adapters/opencode-cli/index.d.mts +2 -2
- package/dist/adapters/opencode-cli/index.mjs +1 -1
- package/dist/adapters/pi-cli/index.d.mts +2 -2
- package/dist/adapters/pi-cli/index.mjs +1 -1
- package/dist/{classify-error-BcWmNftw.mjs → classify-error-BPQtzEVV.mjs} +4 -4
- package/dist/container/index.d.mts +2 -2
- package/dist/container/index.mjs +1 -1
- package/dist/{container-D31bbA4L.mjs → container-46QA1d3v.mjs} +1 -1
- package/dist/container-DBXaA-Iv.mjs +1 -0
- package/dist/container-DRj7xq5x.mjs +1 -0
- package/dist/{container-BhXUiAiK.mjs → container-Dg68bfte.mjs} +1 -1
- package/dist/{container-TizHce_7.mjs → container-gJ8B-Z5B.mjs} +1 -1
- package/dist/diff-BJWXJsjx.mjs +1 -0
- package/dist/{events-Dd9r9luo.d.mts → events-B0BpIsW2.d.mts} +143 -4
- package/dist/execution-target-CdlYXh6Z.mjs +1 -0
- package/dist/index-5bx9TIY_.d.mts +60 -0
- package/dist/index-B5NFoNlS.d.mts +195 -0
- package/dist/index-B9ze9hTN.d.mts +97 -0
- package/dist/{index-DZDlHIep.d.mts → index-BKK-3gye.d.mts} +44 -13
- package/dist/{index-J7V9dJTb.d.mts → index-BQ8cUo2i.d.mts} +50 -19
- package/dist/index-C9XD71QR.d.mts +429 -0
- package/dist/{index-B-rto_J2.d.mts → index-CG2m7pFJ.d.mts} +77 -1
- package/dist/index-CG5DS_NB.d.mts +58 -0
- package/dist/index-DPP4zoiJ.d.mts +68 -0
- package/dist/{index-BNeL0BbU.d.mts → index-DdyD2ji1.d.mts} +68 -2
- package/dist/index-DzFF15zC.d.mts +104 -0
- package/dist/index-XWqpUSBc.d.mts +69 -0
- package/dist/index.d.mts +69 -16
- package/dist/index.mjs +1 -1
- package/dist/oci-DmEG3Ia3.mjs +1 -0
- package/dist/{parser-BBJPNGZ2.mjs → parser-Dz239_vv.mjs} +2 -2
- package/dist/sandbox/index.d.mts +2 -2
- package/dist/sandbox/index.mjs +1 -1
- package/dist/sandbox-C5vzNxZR.mjs +4 -0
- package/dist/schemas/index.d.mts +1 -1
- package/dist/schemas/index.mjs +1 -1
- package/dist/spawner-BB6W3FVi.mjs +1 -0
- package/dist/types-CGzSzwfB.d.mts +476 -0
- package/dist/util-DcPzh_0u.mjs +1 -0
- package/package.json +24 -24
- package/dist/Agent-BD2xHVi0.mjs +0 -4
- package/dist/adapters/claude-cli-pty/index.d.mts +0 -3
- package/dist/adapters/claude-cli-pty/index.mjs +0 -7
- package/dist/container-BurV5WG9.mjs +0 -1
- package/dist/diff-DWM1ciiV.mjs +0 -1
- package/dist/errors-CeKI_bYK.mjs +0 -1
- package/dist/execution-target-CGTSqVEP.mjs +0 -1
- package/dist/index-B4RAMnx_.d.mts +0 -46
- package/dist/index-BdDz7C4J.d.mts +0 -39
- package/dist/index-BiWkGgnz.d.mts +0 -46
- package/dist/index-BllemWbi.d.mts +0 -42
- package/dist/index-C7J_hmQs.d.mts +0 -67
- package/dist/index-CaUzD36R.d.mts +0 -42
- package/dist/index-D-8EmRnQ.d.mts +0 -85
- package/dist/index-lGZ1lQkG.d.mts +0 -246
- package/dist/oci-tjdSZfTm.mjs +0 -1
- package/dist/sandbox-_As0qZWn.mjs +0 -4
- package/dist/spawner-BJesLc8I.mjs +0 -1
- package/dist/types-D6kxBNzj.d.mts +0 -195
- package/dist/util-CGg8cK92.mjs +0 -1
- /package/dist/{env-DIXTVzTs.mjs → env-Cb8MIvH7.mjs} +0 -0
- /package/dist/{schemas-mNF2Xlg_.mjs → schemas-CkdQXAep.mjs} +0 -0
- /package/dist/{shell-Dewbmt9R.mjs → shell-DvWFuFKb.mjs} +0 -0
- /package/dist/{structured-output-nPFh_ZoY.mjs → structured-output-cpLrrrTN.mjs} +0 -0
- /package/dist/{types-CwvWHEpy.mjs → types-B72tDMEZ.mjs} +0 -0
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
import { A as ProcessSpawner } from "./types-CGzSzwfB.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/container/types.d.ts
|
|
4
|
+
/** Which provider backs a container. Selects which CLI/SDK the adapter speaks. */
|
|
5
|
+
type ContainerType = "docker" | "e2b" | "nerdctl" | "podman";
|
|
6
|
+
/** Container port → host port mapping for `start`/`run`. */
|
|
7
|
+
interface PortMapping {
|
|
8
|
+
/** Port number exposed inside the container. */
|
|
9
|
+
container: number;
|
|
10
|
+
/** Host port to bind to. Defaults to a random free port if omitted. */
|
|
11
|
+
host?: number;
|
|
12
|
+
/** Transport protocol. Defaults to `"tcp"`. */
|
|
13
|
+
protocol?: "tcp" | "udp";
|
|
14
|
+
}
|
|
15
|
+
/** Bind mount or volume binding from host to container. */
|
|
16
|
+
interface VolumeMount {
|
|
17
|
+
/** Host path (absolute) or named volume. */
|
|
18
|
+
source: string;
|
|
19
|
+
/** Container path to mount at (absolute). */
|
|
20
|
+
target: string;
|
|
21
|
+
/** When `true`, mount is read-only inside the container. */
|
|
22
|
+
readonly?: boolean;
|
|
23
|
+
}
|
|
24
|
+
/** Fields shared by every provider-specific container config. */
|
|
25
|
+
interface ContainerConfigBase<TType extends ContainerType> {
|
|
26
|
+
type: TType;
|
|
27
|
+
/** Default working directory for `exec` and the agent's session. */
|
|
28
|
+
workdir: string;
|
|
29
|
+
/** Optional human-readable name. Defaults to a random unique name. */
|
|
30
|
+
name?: string;
|
|
31
|
+
/** Environment variables baked into the container. */
|
|
32
|
+
env?: Record<string, string>;
|
|
33
|
+
}
|
|
34
|
+
/** Per-call execution options for {@link ContainerExecution.exec}. */
|
|
35
|
+
interface ExecOptions {
|
|
36
|
+
/** Working directory inside the container; defaults to the container's `workdir`. */
|
|
37
|
+
cwd?: string;
|
|
38
|
+
/** Environment overrides layered on top of the container env. */
|
|
39
|
+
env?: Record<string, string>;
|
|
40
|
+
/** Hard timeout in milliseconds. */
|
|
41
|
+
timeoutMs?: number;
|
|
42
|
+
/** Caller-supplied AbortSignal that cancels the exec. */
|
|
43
|
+
signal?: AbortSignal;
|
|
44
|
+
}
|
|
45
|
+
/** Result of an exec call. */
|
|
46
|
+
interface ExecResult {
|
|
47
|
+
/** Exit code reported by the command. */
|
|
48
|
+
exitCode: number;
|
|
49
|
+
/** Captured stdout. */
|
|
50
|
+
stdout: string;
|
|
51
|
+
/** Captured stderr. */
|
|
52
|
+
stderr: string;
|
|
53
|
+
}
|
|
54
|
+
/** Lifecycle state of a container. */
|
|
55
|
+
type ContainerStatus = "created" | "disposed" | "running" | "stopped";
|
|
56
|
+
/** Per-file change kind in a {@link WorkdirDiff}. */
|
|
57
|
+
type WorkdirChangeKind = "added" | "deleted" | "modified" | "renamed";
|
|
58
|
+
/** Options for {@link ContainerObservability.snapshotWorkdir}. */
|
|
59
|
+
interface WorkdirSnapshotOptions {
|
|
60
|
+
/** Directory to snapshot; defaults to the container's `workdir`. */
|
|
61
|
+
cwd?: string;
|
|
62
|
+
}
|
|
63
|
+
/** Opaque snapshot reference used to compute a diff later. Release with {@link ContainerObservability.releaseWorkdirSnapshot}. */
|
|
64
|
+
interface WorkdirSnapshot {
|
|
65
|
+
readonly cwd: string;
|
|
66
|
+
readonly createdAt: Date;
|
|
67
|
+
}
|
|
68
|
+
/** Single-file entry in a {@link WorkdirDiff}. */
|
|
69
|
+
interface WorkdirFileChange {
|
|
70
|
+
readonly path: string;
|
|
71
|
+
/** For `kind: "renamed"`, the original path. */
|
|
72
|
+
readonly previousPath?: string;
|
|
73
|
+
readonly kind: WorkdirChangeKind;
|
|
74
|
+
readonly beforeHash?: string;
|
|
75
|
+
readonly afterHash?: string;
|
|
76
|
+
readonly beforeSize?: number;
|
|
77
|
+
readonly afterSize?: number;
|
|
78
|
+
}
|
|
79
|
+
/** Summary stats for a workdir diff operation. */
|
|
80
|
+
interface WorkdirDiffStats {
|
|
81
|
+
readonly durationMs: number;
|
|
82
|
+
readonly filesCompared: number;
|
|
83
|
+
}
|
|
84
|
+
/** Difference between a {@link WorkdirSnapshot} and the current container state. */
|
|
85
|
+
interface WorkdirDiff {
|
|
86
|
+
readonly cwd: string;
|
|
87
|
+
/** Convenience flat list of changed paths. */
|
|
88
|
+
readonly changedFiles: readonly string[];
|
|
89
|
+
/** Detailed per-file change records. */
|
|
90
|
+
readonly fileChanges: readonly WorkdirFileChange[];
|
|
91
|
+
readonly stats: WorkdirDiffStats;
|
|
92
|
+
}
|
|
93
|
+
/** Identity facet of a container — id, name, status, config. */
|
|
94
|
+
interface ContainerIdentity<TType extends ContainerType, TConfig extends ContainerConfigBase<TType>> {
|
|
95
|
+
readonly type: TType;
|
|
96
|
+
/** Provider-assigned container ID (Docker/Podman id, E2B sandbox id, etc.). */
|
|
97
|
+
readonly id: string;
|
|
98
|
+
readonly name: string;
|
|
99
|
+
readonly config: TConfig;
|
|
100
|
+
readonly status: ContainerStatus;
|
|
101
|
+
readonly workdir: string;
|
|
102
|
+
}
|
|
103
|
+
/** Lifecycle facet — start/stop/dispose plus `await using` support. */
|
|
104
|
+
interface ContainerLifecycle {
|
|
105
|
+
/** Start the container. Idempotent for already-running containers. */
|
|
106
|
+
start: () => Promise<void>;
|
|
107
|
+
/** Stop the container without removing it. */
|
|
108
|
+
stop: () => Promise<void>;
|
|
109
|
+
/** Stop and remove the container. Idempotent. */
|
|
110
|
+
dispose: () => Promise<void>;
|
|
111
|
+
[Symbol.asyncDispose]: () => Promise<void>;
|
|
112
|
+
}
|
|
113
|
+
/** Execution facet — run commands inside the container. */
|
|
114
|
+
interface ContainerExecution {
|
|
115
|
+
/**
|
|
116
|
+
* Execute `command` with `args` inside the container, returning the
|
|
117
|
+
* complete {@link ExecResult} once the process exits. Streams of stdout
|
|
118
|
+
* and stderr are buffered into the result strings.
|
|
119
|
+
*/
|
|
120
|
+
exec: (command: string, args: string[], options?: ExecOptions) => Promise<ExecResult>;
|
|
121
|
+
/** Convenience wrapper that runs `script` under `/bin/sh -lc`. */
|
|
122
|
+
execShell: (script: string, options?: ExecOptions) => Promise<ExecResult>;
|
|
123
|
+
/** Process spawner used by agent adapters when wiring this container as `container`. */
|
|
124
|
+
readonly spawner: ProcessSpawner;
|
|
125
|
+
}
|
|
126
|
+
/** Filesystem facet — file I/O between host and container. */
|
|
127
|
+
interface ContainerFileSystem {
|
|
128
|
+
/** Copy a host file or directory into the container. */
|
|
129
|
+
copyTo: (hostPath: string, containerPath: string) => Promise<void>;
|
|
130
|
+
/** Copy a container file or directory out to the host. */
|
|
131
|
+
copyFrom: (containerPath: string, hostPath: string) => Promise<void>;
|
|
132
|
+
/** Write `content` to `path` inside the container, replacing any existing file. */
|
|
133
|
+
writeFile: (path: string, content: Uint8Array | string) => Promise<void>;
|
|
134
|
+
/** Read `path` as a UTF-8 string. */
|
|
135
|
+
readFile: (path: string) => Promise<string>;
|
|
136
|
+
/** Check whether `path` exists inside the container. */
|
|
137
|
+
fileExists: (path: string) => Promise<boolean>;
|
|
138
|
+
/** Create a directory (and parents) inside the container. */
|
|
139
|
+
mkdir: (path: string) => Promise<void>;
|
|
140
|
+
}
|
|
141
|
+
/** Observability facet — logs, status sync, workdir diffing. */
|
|
142
|
+
interface ContainerObservability {
|
|
143
|
+
/** Tail the container's log output. `tail` limits the number of trailing lines. */
|
|
144
|
+
logs: (options?: {
|
|
145
|
+
tail?: number;
|
|
146
|
+
}) => Promise<string>;
|
|
147
|
+
/** Re-query the provider for the container's current status. */
|
|
148
|
+
syncStatus: () => Promise<ContainerStatus>;
|
|
149
|
+
/** Capture an immutable snapshot of `workdir` for later diffing. */
|
|
150
|
+
snapshotWorkdir: (options?: WorkdirSnapshotOptions) => Promise<WorkdirSnapshot>;
|
|
151
|
+
/** Compute the diff between an earlier snapshot and the current workdir. */
|
|
152
|
+
diffWorkdir: (snapshot: WorkdirSnapshot) => Promise<WorkdirDiff>;
|
|
153
|
+
/** Release storage held by a snapshot. Safe to call multiple times. */
|
|
154
|
+
releaseWorkdirSnapshot: (snapshot: WorkdirSnapshot) => Promise<void>;
|
|
155
|
+
}
|
|
156
|
+
/** Composed shape of every concrete container instance. */
|
|
157
|
+
interface ContainerBase<TType extends ContainerType, TConfig extends ContainerConfigBase<TType>> extends ContainerExecution, ContainerFileSystem, ContainerIdentity<TType, TConfig>, ContainerLifecycle, ContainerObservability {}
|
|
158
|
+
//#endregion
|
|
159
|
+
//#region src/container/oci.d.ts
|
|
160
|
+
interface OciBuildBase {
|
|
161
|
+
context?: string;
|
|
162
|
+
args?: Record<string, string>;
|
|
163
|
+
tag?: string;
|
|
164
|
+
}
|
|
165
|
+
type OciBuildConfig = OciBuildBase & ({
|
|
166
|
+
dockerfile: string;
|
|
167
|
+
content?: never;
|
|
168
|
+
} | {
|
|
169
|
+
dockerfile?: never;
|
|
170
|
+
content: string;
|
|
171
|
+
});
|
|
172
|
+
interface OciProviderBase {
|
|
173
|
+
ports?: PortMapping[];
|
|
174
|
+
mounts?: VolumeMount[];
|
|
175
|
+
mountCwd?: string;
|
|
176
|
+
user?: string;
|
|
177
|
+
binary?: string;
|
|
178
|
+
extraArgs?: string[];
|
|
179
|
+
network?: string;
|
|
180
|
+
platform?: string;
|
|
181
|
+
}
|
|
182
|
+
type OciProviderConfig = OciProviderBase & ({
|
|
183
|
+
image: string;
|
|
184
|
+
build?: never;
|
|
185
|
+
} | {
|
|
186
|
+
image?: never;
|
|
187
|
+
build: OciBuildConfig;
|
|
188
|
+
});
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region src/container/docker/types.d.ts
|
|
191
|
+
/** Inline Dockerfile content and build-context shape (re-exported from OCI). */
|
|
192
|
+
type DockerBuildBase = OciBuildBase;
|
|
193
|
+
/** Docker `docker build` configuration: image tag, context, build args. */
|
|
194
|
+
type DockerBuildConfig = OciBuildConfig;
|
|
195
|
+
/** Common provider fields shared with other OCI-style providers. */
|
|
196
|
+
type DockerContainerBase = OciProviderBase;
|
|
197
|
+
/** Provider-specific fields for Docker (image, build, mounts, ports, env). */
|
|
198
|
+
type DockerProviderConfig = OciProviderConfig;
|
|
199
|
+
/** Full config passed to `createContainer({ type: "docker", ... })`. */
|
|
200
|
+
type DockerContainerConfig = ContainerConfigBase<"docker"> & OciProviderConfig;
|
|
201
|
+
/** Docker container instance. */
|
|
202
|
+
interface DockerContainer extends ContainerBase<"docker", DockerContainerConfig> {
|
|
203
|
+
/** Resolve the host port bound to a container port from {@link PortMapping}, or `undefined` if unmapped. */
|
|
204
|
+
getMappedPort: (containerPort: number) => number | undefined;
|
|
205
|
+
}
|
|
206
|
+
//#endregion
|
|
207
|
+
//#region src/container/e2b/types.d.ts
|
|
208
|
+
interface E2BSandboxNetworkOptions {
|
|
209
|
+
allowOut?: string[];
|
|
210
|
+
denyOut?: string[];
|
|
211
|
+
allowPublicTraffic?: boolean;
|
|
212
|
+
maskRequestHost?: string;
|
|
213
|
+
}
|
|
214
|
+
interface E2BSandboxLifecycleOptions {
|
|
215
|
+
onTimeout: "kill" | "pause";
|
|
216
|
+
autoResume?: boolean;
|
|
217
|
+
}
|
|
218
|
+
/** Auth and transport fields shared by every E2B operation. */
|
|
219
|
+
interface E2BConnectionConfig {
|
|
220
|
+
/** E2B API key. Falls back to `E2B_API_KEY` if omitted. */
|
|
221
|
+
apiKey?: string;
|
|
222
|
+
/** Personal access token; an alternative to `apiKey`. Falls back to `E2B_ACCESS_TOKEN`. */
|
|
223
|
+
accessToken?: string;
|
|
224
|
+
/** Override the E2B API domain. Use for self-hosted or staging endpoints. */
|
|
225
|
+
domain?: string;
|
|
226
|
+
/** HTTP request timeout in milliseconds. */
|
|
227
|
+
requestTimeoutMs?: number;
|
|
228
|
+
/** Extra HTTP headers attached to every E2B API call. */
|
|
229
|
+
headers?: Record<string, string>;
|
|
230
|
+
}
|
|
231
|
+
/** Connection + sandbox-instance options shared by create and connect modes. */
|
|
232
|
+
interface E2BContainerBase extends E2BConnectionConfig {
|
|
233
|
+
/** Unix user inside the sandbox. */
|
|
234
|
+
user?: string;
|
|
235
|
+
/** Sandbox lifetime in milliseconds before E2B auto-pauses or kills it. */
|
|
236
|
+
timeoutMs?: number;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Create a fresh E2B sandbox. Use this when you don't have an existing
|
|
240
|
+
* sandbox ID to attach to.
|
|
241
|
+
*/
|
|
242
|
+
interface E2BCreateConfig extends E2BContainerBase {
|
|
243
|
+
/** Type-level discriminator — `sandboxId` is forbidden on create. */
|
|
244
|
+
sandboxId?: never;
|
|
245
|
+
/** E2B template ID or alias. Defaults to E2B's `base` template. */
|
|
246
|
+
template?: string;
|
|
247
|
+
/** Arbitrary metadata attached to the sandbox. */
|
|
248
|
+
metadata?: Record<string, string>;
|
|
249
|
+
/** Run in secure mode (no outbound network unless `network` allows it). */
|
|
250
|
+
secure?: boolean;
|
|
251
|
+
/** Convenience toggle: opens unrestricted outbound network access. */
|
|
252
|
+
allowInternetAccess?: boolean;
|
|
253
|
+
/** Network allowlist/denylist for outbound traffic. */
|
|
254
|
+
network?: E2BSandboxNetworkOptions;
|
|
255
|
+
/** What to do when `timeoutMs` expires (`"kill"` or `"pause"`). */
|
|
256
|
+
lifecycle?: E2BSandboxLifecycleOptions;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Re-attach to an existing E2B sandbox by ID. The create-only fields are
|
|
260
|
+
* forbidden here so the type-system rules out "create-or-connect" ambiguity.
|
|
261
|
+
*/
|
|
262
|
+
interface E2BConnectConfig extends E2BContainerBase {
|
|
263
|
+
/** Existing E2B sandbox ID to attach to. Required. */
|
|
264
|
+
sandboxId: string;
|
|
265
|
+
template?: never;
|
|
266
|
+
metadata?: never;
|
|
267
|
+
secure?: never;
|
|
268
|
+
allowInternetAccess?: never;
|
|
269
|
+
network?: never;
|
|
270
|
+
lifecycle?: never;
|
|
271
|
+
}
|
|
272
|
+
/** Provider-specific fields: either create-new or connect-to-existing. */
|
|
273
|
+
type E2BProviderConfig = E2BConnectConfig | E2BCreateConfig;
|
|
274
|
+
/** Full config passed to `createContainer({ type: "e2b", ... })`. */
|
|
275
|
+
type E2BContainerConfig = ContainerConfigBase<"e2b"> & E2BProviderConfig;
|
|
276
|
+
/** E2B container instance. */
|
|
277
|
+
interface E2BContainer extends ContainerBase<"e2b", E2BContainerConfig> {
|
|
278
|
+
/** Resolve the externally-reachable hostname for a sandbox port. */
|
|
279
|
+
getHost: (port: number) => string;
|
|
280
|
+
}
|
|
281
|
+
//#endregion
|
|
282
|
+
//#region src/container/nerdctl/types.d.ts
|
|
283
|
+
/** Inline Dockerfile content and build-context shape (re-exported from OCI). */
|
|
284
|
+
type NerdctlBuildBase = OciBuildBase;
|
|
285
|
+
/** nerdctl `nerdctl build` configuration: image tag, context, build args. */
|
|
286
|
+
type NerdctlBuildConfig = OciBuildConfig;
|
|
287
|
+
/** Common provider fields shared with other OCI-style providers. */
|
|
288
|
+
type NerdctlContainerBase = NerdctlProviderBase;
|
|
289
|
+
/** Provider-specific fields for nerdctl, layered on top of generic OCI provider options. */
|
|
290
|
+
interface NerdctlProviderBase extends OciProviderBase {
|
|
291
|
+
/** containerd namespace. Defaults to `"default"`. */
|
|
292
|
+
namespace?: string;
|
|
293
|
+
/** Address of the containerd socket (e.g. `unix:///run/containerd/containerd.sock`). */
|
|
294
|
+
address?: string;
|
|
295
|
+
/** Address of the BuildKit daemon used for `nerdctl build`. */
|
|
296
|
+
buildkitHost?: string;
|
|
297
|
+
/** Snapshotter to use (`overlayfs`, `stargz`, etc.). */
|
|
298
|
+
snapshotter?: string;
|
|
299
|
+
/** Extra `nerdctl` flags appended verbatim. */
|
|
300
|
+
args?: string[];
|
|
301
|
+
}
|
|
302
|
+
/** Provider-specific config: nerdctl-specific fields plus generic OCI provider config. */
|
|
303
|
+
type NerdctlProviderConfig = NerdctlProviderBase & OciProviderConfig;
|
|
304
|
+
/** Full config passed to `createContainer({ type: "nerdctl", ... })`. */
|
|
305
|
+
type NerdctlContainerConfig = ContainerConfigBase<"nerdctl"> & NerdctlProviderConfig;
|
|
306
|
+
/** nerdctl container instance. */
|
|
307
|
+
interface NerdctlContainer extends ContainerBase<"nerdctl", NerdctlContainerConfig> {
|
|
308
|
+
/** Resolve the host port bound to a container port from {@link PortMapping}, or `undefined` if unmapped. */
|
|
309
|
+
getMappedPort: (containerPort: number) => number | undefined;
|
|
310
|
+
}
|
|
311
|
+
//#endregion
|
|
312
|
+
//#region src/container/podman/types.d.ts
|
|
313
|
+
/** Inline Dockerfile content and build-context shape (re-exported from OCI). */
|
|
314
|
+
type PodmanBuildBase = OciBuildBase;
|
|
315
|
+
/** Podman `podman build` configuration: image tag, context, build args. */
|
|
316
|
+
type PodmanBuildConfig = OciBuildConfig;
|
|
317
|
+
/** Common provider fields shared with other OCI-style providers. */
|
|
318
|
+
type PodmanContainerBase = OciProviderBase;
|
|
319
|
+
/** Provider-specific fields for Podman (image, build, mounts, ports, env). */
|
|
320
|
+
type PodmanProviderConfig = OciProviderConfig;
|
|
321
|
+
/** Full config passed to `createContainer({ type: "podman", ... })`. */
|
|
322
|
+
type PodmanContainerConfig = ContainerConfigBase<"podman"> & OciProviderConfig;
|
|
323
|
+
/** Podman container instance. */
|
|
324
|
+
interface PodmanContainer extends ContainerBase<"podman", PodmanContainerConfig> {
|
|
325
|
+
/** Resolve the host port bound to a container port from {@link PortMapping}, or `undefined` if unmapped. */
|
|
326
|
+
getMappedPort: (containerPort: number) => number | undefined;
|
|
327
|
+
}
|
|
328
|
+
//#endregion
|
|
329
|
+
//#region src/container/errors.d.ts
|
|
330
|
+
/**
|
|
331
|
+
* Base class for every error thrown by `createContainer(...)` and the
|
|
332
|
+
* resulting container instance. Catch this if you want to handle any
|
|
333
|
+
* container failure uniformly.
|
|
334
|
+
*/
|
|
335
|
+
declare class ContainerError extends Error {
|
|
336
|
+
constructor(message: string);
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* Thrown by `createContainer(...)` before the container is started — e.g. the
|
|
340
|
+
* configured provider isn't available, a required peer dependency is missing,
|
|
341
|
+
* the image can't be pulled, or required environment variables are absent.
|
|
342
|
+
*/
|
|
343
|
+
declare class ContainerCreateError extends ContainerError {
|
|
344
|
+
constructor(message: string);
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Thrown when a configured `mounts` entry fails pre-flight validation —
|
|
348
|
+
* typically a missing or unreadable source path on the host.
|
|
349
|
+
*/
|
|
350
|
+
declare class MountValidationError extends ContainerError {
|
|
351
|
+
constructor(message: string);
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* Thrown when the container has been created but fails to enter the running
|
|
355
|
+
* state — daemon refused, image entrypoint exited immediately, etc.
|
|
356
|
+
*/
|
|
357
|
+
declare class ContainerStartError extends ContainerError {
|
|
358
|
+
constructor(message: string);
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* Thrown by `container.exec(...)` when the command could not be dispatched
|
|
362
|
+
* (the inner command's non-zero exit code is reported on the `ExecResult`
|
|
363
|
+
* itself, not as a thrown error).
|
|
364
|
+
*/
|
|
365
|
+
declare class ContainerExecError extends ContainerError {
|
|
366
|
+
constructor(message: string);
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* Thrown when an operation requires the container to be running but it is in
|
|
370
|
+
* `"created"` or `"stopped"` state.
|
|
371
|
+
*/
|
|
372
|
+
declare class ContainerNotRunningError extends ContainerError {
|
|
373
|
+
constructor(message?: string);
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* Thrown when any operation is attempted on a container after `dispose()` (or
|
|
377
|
+
* `await using` cleanup) has run.
|
|
378
|
+
*/
|
|
379
|
+
declare class ContainerDisposedError extends ContainerError {
|
|
380
|
+
constructor(message?: string);
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Thrown by `container.diffWorkdir(...)` when the diff cannot be computed —
|
|
384
|
+
* e.g. the snapshot reference is invalid, the working directory disappeared,
|
|
385
|
+
* or the provider does not support diffs for the current configuration.
|
|
386
|
+
*/
|
|
387
|
+
declare class ContainerDiffError extends ContainerError {
|
|
388
|
+
constructor(message: string);
|
|
389
|
+
}
|
|
390
|
+
//#endregion
|
|
391
|
+
//#region src/container/index.d.ts
|
|
392
|
+
/** Union of every provider config accepted by `createContainer(...)`. Narrow on `type` to pick a provider. */
|
|
393
|
+
type ContainerConfig = DockerContainerConfig | E2BContainerConfig | NerdctlContainerConfig | PodmanContainerConfig;
|
|
394
|
+
/** Union of every provider's running container instance. Narrow on `container.type` to access provider-specific methods. */
|
|
395
|
+
type Container = DockerContainer | E2BContainer | NerdctlContainer | PodmanContainer;
|
|
396
|
+
/**
|
|
397
|
+
* Create a container for sandboxed agent execution.
|
|
398
|
+
*
|
|
399
|
+
* The `type` field on `config` selects the provider; supported values are
|
|
400
|
+
* `"docker"`, `"e2b"`, `"nerdctl"`, and `"podman"`. The provider's daemon
|
|
401
|
+
* (Docker, Podman, etc.) must be running locally, except for `"e2b"` which
|
|
402
|
+
* requires `E2B_API_KEY` / `E2B_ACCESS_TOKEN` and the optional `e2b` peer
|
|
403
|
+
* dependency.
|
|
404
|
+
*
|
|
405
|
+
* Containers are async-disposable. Use `await using` to ensure cleanup:
|
|
406
|
+
*
|
|
407
|
+
* ```ts
|
|
408
|
+
* await using container = await createContainer({
|
|
409
|
+
* type: "docker",
|
|
410
|
+
* image: "node:22",
|
|
411
|
+
* workdir: "/workspace",
|
|
412
|
+
* });
|
|
413
|
+
* await container.exec({ command: ["npm", "install"] });
|
|
414
|
+
* ```
|
|
415
|
+
*
|
|
416
|
+
* Pass the resulting container to a cli-adapter's `container` option to run
|
|
417
|
+
* the agent inside it.
|
|
418
|
+
*
|
|
419
|
+
* @param config Provider-specific configuration. Each provider accepts at minimum `image` or `template` and `workdir`.
|
|
420
|
+
* @returns A promise that resolves to a started container of the selected provider type.
|
|
421
|
+
* @throws {ContainerCreateError} If the provider isn't available, the image can't be pulled, or required env vars are missing.
|
|
422
|
+
* @throws {ContainerStartError} If the container fails to start.
|
|
423
|
+
*/
|
|
424
|
+
declare function createContainer(config: DockerContainerConfig): Promise<DockerContainer>;
|
|
425
|
+
declare function createContainer(config: E2BContainerConfig): Promise<E2BContainer>;
|
|
426
|
+
declare function createContainer(config: NerdctlContainerConfig): Promise<NerdctlContainer>;
|
|
427
|
+
declare function createContainer(config: PodmanContainerConfig): Promise<PodmanContainer>;
|
|
428
|
+
//#endregion
|
|
429
|
+
export { WorkdirDiffStats as $, E2BCreateConfig as A, ContainerExecution as B, NerdctlProviderBase as C, E2BContainer as D, E2BConnectionConfig as E, DockerContainerBase as F, ContainerStatus as G, ContainerIdentity as H, DockerContainerConfig as I, ExecResult as J, ContainerType as K, DockerProviderConfig as L, DockerBuildBase as M, DockerBuildConfig as N, E2BContainerBase as O, DockerContainer as P, WorkdirDiff as Q, ContainerBase as R, NerdctlContainerConfig as S, E2BConnectConfig as T, ContainerLifecycle as U, ContainerFileSystem as V, ContainerObservability as W, VolumeMount as X, PortMapping as Y, WorkdirChangeKind as Z, PodmanProviderConfig as _, ContainerDiffError as a, NerdctlContainer as b, ContainerExecError as c, MountValidationError as d, WorkdirFileChange as et, PodmanBuildBase as f, PodmanContainerConfig as g, PodmanContainerBase as h, ContainerCreateError as i, E2BProviderConfig as j, E2BContainerConfig as k, ContainerNotRunningError as l, PodmanContainer as m, ContainerConfig as n, WorkdirSnapshotOptions as nt, ContainerDisposedError as o, PodmanBuildConfig as p, ExecOptions as q, createContainer as r, ContainerError as s, Container as t, WorkdirSnapshot as tt, ContainerStartError as u, NerdctlBuildBase as v, NerdctlProviderConfig as w, NerdctlContainerBase as x, NerdctlBuildConfig as y, ContainerConfigBase as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as EnsureDisjoint, l as BaseAgent, t as AgentEventHandler } from "./types-
|
|
1
|
+
import { f as EnsureDisjoint, l as BaseAgent, t as AgentEventHandler } from "./types-CGzSzwfB.mjs";
|
|
2
2
|
//#region src/adapters/codex-sdk/types.d.ts
|
|
3
3
|
type CodexSdkSandboxMode = "danger-full-access" | "read-only" | "workspace-write";
|
|
4
4
|
type CodexSdkModelReasoningEffort = "high" | "low" | "medium" | "minimal" | "xhigh";
|
|
@@ -7,6 +7,14 @@ type CodexSdkConfigValue = CodexSdkConfigObject | CodexSdkConfigValue[] | boolea
|
|
|
7
7
|
type CodexSdkConfigObject = {
|
|
8
8
|
[key: string]: CodexSdkConfigValue;
|
|
9
9
|
};
|
|
10
|
+
/**
|
|
11
|
+
* Forwarded to Codex's `approvalPolicy`. Codex handles prompts upstream; this
|
|
12
|
+
* adapter does not bridge approvals to a permission handler.
|
|
13
|
+
* - `"never"`: never prompt (auto-allow within the configured sandbox).
|
|
14
|
+
* - `"on-request"`: prompt when Codex requests approval.
|
|
15
|
+
* - `"on-failure"`: prompt only after a tool call fails.
|
|
16
|
+
* - `"untrusted"`: prompt for every potentially destructive action (most restrictive).
|
|
17
|
+
*/
|
|
10
18
|
type CodexSdkPermissionMode = "never" | "on-failure" | "on-request" | "untrusted";
|
|
11
19
|
interface CodexSdkUsage {
|
|
12
20
|
input_tokens: number;
|
|
@@ -109,35 +117,103 @@ interface CodexSdkThreadErrorEvent {
|
|
|
109
117
|
type: "error";
|
|
110
118
|
message: string;
|
|
111
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
* Per-run options for the `codex-sdk` adapter. Forwarded to Codex's
|
|
122
|
+
* `ThreadOptions` and `TurnOptions`.
|
|
123
|
+
*/
|
|
112
124
|
interface CodexSdkRunOptions {
|
|
125
|
+
/**
|
|
126
|
+
* Codex `approvalPolicy` for this run. See {@link CodexSdkPermissionMode}
|
|
127
|
+
* for the four values. Handled upstream by Codex; not bridged to a
|
|
128
|
+
* permission handler in this adapter.
|
|
129
|
+
*/
|
|
113
130
|
permissionMode?: CodexSdkPermissionMode;
|
|
131
|
+
/**
|
|
132
|
+
* Filesystem sandbox policy for tool calls.
|
|
133
|
+
* - `"read-only"`: tools cannot write.
|
|
134
|
+
* - `"workspace-write"`: writes allowed inside `cwd` only.
|
|
135
|
+
* - `"danger-full-access"`: no filesystem restrictions.
|
|
136
|
+
*/
|
|
114
137
|
sandboxMode?: CodexSdkSandboxMode;
|
|
138
|
+
/** Suppress Codex's "not a git repo" confirmation prompt. */
|
|
115
139
|
skipGitRepoCheck?: boolean;
|
|
140
|
+
/** Model reasoning effort budget (`"minimal"` … `"xhigh"`). */
|
|
116
141
|
modelReasoningEffort?: CodexSdkModelReasoningEffort;
|
|
142
|
+
/** Allow tool calls that perform network access. Off by default for safety. */
|
|
117
143
|
networkAccessEnabled?: boolean;
|
|
144
|
+
/** `"disabled"` blocks web search, `"cached"` returns cached results only, `"live"` allows fresh fetches. */
|
|
118
145
|
webSearchMode?: CodexSdkWebSearchMode;
|
|
146
|
+
/** Convenience boolean toggle; combine with `webSearchMode` for finer control. */
|
|
119
147
|
webSearchEnabled?: boolean;
|
|
148
|
+
/** Extra directories outside `cwd` that Codex may read or write under `workspace-write`. */
|
|
120
149
|
additionalDirectories?: string[];
|
|
150
|
+
/** Not supported — Codex manages its own system prompt. */
|
|
121
151
|
systemPrompt?: never;
|
|
122
152
|
}
|
|
153
|
+
/** Constructor options for `createAgent("codex-sdk", ...)`. */
|
|
123
154
|
interface CodexSdkAgentOptions extends CodexSdkRunOptions {
|
|
155
|
+
/** Override the path to the bundled `codex` binary (rarely needed). */
|
|
124
156
|
command?: string;
|
|
157
|
+
/** Override the Codex API base URL. Use for self-hosted or proxy endpoints. */
|
|
125
158
|
baseUrl?: string;
|
|
159
|
+
/** OpenAI API key. Falls back to `OPENAI_API_KEY` from `env`. */
|
|
126
160
|
apiKey?: string;
|
|
161
|
+
/**
|
|
162
|
+
* Additional `--config key=value` overrides forwarded to the Codex CLI.
|
|
163
|
+
* Object is flattened into dotted paths and serialized as TOML literals.
|
|
164
|
+
*/
|
|
127
165
|
config?: CodexSdkConfigObject;
|
|
166
|
+
/** Environment variables for the Codex subprocess. Overrides `process.env` when set. */
|
|
128
167
|
env?: Record<string, string>;
|
|
168
|
+
/**
|
|
169
|
+
* Default `true`: `process.env` is inherited and `env` overlays it. Set
|
|
170
|
+
* `false` to suppress host-env propagation and use only `env`.
|
|
171
|
+
*/
|
|
129
172
|
propagateEnv?: boolean;
|
|
173
|
+
/** Not supported — codex-sdk runs in-process; use `codex-cli` to wrap in a container. */
|
|
130
174
|
container?: never;
|
|
175
|
+
/** Not supported — codex-sdk runs in-process; use `codex-cli` for sandbox wrapping. */
|
|
131
176
|
sandbox?: never;
|
|
177
|
+
/** Working directory the agent operates against. */
|
|
132
178
|
cwd?: string;
|
|
179
|
+
/**
|
|
180
|
+
* Existing Codex thread ID to resume. Threads persist in `~/.codex/sessions`.
|
|
181
|
+
* When set, the adapter calls `resumeThread` instead of `startThread`.
|
|
182
|
+
*/
|
|
133
183
|
sessionId?: string;
|
|
184
|
+
/** Codex model identifier. */
|
|
134
185
|
model?: string;
|
|
186
|
+
/** Convenience: equivalent to calling `agent.onEvent(handler)` post-construction. */
|
|
135
187
|
onEvent?: AgentEventHandler;
|
|
136
188
|
}
|
|
189
|
+
/** Agent instance returned by `createAgent("codex-sdk", ...)`. */
|
|
137
190
|
interface CodexSdkAgent extends BaseAgent<EnsureDisjoint<CodexSdkRunOptions>> {
|
|
138
191
|
readonly type: "codex-sdk";
|
|
139
192
|
}
|
|
193
|
+
/**
|
|
194
|
+
* Discriminated union of thread items Codex emits during a turn. Each item
|
|
195
|
+
* has a lifecycle (`started` → `updated`* → `completed`) carried by the
|
|
196
|
+
* surrounding {@link CodexSdkEvent} wrapper. Narrow on `item.type`:
|
|
197
|
+
*
|
|
198
|
+
* - `"agent_message"` — assistant text or structured-output JSON.
|
|
199
|
+
* - `"reasoning"` — reasoning/thinking summary.
|
|
200
|
+
* - `"command_execution"` — shell command lifecycle with aggregated output.
|
|
201
|
+
* - `"file_change"` — patch applied to the workspace.
|
|
202
|
+
* - `"mcp_tool_call"` — MCP tool invocation lifecycle.
|
|
203
|
+
* - `"web_search"` — web-search request.
|
|
204
|
+
* - `"todo_list"` — agent's running plan.
|
|
205
|
+
* - `"error"` — non-fatal error surfaced as an item.
|
|
206
|
+
*/
|
|
140
207
|
type CodexSdkItem = CodexSdkAgentMessageItem | CodexSdkCommandExecutionItem | CodexSdkErrorItem | CodexSdkFileChangeItem | CodexSdkMcpToolCallItem | CodexSdkReasoningItem | CodexSdkTodoListItem | CodexSdkWebSearchItem;
|
|
208
|
+
/**
|
|
209
|
+
* Discriminated union of top-level events the Codex SDK emits before this
|
|
210
|
+
* adapter normalizes them. Narrow on `event.type`:
|
|
211
|
+
*
|
|
212
|
+
* - `"thread.started"` — first event in a new thread; carries `thread_id`.
|
|
213
|
+
* - `"turn.started"` / `"turn.completed"` / `"turn.failed"` — turn boundary markers.
|
|
214
|
+
* - `"item.started"` / `"item.updated"` / `"item.completed"` — lifecycle of a {@link CodexSdkItem}.
|
|
215
|
+
* - `"error"` — fatal stream-level error.
|
|
216
|
+
*/
|
|
141
217
|
type CodexSdkEvent = CodexSdkItemCompletedEvent | CodexSdkItemStartedEvent | CodexSdkItemUpdatedEvent | CodexSdkThreadErrorEvent | CodexSdkThreadStartedEvent | CodexSdkTurnCompletedEvent | CodexSdkTurnFailedEvent | CodexSdkTurnStartedEvent;
|
|
142
218
|
//#endregion
|
|
143
219
|
//#region src/adapters/codex-sdk/adapter.d.ts
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { A as ProcessSpawner, f as EnsureDisjoint, l as BaseAgent, p as ExclusiveExecutionTargetOptions, t as AgentEventHandler } from "./types-CGzSzwfB.mjs";
|
|
2
|
+
import { t as Container } from "./index-C9XD71QR.mjs";
|
|
3
|
+
import { l as Sandbox } from "./index-B5NFoNlS.mjs";
|
|
4
|
+
import { z } from "zod/v4";
|
|
5
|
+
|
|
6
|
+
//#region src/adapters/opencode-cli/events/schemas.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Permissive raw-event shape for OpenCode CLI: `{ type: string }` plus
|
|
9
|
+
* arbitrary additional fields the CLI may emit.
|
|
10
|
+
*/
|
|
11
|
+
declare const opencodeEventSchema: z.ZodObject<{
|
|
12
|
+
type: z.ZodString;
|
|
13
|
+
}, z.core.$loose>;
|
|
14
|
+
type OpencodeEvent = z.infer<typeof opencodeEventSchema>;
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/adapters/opencode-cli/types.d.ts
|
|
17
|
+
/** Per-run options for the `opencode-cli` adapter. */
|
|
18
|
+
interface OpencodeCliRunOptions {
|
|
19
|
+
/** Named OpenCode agent profile (e.g. `"coding"`, `"reviewer"`). */
|
|
20
|
+
agent?: string;
|
|
21
|
+
/** Initial files to attach to the conversation context. */
|
|
22
|
+
files?: string[];
|
|
23
|
+
/** Branch a new session off the current one. */
|
|
24
|
+
forkSession?: boolean;
|
|
25
|
+
/** Make the session shareable via OpenCode's share-link feature. */
|
|
26
|
+
share?: boolean;
|
|
27
|
+
/** Enable extended thinking output for supported models. */
|
|
28
|
+
thinking?: boolean;
|
|
29
|
+
/** Human-readable title for the session. */
|
|
30
|
+
title?: string;
|
|
31
|
+
/** Named variant of the selected agent profile. */
|
|
32
|
+
variant?: string;
|
|
33
|
+
/** Extra CLI flags appended verbatim. */
|
|
34
|
+
extraArgs?: string[];
|
|
35
|
+
/** Not supported — OpenCode manages its own system prompt. */
|
|
36
|
+
systemPrompt?: never;
|
|
37
|
+
}
|
|
38
|
+
/** Constructor options for `createAgent("opencode-cli", ...)`. */
|
|
39
|
+
type OpencodeCliAgentOptions = ExclusiveExecutionTargetOptions<Container, Sandbox> & OpencodeCliRunOptions & {
|
|
40
|
+
/** Path or argv to the `opencode` binary. */command?: string[] | string; /** Working directory the agent operates against. */
|
|
41
|
+
cwd?: string; /** Environment variables for the subprocess. Layered on top of host env when `propagateEnv` is `true` (default). */
|
|
42
|
+
env?: Record<string, string>; /** Default `true`: `process.env` is inherited and `env` overlays it. Set `false` to suppress host-env propagation. */
|
|
43
|
+
propagateEnv?: boolean; /** Existing OpenCode session ID to resume. */
|
|
44
|
+
sessionId?: string; /** OpenCode model identifier. */
|
|
45
|
+
model?: string; /** File path to write the raw CLI log to (useful for debugging). */
|
|
46
|
+
logPath?: string; /** Custom process spawner; set by `createContainer`/`createSandbox`, rarely needed manually. */
|
|
47
|
+
spawner?: ProcessSpawner; /** Convenience: equivalent to calling `agent.onEvent(handler)` post-construction. */
|
|
48
|
+
onEvent?: AgentEventHandler;
|
|
49
|
+
};
|
|
50
|
+
/** Agent instance returned by `createAgent("opencode-cli", ...)`. */
|
|
51
|
+
interface OpencodeCliAgent extends BaseAgent<EnsureDisjoint<OpencodeCliRunOptions>> {
|
|
52
|
+
readonly type: "opencode-cli";
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/adapters/opencode-cli/adapter.d.ts
|
|
56
|
+
declare const createOpencodeCliAgent: (options?: OpencodeCliAgentOptions) => OpencodeCliAgent;
|
|
57
|
+
//#endregion
|
|
58
|
+
export { OpencodeEvent as a, OpencodeCliRunOptions as i, OpencodeCliAgent as n, OpencodeCliAgentOptions as r, createOpencodeCliAgent as t };
|