@anthropic-ai/claude-agent-sdk 0.3.294 → 0.3.295
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 +75 -75
- package/browser-sdk.js +37 -37
- package/{core-z7m2ffy5.mjs → core-reghh1vn.mjs} +9 -9
- package/core-tm6xdb2r.mjs +40 -0
- package/core.mjs +17 -17
- package/manifest.json +20 -20
- package/manifest.zst.json +24 -24
- package/package.json +12 -12
- package/sdk-tools.d.ts +4 -0
- package/sdk.d.ts +16 -3
- package/sdk.mjs +55 -55
- package/core-9fynjcde.mjs +0 -40
package/manifest.json
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
2
|
+
"version": "2.1.295",
|
|
3
3
|
"manifestSignatureEnforcement": "flag",
|
|
4
|
-
"commit": "
|
|
5
|
-
"modsCommit": "
|
|
6
|
-
"buildDate": "2026-10-
|
|
4
|
+
"commit": "07e8f67ea3282bf154a9e05673a0942b1b173cef",
|
|
5
|
+
"modsCommit": "71cdddec623889d38af14b7a489670a03186f659",
|
|
6
|
+
"buildDate": "2026-10-08T17:09:12Z",
|
|
7
7
|
"platforms": {
|
|
8
8
|
"darwin-arm64": {
|
|
9
9
|
"binary": "claude",
|
|
10
|
-
"checksum": "
|
|
11
|
-
"size":
|
|
10
|
+
"checksum": "0116ee2e0a513900b633d9951367f18747686478e2b462805b8c31609f047f70",
|
|
11
|
+
"size": 239695888
|
|
12
12
|
},
|
|
13
13
|
"darwin-x64": {
|
|
14
14
|
"binary": "claude",
|
|
15
|
-
"checksum": "
|
|
16
|
-
"size":
|
|
15
|
+
"checksum": "a6066492288585a1ef5e482cb28ad22714ab12cd48e367c0cee988b00cff724c",
|
|
16
|
+
"size": 248204032
|
|
17
17
|
},
|
|
18
18
|
"linux-arm64": {
|
|
19
19
|
"binary": "claude",
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "cfb9dc1332fb6f92a683f835823e91b3179a803398ca7852cd2381a3cb1dea3b",
|
|
21
|
+
"size": 255516664
|
|
22
22
|
},
|
|
23
23
|
"linux-x64": {
|
|
24
24
|
"binary": "claude",
|
|
25
|
-
"checksum": "
|
|
26
|
-
"size":
|
|
25
|
+
"checksum": "4503bfe11a6c7fcc1e0b39b5e0d347c04248f750b03b0977b3ad6b531fe6f358",
|
|
26
|
+
"size": 256113848
|
|
27
27
|
},
|
|
28
28
|
"linux-arm64-musl": {
|
|
29
29
|
"binary": "claude",
|
|
30
|
-
"checksum": "
|
|
31
|
-
"size":
|
|
30
|
+
"checksum": "dd73a464f8f8c243f78860396f243f19520dd69dca38e6647d0a77a32ecf3cef",
|
|
31
|
+
"size": 247805760
|
|
32
32
|
},
|
|
33
33
|
"linux-x64-musl": {
|
|
34
34
|
"binary": "claude",
|
|
35
|
-
"checksum": "
|
|
36
|
-
"size":
|
|
35
|
+
"checksum": "70eb6517c69b2f5c918bc5645331fc8eeec66d2b8425b62a0e15f34bcb9934db",
|
|
36
|
+
"size": 249860184
|
|
37
37
|
},
|
|
38
38
|
"win32-x64": {
|
|
39
39
|
"binary": "claude.exe",
|
|
40
|
-
"checksum": "
|
|
41
|
-
"size":
|
|
40
|
+
"checksum": "a30012741c3d0b55e2a6c252dab3781134b75be95896ae89d40a93e10f83bcd6",
|
|
41
|
+
"size": 259509920
|
|
42
42
|
},
|
|
43
43
|
"win32-arm64": {
|
|
44
44
|
"binary": "claude.exe",
|
|
45
|
-
"checksum": "
|
|
46
|
-
"size":
|
|
45
|
+
"checksum": "88679adb52e34049497056309b01f9c2cba924b5de838b21ccdf4106e991c84f",
|
|
46
|
+
"size": 247034528
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"sdkCompat": {
|
package/manifest.zst.json
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
2
|
+
"version": "2.1.295",
|
|
3
3
|
"manifestSignatureEnforcement": "flag",
|
|
4
|
-
"commit": "
|
|
5
|
-
"modsCommit": "
|
|
6
|
-
"buildDate": "2026-10-
|
|
4
|
+
"commit": "07e8f67ea3282bf154a9e05673a0942b1b173cef",
|
|
5
|
+
"modsCommit": "71cdddec623889d38af14b7a489670a03186f659",
|
|
6
|
+
"buildDate": "2026-10-08T17:10:20Z",
|
|
7
7
|
"platforms": {
|
|
8
8
|
"darwin-arm64": {
|
|
9
9
|
"binary": "claude.zst",
|
|
10
|
-
"checksum": "
|
|
11
|
-
"size":
|
|
10
|
+
"checksum": "37934434b3ccd48c4fcccfb6a30a0145fffccaba8c8e935e8e3bdff0a35024a9",
|
|
11
|
+
"size": 79774246,
|
|
12
12
|
"bundle": {
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "9d6405864fdc2c957d81adb0fcd0b42f568b4ccc1ab741ba9e5bed581a4f75eb",
|
|
14
|
+
"size": 79800612
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"darwin-x64": {
|
|
18
18
|
"binary": "claude.zst",
|
|
19
|
-
"checksum": "
|
|
20
|
-
"size":
|
|
19
|
+
"checksum": "2568ab3f0572d1753f521d65412501ac71dcba253b2171da4b75ecf5df4cfcf8",
|
|
20
|
+
"size": 84026128,
|
|
21
21
|
"bundle": {
|
|
22
|
-
"checksum": "
|
|
23
|
-
"size":
|
|
22
|
+
"checksum": "476dfdd1664443c67156f200faea54be81ef4a6204de6362e28c81699e71b38f",
|
|
23
|
+
"size": 84029255
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64": {
|
|
27
27
|
"binary": "claude.zst",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "9b32b47ec4b3fa5b884e12b7e130e94338e7787d5db031adf48e1b20e3a893ee",
|
|
29
|
+
"size": 88860590
|
|
30
30
|
},
|
|
31
31
|
"linux-x64": {
|
|
32
32
|
"binary": "claude.zst",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "71164c85f9d226928dec7acda1baf000f1991eb14fcec106536d84bd914032f8",
|
|
34
|
+
"size": 89586953
|
|
35
35
|
},
|
|
36
36
|
"linux-arm64-musl": {
|
|
37
37
|
"binary": "claude.zst",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "727051b35aa357b80e61044044a40e0c5e1c01060eac22902cb249030ae366b7",
|
|
39
|
+
"size": 87276174
|
|
40
40
|
},
|
|
41
41
|
"linux-x64-musl": {
|
|
42
42
|
"binary": "claude.zst",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
43
|
+
"checksum": "e6957660c0b386d31d7fe0c713f879d702558763ea2d76a8194f8206d9c8f436",
|
|
44
|
+
"size": 88025322
|
|
45
45
|
},
|
|
46
46
|
"win32-x64": {
|
|
47
47
|
"binary": "claude.exe.zst",
|
|
48
|
-
"checksum": "
|
|
49
|
-
"size":
|
|
48
|
+
"checksum": "d2e29494ec8335758ec41323495a2c79769a5b4e353cf8465422f63c05235b84",
|
|
49
|
+
"size": 91878666
|
|
50
50
|
},
|
|
51
51
|
"win32-arm64": {
|
|
52
52
|
"binary": "claude.exe.zst",
|
|
53
|
-
"checksum": "
|
|
54
|
-
"size":
|
|
53
|
+
"checksum": "702b01e74299c9fc076f60c6b9df0a4552dcca5fb53cad6a19840ac9520b427c",
|
|
54
|
+
"size": 88231000
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
"sdkCompat": {
|
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.295",
|
|
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.295",
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.295",
|
|
66
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.295",
|
|
67
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.295",
|
|
68
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.295",
|
|
69
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.295",
|
|
70
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.295",
|
|
71
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.295"
|
|
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-reghh1vn.mjs",
|
|
89
|
+
"core-tm6xdb2r.mjs"
|
|
90
90
|
],
|
|
91
|
-
"claudeCodeVersion": "2.1.
|
|
91
|
+
"claudeCodeVersion": "2.1.295"
|
|
92
92
|
}
|
package/sdk-tools.d.ts
CHANGED
package/sdk.d.ts
CHANGED
|
@@ -4852,6 +4852,7 @@ declare type SDKControlPermissionRequest = {
|
|
|
4852
4852
|
|
|
4853
4853
|
|
|
4854
4854
|
|
|
4855
|
+
|
|
4855
4856
|
};
|
|
4856
4857
|
|
|
4857
4858
|
/**
|
|
@@ -5521,6 +5522,8 @@ export declare type SDKPartialAssistantMessage = {
|
|
|
5521
5522
|
ttft_ms?: number;
|
|
5522
5523
|
|
|
5523
5524
|
|
|
5525
|
+
|
|
5526
|
+
|
|
5524
5527
|
/**
|
|
5525
5528
|
* Client uuid of the user message this turn is answering (submitMessage options.uuid), stamped on a non-ping stream event each time that send changes: the turn's FIRST non-ping stream event (normally the frame that triggers the turn's initial ack), and, for a turn started by a synthetic (meta) prompt, the first non-ping stream event after each queued user message folded in mid-turn takes the echo over (see SDKAssistantMessage.user_message_uuid for the rule) — so a consumer can bind the reply stream to the send it answers without waiting for the result. A turn started by a typed prompt stamps only its first non-ping stream event; independently, its first complete assistant message is stamped as well (see SDKAssistantMessage.user_message_uuid), so the same uuid may appear on both. Absent on every other stream event of the turn, on turns that neither had a client uuid nor folded a user message in, and from older producers.
|
|
5526
5529
|
*/
|
|
@@ -5685,6 +5688,7 @@ export declare type SDKRateLimitInfo = {
|
|
|
5685
5688
|
overageDisabledReason?: 'overage_not_provisioned' | 'org_level_disabled' | 'org_level_disabled_until' | 'out_of_credits' | 'seat_tier_level_disabled' | 'member_level_disabled' | 'seat_tier_zero_credit_limit' | 'group_zero_credit_limit' | 'member_zero_credit_limit' | 'org_service_level_disabled' | 'no_limits_configured' | 'fetch_error' | 'unknown';
|
|
5686
5689
|
isUsingOverage?: boolean;
|
|
5687
5690
|
overageInUse?: boolean;
|
|
5691
|
+
overageEnabled?: boolean;
|
|
5688
5692
|
surpassedThreshold?: number;
|
|
5689
5693
|
|
|
5690
5694
|
|
|
@@ -5934,6 +5938,7 @@ export declare type SDKStatusMessage = {
|
|
|
5934
5938
|
compact_error?: string;
|
|
5935
5939
|
|
|
5936
5940
|
|
|
5941
|
+
|
|
5937
5942
|
uuid: UUID;
|
|
5938
5943
|
session_id: string;
|
|
5939
5944
|
};
|
|
@@ -6350,11 +6355,11 @@ export declare type SDKUserMessage = {
|
|
|
6350
6355
|
|
|
6351
6356
|
uuid?: UUID;
|
|
6352
6357
|
/**
|
|
6353
|
-
* Content the user pasted into the prompt rather than typed: each entry a string or an array of content blocks. The CLI appends the text of each entry after the typed text, in order, and may wrap it in `<pasted_content>` tags. Blocks other than text are ignored; send images and documents in `message.content`.
|
|
6358
|
+
* Content the user pasted into the prompt rather than typed: each entry a string or an array of content blocks. The CLI appends the text of each entry after the typed text, in order, and may wrap it in `<pasted_content>` tags. Blocks other than text are ignored; send images and documents in `message.content`. A list of over 1,000 entries and blocks in all is ignored.
|
|
6354
6359
|
*/
|
|
6355
6360
|
pasted_content?: MessageParam['content'][];
|
|
6356
6361
|
/**
|
|
6357
|
-
* Text the user pasted that is still in `message.content` where they put it: each entry one paste. The prompt is not changed by the host; the CLI may wrap each entry in `<pasted_content>` tags where it still stands in the last text block. For a paste the host took out of `message`, use `pasted_content` instead.
|
|
6362
|
+
* Text the user pasted that is still in `message.content` where they put it: each entry one paste. The prompt is not changed by the host; the CLI may wrap each entry in `<pasted_content>` tags where it still stands in the last text block. It looks for the first 100 entries that are not blank. For a paste the host took out of `message`, use `pasted_content` instead.
|
|
6358
6363
|
*/
|
|
6359
6364
|
inline_pastes?: string[];
|
|
6360
6365
|
session_id?: string;
|
|
@@ -7066,6 +7071,10 @@ export declare interface Settings {
|
|
|
7066
7071
|
* Timeout in seconds for this specific command
|
|
7067
7072
|
*/
|
|
7068
7073
|
timeout?: number;
|
|
7074
|
+
/**
|
|
7075
|
+
* What a failure of this hook does: it could not start (a missing script or plugin directory), timed out, exited with a code other than 0 or 2, or printed JSON that is invalid or fails validation. 'continue' (default): the failure is reported and the action goes ahead. 'block': the failure counts as exit code 2, so the action the event guards (a tool call, a permission request, a prompt) is blocked. Ignored for async hooks and on Stop, SubagentStop, TaskCompleted and TeammateIdle.
|
|
7076
|
+
*/
|
|
7077
|
+
onFailure?: 'continue' | 'block';
|
|
7069
7078
|
/**
|
|
7070
7079
|
* Custom status message to display in spinner while hook runs
|
|
7071
7080
|
*/
|
|
@@ -7164,6 +7173,10 @@ export declare interface Settings {
|
|
|
7164
7173
|
* Timeout in seconds for this specific request
|
|
7165
7174
|
*/
|
|
7166
7175
|
timeout?: number;
|
|
7176
|
+
/**
|
|
7177
|
+
* What a failure of this hook does: it could not start (a missing script or plugin directory), timed out, exited with a code other than 0 or 2, or printed JSON that is invalid or fails validation. 'continue' (default): the failure is reported and the action goes ahead. 'block': the failure counts as exit code 2, so the action the event guards (a tool call, a permission request, a prompt) is blocked. Ignored for async hooks and on Stop, SubagentStop, TaskCompleted and TeammateIdle.
|
|
7178
|
+
*/
|
|
7179
|
+
onFailure?: 'continue' | 'block';
|
|
7167
7180
|
/**
|
|
7168
7181
|
* Additional headers to include in the request. Values may reference environment variables using $VAR_NAME or ${VAR_NAME} syntax (e.g., "Authorization": "Bearer $MY_TOKEN"). Only variables listed in allowedEnvVars will be interpolated.
|
|
7169
7182
|
*/
|
|
@@ -8641,7 +8654,7 @@ export declare interface Settings {
|
|
|
8641
8654
|
*/
|
|
8642
8655
|
forceLoginMethod?: 'claudeai' | 'console' | 'gateway';
|
|
8643
8656
|
/**
|
|
8644
|
-
* Cloud gateway URL to pre-fill
|
|
8657
|
+
* Cloud gateway URL to pre-fill during login, alongside forceLoginMethod: "gateway". Honored from admin-controlled managed settings (MDM / managed-settings.json / policy helper) and, on a machine with none of those, from your own user settings; ignored in project, local, flag, and remote-delivered settings.
|
|
8645
8658
|
*/
|
|
8646
8659
|
forceLoginGatewayUrl?: string;
|
|
8647
8660
|
/**
|