@anthropic-ai/claude-agent-sdk 0.3.216 → 0.3.218

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.216",
3
- "commit": "7fead72f57c595d5a353a2e477bd2608d27ddcc6",
4
- "buildDate": "2026-07-20T18:40:59Z",
2
+ "version": "2.1.218",
3
+ "commit": "bce61b433bc397ce68686368abd12f545b0a013a",
4
+ "buildDate": "2026-07-22T18:42:19Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "d01b49210d72ecbe277a2665d104bacccddf2d22185be99446d2929e0edfc48d",
9
- "size": 249225584
8
+ "checksum": "71abaff59312c9a9b6a1d818365048b42e4e95cc521a823660eded3e0880d9b7",
9
+ "size": 255069680
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "e17cdc51437bd7a80ce0244d25045f568d67b212eea4ff81b83ee90f8666e42f",
14
- "size": 258670096
13
+ "checksum": "9862b74a083e8a4ed572f99cbd4895185e0dd5a0a601affb0fb8e43d8d1f40e6",
14
+ "size": 264548368
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "9e3a6aecc5164f607e1183aea2092c7d7705d146e504a6207df291776996a8ea",
19
- "size": 264158112
18
+ "checksum": "295fd30481bd03b38450fdec2a6e25bb6472c2074f04b0c4a566cd5988f230bf",
19
+ "size": 269990816
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "74deca45220b8080ec75ab099bd5a5980e41a2b5879846a008fb115d436de085",
24
- "size": 267353072
23
+ "checksum": "e12071751a9336b8af1012c103358ff04ac18f9aaff4a738cff7ba5cdfaf63f2",
24
+ "size": 273177584
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "70b5dcf81bd13212ab26ec9427fa87527cd44ceb3a2a21ac04308d0f1a418a52",
29
- "size": 257406312
28
+ "checksum": "efcaae48f8f537a0e9a47b4317a5f8c184706c99ddd8ca0a9a21391e2a766ef8",
29
+ "size": 263239016
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "54ac63736128b3aa9a73e2d9ba1f35177eb69d7b97d975f63a36d33fe0666652",
34
- "size": 261976656
33
+ "checksum": "62986293277153f5db97404cf7e3e96de136f02c28f79ccd5c7bc99766224db4",
34
+ "size": 267801168
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "902215367918866f3c36564e115bd5636d60178acf28181713d449275b833540",
39
- "size": 258288288
38
+ "checksum": "81fcf59bb7abb558aedc6f2361f4723b3d757d28e799962d88b18b4520df66ca",
39
+ "size": 263931552
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "850ba4969ca49964b418863648131f65f76107be36d6719ff0aaaf3dfc9a422e",
44
- "size": 252663968
43
+ "checksum": "a7959fd87feb9557d56f4e5752f7ed1ddf405f3bea91b2571bf93af636efd193",
44
+ "size": 258307232
45
45
  }
46
46
  },
47
47
  "sdkCompat": {
@@ -67,7 +67,8 @@
67
67
  "0.3.207",
68
68
  "0.3.208",
69
69
  "0.3.209",
70
- "0.3.215"
70
+ "0.3.215",
71
+ "0.3.217"
71
72
  ],
72
73
  "harnessSchema": 1
73
74
  }
