coding-agents-sdk 0.18.0 → 0.21.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.
Files changed (90) hide show
  1. package/README.md +292 -7
  2. package/dist/Agent-BsDJsgJa.mjs +4 -0
  3. package/dist/SdkAgent-jwighP_b.mjs +1 -0
  4. package/dist/adapters/antigravity-cli/index.d.mts +2 -0
  5. package/dist/adapters/antigravity-cli/index.mjs +2 -0
  6. package/dist/adapters/claude-code-cli/index.d.mts +2 -2
  7. package/dist/adapters/claude-code-cli/index.mjs +1 -1
  8. package/dist/adapters/claude-code-cli-pty/index.d.mts +2 -2
  9. package/dist/adapters/claude-code-cli-pty/index.mjs +5 -5
  10. package/dist/adapters/claude-code-sdk/index.d.mts +1 -1
  11. package/dist/adapters/claude-code-sdk/index.mjs +4 -4
  12. package/dist/adapters/codex-cli/index.d.mts +1 -1
  13. package/dist/adapters/codex-cli/index.mjs +4 -2
  14. package/dist/adapters/codex-sdk/index.d.mts +1 -1
  15. package/dist/adapters/codex-sdk/index.mjs +1 -1
  16. package/dist/adapters/cursor-cli/index.d.mts +1 -1
  17. package/dist/adapters/cursor-cli/index.mjs +1 -1
  18. package/dist/adapters/cursor-sdk/index.d.mts +1 -1
  19. package/dist/adapters/cursor-sdk/index.mjs +1 -1
  20. package/dist/adapters/drac-cli/index.d.mts +2 -0
  21. package/dist/adapters/drac-cli/index.mjs +1 -0
  22. package/dist/adapters/gemini-cli/index.d.mts +1 -1
  23. package/dist/adapters/gemini-cli/index.mjs +1 -1
  24. package/dist/adapters/opencode-cli/index.d.mts +1 -1
  25. package/dist/adapters/opencode-cli/index.mjs +1 -1
  26. package/dist/adapters/pi-cli/index.d.mts +1 -1
  27. package/dist/adapters/pi-cli/index.mjs +1 -1
  28. package/dist/classify-error-_WNZMhMY.mjs +8 -0
  29. package/dist/container/index.d.mts +2 -2
  30. package/dist/container/index.mjs +1 -1
  31. package/dist/container-BlsSoBe1.mjs +1 -0
  32. package/dist/container-C7oWwLGK.mjs +1 -0
  33. package/dist/container-DUoj_mnh.mjs +1 -0
  34. package/dist/container-DXQ92RVu.mjs +1 -0
  35. package/dist/container-MazMFZg8.mjs +1 -0
  36. package/dist/control-requests-DtjV0e4o.mjs +1 -0
  37. package/dist/core/process/index.d.mts +2 -2
  38. package/dist/core/process/index.mjs +1 -1
  39. package/dist/diff-CMWH9a0d.mjs +1 -0
  40. package/dist/{errors-aYGbvsaq.mjs → errors-BauhTL3l.mjs} +1 -1
  41. package/dist/{events-BxEB6zHt.d.mts → events-DmlAPVpd.d.mts} +172 -5
  42. package/dist/{index-DH2vDD3l.d.mts → index-5XiyFBcK.d.mts} +5 -9
  43. package/dist/index-BimeR91j.d.mts +6 -0
  44. package/dist/{index-DWv7tLOX.d.mts → index-Bl9DtOcy.d.mts} +4 -10
  45. package/dist/{index-BWAsLSN3.d.mts → index-Brx5CEx7.d.mts} +4 -10
  46. package/dist/{index-DB0fLwpu.d.mts → index-CCsw4G4N.d.mts} +1 -5
  47. package/dist/{index-CmRm10Lo.d.mts → index-CZiWvyn3.d.mts} +3 -7
  48. package/dist/{index-CPhcEEAp.d.mts → index-DQYRy7xl.d.mts} +4 -10
  49. package/dist/index-DUTtolch.d.mts +63 -0
  50. package/dist/{index-DCQu5ZAu.d.mts → index-DilMV_1s.d.mts} +182 -36
  51. package/dist/{index-DpPNo3dX.d.mts → index-DpG9mouj.d.mts} +33 -18
  52. package/dist/{index-Ssb7kE6D.d.mts → index-DqNl8zYj.d.mts} +1 -5
  53. package/dist/index-Du99OLj6.d.mts +65 -0
  54. package/dist/{index-DWmHDEQL.d.mts → index-Q5jNyQHD.d.mts} +88 -25
  55. package/dist/{index-BrFs4M0Z.d.mts → index-X-W5isMp.d.mts} +3 -7
  56. package/dist/{index-BEEVpHOg.d.mts → index-oUIMXZIp.d.mts} +4 -10
  57. package/dist/index.d.mts +28 -21
  58. package/dist/index.mjs +1 -1
  59. package/dist/oci-t88M5ODN.mjs +2 -0
  60. package/dist/parser-BY3CZGmc.mjs +2 -0
  61. package/dist/permission-updates-CkFvevWQ.mjs +1 -0
  62. package/dist/permissions-BjNU9GCH.mjs +1 -0
  63. package/dist/questions-CaEwN4JQ.mjs +1 -0
  64. package/dist/sandbox/index.d.mts +1 -1
  65. package/dist/sandbox/index.mjs +1 -1
  66. package/dist/{sandbox-CYA69miM.mjs → sandbox-BemAIoIo.mjs} +2 -2
  67. package/dist/schemas/index.d.mts +2 -2
  68. package/dist/schemas/index.mjs +1 -1
  69. package/dist/schemas-CzJM9p-0.mjs +1 -0
  70. package/dist/spawner-CYAQQABs.mjs +1 -0
  71. package/dist/{types-COmjfh8B.d.mts → types-BetgZysV.d.mts} +0 -2
  72. package/dist/{types-D0ejXDa9.d.mts → types-D_QP9PC-.d.mts} +98 -17
  73. package/dist/util-CCXryPDO.mjs +1 -0
  74. package/package.json +20 -10
  75. package/dist/Agent-WqGee5TR.mjs +0 -4
  76. package/dist/SdkAgent-BjdSrtFe.mjs +0 -1
  77. package/dist/classify-error-DK2WpxiL.mjs +0 -8
  78. package/dist/container-Bdb90GJb.mjs +0 -1
  79. package/dist/container-DMFxf-kn.mjs +0 -1
  80. package/dist/container-Dvr-p53c.mjs +0 -1
  81. package/dist/container-dCRMBvQw.mjs +0 -1
  82. package/dist/container-w0rl1QMH.mjs +0 -1
  83. package/dist/diff-Dqyk2cdt.mjs +0 -1
  84. package/dist/index-DvwVRB7K.d.mts +0 -10
  85. package/dist/oci-DTNwW-WH.mjs +0 -1
  86. package/dist/parser-jSS5vOTN.mjs +0 -2
  87. package/dist/schemas-CkdQXAep.mjs +0 -1
  88. package/dist/session-markers-BHsJLWJk.mjs +0 -1
  89. package/dist/spawner-CgfyvnR4.mjs +0 -1
  90. package/dist/util-B4HTdOSc.mjs +0 -1
