@anthropic-ai/claude-agent-sdk 0.3.201 → 0.3.203

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.
@@ -146,7 +146,7 @@ export function extractFromBunfs(embeddedPath) {
146
146
  }
147
147
  return tmpPath
148
148
  } catch (err) {
149
- // biome-ignore lint/suspicious/noConsole: intentional user-facing warning in standalone SDK helper
149
+ // oxlint-disable-next-line no-console -- intentional user-facing warning in standalone SDK helper
150
150
  console.warn(
151
151
  `[claude-agent-sdk] Failed to extract CLI from $bunfs: ${err.message}. ` +
152
152
  `Child processes cannot access $bunfs paths — the CLI will likely fail to start.`,
package/manifest.json CHANGED
@@ -1,47 +1,47 @@
1
1
  {
2
- "version": "2.1.201",
3
- "commit": "5bb45156ece6b12214696c88adec695b2dca1338",
4
- "buildDate": "2026-07-03T20:01:44Z",
2
+ "version": "2.1.203",
3
+ "commit": "b90c3643145ac0c57630235e630824e387389981",
4
+ "buildDate": "2026-07-07T01:48:15Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "a0852d76afc47b30f5cb0b7625ec9a7714cb189f2eeef6c28c77e2be954fb7fd",
9
- "size": 231708784
8
+ "checksum": "57b5aec68a35f42036bd2f82836d91c2d2990c2d589fb3465e3ee87142af9a1e",
9
+ "size": 236961904
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "1889287a92d25356ae8bd8d8e67b11456015516ee8ba4277a0c7074786c49bb6",
14
- "size": 241100240
13
+ "checksum": "1481cffd33d5d19219b53d832fb14e4c2c2def781fc4f1db6c5a4b2d1e596763",
14
+ "size": 246384080
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "86b2eab34d382c7b428fc2e9f4c97f04e46805e950582472a13eb7d48de60516",
19
- "size": 248101616
18
+ "checksum": "59bf43c7fc8c254a2d7a994f26d577a50f17876e4ed180cff6a1cef2f9ebe473",
19
+ "size": 253344496
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "a34809a6839fdefff21b9347d7fb5b6b58e6a9cc208a5e62853f29c83eb107a3",
24
- "size": 251300664
23
+ "checksum": "85e4d203c5b43c67a778efd25dcc9ae1d239110c87726df5c6ac0774b576cc6c",
24
+ "size": 256531256
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "5b4cde588b0196c8f88654ca9652c4703788f4d9fbab32a17ab3c444830085ae",
29
- "size": 241349816
28
+ "checksum": "10bd1d71bd07699b701cf4a4c94f63279e7d0df0b5618364b7c4c1d955b60891",
29
+ "size": 246592696
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "a0f81ec99ac65e8c5919e7aae54b8a496488e0f1311884fc9ffd05c7cbf6bd2f",
34
- "size": 245985664
33
+ "checksum": "5c4ccfdbee42d35c438978d813b6c0b85c857afeec4b6735391abff3ac8f40f6",
34
+ "size": 251216256
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "fb804ee019bfbb8d7e85abf965e528e53b5aa5a4e4ebc0f164139dc10a9e0320",
39
- "size": 241591968
38
+ "checksum": "678bc5f62fecb3e1dea2f23735313e61c07970c357271b0f81874ce439e158bf",
39
+ "size": 246702240
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "a3ad78a0b593dea94c3ee787b1f5b17a173a7679203a296acf9aae7ef4705d42",
44
- "size": 236058784
43
+ "checksum": "e8f5c228393caf8e58643e7553fa379f1ce84838fa3bfa2ca0f50c76a852fd2b",
44
+ "size": 241169056
45
45
  }
46
46
  }
47
47
  }
