@anthropic-ai/claude-agent-sdk 0.3.293 → 0.3.295

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,49 +1,49 @@
1
1
  {
2
- "version": "2.1.293",
2
+ "version": "2.1.295",
3
3
  "manifestSignatureEnforcement": "flag",
4
- "commit": "3abc54a9d60b4d12c627afad22d6e5f58a6199d2",
5
- "modsCommit": "765f236fe1bfcc678e0ec59af9170fb7d6771a3a",
6
- "buildDate": "2026-10-07T06:56:40Z",
4
+ "commit": "07e8f67ea3282bf154a9e05673a0942b1b173cef",
5
+ "modsCommit": "71cdddec623889d38af14b7a489670a03186f659",
6
+ "buildDate": "2026-10-08T17:09:12Z",
7
7
  "platforms": {
8
8
  "darwin-arm64": {
9
9
  "binary": "claude",
10
- "checksum": "4e21122a227857da1178aca3299700c1fd7f2b77c93f12e73c2c76db796a105e",
11
- "size": 236330608
10
+ "checksum": "0116ee2e0a513900b633d9951367f18747686478e2b462805b8c31609f047f70",
11
+ "size": 239695888
12
12
  },
13
13
  "darwin-x64": {
14
14
  "binary": "claude",
15
- "checksum": "267af22d4eb187b8d65d1592e6fabf57b1df6c254913d5a6c5d8b956a02cd002",
16
- "size": 244819072
15
+ "checksum": "a6066492288585a1ef5e482cb28ad22714ab12cd48e367c0cee988b00cff724c",
16
+ "size": 248204032
17
17
  },
18
18
  "linux-arm64": {
19
19
  "binary": "claude",
20
- "checksum": "a43629e888f0a7d96c5e8de62abf44852433a7ff2481574688db3e5b6399491f",
21
- "size": 252108792
20
+ "checksum": "cfb9dc1332fb6f92a683f835823e91b3179a803398ca7852cd2381a3cb1dea3b",
21
+ "size": 255516664
22
22
  },
23
23
  "linux-x64": {
24
24
  "binary": "claude",
25
- "checksum": "8968405e26db478af44eabc4635ab5ca557057b702a54460a59c13e1b253e978",
26
- "size": 252755128
25
+ "checksum": "4503bfe11a6c7fcc1e0b39b5e0d347c04248f750b03b0977b3ad6b531fe6f358",
26
+ "size": 256113848
27
27
  },
28
28
  "linux-arm64-musl": {
29
29
  "binary": "claude",
30
- "checksum": "00755ae106b6925c1adb2b17e4c6d9b0c41eb4cc55bcad3581345b0aa3176c85",
31
- "size": 244463424
30
+ "checksum": "dd73a464f8f8c243f78860396f243f19520dd69dca38e6647d0a77a32ecf3cef",
31
+ "size": 247805760
32
32
  },
33
33
  "linux-x64-musl": {
34
34
  "binary": "claude",
35
- "checksum": "853fff235f19ce65ae304b79f126f7dd8a60855d5c7ce98e43e3e12416b782bc",
36
- "size": 246501464
35
+ "checksum": "70eb6517c69b2f5c918bc5645331fc8eeec66d2b8425b62a0e15f34bcb9934db",
36
+ "size": 249860184
37
37
  },
38
38
  "win32-x64": {
39
39
  "binary": "claude.exe",
40
- "checksum": "8693c4a02dde7441d0066ede68af8ddfc408bb982d77e12b506286268224e6fa",
41
- "size": 256155808
40
+ "checksum": "a30012741c3d0b55e2a6c252dab3781134b75be95896ae89d40a93e10f83bcd6",
41
+ "size": 259509920
42
42
  },
43
43
  "win32-arm64": {
44
44
  "binary": "claude.exe",
45
- "checksum": "64026e57249070fc83d91768ad417d40683ee18ac0383b36f5c77b3f17f8eb83",
46
- "size": 243679904
45
+ "checksum": "88679adb52e34049497056309b01f9c2cba924b5de838b21ccdf4106e991c84f",
46
+ "size": 247034528
47
47
  }
48
48
  },
49
49
  "sdkCompat": {
package/manifest.zst.json CHANGED
@@ -1,57 +1,57 @@
1
1
  {
2
- "version": "2.1.293",
2
+ "version": "2.1.295",
3
3
  "manifestSignatureEnforcement": "flag",
4
- "commit": "3abc54a9d60b4d12c627afad22d6e5f58a6199d2",
5
- "modsCommit": "765f236fe1bfcc678e0ec59af9170fb7d6771a3a",
6
- "buildDate": "2026-10-07T06:57:50Z",
4
+ "commit": "07e8f67ea3282bf154a9e05673a0942b1b173cef",
5
+ "modsCommit": "71cdddec623889d38af14b7a489670a03186f659",
6
+ "buildDate": "2026-10-08T17:10:20Z",
7
7
  "platforms": {
8
8
  "darwin-arm64": {
9
9
  "binary": "claude.zst",
10
- "checksum": "28388647d76919972795439c4ac43654985a36b9bd18a8a541a9e7c78286ffec",
11
- "size": 78779601,
10
+ "checksum": "37934434b3ccd48c4fcccfb6a30a0145fffccaba8c8e935e8e3bdff0a35024a9",
11
+ "size": 79774246,
12
12
  "bundle": {
13
- "checksum": "8433d0d9cd0dc718601daba8da8c58f3eb08976d865458c47746dadffc4bfbc3",
14
- "size": 78796164
13
+ "checksum": "9d6405864fdc2c957d81adb0fcd0b42f568b4ccc1ab741ba9e5bed581a4f75eb",
14
+ "size": 79800612
15
15
  }
16
16
  },
17
17
  "darwin-x64": {
18
18
  "binary": "claude.zst",
19
- "checksum": "969a39b6b64c8e2d91ca4751e5f96439c3960e6029c5af4c0bac5e546b0a180d",
20
- "size": 82996143,
19
+ "checksum": "2568ab3f0572d1753f521d65412501ac71dcba253b2171da4b75ecf5df4cfcf8",
20
+ "size": 84026128,
21
21
  "bundle": {
22
- "checksum": "d96fccce310b4c47363a4305afa7944bd942c9d09d94933fcd1f692140c5e614",
23
- "size": 83003941
22
+ "checksum": "476dfdd1664443c67156f200faea54be81ef4a6204de6362e28c81699e71b38f",
23
+ "size": 84029255
24
24
  }
25
25
  },
26
26
  "linux-arm64": {
27
27
  "binary": "claude.zst",
28
- "checksum": "031f4c6c3489065ffc4942e06b920b6fa52fb03830bb375fae6919c11537d725",
29
- "size": 87847361
28
+ "checksum": "9b32b47ec4b3fa5b884e12b7e130e94338e7787d5db031adf48e1b20e3a893ee",
29
+ "size": 88860590
30
30
  },
31
31
  "linux-x64": {
32
32
  "binary": "claude.zst",
33
- "checksum": "25786da347c30641dc6c50733d090d77cb540f105a61af7e9895b56e39fe16a5",
34
- "size": 88583323
33
+ "checksum": "71164c85f9d226928dec7acda1baf000f1991eb14fcec106536d84bd914032f8",
34
+ "size": 89586953
35
35
  },
36
36
  "linux-arm64-musl": {
37
37
  "binary": "claude.zst",
38
- "checksum": "befc1849bdc2b0516646c3761340bcbe24fb2f06675c0a2e7dc8e84bef6fb823",
39
- "size": 86247982
38
+ "checksum": "727051b35aa357b80e61044044a40e0c5e1c01060eac22902cb249030ae366b7",
39
+ "size": 87276174
40
40
  },
41
41
  "linux-x64-musl": {
42
42
  "binary": "claude.zst",
43
- "checksum": "3ebe36274ca5b43dcf55102774998ebad2f4f36e976a0e18639d995d77964796",
44
- "size": 87007611
43
+ "checksum": "e6957660c0b386d31d7fe0c713f879d702558763ea2d76a8194f8206d9c8f436",
44
+ "size": 88025322
45
45
  },
46
46
  "win32-x64": {
47
47
  "binary": "claude.exe.zst",
48
- "checksum": "83cb0bd7fed48fa6c672a3e6e8a0a752e64bd93cf8d3076fee81bab4f89fb7c8",
49
- "size": 90886108
48
+ "checksum": "d2e29494ec8335758ec41323495a2c79769a5b4e353cf8465422f63c05235b84",
49
+ "size": 91878666
50
50
  },
51
51
  "win32-arm64": {
52
52
  "binary": "claude.exe.zst",
53
- "checksum": "d4dd9a840bc8a839a57674fac621969a8a91ba05814070d119e114cd1a00b092",
54
- "size": 87214350
53
+ "checksum": "702b01e74299c9fc076f60c6b9df0a4552dcca5fb53cad6a19840ac9520b427c",
54
+ "size": 88231000
55
55
  }
56
56
  },
57
57
  "sdkCompat": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-agent-sdk",
3
- "version": "0.3.293",
3
+ "version": "0.3.295",
4
4
  "main": "sdk.mjs",
5
5
  "types": "sdk.d.ts",
6
6
  "exports": {
@@ -61,14 +61,14 @@
61
61
  "zod": "^4.0.0"
62
62
  },
63
63
  "optionalDependencies": {
64
- "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.293",
65
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.293",
66
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.293",
67
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.293",
68
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.293",
69
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.293",
70
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.293",
71
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.293"
64
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.295",
65
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.295",
66
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.295",
67
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.295",
68
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.295",
69
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.295",
70
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.295",
71
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.295"
72
72
  },
73
73
  "files": [
74
74
  "sdk.mjs",
@@ -85,8 +85,8 @@
85
85
  "extractFromBunfs.d.ts",
86
86
  "manifest.json",
87
87
  "manifest.zst.json",
88
- "core-ae32wa3s.mjs",
89
- "core-d0szsqzn.mjs"
88
+ "core-reghh1vn.mjs",
89
+ "core-tm6xdb2r.mjs"
90
90
  ],
91
- "claudeCodeVersion": "2.1.293"
91
+ "claudeCodeVersion": "2.1.295"
92
92
  }
package/sdk-tools.d.ts CHANGED
@@ -3770,6 +3770,10 @@ export interface WebSearchOutput {
3770
3770
  * The URL of the search result
3771
3771
  */
3772
3772
  url: string;
3773
+ /**
3774
+ * Page text. PostToolUse hooks get it; tool_use_result does not.
3775
+ */
3776
+ snippet?: string;
3773
3777
  }[];
3774
3778
  }
3775
3779
  | string
package/sdk.d.ts CHANGED
@@ -4852,6 +4852,7 @@ declare type SDKControlPermissionRequest = {
4852
4852
 
4853
4853
 
4854
4854
 
4855
+
4855
4856
  };
4856
4857
 
4857
4858
  /**
@@ -5521,6 +5522,8 @@ export declare type SDKPartialAssistantMessage = {
5521
5522
  ttft_ms?: number;
5522
5523
 
5523
5524
 
5525
+
5526
+
5524
5527
  /**
5525
5528
  * Client uuid of the user message this turn is answering (submitMessage options.uuid), stamped on a non-ping stream event each time that send changes: the turn's FIRST non-ping stream event (normally the frame that triggers the turn's initial ack), and, for a turn started by a synthetic (meta) prompt, the first non-ping stream event after each queued user message folded in mid-turn takes the echo over (see SDKAssistantMessage.user_message_uuid for the rule) — so a consumer can bind the reply stream to the send it answers without waiting for the result. A turn started by a typed prompt stamps only its first non-ping stream event; independently, its first complete assistant message is stamped as well (see SDKAssistantMessage.user_message_uuid), so the same uuid may appear on both. Absent on every other stream event of the turn, on turns that neither had a client uuid nor folded a user message in, and from older producers.
5526
5529
  */
@@ -5685,6 +5688,7 @@ export declare type SDKRateLimitInfo = {
5685
5688
  overageDisabledReason?: 'overage_not_provisioned' | 'org_level_disabled' | 'org_level_disabled_until' | 'out_of_credits' | 'seat_tier_level_disabled' | 'member_level_disabled' | 'seat_tier_zero_credit_limit' | 'group_zero_credit_limit' | 'member_zero_credit_limit' | 'org_service_level_disabled' | 'no_limits_configured' | 'fetch_error' | 'unknown';
5686
5689
  isUsingOverage?: boolean;
5687
5690
  overageInUse?: boolean;
5691
+ overageEnabled?: boolean;
5688
5692
  surpassedThreshold?: number;
5689
5693
 
5690
5694
 
@@ -5934,6 +5938,7 @@ export declare type SDKStatusMessage = {
5934
5938
  compact_error?: string;
5935
5939
 
5936
5940
 
5941
+
5937
5942
  uuid: UUID;
5938
5943
  session_id: string;
5939
5944
  };
@@ -6350,11 +6355,11 @@ export declare type SDKUserMessage = {
6350
6355
 
6351
6356
  uuid?: UUID;
6352
6357
  /**
6353
- * Content the user pasted into the prompt rather than typed: each entry a string or an array of content blocks. The CLI appends the text of each entry after the typed text, in order, and may wrap it in `<pasted_content>` tags. Blocks other than text are ignored; send images and documents in `message.content`.
6358
+ * Content the user pasted into the prompt rather than typed: each entry a string or an array of content blocks. The CLI appends the text of each entry after the typed text, in order, and may wrap it in `<pasted_content>` tags. Blocks other than text are ignored; send images and documents in `message.content`. A list of over 1,000 entries and blocks in all is ignored.
6354
6359
  */
6355
6360
  pasted_content?: MessageParam['content'][];
6356
6361
  /**
6357
- * Text the user pasted that is still in `message.content` where they put it: each entry one paste. The prompt is not changed by the host; the CLI may wrap each entry in `<pasted_content>` tags where it still stands in the last text block. For a paste the host took out of `message`, use `pasted_content` instead.
6362
+ * Text the user pasted that is still in `message.content` where they put it: each entry one paste. The prompt is not changed by the host; the CLI may wrap each entry in `<pasted_content>` tags where it still stands in the last text block. It looks for the first 100 entries that are not blank. For a paste the host took out of `message`, use `pasted_content` instead.
6358
6363
  */
6359
6364
  inline_pastes?: string[];
6360
6365
  session_id?: string;
@@ -7066,6 +7071,10 @@ export declare interface Settings {
7066
7071
  * Timeout in seconds for this specific command
7067
7072
  */
7068
7073
  timeout?: number;
7074
+ /**
7075
+ * What a failure of this hook does: it could not start (a missing script or plugin directory), timed out, exited with a code other than 0 or 2, or printed JSON that is invalid or fails validation. 'continue' (default): the failure is reported and the action goes ahead. 'block': the failure counts as exit code 2, so the action the event guards (a tool call, a permission request, a prompt) is blocked. Ignored for async hooks and on Stop, SubagentStop, TaskCompleted and TeammateIdle.
7076
+ */
7077
+ onFailure?: 'continue' | 'block';
7069
7078
  /**
7070
7079
  * Custom status message to display in spinner while hook runs
7071
7080
  */
@@ -7164,6 +7173,10 @@ export declare interface Settings {
7164
7173
  * Timeout in seconds for this specific request
7165
7174
  */
7166
7175
  timeout?: number;
7176
+ /**
7177
+ * What a failure of this hook does: it could not start (a missing script or plugin directory), timed out, exited with a code other than 0 or 2, or printed JSON that is invalid or fails validation. 'continue' (default): the failure is reported and the action goes ahead. 'block': the failure counts as exit code 2, so the action the event guards (a tool call, a permission request, a prompt) is blocked. Ignored for async hooks and on Stop, SubagentStop, TaskCompleted and TeammateIdle.
7178
+ */
7179
+ onFailure?: 'continue' | 'block';
7167
7180
  /**
7168
7181
  * Additional headers to include in the request. Values may reference environment variables using $VAR_NAME or ${VAR_NAME} syntax (e.g., "Authorization": "Bearer $MY_TOKEN"). Only variables listed in allowedEnvVars will be interpolated.
7169
7182
  */
@@ -8641,7 +8654,7 @@ export declare interface Settings {
8641
8654
  */
8642
8655
  forceLoginMethod?: 'claudeai' | 'console' | 'gateway';
8643
8656
  /**
8644
- * Cloud gateway URL to pre-fill and auto-connect to during login, alongside forceLoginMethod: "gateway". Honored only from admin-controlled managed settings (MDM / managed-settings.json / policy helper); ignored in user, project, and remote-delivered settings.
8657
+ * Cloud gateway URL to pre-fill during login, alongside forceLoginMethod: "gateway". Honored from admin-controlled managed settings (MDM / managed-settings.json / policy helper) and, on a machine with none of those, from your own user settings; ignored in project, local, flag, and remote-delivered settings.
8645
8658
  */
8646
8659
  forceLoginGatewayUrl?: string;
8647
8660
  /**