@@ -1,7 +1,6 @@
1
- import { i as ProcessSpawner } from "./types-COmjfh8B.mjs";
2
- import "./types-D0ejXDa9.mjs";
3
- import { A as VolumeMount } from "./index-DWmHDEQL.mjs";
4
- //#region src/sandbox/types.d.ts
1
+ import { i as ProcessSpawner } from "./types-BetgZysV.mjs";
2
+ import { R as VolumeMount } from "./index-Q5jNyQHD.mjs";
3
+ import "./types-D_QP9PC-.mjs";
5
4
  /** Which sandbox binary backs the policy. The binary must be installed on the host. */
6
5
  type SandboxType = "bubblewrap" | "firejail" | "nsjail";
7
6
  /** Lifecycle state of a sandbox. */
@@ -145,8 +144,6 @@ interface NsjailSandbox extends SandboxBase<"nsjail", NsjailSandboxConfig> {}
145
144
  type SandboxConfig = BubblewrapSandboxConfig | FirejailSandboxConfig | NsjailSandboxConfig;
146
145
  /** Union of all sandbox instance types. */
147
146
  type Sandbox = BubblewrapSandbox | FirejailSandbox | NsjailSandbox;
148
- //#endregion
149
- //#region src/sandbox/index.d.ts
150
147
  /**
151
148
  * Thrown by `createSandbox(...)` when the configuration is invalid — e.g.
152
149
  * `config.type` is not one of the supported sandbox kinds.
@@ -191,5 +188,4 @@ declare class SandboxCreateError extends Error {
191
188
  declare function createSandbox(config: BubblewrapSandboxConfig): Promise<BubblewrapSandbox>;
192
189
  declare function createSandbox(config: FirejailSandboxConfig): Promise<FirejailSandbox>;
193
190
  declare function createSandbox(config: NsjailSandboxConfig): Promise<NsjailSandbox>;
194
- //#endregion
195
191
  export { FirejailSandbox as a, NsjailSandboxConfig as c, SandboxStatus as d, SandboxType as f, BubblewrapSandboxConfig as i, Sandbox as l, createSandbox as n, FirejailSandboxConfig as o, BubblewrapSandbox as r, NsjailSandbox as s, SandboxCreateError as t, SandboxConfig as u };
@@ -1,9 +1,8 @@
1
- import { i as ProcessSpawner } from "./types-COmjfh8B.mjs";
2
- import { f as EnsureDisjoint, l as BaseAgent, p as ExclusiveExecutionTargetOptions, t as AgentEventHandler } from "./types-D0ejXDa9.mjs";
3
- import { t as Container } from "./index-DWmHDEQL.mjs";
4
- import { l as Sandbox } from "./index-CmRm10Lo.mjs";
1
+ import { i as ProcessSpawner } from "./types-BetgZysV.mjs";
2
+ import { t as Container } from "./index-Q5jNyQHD.mjs";
3
+ import { f as EnsureDisjoint, l as BaseAgent, p as ExclusiveExecutionTargetOptions, t as AgentEventHandler } from "./types-D_QP9PC-.mjs";
4
+ import { l as Sandbox } from "./index-CZiWvyn3.mjs";
5
5
  import { z } from "zod/v4";
6
- //#region src/adapters/gemini-cli/events/schemas.d.ts
7
6
  /**
8
7
  * Permissive raw-event shape for Gemini CLI: `{ type: string }` plus
9
8
  * arbitrary additional fields the CLI may emit.
@@ -12,8 +11,6 @@ declare const geminiEventSchema: z.ZodObject<{
12
11
  type: z.ZodString;
13
12
  }, z.core.$loose>;
14
13
  type GeminiEvent = z.infer<typeof geminiEventSchema>;
15
- //#endregion
16
- //#region src/adapters/gemini-cli/types.d.ts
17
14
  /**
18
15
  * Permission handling for Gemini CLI.
19
16
  * - `"default"`: prompt before risky tool calls.
@@ -63,8 +60,5 @@ type GeminiCliAgentOptions = ExclusiveExecutionTargetOptions<Container, Sandbox>
63
60
  interface GeminiCliAgent extends BaseAgent<EnsureDisjoint<GeminiCliRunOptions>> {
64
61
  readonly type: "gemini-cli";
65
62
  }
66
- //#endregion
67
- //#region src/adapters/gemini-cli/adapter.d.ts
68
63
  declare const createGeminiCliAgent: (options?: GeminiCliAgentOptions) => GeminiCliAgent;
69
- //#endregion
70
64
  export { GeminiCliRunOptions as a, GeminiCliPermissionMode as i, GeminiCliAgent as n, GeminiEvent as o, GeminiCliAgentOptions as r, createGeminiCliAgent as t };
@@ -0,0 +1,63 @@
1
+ import { i as ProcessSpawner } from "./types-BetgZysV.mjs";
2
+ import { t as Container } from "./index-Q5jNyQHD.mjs";
3
+ import { _ as ProviderEventHandler, f as EnsureDisjoint, l as BaseAgent, p as ExclusiveExecutionTargetOptions, t as AgentEventHandler } from "./types-D_QP9PC-.mjs";
4
+ import { l as Sandbox } from "./index-CZiWvyn3.mjs";
5
+ import { z } from "zod/v4";
6
+ declare const antigravityProviderEventSchema: z.ZodObject<{
7
+ sessionUpdate: z.ZodString;
8
+ }, z.core.$loose>;
9
+ type AntigravityProviderEvent = z.infer<typeof antigravityProviderEventSchema>;
10
+ /**
11
+ * Antigravity session mode a run starts in.
12
+ * - `"default"`: ask before edits and commands, per the user's permission settings.
13
+ * - `"accept-edits"`: approve file edits in the workspace without asking.
14
+ * - `"auto"`: approve edits and safe commands; ask before irreversible actions.
15
+ * - `"plan"`: plan before executing. The plan is written as a file whose `write_file` tool call carries
16
+ * `ArtifactMetadata.RequestFeedback: true`, and the run ends there; a later run in another mode carries it out.
17
+ */
18
+ type AntigravityMode = "accept-edits" | "auto" | "default" | "plan";
19
+ /** Antigravity's thinking level. Each model offers only some levels; Antigravity rejects the others. */
20
+ type AntigravityThoughtLevel = "high" | "low" | "max" | "medium" | "xhigh";
21
+ interface AntigravityCliRunOptions {
22
+ /** Session mode the run starts in. Antigravity's own default is `"default"`. */
23
+ mode?: AntigravityMode;
24
+ thoughtLevel?: AntigravityThoughtLevel;
25
+ /** Extra flags appended verbatim to `agy acp`. */
26
+ extraArgs?: string[];
27
+ systemPrompt?: never;
28
+ }
29
+ type AntigravityCliAgentOptions = ExclusiveExecutionTargetOptions<Container, Sandbox> & AntigravityCliRunOptions & {
30
+ /** Path or argv to the `agy` binary, or a launcher that forwards its arguments to it. */
31
+ command?: string[] | string;
32
+ /** Working directory the agent operates against. Antigravity needs an absolute path. */
33
+ cwd?: string;
34
+ env?: Record<string, string>;
35
+ /** Default `true`: `process.env` is inherited and `env` overlays it. Set `false` to suppress host-env propagation. */
36
+ propagateEnv?: boolean;
37
+ /** Existing Antigravity conversation ID to resume. */
38
+ sessionId?: string;
39
+ /** Antigravity model ID: a full ID such as `"gemini-3.8-flash-low"`, or a base ID such as `"gemini-3.8-flash"`. */
40
+ model?: string;
41
+ /**
42
+ * Start `agy acp` with `--dangerously-skip-permissions`: Antigravity approves every tool permission request
43
+ * itself, and none reaches the permission handler.
44
+ */
45
+ skipPermissions?: boolean;
46
+ /** Emit `message-delta` and `reasoning-delta` events while text is generated. */
47
+ streamText?: boolean;
48
+ /** File path to write the raw protocol log to (useful for debugging). */
49
+ logPath?: string;
50
+ /** Custom process spawner; set by `createContainer`/`createSandbox`, rarely needed manually. */
51
+ spawner?: ProcessSpawner;
52
+ /** Convenience: equivalent to calling `agent.onEvent(handler)` post-construction. */
53
+ onEvent?: AgentEventHandler;
54
+ /** Convenience: equivalent to calling `agent.onProviderEvent(handler)` post-construction. */
55
+ onProviderEvent?: ProviderEventHandler<AntigravityProviderEvent>;
56
+ };
57
+ interface AntigravityCliAgent extends BaseAgent<EnsureDisjoint<AntigravityCliRunOptions>> {
58
+ readonly type: "antigravity-cli";
59
+ /** Subscribe to Antigravity's raw ACP session updates, such as `tool_call` and `agent_message_chunk`. */
60
+ onProviderEvent: (handler: ProviderEventHandler<AntigravityProviderEvent>) => () => void;
61
+ }
62
+ declare const createAntigravityCliAgent: (options?: AntigravityCliAgentOptions) => AntigravityCliAgent;
63
+ export { AntigravityMode as a, AntigravityCliRunOptions as i, AntigravityCliAgent as n, AntigravityThoughtLevel as o, AntigravityCliAgentOptions as r, AntigravityProviderEvent as s, createAntigravityCliAgent as t };
@@ -1,10 +1,27 @@
1
- import { S as McpServerConfig } from "./events-BxEB6zHt.mjs";
2
- import { i as ProcessSpawner } from "./types-COmjfh8B.mjs";
3
- import { _ as ProviderEventHandler, f as EnsureDisjoint, l as BaseAgent, p as ExclusiveExecutionTargetOptions, t as AgentEventHandler } from "./types-D0ejXDa9.mjs";
4
- import { t as Container } from "./index-DWmHDEQL.mjs";
5
- import { l as Sandbox } from "./index-CmRm10Lo.mjs";
1
+ import { t as Container } from "./index-Q5jNyQHD.mjs";
2
+ import { i as ProcessSpawner } from "./types-BetgZysV.mjs";
3
+ import { N as ClaudePermissionMode, _ as ProviderEventHandler, c as AnyRunResult, f as EnsureDisjoint, l as BaseAgent, p as ExclusiveExecutionTargetOptions, t as AgentEventHandler } from "./types-D_QP9PC-.mjs";
4
+ import { l as Sandbox } from "./index-CZiWvyn3.mjs";
5
+ import { A as McpServerConfig } from "./events-DmlAPVpd.mjs";
6
6
  import { z } from "zod/v4";
