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

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.207",
3
- "commit": "bc512d56332530b2be3f5079e29ec17aa20b8553",
4
- "buildDate": "2026-07-10T21:39:38Z",
2
+ "version": "2.1.209",
3
+ "commit": "0fe048596fd45e79e99353cbe2c3d1b1ac069568",
4
+ "buildDate": "2026-07-14T03:58:29Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "1397a062c6889675055e3314dd956376ac51262a7734ad9e819c26975d71547a",
9
- "size": 241237136
8
+ "checksum": "59d2de7f49db2f75d5c33bbb46a6b8f288ad24d40b61e30602a502bb7ddc380c",
9
+ "size": 240377264
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "8a4355d251a60c90d8cf08f32fdb22a8157dd3d085542f95d0da0475f9a2c57c",
14
- "size": 249273680
13
+ "checksum": "4cc3f44b905d45bd27a6db9306ec6de928aea758537205329851ae478f2fa2c6",
14
+ "size": 249886224
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "8bc14a284065383460f37981d724b8f7aa7ca93c9849d2fe367e08f03383f454",
19
- "size": 256228080
18
+ "checksum": "278cb68ef7217cfcc5c949d2573bb8e59a8b1305f76689fba88eb722b0d9e2f0",
19
+ "size": 256817904
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "85e7e988a392d859f90802ca21fb26e89d3c9ab527f5ed0b08df3955e34d5c83",
24
- "size": 259402552
23
+ "checksum": "b882f4b8b27772f897540df50f24000206f43a9426e8f7d19bd065959b69e9dd",
24
+ "size": 259951416
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "ec3b657344dcf6693f434fe11ffe4592381d31d4e6a7976649c1a610770dcc74",
29
- "size": 249476280
28
+ "checksum": "d5785d7c25f86a00ba5d5fe81d98726c89ea7d6f45dca90fcc4cbabef6a9e0b5",
29
+ "size": 250066104
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "09a43ff41e33cbb0c4903a4939353933ee8f0d1964abab4b837004a951edb9ee",
34
- "size": 254091648
33
+ "checksum": "7ad8e7d428e1ddef18040fe43f54110541ced063a7b5903091aac8f45c57ee21",
34
+ "size": 254607744
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "781fdc2c89868b1cb05cc22c253ef142a0b44e7cc36236aecd6335745c7d42d0",
39
- "size": 249485472
38
+ "checksum": "b9d5e8542338a0918534e55d046a7c960ae4af5ee214c7e4e80a89067b63ea2c",
39
+ "size": 251303072
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "fa0c887a3f944ba1915766b525538b82b029ca8078ed6ee180c3b83c1b862521",
44
- "size": 243952800
43
+ "checksum": "a29607da80ac0d6f2620553e52026ecc7744b27d49128f143eacd120e5f2ad9d",
44
+ "size": 245652640
45
45
  }
46
46
  },
47
47
  "sdkCompat": {
@@ -61,7 +61,9 @@
61
61
  "0.3.201",
62
62
  "0.3.202",
63
63
  "0.3.204",
64
- "0.3.205"
64
+ "0.3.205",
65
+ "0.3.207",
66
+ "0.3.208"
65
67
  ],
66
68
  "harnessSchema": 1
67
69
  }
