@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/manifest.json CHANGED
@@ -1,52 +1,51 @@
1
1
  {
2
- "version": "2.1.221",
3
- "commit": "6efaf12e8b43dc7dbe50e0955c76dc4174a15876",
4
- "buildDate": "2026-08-03T21:08:11Z",
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": "7a181f36ed0fc4fbac6cee4ecf2b615eff93d8b434221fff5d7c878dc5ebf380",
9
- "size": 270518240
8
+ "checksum": "c66a6cc6fa2e8145bb1a6e77831f2caf4b83690ff04650500dfa6e2c05ca997c",
9
+ "size": 271289792
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "f408b9f7e46439f6e34a3687ff67433fc6bc189f40220ce4f0a1e829e58f0a52",
14
- "size": 280087584
13
+ "checksum": "36bfc6482a25730dbb1cee72589e522c66c45a4dc9ebfdd8a76a8113b01b6188",
14
+ "size": 280847136
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "d3c59d6bcc4adcf4cd85abca3bc13fa1131a34cb32f982bdf030d83a3b11e700",
19
- "size": 285457336
18
+ "checksum": "a04be0a8d7fe0259571ab7411d51d85658d71a4a26ce62b60c908290372e6016",
19
+ "size": 286178232
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "60db8e88d42c24b5199c92cfd56ec88370c510c3789c6f364af748354f087ada",
24
- "size": 288705544
23
+ "checksum": "10caae8f22b915c26bfff0e013a4d45608c4f1ae287583626569156f447730e5",
24
+ "size": 289467400
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "85985afd58d33578efd217788dd9e5cbbc0177ad00e638d9316c6fd89640f3ff",
29
- "size": 278771048
28
+ "checksum": "a3c3e3202ae8842a5e9d2b4ce1dcea9fa00d4e0ae27b5b3e8d778332ba3bb23c",
29
+ "size": 279491944
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "15b068e06eafff9b64583b46cdc065ac18b0d0d13950c2a83c6ee854f301a32f",
34
- "size": 283312720
33
+ "checksum": "e0b0fb4005e1ac0ebcee136254c638722f1c49e171a23d0843c605d72aac9029",
34
+ "size": 284074576
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "0f73196359a07f9ad435a8c83ca7c741b9f2adbc0ad9b05f71a0c2f4aabe906a",
39
- "size": 278279328
38
+ "checksum": "032cb799d2abfaa6ca440f6458304b9a2a250521063d21ebcea7f3c77c443db7",
39
+ "size": 279014048
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "1407585e0c33a70061d6ea7cb873b8582dcedbe928d2118982676f1951576a58",
44
- "size": 272952480
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.221",
3
- "commit": "6efaf12e8b43dc7dbe50e0955c76dc4174a15876",
4
- "buildDate": "2026-08-03T21:10:16Z",
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": "3cc00a82f60d6be3d57a13360ac4cb544c44420c744238df7ff03956e3323184",
9
- "size": 54310824,
8
+ "checksum": "3d9167ec33e7075b37f3a141e95cd53781bae654935b33a0995a1296fca9d86e",
9
+ "size": 54481803,
10
10
  "bundle": {
11
- "checksum": "e3627fb90b70c823fd6b1afea5b3747ba8a66925dcc7f20f89b1eaa14c1e5af0",
12
- "size": 54313524
11
+ "checksum": "e05b161d6c498b136ca4a33dad2cb3d1fb45e44748741e474d908c3bcda09db3",
12
+ "size": 54479945
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "b000bac7919e0e5314369a888286eef1f51e7ae7c299725d1ad669b89186aa82",
18
- "size": 58952796,
17
+ "checksum": "3e35e6c90cf98da026bb3263e1b4f8f90f9ae8356b7091f5b3ee40acd133ea55",
18
+ "size": 59125253,
19
19
  "bundle": {
20
- "checksum": "5c9b3639bce10bec691a944c105890d1f96c5e69ddadc2d7759bd5ab64ec83b8",
21
- "size": 58953965
20
+ "checksum": "a70a9a94aa97a61d967f751c95b225224d726032417610eb310c41627dfbf33e",
21
+ "size": 59124389
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "4ddd9f096f81f25deecf63cc4c74bfa1c54ed31510b808f44fc5d8182d326bec",
27
- "size": 63194178
26
+ "checksum": "5b45d688c9413d1fab1cfc0fae36f1eac907913aca548a7689d213afdde5f911",
27
+ "size": 63220586
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "d8a43ae3cea71283d1d228937735c47f5b533829ce7a725ee081a5a72510ab41",
32
- "size": 64369245
31
+ "checksum": "913436d3e6b4707a022136cf4cdd35894e7b7b9f449a9ffa5caacc94404cacf1",
32
+ "size": 64686089
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "7a7a529aaf23aaf6e2a05430342a43db2c7ab4b881731e1b91adbe95916673db",
37
- "size": 61825337
36
+ "checksum": "cd6af30a333c74514f2b0855b7bb1460b2f49998921c3180e5bd9b2c73c2db6c",
37
+ "size": 62052400
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "ec32162ba30a8dff3f90f147a2c73db5cc46c5b47daf30337433928d26549738",
42
- "size": 63188804
41
+ "checksum": "3708ff69cf0fc9cd5065d2228cdc862033146104d8be4690717ecf6087f1acd8",
42
+ "size": 63505036
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "4a68cb0cbe8e4e726c49d48df1465f38d026492367151be64d48dc6d7ea3bd6f",
47
- "size": 64602024
46
+ "checksum": "8fa68c162691c9952df710ab56548ded883d4830644a1fc84dfbc4cce90429c7",
47
+ "size": 64891486
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "abd504266dbf91d10ba61da699ea22ca00b99d7e91e62f9e520d99eb90c9eedf",
52
- "size": 62745683
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.221",
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.221",
61
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.221",
62
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.221",
63
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.221",
64
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.221",
65
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.221",
66
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.221",
67
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.221"
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.221"
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 with the swap made persistent for the session (direction: "retry"). "revert" and "sticky" are retained in the enum for SDK-consumer compat and are no longer emitted.
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;