7
- //#region src/adapters/claude-code-cli/events/schemas.d.ts
7
+ /** A control request Claude Code accepts on its stream-json input, such as `{ subtype: "stop_task", task_id }`. */
8
+ type ClaudeControlRequestPayload = {
9
+ subtype: string;
10
+ } & Record<string, unknown>;
11
+ /**
12
+ * Why a control request did not get a success answer:
13
+ * - `"no-open-input"`: no run of this agent has Claude Code's input open; start the run with `keepInputOpen: true` or a
14
+ * permission handler.
15
+ * - `"input-closed"`: the run ended, or its input closed, before Claude Code answered.
16
+ * - `"refused"`: Claude Code answered with an error, for example for a request subtype it does not support; `message`
17
+ * holds its text.
18
+ */
19
+ type ClaudeControlRequestFailure = "no-open-input" | "input-closed" | "refused";
20
+ /** Rejection of `sendControlRequest()` and `stopTask()` on a `claude-code-cli` agent. */
21
+ declare class ClaudeControlRequestError extends Error {
22
+ readonly reason: ClaudeControlRequestFailure;
23
+ constructor(reason: ClaudeControlRequestFailure, message: string);
24
+ }
8
25
  declare const claudeSystemEventSchema: z.ZodObject<{
9
26
  type: z.ZodLiteral<"system">;
10
27
  session_id: z.ZodString;
@@ -16,17 +33,14 @@ declare const claudeSystemEventSchema: z.ZodObject<{
16
33
  hook_started: "hook_started";
17
34
  init: "init";
18
35
  session_state_changed: "session_state_changed";
36
+ task_progress: "task_progress";
37
+ task_started: "task_started";
19
38
  }>;
20
39
  uuid: z.ZodString;
21
40
  tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
22
41
  mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
23
42
  name: z.ZodString;
24
- status: z.ZodEnum<{
25
- connected: "connected";
26
- disconnected: "disconnected";
27
- error: "error";
28
- failed: "failed";
29
- }>;
43
+ status: z.ZodString;
30
44
  }, z.core.$strip>>>;