package/manifest.zst.json CHANGED
@@ -1,55 +1,55 @@
1
1
  {
2
- "version": "2.1.207",
3
- "commit": "bc512d56332530b2be3f5079e29ec17aa20b8553",
4
- "buildDate": "2026-07-10T21:41:27Z",
2
+ "version": "2.1.209",
3
+ "commit": "0fe048596fd45e79e99353cbe2c3d1b1ac069568",
4
+ "buildDate": "2026-07-14T04:00:20Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "1a8f29a408042f9695f2f757ac55ea22c92607940d1ff7739b22b738dce221e2",
9
- "size": 50610712,
8
+ "checksum": "d50df0bdfb3b82edcfe15f806d6d9868f8415252f1ffbef869e4b15a7fcf010e",
9
+ "size": 49588566,
10
10
  "bundle": {
11
- "checksum": "03debae4f03c3b2163f755a633b11708a69098bda768f6a241e99103821ab713",
12
- "size": 50594718
11
+ "checksum": "7edd81deea86886ece5495827f35dfcb20164d675ae96ad35a0bce0edc1d16a9",
12
+ "size": 49595200
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "b5e3cd3bb3a541a8e7eadf87a76b267804b9753326b8ffbae2b667afe85297fb",
18
- "size": 53624005,
17
+ "checksum": "9972a35b2ae680fd32ee0753544c5cf539a602b40377afef8236b92ca2e9638f",
18
+ "size": 54034985,
19
19
  "bundle": {
20
- "checksum": "d272255ec783b43f8644d34d590d75c1904a55dfacf6c2f67342576871da5509",
21
- "size": 53637501
20
+ "checksum": "e520167d258bf78be789496b1cbfae3d29be51d0eb1b774be2efdd26eaad357f",
21
+ "size": 54038405
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "72b19a4cf11ee241a8187dd099bf662e1eebf7093996c61ef572f877882ca285",
27
- "size": 58294671
26
+ "checksum": "6935096382fad17a819365364a3dadbc179ee1cc2251a50ae3f91b8a79561fa9",
27
+ "size": 58650439
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "df17174ee43c41372332b5fa8cbc7787aa9a0e7eb0d1e2f83ef9cbba635027c8",
32
- "size": 59550032
31
+ "checksum": "c490ee9f257a758ba7af399813c2bbc2f0ab612e3d3290dd5bda7c1b206953a0",
32
+ "size": 59963378
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "9012a37af351dd99f8f57555efd127d385037fa9d1e02f17dc8690e13f9f0d19",
37
- "size": 56979756
36
+ "checksum": "6c123cacac657c87f615cd72de6b98b2f78f8be3337d6e33e5f4536b79e56784",
37
+ "size": 57364599
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "1fcedd418e777e178d682c64bb5ffa7d529b1e1fe71205f05cdf2064b94a6506",
42
- "size": 58355365
41
+ "checksum": "37e6daf37dd6cd26c552b8f0062fb4d6e7a55d575db1e518f936b2a51e569e78",
42
+ "size": 58758705
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "26bfafd689f32a3422ea61ca602b5fdbd859ac5a3fdbee1ee6d2e5ec2a78883d",
47
- "size": 59678481
46
+ "checksum": "d94f36d4465b18948ef36530f9e940fcc8adda22f4c996dd5de09bbe63c9d3e4",
47
+ "size": 60328620
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "feab03d833eb383445471007c2ece19d0ea12f0704f9c86252356d8f0b254b0c",
52
- "size": 57703648
51
+ "checksum": "1a3919d021b8cb36f0732fcf55a6b4fd53b6a9ef2a6b4f0e6476be67115ddf1f",
52
+ "size": 58315564
53
53
  }
54
54
  },
55
55
  "sdkCompat": {
@@ -69,7 +69,9 @@
69
69
  "0.3.201",
70
70
  "0.3.202",
71
71
  "0.3.204",
72
- "0.3.205"
72
+ "0.3.205",
73
+ "0.3.207",
74
+ "0.3.208"
73
75
  ],
74
76
  "harnessSchema": 1
75
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-agent-sdk",
3
- "version": "0.3.207",
3
+ "version": "0.3.209",
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.207",
61
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.207",
62
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.207",
63
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.207",
64
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.207",
65
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.207",
66
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.207",
67
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.207"
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"
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.207"
83
+ "claudeCodeVersion": "2.1.209"
84
84
  }
package/sdk-tools.d.ts CHANGED
@@ -2912,6 +2912,7 @@ export interface GrepOutput {
2912
2912
  content?: string;
2913
2913
  numLines?: number;
2914
2914
  numMatches?: number;
2915
+ totalFiles?: number;
2915
2916
  appliedLimit?: number;
2916
2917
  appliedOffset?: number;
2917
2918
  }