package/manifest.zst.json CHANGED
@@ -1,55 +1,55 @@
1
1
  {
2
- "version": "2.1.201",
3
- "commit": "5bb45156ece6b12214696c88adec695b2dca1338",
4
- "buildDate": "2026-07-03T20:03:32Z",
2
+ "version": "2.1.203",
3
+ "commit": "b90c3643145ac0c57630235e630824e387389981",
4
+ "buildDate": "2026-07-07T01:50:02Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "18e2b15bbf0333a88a65cd2e3020cf52ae6d415f39ed588afc331d8473190154",
9
- "size": 47431348,
8
+ "checksum": "59cd3b99db356422320cad9d2d1ea715e900d09bccc34207b2932b84857bccbc",
9
+ "size": 48687006,
10
10
  "bundle": {
11
- "checksum": "add99ff8b25ef856b3d8695fdeef344048fe712bdc5708629a984787ba3c9188",
12
- "size": 47428744
11
+ "checksum": "d206e286fe29b4cf07d780db392255bdec309b28a888f182652e48333f75c736",
12
+ "size": 48690684
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "4b2050debc0e3d510b94239b8626fe6a869789cf724fa42c5015a5d4b9fec114",
18
- "size": 51796127,
17
+ "checksum": "c6cb953021daff3e346bc60ce103740c57e58cdcc45c20e611d95e59899c521a",
18
+ "size": 53070087,
19
19
  "bundle": {
20
- "checksum": "0044c4c2ce846f1972a2ab956751d81fbba0f3568979154f2faf629a44d79c15",
21
- "size": 51801449
20
+ "checksum": "74be7c98065ad4629ed792482983ae1a305c3ba4e39d275ae66b98c64176639e",
21
+ "size": 53072940
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "4658386a325d60fcb0131e57dc039504b851e3d99ff1f5bb0ac9316976b08729",
27
- "size": 56535728
26
+ "checksum": "334b264dfb77c1e704e5734a8dc9e28e7731691991a224f2d950bdf568f394b3",
27
+ "size": 57760880
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "52c34ff3734e0908c49c59eccbb97182d86912fb598c09196071e7dcbd067320",
32
- "size": 57783888
31
+ "checksum": "d2300a581f1ae03c5b40ec298d4f55e7eaf1c15b2a4c3690f6876b631b7f6b1d",
32
+ "size": 59002865
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "c9520418ef28daa25f304e969f63f9fe3889d9ed53659b0d9ce357b8ff6ee361",
37
- "size": 55209060
36
+ "checksum": "4eb5c59800b4f2b7ba35a2b53348bcca9b561b9873de798ebf231b6abe0f740a",
37
+ "size": 56439201
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "c44e0e4614c71a2e900f0ce369af0fdb4e416184f1211b31a787e5e2f39c2793",
42
- "size": 56589666
41
+ "checksum": "9ffb50eca34325462b3eb96c2a2e26401f78b4f21e7738428354a2f21c118e21",
42
+ "size": 57829849
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "ee8a3b36e6d4104f5b8ce716beb1a9584016d22ce12a813a55020379727358d3",
47
- "size": 57924143
46
+ "checksum": "6536041ffdb1e6ce354a2edbe80c98c09a246845f7273710e143cc82008d4a0a",
47
+ "size": 59158319
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "96aba507c1e1baa3062f009eedef1f9f8084d9b263de72c7a4e834f8e528bbf2",
52
- "size": 55958009
51
+ "checksum": "b48002cfce5ca9dba2804ecc7fccee51fbfd34d4eb938e40a383ceca5cef3cfc",
52
+ "size": 57184577
53
53
  }
54
54
  }
55
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-agent-sdk",
3
- "version": "0.3.201",
3
+ "version": "0.3.203",
4
4
  "main": "sdk.mjs",
5
5
  "types": "sdk.d.ts",
6
6
  "exports": {
@@ -57,14 +57,14 @@
57
57
  "zod": "^4.0.0"
58
58
  },
59
59
  "optionalDependencies": {
60
- "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.201",
61
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.201",
62
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.201",
63
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.201",
64
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.201",
65
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.201",
66
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.201",
67
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.201"
60
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.203",
61
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.203",
62
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.203",
63
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.203",
64
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.203",
65
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.203",
66
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.203",
67
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.203"
68
68
  },
69
69
  "files": [
70
70
  "sdk.mjs",
@@ -80,5 +80,5 @@
80
80
  "manifest.json",
81
81
  "manifest.zst.json"
82
82
  ],
83
- "claudeCodeVersion": "2.1.201"
83
+ "claudeCodeVersion": "2.1.203"
84
84
  }