package/manifest.zst.json CHANGED
@@ -1,55 +1,55 @@
1
1
  {
2
- "version": "2.1.216",
3
- "commit": "7fead72f57c595d5a353a2e477bd2608d27ddcc6",
4
- "buildDate": "2026-07-20T18:42:29Z",
2
+ "version": "2.1.218",
3
+ "commit": "bce61b433bc397ce68686368abd12f545b0a013a",
4
+ "buildDate": "2026-07-22T18:44:19Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "0e2f0bb7c0cc87233fb3b723e6a1b4bec47770c8ad1a28bf41a026567a506419",
9
- "size": 51249356,
8
+ "checksum": "e573c71d81c54347ebcbd6d7988f3798601e3150ea69e3beaa6252cd944fb0de",
9
+ "size": 52109964,
10
10
  "bundle": {
11
- "checksum": "83ddce39ccbc04204cbf8e0826ad81858dd4bdd7cb64df75321894df1d8422b6",
12
- "size": 51253933
11
+ "checksum": "6521f8d9d917c4d7dc12318585721bdb60211c9fc1ca11bfc131af0ff420a853",
12
+ "size": 52131305
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "b6f1eb9d15fe26d032f68a586314499174a27949b8f47ad6e1a5c6d13d1fae6f",
18
- "size": 55865246,
17
+ "checksum": "4566d7bc48fbceea9436d09d311c19bbd00c9a8328202c785c06cced00d0a4cf",
18
+ "size": 56653254,
19
19
  "bundle": {
20
- "checksum": "8b7f4c687e7f326158d15b19230019d3bc8e6672ba9fafadec65fdf65b8997f8",
21
- "size": 55868423
20
+ "checksum": "9d627f5e45c3a9698824c284155dbf2aebb3da3bb0ecc35c198192d98c7eac90",
21
+ "size": 56657735
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "5c270298200e995641abdf2935df6f0b1fa9003074e9586e1ae8d3969134ef5e",
27
- "size": 60098614
26
+ "checksum": "c3c149749fbe54d452f09865791450aad6f38350c73c1fcabcfc0b1f8705b5e9",
27
+ "size": 60992519
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "9f4e2873c4435cd22f0a57cf9d974e80f7942e5779d20b731155b4a7c36da38e",
32
- "size": 61418616
31
+ "checksum": "c9ae380f8787831bdd0659fe6022fb9dfa51c41a551673497c56b14c86f9b1cd",
32
+ "size": 62289374
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "084cd6a13f749d8a120ff479c3fc94de95af7ff8295229879d4f8472af660faf",
37
- "size": 58779613
36
+ "checksum": "1a1d5499fcdeddd2fc92bc3d0091003b60987293a770e9a7f9595a418f6c99d1",
37
+ "size": 59660082
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "9c092a5e7162f1c6c594dc6cc71d0787e1459ce684982fbcfdae2c2d2b97b9ed",
42
- "size": 60188121
41
+ "checksum": "30a1e4f61f193dfaf50b65155fe815bb0c732429d1ca3f7ada511f6e51e1a972",
42
+ "size": 61061435
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "a3607330d83c8129133fcdd8a7c6a20baa3dd03eb070a0d7c4617ef833d276c5",
47
- "size": 61834150
46
+ "checksum": "fde8d0b1b194d72c49e08f04e03645ade5aa8cbf443644ef81d45a3f3b49c2b4",
47
+ "size": 62715087
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "455fadbea866e6e31aec9a6afdd6e991bc9191e0d4f5321457df1b1ccc434039",
52
- "size": 59805811
51
+ "checksum": "02db299bd7109f40c3ad9cbaab8e02563802e4563eaa33e6065a1468c88819b3",
52
+ "size": 60749318
53
53
  }
54
54
  },
55
55
  "sdkCompat": {
@@ -75,7 +75,8 @@
75
75
  "0.3.207",
76
76
  "0.3.208",
77
77
  "0.3.209",
78
- "0.3.215"
78
+ "0.3.215",
79
+ "0.3.217"
79
80
  ],
80
81
  "harnessSchema": 1
81
82
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-agent-sdk",
3
- "version": "0.3.216",
3
+ "version": "0.3.218",
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.216",
61
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.216",
62
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.216",
63
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.216",
64
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.216",
65
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.216",
66
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.216",
67
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.216"
60
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.218",
61
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.218",
62
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.218",
63
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.218",
64
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.218",
65
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.218",
66
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.218",
67
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.218"
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.216"
83
+ "claudeCodeVersion": "2.1.218"
84
84
  }