package/sdk.d.ts CHANGED
@@ -462,7 +462,8 @@ declare namespace coreTypes {
462
462
  * Creates an MCP server instance that can be used with the SDK transport.
463
463
  * This allows SDK users to define custom tools that run in the same process.
464
464
  *
465
- * If your SDK MCP calls will run longer than 60s, override CLAUDE_CODE_STREAM_CLOSE_TIMEOUT
465
+ * Tool calls are bounded by the MCP tool-call timeout the MCP_TOOL_TIMEOUT
466
+ * env var (ms), effectively unbounded by default.
466
467
  */
467
468
  export declare function createSdkMcpServer(_options: CreateSdkMcpServerOptions): McpSdkServerConfigWithInstance;
468
469
 
@@ -3688,11 +3689,11 @@ declare type SDKControlSetColorRequest = {
3688
3689
  };
3689
3690
 
3690
3691
  /**
3691
- * Sets the maximum number of thinking tokens for extended thinking. thinking_display optionally sets the thinking display mode for the rest of the session: a value replaces the session display mode, null clears it back to the API default, and when omitted the display mode from session start (--thinking-display) is kept.
3692
+ * Sets the maximum number of thinking tokens for extended thinking. When max_thinking_tokens is omitted or null, thinking resets to the session default: any mid-session budget override is cleared (back to the spawn-time budget, if one was set), and thinking stays off for sessions that have it disabled. thinking_display optionally sets the thinking display mode for the rest of the session: a value replaces the session display mode, null clears it back to the API default, and when omitted the display mode from session start (--thinking-display) is kept.
3692
3693
  */
3693
3694
  declare type SDKControlSetMaxThinkingTokensRequest = {
3694
3695
  subtype: 'set_max_thinking_tokens';
3695
- max_thinking_tokens: number | null;
3696
+ max_thinking_tokens?: number | null;
3696
3697
  thinking_display?: ('summarized' | 'omitted') | null;
3697
3698
  };
3698
3699
 
@@ -3994,7 +3995,7 @@ export declare type SDKModelRefusalFallbackMessage = {
3994
3995
  };
3995
3996
 
3996
3997
  /**
3997
- * Emitted when the model ends the stream with stop_reason "refusal" and no retry runs: no fallback model is configured, or per-category routing declined the retry (the refusal category has no fallback map entry). The structured counterpart to detecting stop_reason "refusal" on the assistant error frame. Not emitted when the retry ran or the user declined the retry dialog (model_refusal_fallback covers the retry case). Absent from older CLIs.
3998
+ * Emitted when the model ends the stream with stop_reason "refusal" and no retry runs: no fallback model is configured, or per-category routing declined the retry (the mapped fallback target is unresolvable, or CLAUDE_CODE_REFUSAL_FALLBACK_CATCH_ALL is explicitly disabled and the refusal category has no fallback map entry). The structured counterpart to detecting stop_reason "refusal" on the assistant error frame. Not emitted when the retry ran or the user declined the retry dialog (model_refusal_fallback covers the retry case). Absent from older CLIs.
3998
3999
  */
3999
4000
  export declare type SDKModelRefusalNoFallbackMessage = {
4000
4001
  type: 'system';
@@ -6352,6 +6353,12 @@ export declare interface Settings {
6352
6353
  * Key binding mode for the prompt input
6353
6354
  */
6354
6355
  editorMode?: 'normal' | 'vim';
6356
+ /**
6357
+ * Vim INSERT-mode key-sequence remaps, e.g. {"jj": "<Esc>"}. Each key is exactly two printable characters typed in sequence; "<Esc>" (return to NORMAL mode) is the only supported target. Applies when editorMode is "vim".
6358
+ */
6359
+ vimInsertModeRemaps?: {
6360
+ [k: string]: unknown;
6361
+ };
6355
6362
  /**
6356
6363
  * Show full tool output instead of truncated summaries
6357
6364
  */
@@ -6359,7 +6366,7 @@ export declare interface Settings {
6359
6366
  /**
6360
6367
  * Preferred OS notification channel
6361
6368
  */
6362
- preferredNotifChannel?: 'auto' | 'iterm2' | 'iterm2_with_bell' | 'terminal_bell' | 'kitty' | 'ghostty' | 'notifications_disabled';
6369
+ preferredNotifChannel?: 'auto' | 'iterm2' | 'terminal_bell' | 'iterm2_with_bell' | 'kitty' | 'ghostty' | 'notifications_disabled';
6363
6370
  /**
6364
6371
  * Automatically compact conversation when context fills
6365
6372
  */