@anthropic-ai/claude-agent-sdk 0.3.227 → 0.3.228

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.227",
3
- "commit": "5ecc7d5389d8b682652d0ea32eadd3e0eb537ee8",
4
- "buildDate": "2026-08-10T19:04:57Z",
2
+ "version": "2.1.228",
3
+ "commit": "4a2077e9c39676b5c335919018dda18f476a7f70",
4
+ "buildDate": "2026-08-11T01:54:41Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "7432511ba3be818e01f23f6eef8630d214a8b618451e188c3c7d61a987eef6c7",
9
- "size": 285046400
8
+ "checksum": "43484b1352cef03a08346f36ef0437755b1aad646ab9313ce187857b794b7247",
9
+ "size": 289298144
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "14484fb9a0480b6b638230685a7d9a248a5339b384a162e0df127e4a4a07249b",
14
- "size": 294700704
13
+ "checksum": "7852f1ae0efb64d46d77a57d8852daddc4a6ffb58aeda6267bd3f3428adc09b3",
14
+ "size": 298977312
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "db47335532cbcab67a4b3ab16d8f3f77976bf85d53c7d79f8296538aa22bfce6",
19
- "size": 300923832
18
+ "checksum": "2664006219497bf7021ac43156519cd42eda64ceb2a66f434ecab83e7831f942",
19
+ "size": 305118136
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "6832dc3f1797b890b71116e5f2dbbf9a83fd3d0498c235b4b0f9cd0e6e499ad6",
24
- "size": 304282632
23
+ "checksum": "d535985e6941a3eb00179ccd7f52ceb0c6623a0305a518ebc4e6514f84a94c99",
24
+ "size": 308521992
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "8284d20a5d61e71502e69836b1598ba03f688f4d8de6c22105055fbf0af118f6",
29
- "size": 294237544
28
+ "checksum": "1b8034fb30c90ea7471d6403bc610cb5173b7dedab3a92e89f6a91430c481876",
29
+ "size": 298431848
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "da7b62210da0000c09c7c29b217e166ccc66dad4c79c9e2bc8d52fc7b66f590d",
34
- "size": 298885712
33
+ "checksum": "0285be21af52692e5d1ea2199171b45fc85d9ca62fb4a2d9f2c244c2bbca8de7",
34
+ "size": 303129168
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "a5d8bcc6549cf99a2ea35451f8034a12f0db919e63334477c72d42fc8e0d5c09",
39
- "size": 292227232
38
+ "checksum": "841efce70b048ae03c752f79000cb6be5c2c2c4d0478f3eaaa762494ade9daf5",
39
+ "size": 296308896
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "68935d2c971ad417e90f1d5bb503c8773b218c7f7049fe35e502f0180232ff18",
44
- "size": 286900384
43
+ "checksum": "e1d23400b3eef8f7b2ddde782ce4d3153aa88b5397d0f42813b8abbe0b47cbcd",
44
+ "size": 290981024
45
45
  }
46
46
  },
47
47
  "sdkCompat": {
package/manifest.zst.json CHANGED
@@ -1,55 +1,55 @@
1
1
  {
2
- "version": "2.1.227",
3
- "commit": "5ecc7d5389d8b682652d0ea32eadd3e0eb537ee8",
4
- "buildDate": "2026-08-10T19:07:09Z",
2
+ "version": "2.1.228",
3
+ "commit": "4a2077e9c39676b5c335919018dda18f476a7f70",
4
+ "buildDate": "2026-08-11T01:56:29Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "256afdff806d28d027008c351f83986f11b7751fff1e44a52f66480361831542",
9
- "size": 56884882,
8
+ "checksum": "21df99480ffce8781bd357d6f3f2844b03a81ac3f71727ffd1d3e0d6cc765bbf",
9
+ "size": 57935761,
10
10
  "bundle": {
11
- "checksum": "3b86d1a8f29a404dca144faf0ba1d155ef12f24c08606080a6c7eb85143ca117",
12
- "size": 56888900
11
+ "checksum": "95d8bc5a12b9c21564c55709295a1d8de9a7532bcd2e7dc031b33a6f8eceee4d",
12
+ "size": 57935873
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "d4299135b0596df5ed10bbf4930995c2a9f0b660c405d119dac783141e9d5778",
18
- "size": 61653275,
17
+ "checksum": "5266fd1abe8b8cea84c1a4f859a0adeffd23beb99b8d85b1539ca2449a3df008",
18
+ "size": 62783370,
19
19
  "bundle": {
20
- "checksum": "933dd4335d3db811d863c86b7b2a22d38519d14a46efbbfe207330c5355e15d1",
21
- "size": 61647726
20
+ "checksum": "b8ae6943413bf0051dc36ba247b8fc93bca1627788ee943dd8551cfcf3a87a3f",
21
+ "size": 62791085
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "7bc21154bf75a98bb7a2ae6b47f7d2ea8b75e86ef749749519af1fda5a73c7b9",
27
- "size": 66000031
26
+ "checksum": "271ec60acbb9b5a2aa7ed0377efe5b59bc5f886abcb18641a9e658326e9b62c4",
27
+ "size": 67104530
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "5eebaa5625c306f6c5737b86f6e64f3fa5657269fd8434aea9c00803f97d1547",
32
- "size": 67310589
31
+ "checksum": "7d8f14807313c7e49391def5437e8d0114ac8e6bbe37d69de19b6a820721e78f",
32
+ "size": 68448270
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "d5300c37aa78600838387fa9b61ed9c5b47d5277706dd832372fe7d9ea24dd0a",
37
- "size": 64750207
36
+ "checksum": "4fdea2b6f3a078db41fdd4683e7662fe6fd546a678e0f6d7d8085c73a8b466b3",
37
+ "size": 65900011
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "86f3903699da0a604bbaf04d977794207f1a4c2a63b3e2729a6abe342a7a095c",
42
- "size": 66159367
41
+ "checksum": "4be5575eaae712ee5a3215104837bc24b92856454e14fa00c3e3fa8e13da085a",
42
+ "size": 67280962
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "3c0328fc224b2c2e433d144f1c4817a9d92006d97fa747a191f973873cb1cfd3",
47
- "size": 67271619
46
+ "checksum": "9dfbd1c18bab440bd92f1aac6080e81b20ef37b9042b64b0dd9ce73961abdca8",
47
+ "size": 68451362
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "9850e3fd889489166614e360f9aea02d679062971cbbe489a652bffe8a8bb40c",
52
- "size": 65421569
51
+ "checksum": "135dc669e2edbe2edab2d262316fd07e0fff0b554547050d08091c412ee2e8e7",
52
+ "size": 66489564
53
53
  }
54
54
  },
55
55
  "sdkCompat": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-agent-sdk",
3
- "version": "0.3.227",
3
+ "version": "0.3.228",
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.227",
61
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.227",
62
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.227",
63
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.227",
64
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.227",
65
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.227",
66
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.227",
67
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.227"
60
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.228",
61
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.228",
62
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.228",
63
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.228",
64
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.228",
65
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.228",
66
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.228",
67
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.228"
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.227"
83
+ "claudeCodeVersion": "2.1.228"
84
84
  }
package/sdk-tools.d.ts CHANGED
@@ -129,6 +129,9 @@ export type AgentOutput =
129
129
  inference_geo?: string | null;
130
130
  speed?: string | null;
131
131
  iterations?: unknown;
132
+ output_tokens_details?: {
133
+ thinking_tokens?: number | null;
134
+ } | null;
132
135
  };
