@anthropic-ai/claude-agent-sdk 0.3.209 → 0.3.210

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/manifest.json CHANGED
@@ -1,47 +1,47 @@
1
1
  {
2
- "version": "2.1.209",
3
- "commit": "0fe048596fd45e79e99353cbe2c3d1b1ac069568",
4
- "buildDate": "2026-07-14T03:58:29Z",
2
+ "version": "2.1.210",
3
+ "commit": "88e9fbf39bf4efa5bca44549b7fd9461628657e6",
4
+ "buildDate": "2026-07-14T15:12:31Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "59d2de7f49db2f75d5c33bbb46a6b8f288ad24d40b61e30602a502bb7ddc380c",
9
- "size": 240377264
8
+ "checksum": "1b471d62d1117482689d75447f5e050c640da717a5a3c91e6c13792450f8c662",
9
+ "size": 241509968
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "4cc3f44b905d45bd27a6db9306ec6de928aea758537205329851ae478f2fa2c6",
14
- "size": 249886224
13
+ "checksum": "892f2c878050d8829e67119328dd9768345fba18a58c169212b70597c9175c40",
14
+ "size": 251025552
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "278cb68ef7217cfcc5c949d2573bb8e59a8b1305f76689fba88eb722b0d9e2f0",
19
- "size": 256817904
18
+ "checksum": "84feb193c1d91f3b5eba836ed47c0e4dee953195abba950917c3e101eff174e8",
19
+ "size": 257932016
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "b882f4b8b27772f897540df50f24000206f43a9426e8f7d19bd065959b69e9dd",
24
- "size": 259951416
23
+ "checksum": "e7d2ceb53ed4c2ced1fe7fc1c6331c98dc5f7b4c9b2722d9c5fa3dd5dff6f719",
24
+ "size": 261081912
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "d5785d7c25f86a00ba5d5fe81d98726c89ea7d6f45dca90fcc4cbabef6a9e0b5",
29
- "size": 250066104
28
+ "checksum": "17f617e24a05533cea8a344f44f0a25b6fb20ee467500601c3cd8392064ec528",
29
+ "size": 251180216
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "7ad8e7d428e1ddef18040fe43f54110541ced063a7b5903091aac8f45c57ee21",
34
- "size": 254607744
33
+ "checksum": "03012f856faa1a9409d9add13936794f168e530c9746c8a099dec6ce8415c32b",
34
+ "size": 255742336
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "b9d5e8542338a0918534e55d046a7c960ae4af5ee214c7e4e80a89067b63ea2c",
39
- "size": 251303072
38
+ "checksum": "29aa99c436f0d4125780691123b756176d83b59cc7d492304cd4694292d3f04f",
39
+ "size": 252385952
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "a29607da80ac0d6f2620553e52026ecc7744b27d49128f143eacd120e5f2ad9d",
44
- "size": 245652640
43
+ "checksum": "4a603da0a33d49478e55938898ddd06c4ec5d1ec7f443d92dd4352665faaef05",
44
+ "size": 246736544
45
45
  }
46
46
  },
47
47
  "sdkCompat": {
@@ -63,7 +63,8 @@
63
63
  "0.3.204",
64
64
  "0.3.205",
65
65
  "0.3.207",
66
- "0.3.208"
66
+ "0.3.208",
67
+ "0.3.209"
67
68
  ],
68
69
  "harnessSchema": 1
69
70
  }
