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

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,58 +1,52 @@
1
1
  {
2
- "version": "2.1.295",
2
+ "version": "2.1.296",
3
3
  "manifestSignatureEnforcement": "flag",
4
- "commit": "07e8f67ea3282bf154a9e05673a0942b1b173cef",
5
- "modsCommit": "71cdddec623889d38af14b7a489670a03186f659",
6
- "buildDate": "2026-10-08T17:09:12Z",
4
+ "commit": "fdb6c17a97b6e0e3cf15e3566663fca58e7c43a9",
5
+ "buildDate": "2026-10-09T14:46:35Z",
7
6
  "platforms": {
8
7
  "darwin-arm64": {
9
8
  "binary": "claude",
10
- "checksum": "0116ee2e0a513900b633d9951367f18747686478e2b462805b8c31609f047f70",
11
- "size": 239695888
9
+ "checksum": "c9b5341637becbd423ddffc5b254afb645682a3868cb708bbc6cc0e7bb419937",
10
+ "size": 240664432
12
11
  },
13
12
  "darwin-x64": {
14
13
  "binary": "claude",
15
- "checksum": "a6066492288585a1ef5e482cb28ad22714ab12cd48e367c0cee988b00cff724c",
16
- "size": 248204032
14
+ "checksum": "a6bf4f30be241053a923f3820ad23c5991d2f5ac2935b3a8dd64da218d9cc603",
15
+ "size": 249194752
17
16
  },
18
17
  "linux-arm64": {
19
18
  "binary": "claude",
20
- "checksum": "cfb9dc1332fb6f92a683f835823e91b3179a803398ca7852cd2381a3cb1dea3b",
21
- "size": 255516664
19
+ "checksum": "f1f6e96e0d8342b9dbf41d7e88255397a6a52ce3d8736ad6a4c6b59c9b62fefa",
20
+ "size": 256434168
22
21
  },
23
22
  "linux-x64": {
24
23
  "binary": "claude",
25
- "checksum": "4503bfe11a6c7fcc1e0b39b5e0d347c04248f750b03b0977b3ad6b531fe6f358",
26
- "size": 256113848
24
+ "checksum": "24972e3bc859fab2b46ed4c1e51f7d6130f06d3bd550811a114640de3370d0de",
25
+ "size": 257068216
27
26
  },
28
27
  "linux-arm64-musl": {
29
28
  "binary": "claude",
30
- "checksum": "dd73a464f8f8c243f78860396f243f19520dd69dca38e6647d0a77a32ecf3cef",
31
- "size": 247805760
29
+ "checksum": "b0bbc936a82930933d7d5645081050d5f827a946cf6abc6575383b777a0feec0",
30
+ "size": 248788800
32
31
  },
33
32
  "linux-x64-musl": {
34
33
  "binary": "claude",
35
- "checksum": "70eb6517c69b2f5c918bc5645331fc8eeec66d2b8425b62a0e15f34bcb9934db",
36
- "size": 249860184
34
+ "checksum": "94a1ccc6ffc9b0889c6b2b80e202885c8a575766775377398daa4db5fd89417f",
35
+ "size": 250818648
37
36
  },
38
37
  "win32-x64": {
39
38
  "binary": "claude.exe",
40
- "checksum": "a30012741c3d0b55e2a6c252dab3781134b75be95896ae89d40a93e10f83bcd6",
41
- "size": 259509920
39
+ "checksum": "76de74f7694a5bdc03378a5f837c9e132827bf004c98c276bc4e9094ff06769a",
40
+ "size": 260489376
42
41
  },
43
42
  "win32-arm64": {
44
43
  "binary": "claude.exe",
45
- "checksum": "88679adb52e34049497056309b01f9c2cba924b5de838b21ccdf4106e991c84f",
46
- "size": 247034528
44
+ "checksum": "a652a17f5a324d2d9ad9995cc047145f8176b9a4b4f28bbd3aa0708a22679e3b",
45
+ "size": 248013984
47
46
  }
48
47
  },
49
48
  "sdkCompat": {
50
49
  "testedWrapperVersions": [
51
- "0.3.252",
52
- "0.3.257",
53
- "0.3.258",
54
- "0.3.259",
55
- "0.3.260",
56
50
  "0.3.261",
57
51
  "0.3.263",
58
52
  "0.3.265",
package/manifest.zst.json CHANGED
@@ -1,66 +1,60 @@
1
1
  {
2
- "version": "2.1.295",
2
+ "version": "2.1.296",
3
3
  "manifestSignatureEnforcement": "flag",
4
- "commit": "07e8f67ea3282bf154a9e05673a0942b1b173cef",
5
- "modsCommit": "71cdddec623889d38af14b7a489670a03186f659",
6
- "buildDate": "2026-10-08T17:10:20Z",
4
+ "commit": "fdb6c17a97b6e0e3cf15e3566663fca58e7c43a9",
5
+ "buildDate": "2026-10-09T14:48:00Z",
7
6
  "platforms": {
8
7
  "darwin-arm64": {
9
8
  "binary": "claude.zst",
10
- "checksum": "37934434b3ccd48c4fcccfb6a30a0145fffccaba8c8e935e8e3bdff0a35024a9",
11
- "size": 79774246,
9
+ "checksum": "26426aa3dcf41b0f554951766c3c583cf243345ca3d32fa590caf84685be5f97",
10
+ "size": 80134216,
12
11
  "bundle": {
13
- "checksum": "9d6405864fdc2c957d81adb0fcd0b42f568b4ccc1ab741ba9e5bed581a4f75eb",
14
- "size": 79800612
12
+ "checksum": "0e4b5ce62190b45b9aa2ff5311404b227c47232f5ff09c6e1ec285d17e644402",
13
+ "size": 80149558
15
14
  }
16
15
  },
17
16
  "darwin-x64": {
18
17
  "binary": "claude.zst",
19
- "checksum": "2568ab3f0572d1753f521d65412501ac71dcba253b2171da4b75ecf5df4cfcf8",
20
- "size": 84026128,
18
+ "checksum": "6f1d6f926a303c423eb4815a01764165ed4375054bfa8ef6203e55fc806f50ac",
19
+ "size": 84394829,
21
20
  "bundle": {
22
- "checksum": "476dfdd1664443c67156f200faea54be81ef4a6204de6362e28c81699e71b38f",
23
- "size": 84029255
21
+ "checksum": "31a721b22f5e6039baf241a151d2f778c4b8d864539335385f35ec241cc3df50",
22
+ "size": 84390337
24
23
  }
25
24
  },
26
25
  "linux-arm64": {
27
26
  "binary": "claude.zst",
28
- "checksum": "9b32b47ec4b3fa5b884e12b7e130e94338e7787d5db031adf48e1b20e3a893ee",
29
- "size": 88860590
27
+ "checksum": "23aa91437a06eff80a65bfc32b0e4b5a6dda3e821019c543696c154274e56913",
28
+ "size": 89208531
30
29
  },
31
30
  "linux-x64": {
32
31
  "binary": "claude.zst",
33
- "checksum": "71164c85f9d226928dec7acda1baf000f1991eb14fcec106536d84bd914032f8",
34
- "size": 89586953
32
+ "checksum": "fac1d78be9446052ac084878c04c2648abb6b22d53279a685fa19ee517d74410",
33
+ "size": 89939877
35
34
  },
36
35
  "linux-arm64-musl": {
37
36
  "binary": "claude.zst",
38
- "checksum": "727051b35aa357b80e61044044a40e0c5e1c01060eac22902cb249030ae366b7",
39
- "size": 87276174
37
+ "checksum": "a6f1ae5219e4ad60ebec2136c2ec27bb12cc674c2db66768ea46566ae28e52c8",
38
+ "size": 87620237
40
39
  },
41
40
  "linux-x64-musl": {
42
41
  "binary": "claude.zst",
43
- "checksum": "e6957660c0b386d31d7fe0c713f879d702558763ea2d76a8194f8206d9c8f436",
44
- "size": 88025322
42
+ "checksum": "ca4feec52ea8d8c1aae0959bbb25d656aa2c9f9781d9225fd19e824a15479a46",
43
+ "size": 88372013
45
44
  },
46
45
  "win32-x64": {
47
46
  "binary": "claude.exe.zst",
48
- "checksum": "d2e29494ec8335758ec41323495a2c79769a5b4e353cf8465422f63c05235b84",
49
- "size": 91878666
47
+ "checksum": "3c03de917c2ac45f9e4bf8d6670f843d2eaa9bbd57170c0ede5b2a3585ec4297",
48
+ "size": 92248996
50
49
  },
51
50
  "win32-arm64": {
52
51
  "binary": "claude.exe.zst",
53
- "checksum": "702b01e74299c9fc076f60c6b9df0a4552dcca5fb53cad6a19840ac9520b427c",
54
- "size": 88231000
52
+ "checksum": "e638b6c6f831f5d51839caef7a7e8ccb68fc4b0c0ee51339a7fe2aadf5ca7528",
53
+ "size": 88583594
55
54
  }
56
55
  },
57
56
  "sdkCompat": {
58
57
  "testedWrapperVersions": [
59
- "0.3.252",
60
- "0.3.257",
61
- "0.3.258",
62
- "0.3.259",
63
- "0.3.260",
64
58
  "0.3.261",
65
59
  "0.3.263",
66
60
  "0.3.265",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-agent-sdk",
3
- "version": "0.3.295",
3
+ "version": "0.3.296",
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.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"
64
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.296",
65
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.296",
66
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.296",
67
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.296",
68
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.296",
69
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.296",
70
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.296",
71
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.296"
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-reghh1vn.mjs",
89
- "core-tm6xdb2r.mjs"
88
+ "core-2haqfy07.mjs",
89
+ "core-a92dt75k.mjs"
90
90
  ],
91
- "claudeCodeVersion": "2.1.295"
91
+ "claudeCodeVersion": "2.1.296"
92
92
  }
package/sdk-tools.d.ts CHANGED
@@ -891,6 +891,10 @@ export interface FileReadInput {
891
891
  * Page range for PDF files (e.g., "1-5", "3", "10-20"). Only applicable to PDF files. Maximum 20 pages per request.
892
892
  */
893
893
  pages?: string;
894
+ /**
895
+ * Set to true to read a text file, or a line range of one, that is over the usual size limits, up to what still fits in your context. Only use this when you genuinely need all of it or the user asked for the whole file; otherwise read it in parts with offset and limit, or search it.
896
+ */
897
+ allow_large?: boolean;
894
898
  }
895
899
  export interface FileWriteInput {
896
900
  /**
package/sdk.d.ts CHANGED
@@ -73,6 +73,10 @@ export declare type AgentDefinition = {
73
73
  * Maximum number of agentic turns (API round-trips) before stopping
74
74
  */
75
75
  maxTurns?: number;
76
+ /**
77
+ * Token count at which this agent compacts its own conversation when it runs as a subagent. It only lowers the window the subagent would otherwise inherit. No effect on the main session agent.
78
+ */
79
+ autoCompactWindow?: number;
76
80
  /**
77
81
  * Run this agent as a background task (non-blocking, fire-and-forget) when invoked
78
82
  */
@@ -2157,19 +2161,33 @@ export declare type Options = {
2157
2161
  * When enabled, commands are executed in a sandboxed environment that restricts
2158
2162
  * filesystem and network access. This provides an additional security layer.
2159
2163
  *
2160
- * **Important:** Filesystem and network restrictions are configured via permission
2161
- * rules, not via these sandbox settings:
2162
- * - Filesystem access: Use `Read` and `Edit` permission rules
2163
- * - Network access: Use `WebFetch` permission rules
2164
- *
2165
- * These sandbox settings control sandbox behavior (enabled, auto-allow, etc.),
2166
- * while the actual access restrictions come from your permission configuration.
2167
- *
2168
- * **Dependency check:** When `enabled: true` is passed via this option,
2169
- * `failIfUnavailable` defaults to `true` — if sandbox dependencies are missing
2170
- * (e.g. `bubblewrap` on Linux) or the platform is unsupported, `query()` will
2171
- * emit an error result and exit rather than silently running commands
2172
- * unsandboxed. Set `failIfUnavailable: false` to allow graceful degradation.
2164
+ * Access restrictions can be set here (`filesystem`, `network`, `credentials`);
2165
+ * filesystem and network restrictions also come from `Read`, `Edit` and
2166
+ * `WebFetch` permission rules, and Claude Code applies both.
2167
+ *
2168
+ * **Dependency check:** When this option sets `enabled: true`,
2169
+ * `failIfUnavailable` defaults to `true` unless this option or an inline
2170
+ * `settings` sandbox block sets it: if sandbox dependencies are missing (e.g.
2171
+ * `bubblewrap` on Linux) or the platform is unsupported, `query()` emits an
2172
+ * error result and exits rather than silently running commands unsandboxed.
2173
+ * Set `failIfUnavailable: false` to allow graceful degradation.
2174
+ *
2175
+ * **With `settings`:** when `settings` is given inline (an object or JSON string,
2176
+ * not a file path) and has its own `sandbox` block, this option is merged into
2177
+ * it. A value this option sets replaces the value at the same path, and a
2178
+ * value it does not set is kept, with two exceptions: a
2179
+ * `filesystem.disabled: true` is dropped when this option sets `filesystem` or
2180
+ * a `credentials.files` deny entry, since it would switch those off; and a
2181
+ * `network.httpProxyPort` or `network.socksProxyPort` is dropped when this
2182
+ * option sets `network.allowedDomains`, a `network.deniedDomains` entry or
2183
+ * `network.strictAllowlist: true` and does not set that port itself, since
2184
+ * traffic through your own proxy is not checked against those lists. Nested
2185
+ * objects merge key by key, except `ripgrep` and
2186
+ * `network.tlsTerminate`, which this option replaces whole; and the restriction
2187
+ * lists (`filesystem.denyRead`, `filesystem.denyWrite`, `network.deniedDomains`,
2188
+ * `credentials.files`, `credentials.envVars`) from both are combined instead, a
2189
+ * `deny` from either side winning over a `mask` for the same credential path or
2190
+ * variable. A `settings` file path cannot be combined with this option.
2173
2191
  *
2174
2192
  * @example Enable sandboxing with auto-allow
2175
2193
  * ```typescript
@@ -2179,7 +2197,7 @@ export declare type Options = {
2179
2197
  * }
2180
2198
  * ```
2181
2199
  *
2182
- * @example Configure network options (not restrictions)
2200
+ * @example Configure network options
2183
2201
  * ```typescript
2184
2202
  * sandbox: {
2185
2203
  * enabled: true,
@@ -3661,6 +3679,7 @@ export declare type SDKAssistantMessage = {
3661
3679
 
3662
3680
 
3663
3681
 
3682
+
3664
3683
  /**
3665
3684
  * ISO timestamp of when this content block finished on the originating process. One API assistant turn may produce several assistant messages sharing a message.id, each with its own timestamp. Uses the originating host's clock, so it's for display only; do not order messages by this field. Older emitters omit it; consumers should fall back to receive time.
3666
3685
  */
@@ -4598,6 +4617,10 @@ export declare type SDKControlInitializeResponse = {
4598
4617
 
4599
4618
 
4600
4619
 
4620
+ /**
4621
+ * Claude Code version of the process that runs this session's turns (the same value its system/init carries). Absent on CLIs that predate the field, and when the responder is not that process and does not know its version.
4622
+ */
4623
+ claude_code_version?: string;
4601
4624
  fast_mode_state?: coreTypes.FastModeState;
4602
4625
  fast_mode_disabled_reason?: coreTypes.FastModeDisabledReason;
4603
4626
 
@@ -5107,6 +5130,7 @@ declare type SDKControlSetModelRequest = {
5107
5130
  */
5108
5131
  model?: string | null;
5109
5132
 
5133
+
5110
5134
  };
5111
5135
 
5112
5136
  /**