31
45
  model: z.ZodOptional<z.ZodString>;
32
46
  cwd: z.ZodOptional<z.ZodString>;
@@ -35,11 +49,14 @@ declare const claudeSystemEventSchema: z.ZodObject<{
35
49
  stdout: z.ZodOptional<z.ZodString>;
36
50
  stderr: z.ZodOptional<z.ZodString>;
37
51
  exit_code: z.ZodOptional<z.ZodNumber>;
52
+ outcome: z.ZodOptional<z.ZodString>;
38
53
  state: z.ZodOptional<z.ZodEnum<{
39
54
  idle: "idle";
40
55
  requires_action: "requires_action";
41
56
  running: "running";
42
57
  }>>;
58
+ task_id: z.ZodOptional<z.ZodString>;
59
+ tool_use_id: z.ZodOptional<z.ZodString>;
43
60
  }, z.core.$strip>;
44
61
  type ClaudeSystemEvent = z.infer<typeof claudeSystemEventSchema>;
45
62
  declare const claudeAssistantEventSchema: z.ZodObject<{
@@ -153,9 +170,13 @@ declare const claudeRateLimitEventSchema: z.ZodObject<{
153
170
  status: z.ZodString;
154
171
  resetsAt: z.ZodOptional<z.ZodNumber>;
155
172
  rateLimitType: z.ZodOptional<z.ZodString>;
173
+ utilization: z.ZodOptional<z.ZodNumber>;
156
174
  overageStatus: z.ZodOptional<z.ZodString>;
157
175
  overageDisabledReason: z.ZodOptional<z.ZodString>;
158
176
  isUsingOverage: z.ZodOptional<z.ZodBoolean>;
177
+ unifiedWindows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
178
+ utilization: z.ZodOptional<z.ZodNumber>;
179
+ }, z.core.$strip>>>;
159
180
  }, z.core.$strip>;
160
181
  }, z.core.$strip>;
161
182
  type ClaudeRateLimitEvent = z.infer<typeof claudeRateLimitEventSchema>;
@@ -176,17 +197,14 @@ declare const claudeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
176
197
  hook_started: "hook_started";
177
198
  init: "init";
178
199
  session_state_changed: "session_state_changed";
200
+ task_progress: "task_progress";
201
+ task_started: "task_started";
179
202
  }>;
180
203
  uuid: z.ZodString;
181
204
  tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
182
205
  mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
183
206
  name: z.ZodString;
184
- status: z.ZodEnum<{
185
- connected: "connected";
186
- disconnected: "disconnected";
187
- error: "error";
188
- failed: "failed";
189
- }>;
207
+ status: z.ZodString;
190
208
  }, z.core.$strip>>>;
191
209
  model: z.ZodOptional<z.ZodString>;
192
210
  cwd: z.ZodOptional<z.ZodString>;
@@ -195,11 +213,14 @@ declare const claudeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
195
213
  stdout: z.ZodOptional<z.ZodString>;
196
214
  stderr: z.ZodOptional<z.ZodString>;
197
215
  exit_code: z.ZodOptional<z.ZodNumber>;
216
+ outcome: z.ZodOptional<z.ZodString>;
198
217
  state: z.ZodOptional<z.ZodEnum<{
199
218
  idle: "idle";
200
219
  requires_action: "requires_action";
201
220
  running: "running";
202
221
  }>>;
222
+ task_id: z.ZodOptional<z.ZodString>;
223
+ tool_use_id: z.ZodOptional<z.ZodString>;
203
224
  }, z.core.$strip>, z.ZodObject<{
204
225
  type: z.ZodLiteral<"assistant">;
205
226
  session_id: z.ZodString;
@@ -305,24 +326,19 @@ declare const claudeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
305
326
  status: z.ZodString;
306
327
  resetsAt: z.ZodOptional<z.ZodNumber>;
307
328
  rateLimitType: z.ZodOptional<z.ZodString>;
329
+ utilization: z.ZodOptional<z.ZodNumber>;
308
330
  overageStatus: z.ZodOptional<z.ZodString>;
309
331
  overageDisabledReason: z.ZodOptional<z.ZodString>;
310
332
  isUsingOverage: z.ZodOptional<z.ZodBoolean>;
333
+ unifiedWindows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
334
+ utilization: z.ZodOptional<z.ZodNumber>;
335
+ }, z.core.$strip>>>;
311
336
  }, z.core.$strip>;
312
337
  }, z.core.$strip>], "type">;
313
338
  type ClaudeEvent = z.infer<typeof claudeEventSchema>;
314
339
  declare const claudeProviderEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
315
340
  type: z.ZodLiteral<"system">;
316
341
  session_id: z.ZodString;
317
- subtype: z.ZodEnum<{
318
- hook_failed: "hook_failed";
319
- hook_finished: "hook_finished";
320
- hook_response: "hook_response";
321
- hook_skipped: "hook_skipped";
322
- hook_started: "hook_started";
323
- init: "init";
324
- session_state_changed: "session_state_changed";
325
- }>;
326
342
  tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
327
343
  model: z.ZodOptional<z.ZodString>;
328
344
  cwd: z.ZodOptional<z.ZodString>;