133
136
  toolStats?: {
134
137
  readCount: number;
@@ -2892,7 +2895,7 @@ export interface ArtifactInput {
2892
2895
  */
2893
2896
  scope?: "mine" | "shared" | "all";
2894
2897
  /**
2895
- * Title for the artifact — the name shown in the browser tab and gallery. Prefer a <title> tag at the top of the HTML itself; this parameter fills in only when the file lacks one in the first 8KB of the file, 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.
2898
+ * Title for the artifact — the name shown in the browser tab and gallery. A short, distinctive noun-phrase name — not a generic label, a summary, or a name with an appended explainer. Prefer a <title> tag at the top of the HTML itself; this parameter fills in only when the file lacks one in the first 8KB of the file, 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.
2896
2899
  */
2897
2900
  title?: string;
2898
2901
  /**
package/sdk.d.ts CHANGED
@@ -2716,7 +2716,7 @@ export declare type ResolvedSettingSource = SettingSource | 'managed' | 'flag';
2716
2716
  * - **The policy tier matches CLI startup** (managed-settings.json,
2717
2717
  * remote-cached managed settings, MDM via macOS plist / Windows
2718
2718
  * HKLM/HKCU, and `managedSettings`) **except** the admin-configured
2719
- * `policyHelper` subprocess is not executed. MDM resolution may invoke
2719
+ * `policyHelper`/`policyHelpers` subprocess is not executed. MDM resolution may invoke
2720
2720
  * `plutil` (macOS, when an MDM plist exists) or `reg.exe` (Windows/WSL)
2721
2721
  * on the first call per process. If your deployment relies on
2722
2722
  * policyHelper to inject managed settings, results will differ.
@@ -5166,6 +5166,43 @@ export declare interface Settings {
5166
5166
  timeoutMs?: number;
5167
5167
  refreshIntervalMs?: 0 | number;
5168
5168
  };
5169
+ /**
5170
+ * Per-OS variant of policyHelper, keyed by platform: macos, linux, windows, wsl. The entry for the current platform wins over policyHelper; a platform with no entry falls back to policyHelper (wsl falls back to the linux entry first). Honored only from admin-controlled policy sources.
5171
+ */
5172
+ policyHelpers?: {
5173
+ macos?: {
5174
+ /**
5175
+ * Absolute path to the helper executable
5176
+ */
5177
+ path: string;
5178
+ timeoutMs?: number;
5179
+ refreshIntervalMs?: 0 | number;
5180
+ };
5181
+ linux?: {
5182
+ /**
5183
+ * Absolute path to the helper executable
5184
+ */
5185
+ path: string;
5186
+ timeoutMs?: number;
5187
+ refreshIntervalMs?: 0 | number;
5188
+ };
5189
+ windows?: {
5190
+ /**
5191
+ * Absolute path to the helper executable
5192
+ */
5193
+ path: string;
5194
+ timeoutMs?: number;
5195
+ refreshIntervalMs?: 0 | number;
5196
+ };
5197
+ wsl?: {
5198
+ /**
5199
+ * Absolute path to the helper executable
5200
+ */
5201
+ path: string;
5202
+ timeoutMs?: number;
5203
+ refreshIntervalMs?: 0 | number;
5204
+ };
5205
+ };
5169
5206
  /**
5170
5207
  * Custom file suggestion configuration for \@ mentions
5171
5208
  */