package/manifest.zst.json CHANGED
@@ -1,55 +1,55 @@
1
1
  {
2
- "version": "2.1.209",
3
- "commit": "0fe048596fd45e79e99353cbe2c3d1b1ac069568",
4
- "buildDate": "2026-07-14T04:00:20Z",
2
+ "version": "2.1.210",
3
+ "commit": "88e9fbf39bf4efa5bca44549b7fd9461628657e6",
4
+ "buildDate": "2026-07-14T15:14:20Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "d50df0bdfb3b82edcfe15f806d6d9868f8415252f1ffbef869e4b15a7fcf010e",
9
- "size": 49588566,
8
+ "checksum": "b2b98bc9d82c166f423eadb1c79a0287bf68975cbdb9fd4edb0c4a2c7605ea8b",
9
+ "size": 49753745,
10
10
  "bundle": {
11
- "checksum": "7edd81deea86886ece5495827f35dfcb20164d675ae96ad35a0bce0edc1d16a9",
12
- "size": 49595200
11
+ "checksum": "daedd5c953c84f0ecf9f67c6bd505a5cebb11c6fb2c58380bd42a903e574cf1e",
12
+ "size": 49743844
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "9972a35b2ae680fd32ee0753544c5cf539a602b40377afef8236b92ca2e9638f",
18
- "size": 54034985,
17
+ "checksum": "379c3df41bd6b3262e88467f91d156bb6b6f5d4c29628726d1961fc4fd968fb3",
18
+ "size": 54192491,
19
19
  "bundle": {
20
- "checksum": "e520167d258bf78be789496b1cbfae3d29be51d0eb1b774be2efdd26eaad357f",
21
- "size": 54038405
20
+ "checksum": "19af46b5eff6d8505e33dff623f67ba58a1e4d98e352eda948161c0f9eafb38a",
21
+ "size": 54195518
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "6935096382fad17a819365364a3dadbc179ee1cc2251a50ae3f91b8a79561fa9",
27
- "size": 58650439
26
+ "checksum": "7056a3eed6c5a2bb6dfad0613c55227a66acc0c9022eb3ab615f9b77b13ddef0",
27
+ "size": 58807309
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "c490ee9f257a758ba7af399813c2bbc2f0ab612e3d3290dd5bda7c1b206953a0",
32
- "size": 59963378
31
+ "checksum": "4b487e778a705e992dee0056fb96f106b1417f543162b69ada6666c46404754a",
32
+ "size": 60117820
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "6c123cacac657c87f615cd72de6b98b2f78f8be3337d6e33e5f4536b79e56784",
37
- "size": 57364599
36
+ "checksum": "0eaea6f2b355654b11baaed0c1a04c2686ac893c6ee79c366c74c486425655d5",
37
+ "size": 57495755
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "37e6daf37dd6cd26c552b8f0062fb4d6e7a55d575db1e518f936b2a51e569e78",
42
- "size": 58758705
41
+ "checksum": "ff54075fd3b54c97cb7817f6e583877e8fd153620ed850fdd490d7438fdcc8ab",
42
+ "size": 58895822
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "d94f36d4465b18948ef36530f9e940fcc8adda22f4c996dd5de09bbe63c9d3e4",
47
- "size": 60328620
46
+ "checksum": "e41bb10241c11ff3cf42fe8ac53c1f923821d5f37de341c8995597baa7cb2535",
47
+ "size": 60475271
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "1a3919d021b8cb36f0732fcf55a6b4fd53b6a9ef2a6b4f0e6476be67115ddf1f",
52
- "size": 58315564
51
+ "checksum": "26f138ebc4077cfefbd6ba1eb91b41e6f63d4cc1e8049c90cc1f81d2e8caf4c5",
52
+ "size": 58469872
53
53
  }
54
54
  },
55
55
  "sdkCompat": {
@@ -71,7 +71,8 @@
71
71
  "0.3.204",
72
72
  "0.3.205",
73
73
  "0.3.207",
74
- "0.3.208"
74
+ "0.3.208",
75
+ "0.3.209"
75
76
  ],
76
77
  "harnessSchema": 1
77
78
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-agent-sdk",
3
- "version": "0.3.209",
3
+ "version": "0.3.210",
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.209",
61
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.209",
62
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.209",
63
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.209",
64
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.209",
65
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.209",
66
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.209",
67
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.209"
60
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.210",
61
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.210",
62
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.210",
63
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.210",
64
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.210",
65
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.210",
66
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.210",
67
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.210"
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.209"
83
+ "claudeCodeVersion": "2.1.210"
84
84
  }
package/sdk-tools.d.ts CHANGED
@@ -375,8 +375,10 @@ export type ArtifactOutput =
375
375
  title: string;
376
376
  url: string;
377
377
  updatedAt?: string;
378
+ rel?: "mine" | "shared";
378
379
  }[];
379
380
  truncated?: boolean;
381
+ scope?: "shared" | "all";
380
382
  };
381
383
  export type ProjectsOutput =