@@ -331,17 +347,21 @@ declare const claudeProviderEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
331
347
  stdout: z.ZodOptional<z.ZodString>;
332
348
  stderr: z.ZodOptional<z.ZodString>;
333
349
  exit_code: z.ZodOptional<z.ZodNumber>;
350
+ outcome: z.ZodOptional<z.ZodString>;
334
351
  state: z.ZodOptional<z.ZodEnum<{
335
352
  idle: "idle";
336
353
  requires_action: "requires_action";
337
354
  running: "running";
338
355
  }>>;
356
+ task_id: z.ZodOptional<z.ZodString>;
357
+ tool_use_id: z.ZodOptional<z.ZodString>;
358
+ subtype: z.ZodString;
339
359
  uuid: z.ZodOptional<z.ZodString>;
340
360
  mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
341
361
  name: z.ZodString;
342
362
  status: z.ZodString;
343
- }, z.core.$strip>>>;
344
- }, z.core.$strip>, z.ZodObject<{
363
+ }, z.core.$loose>>>;
364
+ }, z.core.$loose>, z.ZodObject<{
345
365
  type: z.ZodLiteral<"assistant">;
346
366
  session_id: z.ZodString;
347
367
  parent_tool_use_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -440,14 +460,16 @@ declare const claudeProviderEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
440
460
  status: z.ZodString;
441
461
  resetsAt: z.ZodOptional<z.ZodNumber>;
442
462
  rateLimitType: z.ZodOptional<z.ZodString>;
463
+ utilization: z.ZodOptional<z.ZodNumber>;
443
464
  overageStatus: z.ZodOptional<z.ZodString>;
444
465
  overageDisabledReason: z.ZodOptional<z.ZodString>;
445
466
  isUsingOverage: z.ZodOptional<z.ZodBoolean>;
467
+ unifiedWindows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
468
+ utilization: z.ZodOptional<z.ZodNumber>;
469
+ }, z.core.$strip>>>;
446
470
  }, z.core.$strip>;
447
471
  }, z.core.$strip>], "type">;
448
472
  type ClaudeProviderEvent = z.infer<typeof claudeProviderEventSchema>;
449
- //#endregion
450
- //#region src/adapters/claude-code-cli/types.d.ts
451
473
  /**
452
474
  * How Claude Code CLI handles tool-permission prompts.
453
475
  * - `"default"`: stop and ask via the permission handler.
@@ -457,7 +479,7 @@ type ClaudeProviderEvent = z.infer<typeof claudeProviderEventSchema>;
457
479
  * - `"bypassPermissions"`: disable the permission system entirely (dangerous).
458
480
  * - `"plan"`: read-only planning mode; no edits, no shell.
459
481
  */
460
- type ClaudeCodeCliPermissionMode = "acceptEdits" | "auto" | "bypassPermissions" | "default" | "dontAsk" | "plan";
482
+ type ClaudeCodeCliPermissionMode = ClaudePermissionMode;
461
483
  /** Per-run options for the `claude-code-cli` adapter. */