package/sdk-tools.d.ts CHANGED
@@ -513,7 +513,7 @@ export interface AgentInput {
513
513
  /**
514
514
  * Deprecated; ignored. Subagents inherit the parent session's permission mode; agent-definition frontmatter may override it.
515
515
  */
516
- mode?: "acceptEdits" | "auto" | "bypassPermissions" | "default" | "dontAsk" | "plan" | "bubble";
516
+ mode?: "acceptEdits" | "auto" | "bypassPermissions" | "default" | "dontAsk" | "plan";
517
517
  /**
518
518
  * Isolation mode. "worktree" creates a temporary git worktree so the agent works on an isolated copy of the repo. "remote" launches the agent in a remote cloud environment (always runs in background; availability is gated).
519
519
  */
@@ -2864,7 +2864,7 @@ export interface ArtifactInput {
2864
2864
  */
2865
2865
  url?: string;
2866
2866
  /**
2867
- * Overwrite without a conflict check. Use only after a 409 when you have reconciled with the other session's version and intend to replace it. The tracked baseVersion is always sent; with force:true the server treats it as informational and overwrites. Omit (or false) so a concurrent write 409s instead of being silently clobbered.
2867
+ * Last-resort overwrite that DISCARDS another session's published version. On a 409 conflict the normal fix is to re-read the artifact, merge your edits on top of the newer content, and publish again — not force. Pass force:true only when the user explicitly wants to replace the other session's version. The tracked baseVersion is still sent; with force:true the server treats it as informational and overwrites. Omit (or false) so a concurrent write 409s instead of being silently clobbered.
2868
2868
  */
2869
2869
  force?: boolean;
2870
2870
  }
package/sdk.d.ts CHANGED
@@ -1252,6 +1252,14 @@ export declare type ModelUsage = {
1252
1252
  costUSD: number;
1253
1253
  contextWindow: number;
1254
1254
  maxOutputTokens: number;
1255
+ /**
1256
+ * Canonical model id used for the pricing lookup (e.g. 'claude-opus-4-7'). May differ from the raw model string this entry is keyed by (provider-specific ids, aliases).
1257
+ */
1258
+ canonicalModel?: string;
1259
+ /**
1260
+ * API provider that served this model ('firstParty', 'bedrock', 'vertex', 'foundry', 'anthropicAws', 'anthropicGoogleCloud', 'mantle', 'gateway').
1261
+ */
1262
+ provider?: string;
1255
1263
  };
1256
1264
 
1257
1265
  export declare type NonNullableUsage = {
@@ -4222,6 +4230,7 @@ export declare type SDKRateLimitInfo = {
4222
4230
  surpassedThreshold?: number;
4223
4231
 
4224
4232
 
4233
+
4225
4234
  errorCode?: 'credits_required';
4226
4235
  canUserPurchaseCredits?: boolean;
4227
4236
  hasChargeableSavedPaymentMethod?: boolean;
@@ -4543,7 +4552,7 @@ export declare type SDKUserMessage = {
4543
4552
  parent_tool_use_id: string | null;
4544
4553
  isSynthetic?: boolean;
4545
4554
  /**
4546
- * Structured tool output — the tool's full Output object, not the string content sent to the model. The shape is per-tool, keyed by the matching tool_use block's name (see the *Output types in toolTypes); MCP and dynamic tools carry their own shapes, so the field stays unknown-typed. For the Agent/Task tool the completed shape is AgentToolCompletedOutput: the subagent's final report without the model-directed agentId/usage trailer, plus run totals — render from it instead of parsing the tool_result text.
4555
+ * Structured tool output — the tool's full Output object, not the string content sent to the model. The shape is per-tool, keyed by the matching tool_use block's name (see the *Output types in toolTypes); MCP and dynamic tools carry their own shapes, so the field stays unknown-typed. For the Agent/Task tool the completed shape is the subagent's final report without the model-directed agentId/usage trailer, plus run totals — render from it instead of parsing the tool_result text.
4547
4556
  */
4548
4557
  tool_use_result?: unknown;
4549
4558
  priority?: 'now' | 'next' | 'later';
@@ -4589,7 +4598,7 @@ export declare type SDKUserMessageReplay = {
4589
4598
  parent_tool_use_id: string | null;
4590
4599
  isSynthetic?: boolean;
4591
4600
  /**
4592
- * Structured tool output — the tool's full Output object, not the string content sent to the model. The shape is per-tool, keyed by the matching tool_use block's name (see the *Output types in toolTypes); MCP and dynamic tools carry their own shapes, so the field stays unknown-typed. For the Agent/Task tool the completed shape is AgentToolCompletedOutput: the subagent's final report without the model-directed agentId/usage trailer, plus run totals — render from it instead of parsing the tool_result text.
4601
+ * Structured tool output — the tool's full Output object, not the string content sent to the model. The shape is per-tool, keyed by the matching tool_use block's name (see the *Output types in toolTypes); MCP and dynamic tools carry their own shapes, so the field stays unknown-typed. For the Agent/Task tool the completed shape is the subagent's final report without the model-directed agentId/usage trailer, plus run totals — render from it instead of parsing the tool_result text.
4593
4602
  */
4594
4603
  tool_use_result?: unknown;
4595
4604
  priority?: 'now' | 'next' | 'later';
@@ -6288,6 +6297,10 @@ export declare interface Settings {
6288
6297
  * When false, prompt suggestions are disabled. When absent or true, prompt suggestions are enabled.
6289
6298
  */
6290
6299
  promptSuggestionEnabled?: boolean;
6300
+ /**
6301
+ * When false, the :emoji: shortcode typeahead (the suggestion popup and the :name: inline replacement) is disabled. When absent or true, it is enabled.
6302
+ */
6303
+ emojiCompletionEnabled?: boolean;
6291
6304
 
6292
6305
  /**
6293
6306
  * When true, the plan-approval dialog offers a "clear context" option. Defaults to false.
@@ -6508,7 +6521,7 @@ export declare interface Settings {
6508
6521
  */
6509
6522
  showTurnDuration?: boolean;
6510
6523
  /**
6511
- * Stamp each assistant message with its arrival time
6524
+ * Stamp each message with its arrival time
6512
6525
  */
6513
6526
  showMessageTimestamps?: boolean;
6514
6527
  /**
@@ -6551,6 +6564,10 @@ export declare interface Settings {
6551
6564
  * Prevent claude-cli:// protocol handler registration with the OS
6552
6565
  */
6553
6566
  disableDeepLinkRegistration?: 'disable';
6567
+ /**
6568
+ * Enable voice mode (hold-to-talk dictation)
6569
+ */
6570
+ voiceEnabled?: boolean;
6554
6571
  /**
6555
6572
  * Default transcript view: chat (SendUserMessage checkpoints only) or transcript (full)
6556
6573
  */