@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/bridge.d.ts +7 -0
- package/bridge.mjs +77 -76
- package/browser-sdk.js +48 -48
- package/core-2haqfy07.mjs +33 -0
- package/core-a92dt75k.mjs +40 -0
- package/core.mjs +17 -17
- package/manifest.json +19 -25
- package/manifest.zst.json +23 -29
- package/package.json +12 -12
- package/sdk-tools.d.ts +4 -0
- package/sdk.d.ts +38 -14
- package/sdk.mjs +53 -53
- package/core-reghh1vn.mjs +0 -33
- package/core-tm6xdb2r.mjs +0 -40
package/manifest.json
CHANGED
|
@@ -1,58 +1,52 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
2
|
+
"version": "2.1.296",
|
|
3
3
|
"manifestSignatureEnforcement": "flag",
|
|
4
|
-
"commit": "
|
|
5
|
-
"
|
|
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": "
|
|
11
|
-
"size":
|
|
9
|
+
"checksum": "c9b5341637becbd423ddffc5b254afb645682a3868cb708bbc6cc0e7bb419937",
|
|
10
|
+
"size": 240664432
|
|
12
11
|
},
|
|
13
12
|
"darwin-x64": {
|
|
14
13
|
"binary": "claude",
|
|
15
|
-
"checksum": "
|
|
16
|
-
"size":
|
|
14
|
+
"checksum": "a6bf4f30be241053a923f3820ad23c5991d2f5ac2935b3a8dd64da218d9cc603",
|
|
15
|
+
"size": 249194752
|
|
17
16
|
},
|
|
18
17
|
"linux-arm64": {
|
|
19
18
|
"binary": "claude",
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
19
|
+
"checksum": "f1f6e96e0d8342b9dbf41d7e88255397a6a52ce3d8736ad6a4c6b59c9b62fefa",
|
|
20
|
+
"size": 256434168
|
|
22
21
|
},
|
|
23
22
|
"linux-x64": {
|
|
24
23
|
"binary": "claude",
|
|
25
|
-
"checksum": "
|
|
26
|
-
"size":
|
|
24
|
+
"checksum": "24972e3bc859fab2b46ed4c1e51f7d6130f06d3bd550811a114640de3370d0de",
|
|
25
|
+
"size": 257068216
|
|
27
26
|
},
|
|
28
27
|
"linux-arm64-musl": {
|
|
29
28
|
"binary": "claude",
|
|
30
|
-
"checksum": "
|
|
31
|
-
"size":
|
|
29
|
+
"checksum": "b0bbc936a82930933d7d5645081050d5f827a946cf6abc6575383b777a0feec0",
|
|
30
|
+
"size": 248788800
|
|
32
31
|
},
|
|
33
32
|
"linux-x64-musl": {
|
|
34
33
|
"binary": "claude",
|
|
35
|
-
"checksum": "
|
|
36
|
-
"size":
|
|
34
|
+
"checksum": "94a1ccc6ffc9b0889c6b2b80e202885c8a575766775377398daa4db5fd89417f",
|
|
35
|
+
"size": 250818648
|
|
37
36
|
},
|
|
38
37
|
"win32-x64": {
|
|
39
38
|
"binary": "claude.exe",
|
|
40
|
-
"checksum": "
|
|
41
|
-
"size":
|
|
39
|
+
"checksum": "76de74f7694a5bdc03378a5f837c9e132827bf004c98c276bc4e9094ff06769a",
|
|
40
|
+
"size": 260489376
|
|
42
41
|
},
|
|
43
42
|
"win32-arm64": {
|
|
44
43
|
"binary": "claude.exe",
|
|
45
|
-
"checksum": "
|
|
46
|
-
"size":
|
|
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.
|
|
2
|
+
"version": "2.1.296",
|
|
3
3
|
"manifestSignatureEnforcement": "flag",
|
|
4
|
-
"commit": "
|
|
5
|
-
"
|
|
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": "
|
|
11
|
-
"size":
|
|
9
|
+
"checksum": "26426aa3dcf41b0f554951766c3c583cf243345ca3d32fa590caf84685be5f97",
|
|
10
|
+
"size": 80134216,
|
|
12
11
|
"bundle": {
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
12
|
+
"checksum": "0e4b5ce62190b45b9aa2ff5311404b227c47232f5ff09c6e1ec285d17e644402",
|
|
13
|
+
"size": 80149558
|
|
15
14
|
}
|
|
16
15
|
},
|
|
17
16
|
"darwin-x64": {
|
|
18
17
|
"binary": "claude.zst",
|
|
19
|
-
"checksum": "
|
|
20
|
-
"size":
|
|
18
|
+
"checksum": "6f1d6f926a303c423eb4815a01764165ed4375054bfa8ef6203e55fc806f50ac",
|
|
19
|
+
"size": 84394829,
|
|
21
20
|
"bundle": {
|
|
22
|
-
"checksum": "
|
|
23
|
-
"size":
|
|
21
|
+
"checksum": "31a721b22f5e6039baf241a151d2f778c4b8d864539335385f35ec241cc3df50",
|
|
22
|
+
"size": 84390337
|
|
24
23
|
}
|
|
25
24
|
},
|
|
26
25
|
"linux-arm64": {
|
|
27
26
|
"binary": "claude.zst",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
27
|
+
"checksum": "23aa91437a06eff80a65bfc32b0e4b5a6dda3e821019c543696c154274e56913",
|
|
28
|
+
"size": 89208531
|
|
30
29
|
},
|
|
31
30
|
"linux-x64": {
|
|
32
31
|
"binary": "claude.zst",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
32
|
+
"checksum": "fac1d78be9446052ac084878c04c2648abb6b22d53279a685fa19ee517d74410",
|
|
33
|
+
"size": 89939877
|
|
35
34
|
},
|
|
36
35
|
"linux-arm64-musl": {
|
|
37
36
|
"binary": "claude.zst",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
37
|
+
"checksum": "a6f1ae5219e4ad60ebec2136c2ec27bb12cc674c2db66768ea46566ae28e52c8",
|
|
38
|
+
"size": 87620237
|
|
40
39
|
},
|
|
41
40
|
"linux-x64-musl": {
|
|
42
41
|
"binary": "claude.zst",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
42
|
+
"checksum": "ca4feec52ea8d8c1aae0959bbb25d656aa2c9f9781d9225fd19e824a15479a46",
|
|
43
|
+
"size": 88372013
|
|
45
44
|
},
|
|
46
45
|
"win32-x64": {
|
|
47
46
|
"binary": "claude.exe.zst",
|
|
48
|
-
"checksum": "
|
|
49
|
-
"size":
|
|
47
|
+
"checksum": "3c03de917c2ac45f9e4bf8d6670f843d2eaa9bbd57170c0ede5b2a3585ec4297",
|
|
48
|
+
"size": 92248996
|
|
50
49
|
},
|
|
51
50
|
"win32-arm64": {
|
|
52
51
|
"binary": "claude.exe.zst",
|
|
53
|
-
"checksum": "
|
|
54
|
-
"size":
|
|
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.
|
|
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.
|
|
65
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.
|
|
66
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.
|
|
67
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.
|
|
68
|
-
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.
|
|
69
|
-
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.
|
|
70
|
-
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.
|
|
71
|
-
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.
|
|
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-
|
|
89
|
-
"core-
|
|
88
|
+
"core-2haqfy07.mjs",
|
|
89
|
+
"core-a92dt75k.mjs"
|
|
90
90
|
],
|
|
91
|
-
"claudeCodeVersion": "2.1.
|
|
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
|
-
*
|
|
2161
|
-
*
|
|
2162
|
-
*
|
|
2163
|
-
*
|
|
2164
|
-
*
|
|
2165
|
-
*
|
|
2166
|
-
*
|
|
2167
|
-
*
|
|
2168
|
-
*
|
|
2169
|
-
* `failIfUnavailable`
|
|
2170
|
-
*
|
|
2171
|
-
*
|
|
2172
|
-
*
|
|
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
|
|
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
|
/**
|