462
484
  interface ClaudeCodeCliRunOptions {
463
485
  /** Allowlist of tool names. */
@@ -497,6 +519,38 @@ type ClaudeCodeCliAgentOptions = ClaudeCodeCliRunOptions & ExclusiveExecutionTar
497
519
  logPath?: string;
498
520
  /** Sets `CI=true` in the subprocess env unless explicitly `false`. Default: `true`. Does not change Claude Code's output formatting on its own. */
499
521
  ci?: boolean;
522
+ /**
523
+ * Keep Claude Code's input open in stream-json mode for each run, so `sendInput()`, `sendControlRequest()`, and
524
+ * `stopTask()` can reach the running process. The input closes once Claude Code reports the session idle after the
525
+ * run's result, or when the run stops. A registered permission or question handler keeps the input open the same
526
+ * way without this option, but only this option makes the agent report `capabilities.midRunInput`.
527
+ */
528
+ keepInputOpen?: boolean;
529
+ /**
530
+ * What a run does while Claude Code runs background tasks, such as a Bash command started with `run_in_background`.
531
+ * - `"wait"` (default): the run lasts until Claude Code exits, which it does only after its background tasks have
532
+ * ended and it has answered their ends.
533
+ * - `"keep-running"`: while background tasks run, the run ends at the result that answers its input, and the agent
534
+ * keeps Claude Code's process with its input open for the next run; once no task runs, the run ends when Claude
535
+ * Code reports itself idle and exits. When a task completes or fails while no run is active, Claude Code starts a
536
+ * turn by itself, which `onAgentRun()` handlers receive as a run. `stop()` then interrupts the run's turn and
537
+ * leaves the tasks running, `stopTask()` ends one task, and `dispose()` and `reset()` end the process with its
538
+ * tasks; after `reset()`, the next run starts a fresh session in a new process. A run's
539
+ * `permissionMode` is switched on the process it continues in, and when its turn ends while tasks run, or the run
540
+ * stops before its turn begins, the process is switched back to the agent's `permissionMode`, so turns Claude
541
+ * Code starts by itself run in that mode; an agent without a `permissionMode` leaves the process in the last
542
+ * run's mode. A run whose other options would start Claude Code differently, such as another `schema` or `model`,
543
+ * `forkSession`, or a permission or question handler registered or removed since the process started, cannot use
544
+ * a process that still runs background tasks: `run()` rejects it with `AgentValidationError`, or, when the tasks
545
+ * start while the run waits for a run Claude Code started by itself, resolves it as `failed` with a `process`
546
+ * error.
547
+ */
548
+ backgroundTasks?: "keep-running" | "wait";
549
+ /**
550
+ * Emit `message-delta` and `reasoning-delta` events while Claude generates text, by running Claude Code with
551
+ * `--include-partial-messages`. The whole `message` and `reasoning` events still follow.
552
+ */
553
+ streamText?: boolean;
500
554
  /** Custom process spawner; set by `createContainer`/`createSandbox`, rarely needed manually. */
501
555
  spawner?: ProcessSpawner;
502
556
  /** Convenience: equivalent to calling `agent.onEvent(handler)` post-construction. */
@@ -514,9 +568,101 @@ interface ClaudeCodeCliAgent extends BaseAgent<EnsureDisjoint<ClaudeCodeCliRunOp
514
568
  * acquired a session ID — run at least one prompt first.
515
569
  */
516
570
  fork: () => ClaudeCodeCliAgent;
571
+ /**
572
+ * Sends a control request to the running Claude Code process and resolves with the `response` of its success answer.
573
+ *
574
+ * Requires a run whose input is open (`keepInputOpen: true` or a permission handler), or, with
575
+ * `backgroundTasks: "keep-running"`, the Claude Code process the agent keeps between runs. Rejects with
576
+ * `ClaudeControlRequestError`: `"no-open-input"` when neither is there, `"input-closed"` when the run or the process
577
+ * ends before Claude Code answers, and `"refused"` when Claude Code answers with an error.
578
+ */
579
+ sendControlRequest: (request: ClaudeControlRequestPayload) => Promise<unknown>;
580
+ /**
581
+ * Stops one running task, such as a subagent started with the Task tool, while the rest of the run continues. `taskId`
582
+ * is the `task_id` of the task's `system` `task_started` event, not its tool use id. Rejects like
583
+ * `sendControlRequest()`. Claude Code can answer success for an ID it does not know, so resolving does not confirm that
584
+ * a task stopped. With `backgroundTasks: "keep-running"`, it also reaches the process the agent keeps between runs.
585
+ */
586
+ stopTask: (taskId: string) => Promise<void>;
587
+ /**
588
+ * Registers a handler for background tasks starting, progressing, and ending, in the order Claude Code reports them,
589
+ * also between runs. Returns an unsubscribe function. With `backgroundTasks: "keep-running"`, the end of a task that
590
+ * makes Claude Code start a run by itself reaches the handler right after that run reached the `onAgentRun()`
591
+ * handlers.
592
+ */
593
+ onBackgroundTask: (handler: (change: ClaudeBackgroundTaskChange) => void) => () => void;
594
+ /**
595
+ * Registers a handler for the runs Claude Code starts by itself with `backgroundTasks: "keep-running"`. The handler is
596
+ * called before the run's first event, and the run answers permission and question requests with the handlers
597
+ * registered then, so the handler can replace them. Claude Code asks over its input only when a permission or question
598
+ * handler was registered when it started, so register one before the first run. Returns an unsubscribe function.
599
+ */
600
+ onAgentRun: (handler: (run: ClaudeAgentRun) => void) => () => void;
601
+ }
602
+ /**
603
+ * How a background task ended: `"completed"` and `"failed"` as Claude Code reported the task's own end, `"stopped"`
604
+ * when it was stopped, for example with `stopTask()`, or ended with Claude Code's process.
605
+ */
606
+ type ClaudeBackgroundTaskStatus = "completed" | "failed" | "stopped";
607
+ interface ClaudeBackgroundSubagent {
608
+ /** The subagent's type, such as `general-purpose` or `Explore`. */
609
+ type?: string;
610
+ /** The name supplied by the tool call that started the subagent. */
611
+ name?: string;
612
+ }
613
+ /**
614
+ * A task Claude Code keeps running apart from the model's turn, such as a Bash command started with `run_in_background`
615
+ * or a subagent started in the background with the Agent tool.
616
+ */
617
+ interface ClaudeBackgroundTask {
618
+ /** Claude Code's ID for the task; pass it to `stopTask()`. */
619
+ taskId: string;
620
+ /** The tool call that started the task. */
621
+ toolCallId?: string;
622
+ description: string;
623
+ command?: string;
624
+ subagent?: ClaudeBackgroundSubagent;
625
+ /** The task whose subagent started this task; absent for a task the session's own agent started. */
626
+ parentTaskId?: string;
627
+ }
628
+ interface ClaudeBackgroundTaskUsage {
629
+ toolUses: number;
630
+ totalTokens: number;
631
+ }
632
+ interface ClaudeBackgroundTaskProgress extends ClaudeBackgroundTaskUsage {
633
+ lastToolName?: string;
634
+ summary?: string;
635
+ }
636
+ interface ClaudeBackgroundTaskEnd extends ClaudeBackgroundTask {
637
+ status: ClaudeBackgroundTaskStatus;
638
+ /** Claude Code's report of the end, which can include the command's exit code. */
639
+ summary?: string;
640
+ usage?: ClaudeBackgroundTaskUsage;
641
+ }
642
+ /**
643
+ * A background task's start, progress, or end, as `onBackgroundTask()` handlers receive it. Claude Code reports
644
+ * progress only for a task that runs a subagent.
645
+ */
646
+ type ClaudeBackgroundTaskChange = {
647
+ kind: "started";
648
+ task: ClaudeBackgroundTask;
649
+ } | {
650
+ kind: "progressed";
651
+ task: ClaudeBackgroundTask;
652
+ progress: ClaudeBackgroundTaskProgress;
653
+ } | {
654
+ kind: "ended";
655
+ task: ClaudeBackgroundTaskEnd;
656
+ };
657
+ /** A run Claude Code started by itself, without input from the agent. */
658
+ interface ClaudeAgentRun {
659
+ readonly runId: string;
660
+ /** The background tasks whose end made Claude Code start the run; empty when it gave no reason. */
661
+ readonly endedTasks: readonly ClaudeBackgroundTaskEnd[];
662
+ /** Settles like the promise `run()` returns. */
663
+ readonly result: Promise<AnyRunResult>;
664
+ /** Stops the run as `stop()` stops a run started with `run()`, and resolves with its result. */
665
+ stop: () => Promise<AnyRunResult>;
517
666
  }
518
- //#endregion
519
- //#region src/adapters/claude-code-cli/adapter.d.ts
520
667
  declare const createClaudeCodeCliAgent: (options?: ClaudeCodeCliAgentOptions) => ClaudeCodeCliAgent;
