@anthropic-ai/claude-agent-sdk 0.3.306 → 0.3.308
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.mjs +71 -71
- package/browser-sdk.d.ts +7 -0
- package/browser-sdk.js +37 -37
- package/core-36zyfan5.mjs +52 -0
- package/{core-p79weg14.mjs → core-5682eevd.mjs} +4 -4
- package/core-nne0e2ds.mjs +40 -0
- package/{core-mh5qmqqf.mjs → core-xpxe8nzb.mjs} +1 -1
- package/core.mjs +10 -10
- package/manifest.json +19 -20
- package/manifest.zst.json +23 -24
- package/package.json +14 -14
- package/sdk.d.ts +11 -1
- package/sdk.mjs +74 -74
- package/core-50f20fv8.mjs +0 -40
- package/core-x5tcx9zy.mjs +0 -52
package/manifest.json
CHANGED
|
@@ -1,53 +1,52 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
2
|
+
"version": "2.1.308",
|
|
3
3
|
"manifestSignatureEnforcement": "flag",
|
|
4
|
-
"commit": "
|
|
5
|
-
"buildDate": "2026-10-
|
|
4
|
+
"commit": "320f66eb8f834be58a10c98283ebef19e3640c37",
|
|
5
|
+
"buildDate": "2026-10-22T03:48:37Z",
|
|
6
6
|
"platforms": {
|
|
7
7
|
"darwin-arm64": {
|
|
8
8
|
"binary": "claude",
|
|
9
|
-
"checksum": "
|
|
10
|
-
"size":
|
|
9
|
+
"checksum": "ca923c86ac84b30574a82331a05b6e066c27477a926ceaffe46a845a33e4dd37",
|
|
10
|
+
"size": 274675680
|
|
11
11
|
},
|
|
12
12
|
"darwin-x64": {
|
|
13
13
|
"binary": "claude",
|
|
14
|
-
"checksum": "
|
|
15
|
-
"size":
|
|
14
|
+
"checksum": "9a0bc140f5fb06e6366624d770371ef290e6731d1e84c4def5daf4df946d1b59",
|
|
15
|
+
"size": 285902384
|
|
16
16
|
},
|
|
17
17
|
"linux-arm64": {
|
|
18
18
|
"binary": "claude",
|
|
19
|
-
"checksum": "
|
|
20
|
-
"size":
|
|
19
|
+
"checksum": "fdd22e6cbb734d580f5664c48df4294eeec850218ff07f186f9af30426396ee1",
|
|
20
|
+
"size": 292085944
|
|
21
21
|
},
|
|
22
22
|
"linux-x64": {
|
|
23
23
|
"binary": "claude",
|
|
24
|
-
"checksum": "
|
|
25
|
-
"size":
|
|
24
|
+
"checksum": "356733f185fa988e6bf3aa9a555269fdd167982a2e2a80d3c8a78037bb92ad58",
|
|
25
|
+
"size": 292232560
|
|
26
26
|
},
|
|
27
27
|
"linux-arm64-musl": {
|
|
28
28
|
"binary": "claude",
|
|
29
|
-
"checksum": "
|
|
30
|
-
"size":
|
|
29
|
+
"checksum": "b820bec20177aa09875515cf5ffadb445ecf814ec7c8ed51ba2f86c3090a692d",
|
|
30
|
+
"size": 284313472
|
|
31
31
|
},
|
|
32
32
|
"linux-x64-musl": {
|
|
33
33
|
"binary": "claude",
|
|
34
|
-
"checksum": "
|
|
35
|
-
"size":
|
|
34
|
+
"checksum": "45cc10091e10ca658daa691e879058ba1d4752218c63577d1c7d54b0c7dc9a68",
|
|
35
|
+
"size": 285896848
|
|
36
36
|
},
|
|
37
37
|
"win32-x64": {
|
|
38
38
|
"binary": "claude.exe",
|
|
39
|
-
"checksum": "
|
|
40
|
-
"size":
|
|
39
|
+
"checksum": "c9796ba22a9221586b36371b36f5b66198d66eb4badf6a4cf4a5f7b07becea53",
|
|
40
|
+
"size": 297376928
|
|
41
41
|
},
|
|
42
42
|
"win32-arm64": {
|
|
43
43
|
"binary": "claude.exe",
|
|
44
|
-
"checksum": "
|
|
45
|
-
"size":
|
|
44
|
+
"checksum": "35b5af5dde46a775ccd5a4d15760913c6088cf7292e1b15f0b09b1fd3f93bfd2",
|
|
45
|
+
"size": 281453216
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"sdkCompat": {
|
|
49
49
|
"testedWrapperVersions": [
|
|
50
|
-
"0.3.273",
|
|
51
50
|
"0.3.274",
|
|
52
51
|
"0.3.275",
|
|
53
52
|
"0.3.276",
|
package/manifest.zst.json
CHANGED
|
@@ -1,61 +1,60 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
2
|
+
"version": "2.1.308",
|
|
3
3
|
"manifestSignatureEnforcement": "flag",
|
|
4
|
-
"commit": "
|
|
5
|
-
"buildDate": "2026-10-
|
|
4
|
+
"commit": "320f66eb8f834be58a10c98283ebef19e3640c37",
|
|
5
|
+
"buildDate": "2026-10-22T03:50:00Z",
|
|
6
6
|
"platforms": {
|
|
7
7
|
"darwin-arm64": {
|
|
8
8
|
"binary": "claude.zst",
|
|
9
|
-
"checksum": "
|
|
10
|
-
"size":
|
|
9
|
+
"checksum": "e4d214226582e2f52eafa3de4b2f55469677974e49e6e96376aad740c37d2557",
|
|
10
|
+
"size": 92822156,
|
|
11
11
|
"bundle": {
|
|
12
|
-
"checksum": "
|
|
13
|
-
"size":
|
|
12
|
+
"checksum": "a93ded4b1b47515ff4ce671f79070a5398c47b62c13298a01067334a53f65764",
|
|
13
|
+
"size": 92821576
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"darwin-x64": {
|
|
17
17
|
"binary": "claude.zst",
|
|
18
|
-
"checksum": "
|
|
19
|
-
"size":
|
|
18
|
+
"checksum": "540f89af5ad8e2048390719961739939d59d64a0f3b01af1a158cb1be6f412ae",
|
|
19
|
+
"size": 98219435,
|
|
20
20
|
"bundle": {
|
|
21
|
-
"checksum": "
|
|
22
|
-
"size":
|
|
21
|
+
"checksum": "21d7adb424d30f022ab6094c19b54fc2c991a98a780bc05597c69f6fc44bd1da",
|
|
22
|
+
"size": 98232302
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"linux-arm64": {
|
|
26
26
|
"binary": "claude.zst",
|
|
27
|
-
"checksum": "
|
|
28
|
-
"size":
|
|
27
|
+
"checksum": "6f872ce2362e3485abbd7dcb921514e3319ebe36c2efabb7193f128ed337d8d4",
|
|
28
|
+
"size": 102117787
|
|
29
29
|
},
|
|
30
30
|
"linux-x64": {
|
|
31
31
|
"binary": "claude.zst",
|
|
32
|
-
"checksum": "
|
|
33
|
-
"size":
|
|
32
|
+
"checksum": "f8b3641a8d3664420bde0153433e03fd3fad5351a1a12cf6f798ed86c52c9ea9",
|
|
33
|
+
"size": 103095977
|
|
34
34
|
},
|
|
35
35
|
"linux-arm64-musl": {
|
|
36
36
|
"binary": "claude.zst",
|
|
37
|
-
"checksum": "
|
|
38
|
-
"size":
|
|
37
|
+
"checksum": "855a21751041185dbd5d73386e5a9e454f0ce434a8a4b23cb2ca66add70b5427",
|
|
38
|
+
"size": 100464884
|
|
39
39
|
},
|
|
40
40
|
"linux-x64-musl": {
|
|
41
41
|
"binary": "claude.zst",
|
|
42
|
-
"checksum": "
|
|
43
|
-
"size":
|
|
42
|
+
"checksum": "0c66f9a325b6c5c308272fd087c0f0994e6ebc081e64a4a51fcbcfbbfb484c37",
|
|
43
|
+
"size": 101509546
|
|
44
44
|
},
|
|
45
45
|
"win32-x64": {
|
|
46
46
|
"binary": "claude.exe.zst",
|
|
47
|
-
"checksum": "
|
|
48
|
-
"size":
|
|
47
|
+
"checksum": "c17a819afb40d41ed558bacd5c432b52efdd004fe98068e6b47e77f540156bb9",
|
|
48
|
+
"size": 106384354
|
|
49
49
|
},
|
|
50
50
|
"win32-arm64": {
|
|
51
51
|
"binary": "claude.exe.zst",
|
|
52
|
-
"checksum": "
|
|
53
|
-
"size":
|
|
52
|
+
"checksum": "23655dab55802075e1652adb7117354424998ac4a9acca678ac2bf8903c79310",
|
|
53
|
+
"size": 101582794
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"sdkCompat": {
|
|
57
57
|
"testedWrapperVersions": [
|
|
58
|
-
"0.3.273",
|
|
59
58
|
"0.3.274",
|
|
60
59
|
"0.3.275",
|
|
61
60
|
"0.3.276",
|
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.308",
|
|
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.308",
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.308",
|
|
66
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.308",
|
|
67
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.308",
|
|
68
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.308",
|
|
69
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.308",
|
|
70
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.308",
|
|
71
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.308"
|
|
72
72
|
},
|
|
73
73
|
"files": [
|
|
74
74
|
"sdk.mjs",
|
|
@@ -85,10 +85,10 @@
|
|
|
85
85
|
"extractFromBunfs.d.ts",
|
|
86
86
|
"manifest.json",
|
|
87
87
|
"manifest.zst.json",
|
|
88
|
-
"core-
|
|
89
|
-
"core-
|
|
90
|
-
"core-
|
|
91
|
-
"core-
|
|
88
|
+
"core-36zyfan5.mjs",
|
|
89
|
+
"core-5682eevd.mjs",
|
|
90
|
+
"core-nne0e2ds.mjs",
|
|
91
|
+
"core-xpxe8nzb.mjs"
|
|
92
92
|
],
|
|
93
|
-
"claudeCodeVersion": "2.1.
|
|
93
|
+
"claudeCodeVersion": "2.1.308"
|
|
94
94
|
}
|
package/sdk.d.ts
CHANGED
|
@@ -405,6 +405,7 @@ declare type ControlErrorResponse = {
|
|
|
405
405
|
*/
|
|
406
406
|
error: string;
|
|
407
407
|
|
|
408
|
+
|
|
408
409
|
/**
|
|
409
410
|
* can_use_tool requests this CLI process has issued and not yet resolved, so a client joining an already-initialized session learns about in-flight prompts. Always present (possibly empty) on a success `initialize` response from Claude Code v2.1.268 or later; earlier versions could omit it, so treat absence as an older CLI rather than as "nothing pending". A prompt inherited from a previous worker of the same session can remain answerable without appearing here and without a control_cancel_request; session_state "requires_action" on the same reply signals one the CLI is holding, but not every inherited prompt is signalled.
|
|
410
411
|
*/
|
|
@@ -3116,6 +3117,7 @@ export declare interface Query extends AsyncGenerator<SDKMessage, void> {
|
|
|
3116
3117
|
|
|
3117
3118
|
|
|
3118
3119
|
|
|
3120
|
+
|
|
3119
3121
|
/**
|
|
3120
3122
|
* Read a file from the session's filesystem for the remote sidebar
|
|
3121
3123
|
* viewer. Path is resolved against cwd and gated by the same
|
|
@@ -4817,6 +4819,7 @@ export declare type SDKControlInterruptResponse = {
|
|
|
4817
4819
|
still_queued: string[];
|
|
4818
4820
|
|
|
4819
4821
|
|
|
4822
|
+
|
|
4820
4823
|
/**
|
|
4821
4824
|
* Present only when the request set cancel_queued:true — uuids of main-thread commands cancelled by this interrupt: every survivor that would otherwise have appeared under `still_queued`, including any uuid that was mid-fold at the interrupt instant (this request also aborts, so the fold never delivers it). Each listed uuid has been removed (queue-resident) or marked cancel-pending (the first-command prewait window, closed by the drain loop's backstop) and emits a terminal 'cancelled' lifecycle synchronously at the first such interrupt (a repeat interrupt over the same parked batch re-lists the uuid idempotently without re-emitting); none will run. Where one of them is the re-run of an interrupted turn that also answered for other client messages whose re-sent copies had been set aside for it, those messages' uuids are listed behind the commands' too: they were in no queue and never under `still_queued`, each has its terminal 'cancelled' lifecycle, and a repeat interrupt does not list them again. Same coverage caveats as `still_queued` (uuid-stamped main-thread only; internally-enqueued uuids may appear). Advertised by the `interrupt_cancel_queued_v1` capability.
|
|
4822
4825
|
*/
|
|
@@ -5901,6 +5904,7 @@ export declare type SDKRateLimitInfo = {
|
|
|
5901
5904
|
canUserPurchaseCredits?: boolean;
|
|
5902
5905
|
hasChargeableSavedPaymentMethod?: boolean;
|
|
5903
5906
|
|
|
5907
|
+
|
|
5904
5908
|
};
|
|
5905
5909
|
|
|
5906
5910
|
export declare type SDKResultError = {
|
|
@@ -6514,6 +6518,7 @@ export declare type SDKUserMessage = {
|
|
|
6514
6518
|
*/
|
|
6515
6519
|
tool_use_result?: unknown;
|
|
6516
6520
|
priority?: 'now' | 'next' | 'later';
|
|
6521
|
+
|
|
6517
6522
|
origin?: SDKMessageOrigin;
|
|
6518
6523
|
|
|
6519
6524
|
|
|
@@ -6610,6 +6615,7 @@ export declare type SDKUserMessageReplay = {
|
|
|
6610
6615
|
*/
|
|
6611
6616
|
tool_use_result?: unknown;
|
|
6612
6617
|
priority?: 'now' | 'next' | 'later';
|
|
6618
|
+
|
|
6613
6619
|
origin?: SDKMessageOrigin;
|
|
6614
6620
|
|
|
6615
6621
|
|
|
@@ -9145,7 +9151,7 @@ export declare interface Settings {
|
|
|
9145
9151
|
*/
|
|
9146
9152
|
enableWeakerNestedSandbox?: boolean;
|
|
9147
9153
|
/**
|
|
9148
|
-
* Linux/WSL only: Let sandboxed commands create user namespaces of their own, which the sandbox refuses by default. Needed by tools that sandbox themselves that way, such as Chromium's and Electron's sandbox,
|
|
9154
|
+
* Linux/WSL only: Let sandboxed commands create user namespaces of their own, which the sandbox refuses by default. Needed by tools that sandbox themselves that way, such as Chromium's and Electron's sandbox, a nested bubblewrap, and `unshare`. **Removes code-execution isolation** — in any folder a hostile command may write, it can then bypass filesystem.denyWrite, filesystem.denyRead, credentials.files entries and the paths the sandbox always write-protects (such as .claude/settings.json, git hooks and git config), and so plant code that later runs outside the sandbox; while autoAllowBashIfSandboxed is on, the command that plants it needs no approval. Default: false. Only honored from user, managed/policy, or CLI (--settings) settings — true from project settings (.claude/settings.json and .claude/settings.local.json) is ignored (false there still applies).
|
|
9149
9155
|
*/
|
|
9150
9156
|
allowNestedUserNamespaces?: boolean;
|
|
9151
9157
|
/**
|
|
@@ -9490,6 +9496,10 @@ export declare interface Settings {
|
|
|
9490
9496
|
*/
|
|
9491
9497
|
startDirectory?: string;
|
|
9492
9498
|
}[];
|
|
9499
|
+
/**
|
|
9500
|
+
* SSH connections in Claude Desktop on macOS and Linux whose host comes from a command. A list of entries, each with `id`, `name` and `command`, and optionally `sshIdentityFile` and `startDirectory`. When you ask Desktop to create or replace an entry's host, it runs `command` on this computer: a program name or absolute path, followed by plain arguments. There is no shell, so quotes, pipes, variables and a leading `~` do not work. The command must print only the host on standard output: `host` or `user\@host` on one line, or a JSON object with `sshHost` and, optionally, `sshPort` and `startDirectory`. Desktop reads this key only from user settings and from this computer's managed settings. Claude Code itself does not use it.
|
|
9501
|
+
*/
|
|
9502
|
+
sshHostCommands?: unknown[];
|
|
9493
9503
|
/**
|
|
9494
9504
|
* CLAUDE.md-style instructions injected as organization-managed memory. Only honored from managed/policy settings.
|
|
9495
9505
|
*/
|