@anthropic-ai/claude-agent-sdk 0.3.221 → 0.3.222
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 +62 -62
- package/browser-sdk.js +47 -34
- package/manifest.json +21 -21
- package/manifest.zst.json +25 -25
- package/package.json +10 -10
- package/sdk.d.ts +5 -1
- package/sdk.mjs +60 -59
package/manifest.json
CHANGED
|
@@ -1,52 +1,51 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-08-
|
|
2
|
+
"version": "2.1.222",
|
|
3
|
+
"commit": "fbf49312c28437bf9c2546b9ace3bd7b34eb6ff6",
|
|
4
|
+
"buildDate": "2026-08-04T01:46:04Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "c66a6cc6fa2e8145bb1a6e77831f2caf4b83690ff04650500dfa6e2c05ca997c",
|
|
9
|
+
"size": 271289792
|
|
10
10
|
},
|
|
11
11
|
"darwin-x64": {
|
|
12
12
|
"binary": "claude",
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "36bfc6482a25730dbb1cee72589e522c66c45a4dc9ebfdd8a76a8113b01b6188",
|
|
14
|
+
"size": 280847136
|
|
15
15
|
},
|
|
16
16
|
"linux-arm64": {
|
|
17
17
|
"binary": "claude",
|
|
18
|
-
"checksum": "
|
|
19
|
-
"size":
|
|
18
|
+
"checksum": "a04be0a8d7fe0259571ab7411d51d85658d71a4a26ce62b60c908290372e6016",
|
|
19
|
+
"size": 286178232
|
|
20
20
|
},
|
|
21
21
|
"linux-x64": {
|
|
22
22
|
"binary": "claude",
|
|
23
|
-
"checksum": "
|
|
24
|
-
"size":
|
|
23
|
+
"checksum": "10caae8f22b915c26bfff0e013a4d45608c4f1ae287583626569156f447730e5",
|
|
24
|
+
"size": 289467400
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64-musl": {
|
|
27
27
|
"binary": "claude",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "a3c3e3202ae8842a5e9d2b4ce1dcea9fa00d4e0ae27b5b3e8d778332ba3bb23c",
|
|
29
|
+
"size": 279491944
|
|
30
30
|
},
|
|
31
31
|
"linux-x64-musl": {
|
|
32
32
|
"binary": "claude",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "e0b0fb4005e1ac0ebcee136254c638722f1c49e171a23d0843c605d72aac9029",
|
|
34
|
+
"size": 284074576
|
|
35
35
|
},
|
|
36
36
|
"win32-x64": {
|
|
37
37
|
"binary": "claude.exe",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "032cb799d2abfaa6ca440f6458304b9a2a250521063d21ebcea7f3c77c443db7",
|
|
39
|
+
"size": 279014048
|
|
40
40
|
},
|
|
41
41
|
"win32-arm64": {
|
|
42
42
|
"binary": "claude.exe",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
43
|
+
"checksum": "f760aa2782019e55b1e44fda9eddec85ca8499429da87efddd47ab18d4a716a2",
|
|
44
|
+
"size": 273687200
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"sdkCompat": {
|
|
48
48
|
"testedWrapperVersions": [
|
|
49
|
-
"0.3.181",
|
|
50
49
|
"0.3.182",
|
|
51
50
|
"0.3.183",
|
|
52
51
|
"0.3.185",
|
|
@@ -75,7 +74,8 @@
|
|
|
75
74
|
"0.3.215",
|
|
76
75
|
"0.3.217",
|
|
77
76
|
"0.3.218",
|
|
78
|
-
"0.3.220"
|
|
77
|
+
"0.3.220",
|
|
78
|
+
"0.3.221"
|
|
79
79
|
],
|
|
80
80
|
"harnessSchema": 1
|
|
81
81
|
}
|
package/manifest.zst.json
CHANGED
|
@@ -1,60 +1,59 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-08-
|
|
2
|
+
"version": "2.1.222",
|
|
3
|
+
"commit": "fbf49312c28437bf9c2546b9ace3bd7b34eb6ff6",
|
|
4
|
+
"buildDate": "2026-08-04T01:48:06Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude.zst",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "3d9167ec33e7075b37f3a141e95cd53781bae654935b33a0995a1296fca9d86e",
|
|
9
|
+
"size": 54481803,
|
|
10
10
|
"bundle": {
|
|
11
|
-
"checksum": "
|
|
12
|
-
"size":
|
|
11
|
+
"checksum": "e05b161d6c498b136ca4a33dad2cb3d1fb45e44748741e474d908c3bcda09db3",
|
|
12
|
+
"size": 54479945
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"darwin-x64": {
|
|
16
16
|
"binary": "claude.zst",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "3e35e6c90cf98da026bb3263e1b4f8f90f9ae8356b7091f5b3ee40acd133ea55",
|
|
18
|
+
"size": 59125253,
|
|
19
19
|
"bundle": {
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "a70a9a94aa97a61d967f751c95b225224d726032417610eb310c41627dfbf33e",
|
|
21
|
+
"size": 59124389
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"linux-arm64": {
|
|
25
25
|
"binary": "claude.zst",
|
|
26
|
-
"checksum": "
|
|
27
|
-
"size":
|
|
26
|
+
"checksum": "5b45d688c9413d1fab1cfc0fae36f1eac907913aca548a7689d213afdde5f911",
|
|
27
|
+
"size": 63220586
|
|
28
28
|
},
|
|
29
29
|
"linux-x64": {
|
|
30
30
|
"binary": "claude.zst",
|
|
31
|
-
"checksum": "
|
|
32
|
-
"size":
|
|
31
|
+
"checksum": "913436d3e6b4707a022136cf4cdd35894e7b7b9f449a9ffa5caacc94404cacf1",
|
|
32
|
+
"size": 64686089
|
|
33
33
|
},
|
|
34
34
|
"linux-arm64-musl": {
|
|
35
35
|
"binary": "claude.zst",
|
|
36
|
-
"checksum": "
|
|
37
|
-
"size":
|
|
36
|
+
"checksum": "cd6af30a333c74514f2b0855b7bb1460b2f49998921c3180e5bd9b2c73c2db6c",
|
|
37
|
+
"size": 62052400
|
|
38
38
|
},
|
|
39
39
|
"linux-x64-musl": {
|
|
40
40
|
"binary": "claude.zst",
|
|
41
|
-
"checksum": "
|
|
42
|
-
"size":
|
|
41
|
+
"checksum": "3708ff69cf0fc9cd5065d2228cdc862033146104d8be4690717ecf6087f1acd8",
|
|
42
|
+
"size": 63505036
|
|
43
43
|
},
|
|
44
44
|
"win32-x64": {
|
|
45
45
|
"binary": "claude.exe.zst",
|
|
46
|
-
"checksum": "
|
|
47
|
-
"size":
|
|
46
|
+
"checksum": "8fa68c162691c9952df710ab56548ded883d4830644a1fc84dfbc4cce90429c7",
|
|
47
|
+
"size": 64891486
|
|
48
48
|
},
|
|
49
49
|
"win32-arm64": {
|
|
50
50
|
"binary": "claude.exe.zst",
|
|
51
|
-
"checksum": "
|
|
52
|
-
"size":
|
|
51
|
+
"checksum": "917682441d99ce6473a05ec26ce5943a6ced708766c094596a3970eb2eabf543",
|
|
52
|
+
"size": 63016178
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"sdkCompat": {
|
|
56
56
|
"testedWrapperVersions": [
|
|
57
|
-
"0.3.181",
|
|
58
57
|
"0.3.182",
|
|
59
58
|
"0.3.183",
|
|
60
59
|
"0.3.185",
|
|
@@ -83,7 +82,8 @@
|
|
|
83
82
|
"0.3.215",
|
|
84
83
|
"0.3.217",
|
|
85
84
|
"0.3.218",
|
|
86
|
-
"0.3.220"
|
|
85
|
+
"0.3.220",
|
|
86
|
+
"0.3.221"
|
|
87
87
|
],
|
|
88
88
|
"harnessSchema": 1
|
|
89
89
|
}
|
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.222",
|
|
4
4
|
"main": "sdk.mjs",
|
|
5
5
|
"types": "sdk.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
"zod": "^4.0.0"
|
|
58
58
|
},
|
|
59
59
|
"optionalDependencies": {
|
|
60
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.
|
|
61
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.
|
|
62
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.
|
|
63
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.
|
|
64
|
-
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.
|
|
65
|
-
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.
|
|
66
|
-
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.
|
|
67
|
-
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.
|
|
60
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.222",
|
|
61
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.222",
|
|
62
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.222",
|
|
63
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.222",
|
|
64
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.222",
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.222",
|
|
66
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.222",
|
|
67
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.222"
|
|
68
68
|
},
|
|
69
69
|
"files": [
|
|
70
70
|
"sdk.mjs",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"manifest.json",
|
|
81
81
|
"manifest.zst.json"
|
|
82
82
|
],
|
|
83
|
-
"claudeCodeVersion": "2.1.
|
|
83
|
+
"claudeCodeVersion": "2.1.222"
|
|
84
84
|
}
|
package/sdk.d.ts
CHANGED
|
@@ -4107,13 +4107,17 @@ export declare type SDKMirrorErrorMessage = {
|
|
|
4107
4107
|
};
|
|
4108
4108
|
|
|
4109
4109
|
/**
|
|
4110
|
-
* Emitted when the primary model ends the stream with stop_reason "refusal" and the turn is retried once on a fallback model
|
|
4110
|
+
* Emitted when the primary model ends the stream with stop_reason "refusal" and the turn is retried once on a fallback model (direction: "retry"). When `scope` is "session" (or absent — older CLIs), the swap is made persistent for the session; when `scope` is "local", only that subagent/side-question response came from the fallback model and the session model is unchanged. "revert" and "sticky" are retained in the enum for SDK-consumer compat and are no longer emitted.
|
|
4111
4111
|
*/
|
|
4112
4112
|
export declare type SDKModelRefusalFallbackMessage = {
|
|
4113
4113
|
type: 'system';
|
|
4114
4114
|
subtype: 'model_refusal_fallback';
|
|
4115
4115
|
trigger: 'refusal';
|
|
4116
4116
|
direction: 'retry' | 'revert' | 'sticky';
|
|
4117
|
+
/**
|
|
4118
|
+
* 'session': the main thread fell back and the session model is swapped. 'local': a subagent / side-question (/btw) / background fork fell back — only that response came from the fallback model and the session model is unchanged. Absent from older CLIs (treat as 'session').
|
|
4119
|
+
*/
|
|
4120
|
+
scope?: 'session' | 'local';
|
|
4117
4121
|
original_model: string;
|
|
4118
4122
|
fallback_model: string;
|
|
4119
4123
|
request_id: string | null;
|