521
- //#endregion
522
- export { ClaudeCodeCliRunOptions as a, ClaudeProviderEvent as c, ClaudeSystemEvent as d, ClaudeUserEvent as f, ClaudeCodeCliPermissionMode as i, ClaudeRateLimitEvent as l, ClaudeCodeCliAgent as n, ClaudeAssistantEvent as o, ClaudeCodeCliAgentOptions as r, ClaudeEvent as s, createClaudeCodeCliAgent as t, ClaudeResultEvent as u };
668
+ export { ClaudeControlRequestPayload as C, ClaudeControlRequestFailure as S, ClaudeRateLimitEvent as _, ClaudeBackgroundTaskChange as a, ClaudeUserEvent as b, ClaudeBackgroundTaskStatus as c, ClaudeCodeCliAgentOptions as d, ClaudeCodeCliPermissionMode as f, ClaudeProviderEvent as g, ClaudeEvent as h, ClaudeBackgroundTask as i, ClaudeBackgroundTaskUsage as l, ClaudeAssistantEvent as m, ClaudeAgentRun as n, ClaudeBackgroundTaskEnd as o, ClaudeCodeCliRunOptions as p, ClaudeBackgroundSubagent as r, ClaudeBackgroundTaskProgress as s, createClaudeCodeCliAgent as t, ClaudeCodeCliAgent as u, ClaudeResultEvent as v, ClaudeControlRequestError as x, ClaudeSystemEvent as y };
@@ -1,10 +1,9 @@
1
- import { S as McpServerConfig } from "./events-BxEB6zHt.mjs";
2
- import { i as ProcessSpawner } from "./types-COmjfh8B.mjs";
3
- import { _ as ProviderEventHandler, f as EnsureDisjoint, l as BaseAgent, p as ExclusiveExecutionTargetOptions, t as AgentEventHandler } from "./types-D0ejXDa9.mjs";
4
- import { t as Container } from "./index-DWmHDEQL.mjs";
5
- import { l as Sandbox } from "./index-CmRm10Lo.mjs";
1
+ import { t as Container } from "./index-Q5jNyQHD.mjs";
2
+ import { i as ProcessSpawner } from "./types-BetgZysV.mjs";
3
+ import { _ as ProviderEventHandler, f as EnsureDisjoint, l as BaseAgent, p as ExclusiveExecutionTargetOptions, t as AgentEventHandler } from "./types-D_QP9PC-.mjs";
4
+ import { l as Sandbox } from "./index-CZiWvyn3.mjs";
5
+ import { A as McpServerConfig } from "./events-DmlAPVpd.mjs";
6
6
  import { z } from "zod/v4";
7
- //#region src/adapters/codex-cli/events/schemas.d.ts
8
7
  /**
9
8
  * Permissive shape for any raw event Codex CLI emits — `{ type: string }`
10
9
  * plus arbitrary additional fields. Narrow on `event.type` against the
@@ -31,6 +30,7 @@ declare const codexTurnCompletedEventSchema: z.ZodObject<{
31
30
  reasoning_output_tokens: z.ZodOptional<z.ZodNumber>;
32
31
  total_tokens: z.ZodOptional<z.ZodNumber>;
33
32
  }, z.core.$loose>>;
33
+ models: z.ZodOptional<z.ZodArray<z.ZodString>>;
34
34
  last_agent_message: z.ZodOptional<z.ZodString>;
35
35
  duration_ms: z.ZodOptional<z.ZodNumber>;
36
36
  num_turns: z.ZodOptional<z.ZodNumber>;
@@ -46,6 +46,7 @@ declare const codexTurnFailedEventSchema: z.ZodObject<{
46
46
  reasoning_output_tokens: z.ZodOptional<z.ZodNumber>;
47
47
  total_tokens: z.ZodOptional<z.ZodNumber>;
48
48
  }, z.core.$loose>>;
49
+ models: z.ZodOptional<z.ZodArray<z.ZodString>>;
49
50
  last_agent_message: z.ZodOptional<z.ZodString>;
50
51
  duration_ms: z.ZodOptional<z.ZodNumber>;
51
52
  num_turns: z.ZodOptional<z.ZodNumber>;
@@ -151,6 +152,7 @@ declare const codexProviderEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
151
152
  reasoning_output_tokens: z.ZodOptional<z.ZodNumber>;
152
153
  total_tokens: z.ZodOptional<z.ZodNumber>;
153
154
  }, z.core.$loose>>;
155
+ models: z.ZodOptional<z.ZodArray<z.ZodString>>;
154
156
  last_agent_message: z.ZodOptional<z.ZodString>;
155
157
  duration_ms: z.ZodOptional<z.ZodNumber>;
156
158
  num_turns: z.ZodOptional<z.ZodNumber>;
@@ -164,6 +166,7 @@ declare const codexProviderEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
164
166
  reasoning_output_tokens: z.ZodOptional<z.ZodNumber>;
165
167
  total_tokens: z.ZodOptional<z.ZodNumber>;
166
168
  }, z.core.$loose>>;
169
+ models: z.ZodOptional<z.ZodArray<z.ZodString>>;
167
170
  last_agent_message: z.ZodOptional<z.ZodString>;
168
171
  duration_ms: z.ZodOptional<z.ZodNumber>;
169
172
  num_turns: z.ZodOptional<z.ZodNumber>;
@@ -341,8 +344,6 @@ declare const codexProviderEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
341
344
  }, z.core.$loose>]>>;
342
345
  }, z.core.$loose>], "type">;
343
346
  type CodexProviderEvent = z.infer<typeof codexProviderEventSchema>;
344
- //#endregion
345
- //#region src/adapters/codex-cli/types.d.ts
346
347
  /**
347
348
  * Filesystem sandbox policy for Codex CLI.
348
349
  * - `"read-only"`: tools cannot write.
@@ -352,13 +353,20 @@ type CodexProviderEvent = z.infer<typeof codexProviderEventSchema>;
352
353
  type CodexCliSandboxMode = "danger-full-access" | "read-only" | "workspace-write";
353
354
  /**
354
355
  * How Codex CLI handles approval prompts.
355
- * - `"default"`: leave Codex CLI's own default approval behavior in place (this adapter does not bridge approvals to a permission handler).
356
- * - `"auto-approve"`: pass `--approve-for-me`; Codex uses automatic review in the `workspace-write` sandbox.
357
- * - `"bypass-sandbox"`: pass `--dangerously-bypass-approvals-and-sandbox`; disable approvals and Codex's sandbox for externally isolated execution.
356
+ * - `"default"`: leave the configured approval behavior in place. The app-server transport bridges native requests to a permission handler.
357
+ * - `"auto-approve"`: use automatic review in the `workspace-write` sandbox.
358
+ * - `"bypass-sandbox"`: disable approvals and Codex's sandbox for externally isolated execution.
358
359
  */
