@anthropic-ai/claude-agent-sdk 0.3.287 → 0.3.289

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,55 +1,53 @@
1
1
  {
2
- "version": "2.1.287",
2
+ "version": "2.1.289",
3
3
  "manifestSignatureEnforcement": "flag",
4
- "commit": "3c446a1b98aceb99a6cdee0f84a8bea42f4a8937",
5
- "modsCommit": "6160717d8994f236ab381cf534fc1cde5347c12f",
6
- "buildDate": "2026-10-01T16:26:16Z",
4
+ "commit": "736d26eef42d1e3017e07e6d5bd0970b8c3a068f",
5
+ "modsCommit": "52c76441cae91f6891e4712306bffb057ff6fec5",
6
+ "buildDate": "2026-10-03T19:38:35Z",
7
7
  "platforms": {
8
8
  "darwin-arm64": {
9
9
  "binary": "claude",
10
- "checksum": "6eab8333fe2121553100d8f40bfada384a3e989b94f947e18ba6677a6fcb41ea",
11
- "size": 227827120
10
+ "checksum": "03d66745e3bb69ec727d66023696f3820bc0a00a8a5ba725eb6706d0c67cbe69",
11
+ "size": 229616464
12
12
  },
13
13
  "darwin-x64": {
14
14
  "binary": "claude",
15
- "checksum": "f1863213e4f55aaadc2e6ee617f934ada29930e5de4c5e5f8f9e34a0d594fdd7",
16
- "size": 236282368
15
+ "checksum": "358aa0e31666c48b2340ad9fa4003436105086ca12e1ecd4c5266d18598c2f7f",
16
+ "size": 238082176
17
17
  },
18
18
  "linux-arm64": {
19
19
  "binary": "claude",
20
- "checksum": "e4daf793d1e74fb0d9874dd09e98690bbfd7be515f78a87fd05b9e2b4bb33b03",
21
- "size": 243720184
20
+ "checksum": "d100d5e41dcbee220c80d3a3099292e4b5a508b57cafd181856efedf29f84f28",
21
+ "size": 245489656
22
22
  },
23
23
  "linux-x64": {
24
24
  "binary": "claude",
25
- "checksum": "3920489a5109cff5786a1a392c25277408ff22bc796d5edb9c16a60e5a1718f0",
26
- "size": 244317368
25
+ "checksum": "a186b99e4a9c88366cd49df2f7dad56c61fc306ef0140b19ee64b7c42a8d1348",
26
+ "size": 246107320
27
27
  },
28
28
  "linux-arm64-musl": {
29
29
  "binary": "claude",
30
- "checksum": "83d95a9fa28b1fadd8c012fda873aed8f8998e23dfabe6dd4efd05bcdd7383ba",
31
- "size": 236009280
30
+ "checksum": "e9dfa4a0df412a1204c6a5efe3964c0e9f36f05fd86ebec1d9c84abf333e7d65",
31
+ "size": 237844288
32
32
  },
33
33
  "linux-x64-musl": {
34
34
  "binary": "claude",
35
- "checksum": "ba22ce4b5744c6016e3076ccbd692a059fc4e9f1592f21361859a73938f4e722",
36
- "size": 238063704
35
+ "checksum": "a35123e65344b82ab10870f5842cac7e593e4a56b1f6bddaed96bd9b9d42953d",
36
+ "size": 239853656
37
37
  },
38
38
  "win32-x64": {
39
39
  "binary": "claude.exe",
40
- "checksum": "6d5be51f0edfe3429cd1a9885950db31c1e59eb9a2c9a30a47e64179d2ff98b4",
41
- "size": 247736480
40
+ "checksum": "bcc6d9117aec30ad9414490302a25414359c871f5647e32e49b055c92bf84e0b",
41
+ "size": 249522848
42
42
  },
43
43
  "win32-arm64": {
44
44
  "binary": "claude.exe",
45
- "checksum": "11438981154e99af8f9aeabe193871c92b8b550b35354686a140fc056f1bfe54",
46
- "size": 235259040
45
+ "checksum": "fc96c5a93fb84972332fd6fb55895829e55005106e3e5ad6d8153f1eb6762f91",
46
+ "size": 237045408
47
47
  }
48
48
  },
49
49
  "sdkCompat": {
50
50
  "testedWrapperVersions": [
51
- "0.3.247",
52
- "0.3.248",
53
51
  "0.3.250",
54
52
  "0.3.251",
55
53
  "0.3.252",
package/manifest.zst.json CHANGED
@@ -1,63 +1,61 @@
1
1
  {
2
- "version": "2.1.287",
2
+ "version": "2.1.289",
3
3
  "manifestSignatureEnforcement": "flag",
4
- "commit": "3c446a1b98aceb99a6cdee0f84a8bea42f4a8937",
5
- "modsCommit": "6160717d8994f236ab381cf534fc1cde5347c12f",
6
- "buildDate": "2026-10-01T16:27:39Z",
4
+ "commit": "736d26eef42d1e3017e07e6d5bd0970b8c3a068f",
5
+ "modsCommit": "52c76441cae91f6891e4712306bffb057ff6fec5",
6
+ "buildDate": "2026-10-03T19:39:42Z",
7
7
  "platforms": {
8
8
  "darwin-arm64": {
9
9
  "binary": "claude.zst",
10
- "checksum": "2701dac04e02acbea7d7584fc35e04adddf6f24021d321e3ba7eb95994edcf96",
11
- "size": 75949326,
10
+ "checksum": "44404b386c30be106533bbd260b689d22cedb6956a6ae70118ba96a32711a82b",
11
+ "size": 76604429,
12
12
  "bundle": {
13
- "checksum": "8939dd3a906fd909614c651595ba3636e5620cb1aafcf99d3d5ecd9b6b86c693",
14
- "size": 75962691
13
+ "checksum": "ee67e3f1ea60471c9e78f7c4b1cf30be832862afeec0b80805207d3eee140046",
14
+ "size": 76620437
15
15
  }
16
16
  },
17
17
  "darwin-x64": {
18
18
  "binary": "claude.zst",
19
- "checksum": "e4c6177a49a726d1a65dadf2fb08cdde0232a37a60017668246ab9246fcf11ad",
20
- "size": 80136583,
19
+ "checksum": "104d246d33eecb9750b26eecae258ec81bb02cf8cda8ccd6cbc2d00f6664d176",
20
+ "size": 80786935,
21
21
  "bundle": {
22
- "checksum": "dc23e02cbacb6762d4033998e76e182459e7a539ea698eebe267207563def62d",
23
- "size": 80141664
22
+ "checksum": "1a416eb22c68a7a35ad50a28a6eaa56227ddb50ea661786ffb67677b134894ac",
23
+ "size": 80788940
24
24
  }
25
25
  },
26
26
  "linux-arm64": {
27
27
  "binary": "claude.zst",
28
- "checksum": "f95d466d03381abe9effcbcfe8408704262eb8861af3a1fc20b8e0563c1f770b",
29
- "size": 85057873
28
+ "checksum": "9bae454cf4f886a2c7833746a9253d877b65c24c4c4403689a573bc47bf4b35a",
29
+ "size": 85691403
30
30
  },
31
31
  "linux-x64": {
32
32
  "binary": "claude.zst",
33
- "checksum": "add364007462fe694a95aa68c78bdf7a71b1ddf687f80dda603f58cc80cde574",
34
- "size": 85795355
33
+ "checksum": "66f72a868a42ca10e5462ab78a88fd9f5576486f59b32a0afc5910ab4b73b765",
34
+ "size": 86429541
35
35
  },
36
36
  "linux-arm64-musl": {
37
37
  "binary": "claude.zst",
38
- "checksum": "b277e35a54c5c3f891791276b1b5ca8959ab89c45e2123906f26c3b0c489c80a",
39
- "size": 83460752
38
+ "checksum": "84f9baadb049624c58165510498427269ce0c07b31d597ac21c370808c359549",
39
+ "size": 84096543
40
40
  },
41
41
  "linux-x64-musl": {
42
42
  "binary": "claude.zst",
43
- "checksum": "43f30b92560d69d1942dc7e9e4772a9c24f99cda2d71a1dc46b6033398d47a01",
44
- "size": 84231480
43
+ "checksum": "4ef0cfc150a4c8cf82bd4a726828980aae965e6db8084d00191befab9234f123",
44
+ "size": 84854125
45
45
  },
46
46
  "win32-x64": {
47
47
  "binary": "claude.exe.zst",
48
- "checksum": "0d03949c88db791ddee203b61c1cfbd69bf84214facc17dcfcd0c0987f6c27de",
49
- "size": 88089498
48
+ "checksum": "e1f0154146bb2618ea9943fa25778362182f8f1bf6c65f8dfd1a68a9a1d2b897",
49
+ "size": 88725729
50
50
  },
51
51
  "win32-arm64": {
52
52
  "binary": "claude.exe.zst",
53
- "checksum": "bd8a2ec0abb532aea9e4f6a70177193cd7e06e4f4803d63fe75ac15442160dca",
54
- "size": 84412071
53
+ "checksum": "2ddfd5eeaff95051dc32e0b03e441f97fc10af43747402194fa7793e21827348",
54
+ "size": 85047493
55
55
  }
56
56
  },
57
57
  "sdkCompat": {
58
58
  "testedWrapperVersions": [
59
- "0.3.247",
60
- "0.3.248",
61
59
  "0.3.250",
62
60
  "0.3.251",
63
61
  "0.3.252",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-agent-sdk",
3
- "version": "0.3.287",
3
+ "version": "0.3.289",
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.287",
65
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.287",
66
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.287",
67
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.287",
68
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.287",
69
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.287",
70
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.287",
71
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.287"
64
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.289",
65
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.289",
66
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.289",
67
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.289",
68
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.289",
69
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.289",
70
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.289",
71
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.289"
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-kgfyd2t2.mjs",
89
- "core-q38rzykt.mjs"
88
+ "core-8p15jxca.mjs",
89
+ "core-repw6452.mjs"
90
90
  ],
91
- "claudeCodeVersion": "2.1.287"
91
+ "claudeCodeVersion": "2.1.289"
92
92
  }
package/sdk.d.ts CHANGED
@@ -244,6 +244,8 @@ export declare type CanUseTool = (toolName: string, input: Record<string, unknow
244
244
  };
245
245
  /** Explains why this permission request was triggered. */
246
246
  decisionReason?: string;
247
+
248
+
247
249
  /**
248
250
  * Full permission prompt sentence rendered by the bridge (e.g.
249
251
  * "Claude wants to read foo.txt"). Use this as the primary prompt
@@ -2669,7 +2671,7 @@ export declare type PostToolUseHookSpecificOutput = {
2669
2671
  hookEventName: 'PostToolUse';
2670
2672
  additionalContext?: string;
2671
2673
  /**
2672
- * Host-asserted context shown to the auto-mode permission classifier alongside this tool call's result. In the live session the classifier may weigh a user statement relayed here as user intent (it can satisfy a consent bar a user turn would satisfy, never a hard boundary); values restored from saved session state are treated as unverified context only. Relay discipline is the host's obligation: put ONLY genuine user statements in intent-bearing positions — never tool output or model text dressed as one. Capped at 2000 UTF-16 code units, a budget shared across all hooks that contribute to one call (surrogate-pair-safe; emoji and other astral characters count as two). Honored on synchronous hook responses only: an async hook's late response arrives after the result message is frozen and this field in it is silently ignored. Security note: do not copy untrusted tool output or third-party text into it blindly — content placed here reaches the permission classifier with host-application framing. Applies only to calls the classifier transcript shows: read-only lookups the transcript omits (file reads, searches), inner REPL calls, and remote-engine shells produce no per-result line, and context attached to them is silently unused. Not a delivery channel: it is bound to a single call id and sized for a short assertion, not for relaying messages or events. Rewrite integrity: if this assertion describes output you are rewriting, return it in the SAME hook result as the rewrite — it is then dropped automatically if your rewrite is rejected or superseded by a later hook's rewrite; assertions returned without a rewrite are never invalidated by other hooks' rewrites, so a non-rewriting hook should assert only what holds regardless of other hooks' rewrites — hosts that need an assertion bound to exact output bytes should make it in the hook that produces those bytes. (Do NOT return an identity rewrite just to pair an assertion: hooks run in parallel on the ORIGINAL output, so an identity rewrite competes last-write-wins with sibling rewrites and can clobber a real redaction.)
2674
+ * Host-asserted context shown to the auto-mode permission classifier alongside this tool call's result. In the live session the classifier may weigh a user statement relayed here as user intent (it can satisfy a consent bar a user turn would satisfy, never a hard boundary); values restored from saved session state are treated as unverified context only. Relay discipline is the host's obligation: put ONLY genuine user statements in intent-bearing positions — never tool output or model text dressed as one. Capped at 2000 UTF-16 code units, a budget shared across all hooks that contribute to one call (surrogate-pair-safe; emoji and other astral characters count as two). Honored on synchronous hook responses only: an async hook's late response arrives after the result message is frozen and this field in it is silently ignored. Security note: do not copy untrusted tool output or third-party text into it blindly — content placed here reaches the permission classifier with host-application framing. Applies only to calls the classifier transcript shows: read-only lookups the transcript omits (file reads, searches) and remote-engine shells produce no per-result line, and context attached to them is silently unused. Not a delivery channel: it is bound to a single call id and sized for a short assertion, not for relaying messages or events. Rewrite integrity: if this assertion describes output you are rewriting, return it in the SAME hook result as the rewrite — it is then dropped automatically if your rewrite is rejected or superseded by a later hook's rewrite; assertions returned without a rewrite are never invalidated by other hooks' rewrites, so a non-rewriting hook should assert only what holds regardless of other hooks' rewrites — hosts that need an assertion bound to exact output bytes should make it in the hook that produces those bytes. (Do NOT return an identity rewrite just to pair an assertion: hooks run in parallel on the ORIGINAL output, so an identity rewrite competes last-write-wins with sibling rewrites and can clobber a real redaction.)
2673
2675
  */
2674
2676
  classifierContext?: string;
2675
2677
  /**
@@ -4569,7 +4571,7 @@ export declare type SDKControlInitializeResponse = {
4569
4571
  plugins_applied?: boolean;
4570
4572
 
4571
4573
  /**
4572
- * What became of each entry of this initialize's sdkMcpServerManifests, keyed by sdk server name, for the entries whose name is in sdkMcpServers. 'parked': kept for the connect that follows this reply, which answers the server's MCP initialize and first tools/list from it (a later failure to replay shows up as live mcp_message frames, as when no entry was sent). 'already_connected': this CLI already had a live client for the server. 'protocol_version_mismatch': initializeResult.protocolVersion is not the version this CLI's client requests. 'malformed': the entry is not of the documented shape, reported whether or not manifests were honoured (every name in sdkMcpServers gets this when the field itself is not an object). 'not_honoured': the CLI did not use the entry: manifests or remote manifests are switched off in this CLI, the session service has not told this remote-session worker in the last five minutes that only the account owning the session can send events to it, or the request reached such a worker other than over its session stream (nothing for the host to change in any of these cases); or it came over the session stream without sdkMcpServerManifestsOrigin or on a frame too old to trust (the host's to fix). Absent when the request carried no sdkMcpServerManifests or named no sdkMcpServers, and on CLIs that predate the field.
4574
+ * What became of each entry of this initialize's sdkMcpServerManifests, keyed by sdk server name, for the entries whose name is in sdkMcpServers. 'parked': kept for the connect that follows this reply, which answers the server's MCP initialize and first tools/list from it (a later failure to replay shows up as live mcp_message frames, as when no entry was sent). 'already_connected': this CLI already had a live client for the server. 'protocol_version_mismatch': initializeResult.protocolVersion is not the version this CLI's client requests. 'malformed': the entry is not of the documented shape, reported whether or not manifests were honoured (every name in sdkMcpServers gets this when the field itself is not an object); or an honoured entry is past the limits this CLI sets on a live answer. 'not_honoured': the CLI did not use the entry: manifests or remote manifests are switched off in this CLI, the session service has not told this remote-session worker in the last five minutes that only the account owning the session can send events to it, or the request reached such a worker other than over its session stream (nothing for the host to change in any of these cases); or this CLI had read as many tool lists as it allows in a minute (send it again later); or it came over the session stream without sdkMcpServerManifestsOrigin or on a frame too old to trust (the host's to fix). Absent when the request carried no sdkMcpServerManifests or named no sdkMcpServers, and on CLIs that predate the field.
4573
4575
  */
4574
4576
  sdk_mcp_manifests_parked?: Record<string, 'parked' | 'already_connected' | 'protocol_version_mismatch' | 'malformed' | 'not_honoured'>;
4575
4577
 
@@ -5249,6 +5251,10 @@ export declare type SDKInformationalMessage = {
5249
5251
  * When true, execution stops after this message (e.g. a Stop hook denied continuation).
5250
5252
  */
5251
5253
  prevent_continuation?: boolean;
5254
+ /**
5255
+ * Opaque feature tag on a line a host may treat specially; absent on ordinary lines. Hosts ignore values they do not know.
5256
+ */
5257
+ tag?: string;
5252
5258
  uuid: UUID;
5253
5259
  session_id: string;
5254
5260
  };
@@ -5736,6 +5742,7 @@ export declare type SDKResultSuccess = {
5736
5742
 
5737
5743
 
5738
5744
 
5745
+
5739
5746
  user_message_uuid?: string;
5740
5747
  user_message_uuids?: string[];
5741
5748
  resume_reason?: string;
@@ -5761,6 +5768,7 @@ export declare type SDKResultSuccess = {
5761
5768
  first_text_post_wall_ms?: number;
5762
5769
  time_to_request_from_spawn_ms?: number;
5763
5770
  warm_spare_claimed?: boolean;
5771
+
5764
5772
  time_origin_ms?: number;
5765
5773
  is_error: boolean;
5766
5774
  api_error_status?: number | null;
@@ -8958,6 +8966,10 @@ export declare interface Settings {
8958
8966
  * Maximum effort level for this model. Within one settings file it replaces the top-level maxEffortLevel for the model ("max" exempts it); across settings files the lowest applicable value wins. Keyed like effortLevel: the canonical model name also matches its dated, [1m], Bedrock and Vertex spellings.
8959
8967
  */
8960
8968
  maxEffortLevel?: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
8969
+ /**
8970
+ * Auto-compact window for this model, in tokens (100000 to 1000000), or "auto" for the window tuned for the model. Within one settings file it replaces the top-level autoCompactWindow for the model. /autocompact saves here. The canonical model name as key also matches its dated, [1m], Bedrock and Vertex spellings.
8971
+ */
8972
+ autoCompactWindow?: 'auto' | number;
8961
8973
  [k: string]: unknown;
8962
8974
  };
8963
8975
  };