package/sdk-tools.d.ts CHANGED
@@ -345,6 +345,30 @@ export type McpOutput =
345
345
  | {
346
346
  [k: string]: unknown;
347
347
  };
348
+ export type ArtifactOutput =
349
+ | {
350
+ url: string;
351
+ path: string;
352
+ title?: string;
353
+ version?: string;
354
+ capabilities?: unknown;
355
+ stored?: {
356
+ contract: string;
357
+ capabilities?: {
358
+ [k: string]: unknown;
359
+ };
360
+ };
361
+ warnings?: string[];
362
+ contract?: string;
363
+ }
364
+ | {
365
+ artifacts: {
366
+ title: string;
367
+ url: string;
368
+ updatedAt?: string;
369
+ }[];
370
+ truncated?: boolean;
371
+ };
348
372
  export type ProjectsOutput =
349
373
  | {
350
374
  method: "project_info";
@@ -399,6 +423,7 @@ export type ProjectsOutput =
399
423
  doc_uuid: string;
400
424
  replaced: boolean;
401
425
  present_to_user?: boolean;
426
+ local_path?: string;
402
427
  }
403
428
  | {
404
429
  method: "project_delete";
@@ -2518,17 +2543,21 @@ export interface CronDeleteInput {
2518
2543
  export interface CronListInput {}
2519
2544
  export interface ScheduleWakeupInput {
2520
2545
  /**
2521
- * Seconds from now to wake up. Clamped to [60, 3600] by the runtime.
2546
+ * Seconds from now to wake up. Clamped to [60, 3600] by the runtime. Required unless `stop` is true.
2522
2547
  */
2523
- delaySeconds: number;
2548
+ delaySeconds?: number;
2524
2549
  /**
2525
- * One short sentence explaining the chosen delay. Goes to telemetry and is shown to the user. Be specific.
2550
+ * One short sentence explaining the chosen delay. Goes to telemetry and is shown to the user. Be specific. Required unless `stop` is true.
2526
2551
  */
2527
- reason: string;
2552
+ reason?: string;
2528
2553
  /**
2529
- * The /loop input to fire on wake-up. Pass the same /loop input verbatim each turn so the next firing re-enters the skill and continues the loop. For autonomous /loop (no user prompt), pass the literal sentinel `<<autonomous-loop-dynamic>>` instead (the dynamic-pacing variant, not the CronCreate-mode `<<autonomous-loop>>`).
2554
+ * The /loop input to fire on wake-up. Pass the same /loop input verbatim each turn so the next firing re-enters the skill and continues the loop. For autonomous /loop (no user prompt), pass the literal sentinel `<<autonomous-loop-dynamic>>` instead (the dynamic-pacing variant, not the CronCreate-mode `<<autonomous-loop>>`). Required unless `stop` is true.
2530
2555
  */
2531
- prompt: string;
2556
+ prompt?: string;
2557
+ /**
2558
+ * Set to true to end the dynamic loop immediately instead of scheduling another wakeup. When true, all other fields are ignored and no further wakeups fire.
2559
+ */
2560
+ stop?: boolean;
2532
2561
  }
2533
2562
  export interface RemoteTriggerInput {
2534
2563
  action: "list" | "get" | "create" | "update" | "run";
@@ -2571,13 +2600,21 @@ export interface MonitorInput {
2571
2600
  }
2572
2601
  export interface ArtifactInput {
2573
2602
  /**
2574
- * Path to an .html or .md file to render. Use a short, distinctive basename — it is the fallback title if the HTML has no <title>.
2603
+ * Omit (or 'publish') to publish file_path. 'list' enumerates the user's published artifacts; only `limit` may accompany it.
2575
2604
  */
2576
- file_path: string;
2605
+ action?: "publish" | "list";
2577
2606
  /**
2578
- * Browser-tab icon: one or two emoji (e.g. "📊"). No markup. Keep stable across redeploys; change only on a hard topic pivot.
2607
+ * Path to an .html or .md file to render. Required to publish (the default action). Use a short, distinctive basename it is the fallback title if the HTML has no <title>.
2579
2608
  */
2580
- favicon: string;
2609
+ file_path?: string;
2610
+ /**
2611
+ * Browser-tab icon: one or two emoji (e.g. "📊"). No markup. Required to publish. Keep stable across redeploys; change only on a hard topic pivot.
2612
+ */
2613
+ favicon?: string;
2614
+ /**
2615
+ * list only: maximum artifacts to return (default 25).
2616
+ */
2617
+ limit?: number;
2581
2618
  /**
2582
2619
  * One-sentence subtitle shown on the gallery card. Say what the page is or does.
2583
2620
  */
@@ -2587,7 +2624,7 @@ export interface ArtifactInput {
2587
2624
  */
2588
2625
  label?: string;
2589
2626
  /**
2590
- * Existing artifact URL to redeploy to. Pass when the user gives you a URL for an artifact not published in this session; omit for new artifacts or same-session redeploys. Must be an artifact the user owns.
2627
+ * Existing artifact URL to update in place. Pass whenever the user wants to update an artifact this conversation did not publish — "update my artifact", "keep the same link", a pasted artifact URL and find the URL with action: "list" if you don't have it; without this, a conversation that didn't publish the artifact always mints a new URL. Omit for new artifacts and same-conversation redeploys. Must be an artifact the user owns.
2591
2628
  */
2592
2629
  url?: string;
2593
2630
  /**
@@ -2608,7 +2645,7 @@ export interface EnterWorktreeInput {
2608
2645
  */
2609
2646
  name?: string;
2610
2647
  /**
2611
- * Path to an existing worktree of the current repository to switch into instead of creating a new one. Must appear in `git worktree list` for the current repo. Mutually exclusive with `name`.
2648
+ * Path to an existing worktree to switch into instead of creating a new one. Must appear in `git worktree list` for the current repo — or, on first entry from the launch directory, for a repo nested inside it (multi-repo workspace). Mutually exclusive with `name`.
2612
2649
  */
2613
2650
  path?: string;
2614
2651
  }
@@ -3343,19 +3380,6 @@ export interface TaskListOutput {
3343
3380
  blockedBy: string[];
3344
3381
  }[];
3345
3382
  }
3346
- export interface ArtifactOutput {
3347
- url: string;
3348
- path: string;
3349
- title?: string;
3350
- version?: string;
3351
- capabilities?: unknown;
3352
- stored?: {
3353
- contract: string;
3354
- capabilities?: {
3355
- [k: string]: unknown;
3356
- };
3357
- };
3358
- }
3359
3383
  export interface RemoteTriggerOutput {
3360
3384
  status: number;
3361
3385
  json: string;
@@ -3378,6 +3402,10 @@ export interface ScheduleWakeupOutput {
3378
3402
  * True if the requested delaySeconds was outside [60, 3600]
3379
3403
  */
3380
3404
  wasClamped: boolean;
3405
+ /**
3406
+ * True when the model ended the loop via `stop: true`
3407
+ */
3408
+ stopped?: boolean;
3381
3409
  }
3382
3410
  export interface MonitorOutput {
3383
3411
  /**
package/sdk.d.ts CHANGED
@@ -372,11 +372,15 @@ declare namespace coreTypes {
372
372
  PreToolUseHookSpecificOutput,
373
373
  RewindFilesResult,
374
374
  SDKAPIRetryMessage,
375
+ SDKActiveGoalMessage,
375
376
  SDKAssistantMessageError,
376
377
  SDKAssistantMessage,
377
378
  SDKAuthStatusMessage,
379
+ SDKBackgroundTasksChangedMessage,
378
380
  SDKCommandsChangedMessage,
379
381
  SDKCompactBoundaryMessage,
382
+ SDKControlRequestProgressMessage,
383
+ SDKConversationResetMessage,
380
384
  SDKDeferredToolUse,
381
385
  SDKElicitationCompleteMessage,
382
386
  SDKFilesPersistedEvent,
@@ -2744,6 +2748,22 @@ declare const SandboxSettingsSchema: () => z.ZodObject<{
2744
2748
  socatPath: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>>>;
2745
2749
  }, z.core.$loose>;
2746
2750
 
2751
+ /**
2752
+ * Emitted when the user's /goal Stop hook reports met (clears) or not-yet-met (bumps iterations + last_reason). Any surface with a goal indicator re-renders from this. value is null when the goal is cleared. From internal QueryEvent 'active_goal'.
2753
+ */
2754
+ export declare type SDKActiveGoalMessage = {
2755
+ type: 'active_goal';
2756
+ value: {
2757
+ condition: string;
2758
+ iterations: number;
2759
+ set_at: number;
2760
+ tokens_at_start: number;
2761
+ last_reason?: string;
2762
+ } | null;
2763
+ uuid: UUID;
2764
+ session_id: string;
2765
+ };
2766
+
2747
2767
  /**
2748
2768
  * Emitted when an API request fails with a retryable error and will be retried after a delay. error_status is null for connection errors (e.g. timeouts) that had no HTTP response.
2749
2769
  */
@@ -2806,6 +2826,24 @@ export declare type SDKAuthStatusMessage = {
2806
2826
  session_id: string;
2807
2827
  };
2808
2828
 
2829
+ /**
2830
+ * The full set of live background tasks, emitted whenever membership changes (start, completion, kill, a foreground agent being backgrounded). A level signal, unlike the task_started/task_notification edge bookends: consumers that only need 'is background work running' should replace their set with each payload rather than pairing edges, so a missed bookend cannot wedge a stale running indicator. Ordering relative to the bookends for the same transition is unspecified (in practice the level precedes them) and the payload carries ids only, so do not correlate it with the edge stream. The level is per-process: nothing is emitted at startup, so consumers must reset to the empty set whenever the session's CLI process (re)starts and let the next membership change repopulate it.
2831
+ */
2832
+ export declare type SDKBackgroundTasksChangedMessage = {
2833
+ type: 'system';
2834
+ subtype: 'background_tasks_changed';
2835
+ /**
2836
+ * Every live background task after the change. REPLACE semantics: swap your set for this payload.
2837
+ */
2838
+ tasks: {
2839
+ task_id: string;
2840
+ task_type: string;
2841
+ description: string;
2842
+ }[];
2843
+ uuid: UUID;
2844
+ session_id: string;
2845
+ };
2846
+
2809
2847
  export declare type SdkBeta = 'context-1m-2025-08-07';
2810
2848
 
2811
2849
  /**
@@ -3031,6 +3069,13 @@ export declare type SDKControlGetContextUsageResponse = {
3031
3069
  } | null;
3032
3070
  };
3033
3071
 
3072
+ /**
3073
+ * Read the session's current plan-mode plan. Unlike read_file, the caller does not need to know the plan file's path — the worker resolves its own plan slug. Never creates a plan slug or file.
3074
+ */
3075
+ declare type SDKControlGetPlanRequest = {
3076
+ subtype: 'get_plan';
3077
+ };
3078
+
3034
3079
  /**
3035
3080
  * Requests the formatted session cost summary (the same text /usage prints in non-interactive mode). Used by the thin-client /usage dialog to show the remote container cost instead of the local $0.00.
3036
3081
  */
@@ -3265,6 +3310,13 @@ export declare type SDKControlGetUsageResponse = {
3265
3310
  } | null;
3266
3311
  };
3267
3312
 
3313
+ /**
3314
+ * Requests the workspace git diff for the thin-client /diff dialog. The worker resolves one base ref for both stats and hunks (working tree vs HEAD, falling back to branch-vs-default-merge-base when the tree is clean) and applies the standard caps (5s git timeout, 50 files, 1MB/file).
3315
+ */
3316
+ declare type SDKControlGetWorkspaceDiffRequest = {
3317
+ subtype: 'get_workspace_diff';
3318
+ };
3319
+
3268
3320
  /**
3269
3321
  * Initializes the SDK session with hooks, MCP servers, and agent configuration.
3270
3322
  */
@@ -3326,6 +3378,9 @@ export declare type SDKControlInitializeResponse = {
3326
3378
 
3327
3379
  fast_mode_state?: coreTypes.FastModeState;
3328
3380
 
3381
+
3382
+
3383
+
3329
3384
  };
3330
3385
 
3331
3386
  /**
@@ -3512,7 +3567,26 @@ export declare type SDKControlRequest = {
3512
3567
  request: SDKControlRequestInner;
3513
3568
  };
3514
3569
 
3515
- declare type SDKControlRequestInner = SDKControlInterruptRequest | SDKControlPermissionRequest | SDKControlInitializeRequest | SDKControlSetPermissionModeRequest | SDKControlSetModelRequest | SDKControlSetMaxThinkingTokensRequest | SDKControlRenameSessionRequest | SDKControlSetColorRequest | SDKControlMcpStatusRequest | SDKControlGetContextUsageRequest | SDKControlGetSessionCostRequest | SDKControlListModelsRequest | SDKControlGetUsageRequest | SDKControlGetBinaryVersionRequest | SDKControlMcpCallRequest | SDKControlFileSuggestionsRequest | SDKHookCallbackRequest | SDKControlMcpMessageRequest | SDKControlRewindFilesRequest | SDKControlCancelAsyncMessageRequest | SDKControlReadFileRequest | SDKControlGetWorkspaceDiffRequest | SDKControlGetPlanRequest | SDKControlSeedReadStateRequest | SDKControlMcpSetServersRequest | SDKControlRegisterRepoRootRequest | SDKControlReloadPluginsRequest | SDKControlReloadSkillsRequest | SDKControlMcpReconnectRequest | SDKControlMcpToggleRequest | SDKControlSetMcpPermissionModeOverrideRequest | SDKControlRewindConversationRequest | SDKControlChannelEnableRequest | SDKControlEndSessionRequest | SDKControlMcpAuthenticateRequest | SDKControlMcpClearAuthRequest | SDKControlMcpOAuthCallbackUrlRequest | SDKControlClaudeAuthenticateRequest | SDKControlClaudeOAuthCallbackRequest | SDKControlClaudeOAuthWaitForCompletionRequest | SDKControlRemoteControlRequest | SDKControlGenerateSessionTitleRequest | SDKControlSideQuestionRequest | SDKControlUltrareviewLaunchRequest | SDKControlStageFileRequest | SDKControlAddDirectoryRequest | SDKControlSetCwdRequest | SDKControlMessageRatedRequest | SDKControlOAuthTokenRefreshRequest | SDKControlHostAuthTokenRefreshRequest | SDKControlStopTaskRequest | SDKControlBackgroundTasksRequest | SDKControlApplyFlagSettingsRequest | SDKControlGetSettingsRequest | SDKControlElicitationRequest | SDKControlRequestUserDialogRequest | SDKControlSubmitFeedbackRequest;
3570
+ declare type SDKControlRequestInner = SDKControlInterruptRequest | SDKControlPermissionRequest | SDKControlInitializeRequest | SDKControlSetPermissionModeRequest | SDKControlSetModelRequest | SDKControlSetMaxThinkingTokensRequest | SDKControlRenameSessionRequest | SDKControlSetColorRequest | SDKControlMcpStatusRequest | SDKControlGetContextUsageRequest | SDKControlGetSessionCostRequest | SDKControlListModelsRequest | SDKControlGetUsageRequest | SDKControlGetBinaryVersionRequest | SDKControlMcpCallRequest | SDKControlFileSuggestionsRequest | SDKHookCallbackRequest | SDKControlMcpMessageRequest | SDKControlRewindFilesRequest | SDKControlCancelAsyncMessageRequest | SDKControlReadFileRequest | SDKControlGetWorkspaceDiffRequest | SDKControlGetPlanRequest | SDKControlSeedReadStateRequest | SDKControlMcpSetServersRequest | SDKControlRegisterRepoRootRequest | SDKControlReloadPluginsRequest | SDKControlReloadSkillsRequest | SDKControlMcpReconnectRequest | SDKControlMcpToggleRequest | SDKControlStopTaskRequest | SDKControlBackgroundTasksRequest | SDKControlApplyFlagSettingsRequest | SDKControlGetSettingsRequest | SDKControlElicitationRequest | SDKControlRequestUserDialogRequest;
3571
+
3572
+ /**
3573
+ * Progress for a long-running client-originated control_request (currently only side_question), correlated by request_id. status 'started' means the worker accepted the request and launched the work; 'api_retry' carries the same retry counters as SDKAPIRetryMessage and is present only for that status.
3574
+ */
3575
+ export declare type SDKControlRequestProgressMessage = {
3576
+ type: 'system';
3577
+ subtype: 'control_request_progress';
3578
+ /**
3579
+ * request_id of the in-flight control_request this progress belongs to.
3580
+ */
3581
+ request_id: string;
3582
+ status: 'started' | 'api_retry';
3583
+ attempt?: number;
3584
+ max_retries?: number;
3585
+ retry_delay_ms?: number;
3586
+ error_status?: number | null;
3587
+ uuid: UUID;
3588
+ session_id: string;
3589
+ };
3516
3590
 
3517
3591
  /**
3518
3592
  * Requests the SDK consumer to render a tool-driven blocking dialog and return the user choice. Used by tools that previously rendered Ink JSX via setToolJSX with an onDone callback.
@@ -3598,6 +3672,16 @@ declare type SDKControlStopTaskRequest = {
3598
3672
  task_id: string;
3599
3673
  };
3600
3674
 
3675
+ /**
3676
+ * Emitted by /clear, plan-mode exit, and fresh-session flows. The surface should mount a fresh transcript under new_conversation_id and reset any cached session title. From internal QueryEvent 'conversation_reset'.
3677
+ */
3678
+ export declare type SDKConversationResetMessage = {
3679
+ type: 'conversation_reset';
3680
+ new_conversation_id: UUID;
3681
+ uuid: UUID;
3682
+ session_id: string;
3683
+ };
3684
+
3601
3685
  export declare type SDKDeferredToolUse = {
3602
3686
  id: string;
3603
3687
  name: string;
@@ -3769,7 +3853,7 @@ export declare type SDKMemoryRecallMessage = {
3769
3853
  session_id: string;
3770
3854
  };
3771
3855
 
3772
- export declare type SDKMessage = SDKAssistantMessage | SDKUserMessage | SDKUserMessageReplay | SDKResultMessage | SDKSystemMessage | SDKPartialAssistantMessage | SDKCompactBoundaryMessage | SDKStatusMessage | SDKAPIRetryMessage | SDKControlRequestProgressMessage | SDKModelRefusalFallbackMessage | SDKModelRefusalNoFallbackMessage | SDKLocalCommandOutputMessage | SDKHookStartedMessage | SDKHookProgressMessage | SDKHookResponseMessage | SDKPluginInstallMessage | SDKToolProgressMessage | SDKAuthStatusMessage | SDKTaskNotificationMessage | SDKTaskStartedMessage | SDKTaskUpdatedMessage | SDKTaskProgressMessage | SDKThinkingTokensMessage | SDKSessionStateChangedMessage | SDKWorkerShuttingDownMessage | SDKCommandsChangedMessage | SDKNotificationMessage | SDKFilesPersistedEvent | SDKToolUseSummaryMessage | SDKMemoryRecallMessage | SDKRateLimitEvent | SDKElicitationCompleteMessage | SDKPermissionDeniedMessage | SDKPromptSuggestionMessage | SDKMirrorErrorMessage | SDKInformationalMessage | SDKConversationResetMessage;
3856
+ export declare type SDKMessage = SDKAssistantMessage | SDKUserMessage | SDKUserMessageReplay | SDKResultMessage | SDKSystemMessage | SDKPartialAssistantMessage | SDKCompactBoundaryMessage | SDKStatusMessage | SDKAPIRetryMessage | SDKControlRequestProgressMessage | SDKModelRefusalFallbackMessage | SDKModelRefusalNoFallbackMessage | SDKLocalCommandOutputMessage | SDKHookStartedMessage | SDKHookProgressMessage | SDKHookResponseMessage | SDKPluginInstallMessage | SDKToolProgressMessage | SDKAuthStatusMessage | SDKTaskNotificationMessage | SDKTaskStartedMessage | SDKTaskUpdatedMessage | SDKTaskProgressMessage | SDKBackgroundTasksChangedMessage | SDKThinkingTokensMessage | SDKSessionStateChangedMessage | SDKWorkerShuttingDownMessage | SDKCommandsChangedMessage | SDKNotificationMessage | SDKFilesPersistedEvent | SDKToolUseSummaryMessage | SDKMemoryRecallMessage | SDKRateLimitEvent | SDKElicitationCompleteMessage | SDKPermissionDeniedMessage | SDKPromptSuggestionMessage | SDKMirrorErrorMessage | SDKInformationalMessage | SDKConversationResetMessage;
3773
3857
 
3774
3858
  /**
3775
3859
  * Provenance of a user-role message (peer session, team lead, channel). Absent or `human` means keyboard input from the user.
@@ -4431,6 +4515,13 @@ export declare type SessionMessage = {
4431
4515
  session_id: string;
4432
4516
  message: unknown;
4433
4517
  parent_tool_use_id: string | null;
4518
+ /**
4519
+ * agentId of the subagent that spawned this subagent, or null when this
4520
+ * message belongs to a depth-1 subagent (spawned by the main loop) or to
4521
+ * the main session itself. Sessions whose metadata lacks the field report
4522
+ * null.
4523
+ */
4524
+ parent_agent_id: string | null;
4434
4525
  };
4435
4526
 
4436
4527
  /**
@@ -6117,6 +6208,7 @@ export declare interface Settings {
6117
6208
 
6118
6209
 
6119
6210
 
6211
+
6120
6212
  /**
6121
6213
  * Enable auto-memory for this project. When false, Claude will not read from or write to the auto-memory directory.
6122
6214
  */
@@ -6403,7 +6495,7 @@ export declare function startup(_params?: {
6403
6495
  initializeTimeoutMs?: number;
6404
6496
  }): Promise<WarmQuery>;
6405
6497
 
6406
- declare type StdoutMessage = coreTypes.SDKMessage | coreTypes.SDKPostTurnSummaryMessage | coreTypes.SDKTaskSummaryMessage | coreTypes.SDKTranscriptMirrorMessage | coreTypes.SDKActiveGoalMessage | SDKControlResponse | SDKControlRequest | SDKControlCancelRequest | SDKKeepAliveMessage;
6498
+ declare type StdoutMessage = coreTypes.SDKMessage | coreTypes.SDKActiveGoalMessage | SDKControlResponse | SDKControlRequest | SDKControlCancelRequest | SDKKeepAliveMessage;
6407
6499
 
6408
6500
  export declare type StopFailureHookInput = BaseHookInput & {
6409
6501
  hook_event_name: 'StopFailure';