382
384
  | {
@@ -2609,11 +2611,11 @@ export interface MonitorInput {
2609
2611
  }
2610
2612
  export interface ArtifactInput {
2611
2613
  /**
2612
- * Omit (or 'publish') to publish file_path. 'list' enumerates the user's published artifacts; only `limit` may accompany it.
2614
+ * Omit (or 'publish') to publish file_path. 'list' enumerates artifacts — the user's own by default, see `scope`; only `limit` and `scope` may accompany it.
2613
2615
  */
2614
2616
  action?: "publish" | "list";
2615
2617
  /**
2616
- * 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>.
2618
+ * Path to an .html or .md file to render. Required to publish (the default action). Use a short, distinctive basename — it is the last-resort title when the HTML has no <title> and no `title` parameter is given.
2617
2619
  */
2618
2620
  file_path?: string;
2619
2621
  /**
@@ -2624,6 +2626,14 @@ export interface ArtifactInput {
2624
2626
  * list only: maximum artifacts to return (default 25).
2625
2627
  */
2626
2628
  limit?: number;
2629
+ /**
2630
+ * list only: 'mine' (default) lists artifacts the user owns — the only ones the update flow can target; 'shared' lists artifacts other people shared with the user (read-only); 'all' lists both. Rows are labeled (mine)/(shared) whenever scope is not 'mine'.
2631
+ */
2632
+ scope?: "mine" | "shared" | "all";
2633
+ /**
2634
+ * Title for the artifact — the name shown in the browser tab and gallery. Prefer a <title> tag in the HTML itself; this parameter fills in only when the file lacks one and never overrides the tag. HTML publishes only — Markdown pages keep their filename identity. Content always comes from file_path — there is no inline content parameter.
2635
+ */
2636
+ title?: string;
2627
2637
  /**
2628
2638
  * One-sentence subtitle shown on the gallery card. Say what the page is or does.
2629
2639
  */
@@ -2697,6 +2707,14 @@ export interface BashOutput {
2697
2707
  * True if the user manually backgrounded the command with Ctrl+B
2698
2708
  */
2699
2709
  backgroundedByUser?: boolean;
2710
+ /**
2711
+ * Set when the command hit its timeout and was auto-backgrounded; the timeout value in ms
2712
+ */
2713
+ timedOutAfterMs?: number;
2714
+ /**
2715
+ * Model-facing note that the session cwd was not changed by a backgrounded command containing a directory-change builtin (cd/pushd/popd/chdir)
2716
+ */
2717
+ backgroundCwdHint?: string;
2700
2718
  /**
2701
2719
  * Flag to indicate if sandbox mode was overridden
2702
2720
  */
@@ -2913,6 +2931,7 @@ export interface GrepOutput {
2913
2931
  numLines?: number;
2914
2932
  numMatches?: number;
2915
2933
  totalFiles?: number;
2934
+ totalLines?: number;
2916
2935
  appliedLimit?: number;
2917
2936
  appliedOffset?: number;
2918
2937
  }
package/sdk.d.ts CHANGED
@@ -2483,9 +2483,16 @@ export declare interface Query extends AsyncGenerator<SDKMessage, void> {
2483
2483
  * are managed by the CLI subprocess.
2484
2484
  *
2485
2485
  * Note: This only affects servers added dynamically via this method or the SDK.
2486
- * Servers configured via settings files are not affected.
2486
+ * Servers configured via settings files are not affected. Servers introduced
2487
+ * by plugins are also exempt: they are managed by the plugin system, so
2488
+ * omitting them from the payload does NOT remove them — they keep running
2489
+ * (unless enterprise policy denies the server) and are simply absent from
2490
+ * the result's `removed` list. In particular, `setMcpServers({})` no longer
2491
+ * guarantees a session has zero dynamic MCP surface when plugins are
2492
+ * loaded. Naming a plugin server explicitly in the payload still replaces
2493
+ * it (ownership is preserved CLI-side).
2487
2494
  *
2488
- * @param servers - Record of server name to configuration. Pass an empty object to remove all dynamic servers.
2495
+ * @param servers - Record of server name to configuration. Pass an empty object to remove all dynamic servers (except plugin-owned ones, which are retained).
2489
2496
  * @returns Information about which servers were added, removed, and any connection errors
2490
2497
  */
2491
2498
  setMcpServers(servers: Record<string, McpServerConfig>): Promise<McpSetServersResult>;
@@ -3909,7 +3916,7 @@ export declare type SDKMemoryRecallMessage = {
3909
3916
  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;
3910
3917
 
3911
3918
  /**
3912
- * Provenance of a user-role message (peer session, team lead, channel). Absent or `human` means keyboard input from the user.
3919
+ * Provenance of a user-role message (peer session, team lead, channel). A host wrapping keyboard input must stamp {kind:'human'} explicitly — absent origin is treated as unattributed and fails closed at strict isHuman() trust gates.
3913
3920
  */
3914
3921
  export declare type SDKMessageOrigin = {
3915
3922
  kind: 'human';
@@ -4816,6 +4823,10 @@ export declare interface Settings {
4816
4823
  * Command to refresh GCP authentication (e.g., gcloud auth application-default login)
4817
4824
  */
4818
4825
  gcpAuthRefresh?: string;
4826
+ /**
4827
+ * Corporate launcher argv prefix for the background-agent supervisor, the sessions and workers it hosts, and the other covered background processes listed in the Claude Code corporate-launcher documentation. Equivalent to the CLAUDE_CODE_PROCESS_WRAPPER environment variable, which takes precedence when set. Honored from managed settings, a --settings/SDK-supplied settings file, and user settings, in that precedence order; project and local settings are ignored.
4828
+ */
4829
+ processWrapper?: string;
4819
4830
  /**
4820
4831
  * Executable that computes managed settings at startup. Honored only from admin-controlled policy sources.
4821
4832
  */
@@ -6877,6 +6888,10 @@ export declare type UserPromptExpansionHookSpecificOutput = {
6877
6888
  export declare type UserPromptSubmitHookInput = BaseHookInput & {
6878
6889
  hook_event_name: 'UserPromptSubmit';
6879
6890
  prompt: string;
6891
+ /**
6892
+ * Who authored/injected the prompt: `user` = submitted from the interactive composer, `sdk` = non-interactive entrypoint (`-p` / Agent SDK), `loop_wakeup` = dynamic /loop wakeup, `schedule_wakeup` = scheduled-task fire (CronCreate/routine), `system` = other machine-injected turns (peer/channel messages, task notifications, auto-continuation). Currently only set for Anthropic-internal sessions while the field is trialed; external payloads omit it.
6893
+ */
6894
+ source?: 'user' | 'sdk' | 'system' | 'loop_wakeup' | 'schedule_wakeup';
6880
6895
  session_title?: string;
6881
6896
  };
6882
6897