@anthropic-ai/claude-agent-sdk 0.2.123 → 0.2.126
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/assistant.mjs +71 -71
- package/bridge.mjs +54 -54
- package/browser-sdk.js +23 -23
- package/manifest.json +19 -19
- package/manifest.zst.json +23 -23
- package/package.json +10 -10
- package/sdk.d.ts +8 -1
- package/sdk.mjs +34 -34
package/manifest.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-04-
|
|
2
|
+
"version": "2.1.126",
|
|
3
|
+
"commit": "e44c1d97bd39dbf2525164f3fd33be6edbf1661e",
|
|
4
|
+
"buildDate": "2026-04-30T16:08:06Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "87a1d05018ceadfc1fe616bfc10262b0503f51986f4af2dc42d1ed856ed3f7bb",
|
|
9
|
+
"size": 216260096
|
|
10
10
|
},
|
|
11
11
|
"darwin-x64": {
|
|
12
12
|
"binary": "claude",
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "49a90c474383a9eda11310bd71f7ea6bb91361ec99443b733cb5003f6e703ccb",
|
|
14
|
+
"size": 217824336
|
|
15
15
|
},
|
|
16
16
|
"linux-arm64": {
|
|
17
17
|
"binary": "claude",
|
|
18
|
-
"checksum": "
|
|
19
|
-
"size":
|
|
18
|
+
"checksum": "88a6dca613a40559f3bac8a946a2ec6e60a870b91938d3df93dcac1dec4848cb",
|
|
19
|
+
"size": 248318528
|
|
20
20
|
},
|
|
21
21
|
"linux-x64": {
|
|
22
22
|
"binary": "claude",
|
|
23
|
-
"checksum": "
|
|
24
|
-
"size":
|
|
23
|
+
"checksum": "fce96968d275161ff65a4c19fc6434efc6973d9f6d35dc3992a2ba0553cac18e",
|
|
24
|
+
"size": 248105600
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64-musl": {
|
|
27
27
|
"binary": "claude",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "042bbc0c3610d005d371645e34c4b4055bb2499f7a4509ed667b2a8924ac5853",
|
|
29
|
+
"size": 241043840
|
|
30
30
|
},
|
|
31
31
|
"linux-x64-musl": {
|
|
32
32
|
"binary": "claude",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "b3f39b00069558e57c6d36ead6b2efe013afa57b603445c338374d0c873e95c0",
|
|
34
|
+
"size": 242370944
|
|
35
35
|
},
|
|
36
36
|
"win32-x64": {
|
|
37
37
|
"binary": "claude.exe",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "1a6b4be4b45458ab1831bad138572bf2fec12cb1edea0685c5ff10ce6e97afb6",
|
|
39
|
+
"size": 254053024
|
|
40
40
|
},
|
|
41
41
|
"win32-arm64": {
|
|
42
42
|
"binary": "claude.exe",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
43
|
+
"checksum": "7253defbc945f5461035240bc32d18970fb1acc5df63092c492ee8d7c7caf55f",
|
|
44
|
+
"size": 250115744
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
}
|
package/manifest.zst.json
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-04-
|
|
2
|
+
"version": "2.1.126",
|
|
3
|
+
"commit": "e44c1d97bd39dbf2525164f3fd33be6edbf1661e",
|
|
4
|
+
"buildDate": "2026-04-30T16:15:16Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude.zst",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "05db403cb0bf869cf38fe7abfbf4fea61cb66b097ace786c8b1c840462cee976",
|
|
9
|
+
"size": 44701845,
|
|
10
10
|
"bundle": {
|
|
11
|
-
"checksum": "
|
|
12
|
-
"size":
|
|
11
|
+
"checksum": "725678c869b2afa7f0094c51490cfb46e3b48432afae2a2b537bc0721d57871a",
|
|
12
|
+
"size": 44705970
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"darwin-x64": {
|
|
16
16
|
"binary": "claude.zst",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "5442cdc75b68b20e9b7f001bc8ca775aa352eddc697f1626f7823591c195c11b",
|
|
18
|
+
"size": 46395699,
|
|
19
19
|
"bundle": {
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "451f789889649e9707cf42f95b69b9c941d0faa1d3adb29d8fab4e124674843e",
|
|
21
|
+
"size": 46398386
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"linux-arm64": {
|
|
25
25
|
"binary": "claude.zst",
|
|
26
|
-
"checksum": "
|
|
27
|
-
"size":
|
|
26
|
+
"checksum": "2a7fca0a7faf3de594ec19be5983ad22eee05fe712273d522197e2b2fdd5c4cf",
|
|
27
|
+
"size": 54246920
|
|
28
28
|
},
|
|
29
29
|
"linux-x64": {
|
|
30
30
|
"binary": "claude.zst",
|
|
31
|
-
"checksum": "
|
|
32
|
-
"size":
|
|
31
|
+
"checksum": "8dbda91c9f480a993151a3804ff62ad0b85b033f6953540fe72159dbb7ac24df",
|
|
32
|
+
"size": 54793974
|
|
33
33
|
},
|
|
34
34
|
"linux-arm64-musl": {
|
|
35
35
|
"binary": "claude.zst",
|
|
36
|
-
"checksum": "
|
|
37
|
-
"size":
|
|
36
|
+
"checksum": "f5ff8ba7d43d6720eb86afb7df56b1e577028a255cd220248105ae02f0835ddc",
|
|
37
|
+
"size": 52856101
|
|
38
38
|
},
|
|
39
39
|
"linux-x64-musl": {
|
|
40
40
|
"binary": "claude.zst",
|
|
41
|
-
"checksum": "
|
|
42
|
-
"size":
|
|
41
|
+
"checksum": "d34b2ce14e7bbb635c4cd389808d630bddb633c7f19f0dc5b89f93a362fa1dca",
|
|
42
|
+
"size": 53519063
|
|
43
43
|
},
|
|
44
44
|
"win32-x64": {
|
|
45
45
|
"binary": "claude.exe.zst",
|
|
46
|
-
"checksum": "
|
|
47
|
-
"size":
|
|
46
|
+
"checksum": "3346250e9962afb01bf85eaa68118dfa2d4a82ee398a566e1c6cd41186e4c522",
|
|
47
|
+
"size": 55874824
|
|
48
48
|
},
|
|
49
49
|
"win32-arm64": {
|
|
50
50
|
"binary": "claude.exe.zst",
|
|
51
|
-
"checksum": "
|
|
52
|
-
"size":
|
|
51
|
+
"checksum": "0f8cbb71d96ceb8d27826ff4e1b5607281a09a5048e26065dccea1c2a7bfbb74",
|
|
52
|
+
"size": 54009603
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anthropic-ai/claude-agent-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.126",
|
|
4
4
|
"main": "sdk.mjs",
|
|
5
5
|
"types": "sdk.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -55,14 +55,14 @@
|
|
|
55
55
|
"zod": "^4.0.0"
|
|
56
56
|
},
|
|
57
57
|
"optionalDependencies": {
|
|
58
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.2.
|
|
59
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.2.
|
|
60
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.2.
|
|
61
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.2.
|
|
62
|
-
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.2.
|
|
63
|
-
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.2.
|
|
64
|
-
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.2.
|
|
65
|
-
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.2.
|
|
58
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.2.126",
|
|
59
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.2.126",
|
|
60
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.2.126",
|
|
61
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.2.126",
|
|
62
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.2.126",
|
|
63
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.2.126",
|
|
64
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.2.126",
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.2.126"
|
|
66
66
|
},
|
|
67
67
|
"files": [
|
|
68
68
|
"sdk.mjs",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"manifest.json",
|
|
79
79
|
"manifest.zst.json"
|
|
80
80
|
],
|
|
81
|
-
"claudeCodeVersion": "2.1.
|
|
81
|
+
"claudeCodeVersion": "2.1.126"
|
|
82
82
|
}
|
package/sdk.d.ts
CHANGED
|
@@ -2340,7 +2340,7 @@ export declare type SDKAssistantMessage = {
|
|
|
2340
2340
|
session_id: string;
|
|
2341
2341
|
};
|
|
2342
2342
|
|
|
2343
|
-
export declare type SDKAssistantMessageError = 'authentication_failed' | 'billing_error' | 'rate_limit' | 'invalid_request' | 'server_error' | 'unknown' | 'max_output_tokens';
|
|
2343
|
+
export declare type SDKAssistantMessageError = 'authentication_failed' | 'oauth_org_not_allowed' | 'billing_error' | 'rate_limit' | 'invalid_request' | 'server_error' | 'unknown' | 'max_output_tokens';
|
|
2344
2344
|
|
|
2345
2345
|
export declare type SDKAuthStatusMessage = {
|
|
2346
2346
|
type: 'auth_status';
|
|
@@ -3131,6 +3131,7 @@ export declare type SDKResultError = {
|
|
|
3131
3131
|
errors: string[];
|
|
3132
3132
|
terminal_reason?: TerminalReason;
|
|
3133
3133
|
fast_mode_state?: FastModeState;
|
|
3134
|
+
origin?: SDKMessageOrigin;
|
|
3134
3135
|
uuid: UUID;
|
|
3135
3136
|
session_id: string;
|
|
3136
3137
|
};
|
|
@@ -3155,6 +3156,7 @@ export declare type SDKResultSuccess = {
|
|
|
3155
3156
|
deferred_tool_use?: SDKDeferredToolUse;
|
|
3156
3157
|
terminal_reason?: TerminalReason;
|
|
3157
3158
|
fast_mode_state?: FastModeState;
|
|
3159
|
+
origin?: SDKMessageOrigin;
|
|
3158
3160
|
uuid: UUID;
|
|
3159
3161
|
session_id: string;
|
|
3160
3162
|
};
|
|
@@ -4992,6 +4994,7 @@ export declare interface Settings {
|
|
|
4992
4994
|
* Reduce or disable animations for accessibility (spinner shimmer, flash effects, etc.)
|
|
4993
4995
|
*/
|
|
4994
4996
|
prefersReducedMotion?: boolean;
|
|
4997
|
+
|
|
4995
4998
|
/**
|
|
4996
4999
|
* Enable auto-memory for this project. When false, Claude will not read from or write to the auto-memory directory.
|
|
4997
5000
|
*/
|
|
@@ -5105,6 +5108,10 @@ export declare interface Settings {
|
|
|
5105
5108
|
* Start Remote Control bridge automatically each session
|
|
5106
5109
|
*/
|
|
5107
5110
|
remoteControlAtStartup?: boolean;
|
|
5111
|
+
/**
|
|
5112
|
+
* Require explicit approval before SendMessage can reach a peer session on another machine via Remote Control
|
|
5113
|
+
*/
|
|
5114
|
+
isolatePeerMachines?: boolean;
|
|
5108
5115
|
/**
|
|
5109
5116
|
* When no background service is running: 'transient' spawns one for this login session; 'ask' offers to install it persistently
|
|
5110
5117
|
*/
|