359
360
  type CodexCliPermissionMode = "auto-approve" | "bypass-sandbox" | "default";
360
361
  /** Per-run options for the `codex-cli` adapter. */
361
362
  interface CodexCliRunOptions {
363
+ /** Fork the current session before this run. Requires the app-server transport and an existing sessionId. */
364
+ forkSession?: boolean;
365
+ /**
366
+ * Native collaboration mode. Requires the app-server transport. In `"plan"` mode, a plan Codex proposes is the run's
367
+ * `text`.
368
+ */
369
+ collaborationMode?: "default" | "plan";
362
370
  /**
363
371
  * Filesystem sandbox policy for the default approval strategy.
364
372
  * Other permission modes select their own sandbox behavior.
@@ -366,23 +374,33 @@ interface CodexCliRunOptions {
366
374
  sandboxMode?: CodexCliSandboxMode;
367
375
  /** Extra directories outside `cwd` writable under `workspace-write`. */
368
376
  additionalDirectories?: string[];
369
- /** Suppress Codex's "not a git repo" confirmation prompt (`--skip-git-repo-check`). */
377
+ /** Suppress the exec transport's "not a git repo" confirmation prompt. App-server does not require a Git repository. */
370
378
  skipGitRepoCheck?: boolean;
371
379
  /** Approval prompt strategy. */
372
380
  permissionMode?: CodexCliPermissionMode;
373
- /** When `true`, Codex does not persist this run's history. */
381
+ /**
382
+ * When `true`, Codex does not persist this run's history. App-server continuation requires `forkSession: true`, and
383
+ * an ephemeral app-server run's session ID does not become `agent.sessionId`.
384
+ */
374
385
  ephemeral?: boolean;
375
386
  /** Path to an MCP config file passed via `--mcp-config`. */
376
387
  mcpConfig?: string;
377
388
  /** Inline MCP server config map. */
378
389
  mcpServers?: Record<string, McpServerConfig>;
379
- /** Extra CLI flags appended verbatim. */
390
+ /** Extra CLI flags. Exec forwards them verbatim; app-server rejects exec-only flags and externally configured listeners. */
380
391
  extraArgs?: string[];
381
392
  /** Not supported — Codex manages its own system prompt. */
382
393
  systemPrompt?: never;
383
394
  }
384
395
  /** Constructor options for `createAgent("codex-cli", ...)`. */
385
396
  type CodexCliAgentOptions = CodexCliRunOptions & ExclusiveExecutionTargetOptions<Container, Sandbox> & {
397
+ /** Default `exec` preserves the CLI JSON stream. `app-server` enables interactive permission handlers. */
398
+ transport?: "app-server" | "exec";
399
+ /**
400
+ * Emit `message-delta` and `reasoning-delta` events while Codex generates text. The whole `message` and
401
+ * `reasoning` events still follow. Has no effect on the `exec` transport, where Codex prints whole items only.
402
+ */
403
+ streamText?: boolean;
386
404
  /** Path or argv to the `codex` binary. */
387
405
  command?: string[] | string;
388
406
  /** Working directory the agent operates against. */
@@ -391,7 +409,7 @@ type CodexCliAgentOptions = CodexCliRunOptions & ExclusiveExecutionTargetOptions
391
409
  env?: Record<string, string>;
392
410
  /** Default `true`: `process.env` is inherited and `env` overlays it. Set `false` to suppress host-env propagation. */
393
411
  propagateEnv?: boolean;
394
- /** Existing Codex thread ID to resume via `codex resume`. */
412
+ /** Existing Codex thread ID to resume. */
395
413
  sessionId?: string;
396
414
  /** Codex model identifier. */
397
415
  model?: string;
@@ -408,8 +426,5 @@ interface CodexCliAgent extends BaseAgent<EnsureDisjoint<CodexCliRunOptions>> {
408
426
  readonly type: "codex-cli";
409
427
  onProviderEvent: (handler: ProviderEventHandler<CodexProviderEvent>) => () => void;
410
428
  }
411
- //#endregion
412
- //#region src/adapters/codex-cli/adapter.d.ts
413
429
  declare const createCodexCliAgent: (options?: CodexCliAgentOptions) => CodexCliAgent;
414
- //#endregion
415
430
  export { CodexCliRunOptions as a, CodexEvent as c, CodexItemUpdatedEvent as d, CodexProviderEvent as f, CodexTurnFailedEvent as g, CodexTurnCompletedEvent as h, CodexCliPermissionMode as i, CodexItemCompletedEvent as l, CodexThreadStartedEvent as m, CodexCliAgent as n, CodexCliSandboxMode as o, CodexProviderItem as p, CodexCliAgentOptions as r, CodexErrorEvent as s, createCodexCliAgent as t, CodexItemStartedEvent as u };
@@ -1,6 +1,5 @@
1
- import { f as EnsureDisjoint, l as BaseAgent, t as AgentEventHandler } from "./types-D0ejXDa9.mjs";
1
+ import { f as EnsureDisjoint, l as BaseAgent, t as AgentEventHandler } from "./types-D_QP9PC-.mjs";
2
2
  import "@cursor/sdk";
3
- //#region src/adapters/cursor-sdk/types.d.ts
4
3
  /** OAuth-style credentials for HTTP/SSE MCP servers configured for the agent. */
5
4
  interface CursorSdkMcpHttpAuth {
6
5
  CLIENT_ID: string;
@@ -187,8 +186,5 @@ interface CursorSdkAgentOptions extends CursorSdkRunOptions {
187
186
  interface CursorSdkAgent extends BaseAgent<EnsureDisjoint<CursorSdkRunOptions>> {
188
187
  readonly type: "cursor-sdk";
189
188
  }
190
- //#endregion
191
- //#region src/adapters/cursor-sdk/adapter.d.ts
192
189
  declare const createCursorSdkAgent: (options?: CursorSdkAgentOptions) => CursorSdkAgent;
193
- //#endregion
194
190
  export { CursorSdkMcpHttpAuth as a, CursorSdkSettingSource as c, CursorSdkEvent as i, CursorSdkAgent as n, CursorSdkMcpServerConfig as o, CursorSdkAgentOptions as r, CursorSdkRunOptions as s, createCursorSdkAgent as t };