@anthropic-ai/claude-agent-sdk 0.3.217 → 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.217",
3
- "commit": "9963b018d22c3e6659c99e135e687870301b5c67",
4
- "buildDate": "2026-07-21T18:45:36Z",
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": "5840c777fd47115e9ca276e165563c6e121e7c7e2b4d86598e0025f8cc37de56",
9
- "size": 250456784
8
+ "checksum": "71abaff59312c9a9b6a1d818365048b42e4e95cc521a823660eded3e0880d9b7",
9
+ "size": 255069680
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "8387a6fd44edfd40d7e74c5fdc3270a15f5e6b1b58c7c6fee560e70d3d1943da",
14
- "size": 259908496
13
+ "checksum": "9862b74a083e8a4ed572f99cbd4895185e0dd5a0a601affb0fb8e43d8d1f40e6",
14
+ "size": 264548368
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "40c53507ac669c1d438366c19760c22f52748a06e50e0fc0e353d2cb73425597",
19
- "size": 265337760
18
+ "checksum": "295fd30481bd03b38450fdec2a6e25bb6472c2074f04b0c4a566cd5988f230bf",
19
+ "size": 269990816
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "2630fc5dc6db61bc03f86b95daf47766e5ed5b61873f7bb7cfea764c5ac5a9ba",
24
- "size": 268573680
23
+ "checksum": "e12071751a9336b8af1012c103358ff04ac18f9aaff4a738cff7ba5cdfaf63f2",
24
+ "size": 273177584
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "e219a631e194e71bccbea2f81f5678c75f745aa6e7a74e8a407610c906d1299b",
29
- "size": 258585960
28
+ "checksum": "efcaae48f8f537a0e9a47b4317a5f8c184706c99ddd8ca0a9a21391e2a766ef8",
29
+ "size": 263239016
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "7c44188927edbf7b918b41bc7a284292359b1ad556b7802db0148adb4b395732",
34
- "size": 263197264
33
+ "checksum": "62986293277153f5db97404cf7e3e96de136f02c28f79ccd5c7bc99766224db4",
34
+ "size": 267801168
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "6e4a3a4679f381178a90cf741de9ce924a3274304b09277695ac3a679628ca17",
39
- "size": 259460768
38
+ "checksum": "81fcf59bb7abb558aedc6f2361f4723b3d757d28e799962d88b18b4520df66ca",
39
+ "size": 263931552
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "f0128e1a50b8d7dec5bb4dbdff0ef622f617e798df61ebb009ed3f03d2afe613",
44
- "size": 253836448
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.217",
3
- "commit": "9963b018d22c3e6659c99e135e687870301b5c67",
4
- "buildDate": "2026-07-21T18:47:31Z",
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": "dc3d8d2494e22fa6252ed45797a11205f1a30e37fca74148e3f34250787686a5",
9
- "size": 51465165,
8
+ "checksum": "e573c71d81c54347ebcbd6d7988f3798601e3150ea69e3beaa6252cd944fb0de",
9
+ "size": 52109964,
10
10
  "bundle": {
11
- "checksum": "aa2146f4d150d3ae31324beab0bdbecce51da975141c7c3d6b031d9187da8d1e",
12
- "size": 51492491
11
+ "checksum": "6521f8d9d917c4d7dc12318585721bdb60211c9fc1ca11bfc131af0ff420a853",
12
+ "size": 52131305
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "d7ed84882ce7eb1b85146f33a783c79e05aff520952f39e397ecedcf9c4ffd12",
18
- "size": 55970349,
17
+ "checksum": "4566d7bc48fbceea9436d09d311c19bbd00c9a8328202c785c06cced00d0a4cf",
18
+ "size": 56653254,
19
19
  "bundle": {
20
- "checksum": "8a652b06f90ceb32d847507b1b1c95c5353d5a946506ac49a122821295462889",
21
- "size": 55972645
20
+ "checksum": "9d627f5e45c3a9698824c284155dbf2aebb3da3bb0ecc35c198192d98c7eac90",
21
+ "size": 56657735
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "9a14fe91ce6d1f3872301cf010de153ff6aa4c76998aa045953688548a69d773",
27
- "size": 60338477
26
+ "checksum": "c3c149749fbe54d452f09865791450aad6f38350c73c1fcabcfc0b1f8705b5e9",
27
+ "size": 60992519
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "e80654f7acc551154d8f32c54a24767396152973b9addc5fdbe93fb1306a229d",
32
- "size": 61724295
31
+ "checksum": "c9ae380f8787831bdd0659fe6022fb9dfa51c41a551673497c56b14c86f9b1cd",
32
+ "size": 62289374
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "49bc1c32b2613a2f88b67e434b96e3298e246c6316b72a8211a608537615040f",
37
- "size": 59011849
36
+ "checksum": "1a1d5499fcdeddd2fc92bc3d0091003b60987293a770e9a7f9595a418f6c99d1",
37
+ "size": 59660082
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "2c5bd4127dc469d74e679da001bb01b171aca3f6bcc5823e8f1cd839971da3a9",
42
- "size": 60425868
41
+ "checksum": "30a1e4f61f193dfaf50b65155fe815bb0c732429d1ca3f7ada511f6e51e1a972",
42
+ "size": 61061435
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "1b4bf647ba1ef4eaa7532cd5044b59d056ff2cf56e612103b6805fb54738a646",
47
- "size": 62045244
46
+ "checksum": "fde8d0b1b194d72c49e08f04e03645ade5aa8cbf443644ef81d45a3f3b49c2b4",
47
+ "size": 62715087
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "2c3547cedf59cf4057c9487993010a67fa5c1a551d64985da753401eb4eb8380",
52
- "size": 60035027
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.217",
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.217",
61
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.217",
62
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.217",
63
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.217",
64
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.217",
65
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.217",
66
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.217",
67
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.217"
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.217"
83
+ "claudeCodeVersion": "2.1.218"
84
84
  }
package/sdk-tools.d.ts CHANGED
@@ -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 = {
@@ -4544,7 +4552,7 @@ export declare type SDKUserMessage = {
4544
4552
  parent_tool_use_id: string | null;
4545
4553
  isSynthetic?: boolean;
4546
4554
  /**
4547
- * 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.
4548
4556
  */
4549
4557
  tool_use_result?: unknown;
4550
4558
  priority?: 'now' | 'next' | 'later';
@@ -4590,7 +4598,7 @@ export declare type SDKUserMessageReplay = {
4590
4598
  parent_tool_use_id: string | null;
4591
4599
  isSynthetic?: boolean;
4592
4600
  /**
4593
- * 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.
4594
4602
  */
4595
4603
  tool_use_result?: unknown;
4596
4604
  priority?: 'now' | 'next' | 'later';
@@ -6513,7 +6521,7 @@ export declare interface Settings {
6513
6521
  */
6514
6522
  showTurnDuration?: boolean;
6515
6523
  /**
6516
- * Stamp each assistant message with its arrival time
6524
+ * Stamp each message with its arrival time
6517
6525
  */
6518
6526
  showMessageTimestamps?: boolean;
6519
6527
  /**