@anthropic-ai/claude-agent-sdk 0.3.235 → 0.3.237
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 +73 -73
- package/browser-sdk.js +36 -36
- package/manifest.json +19 -21
- package/manifest.zst.json +23 -25
- package/package.json +10 -10
- package/sdk-tools.d.ts +5 -4
- package/sdk.d.ts +7 -0
- package/sdk.mjs +74 -74
package/manifest.json
CHANGED
|
@@ -1,53 +1,51 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-08-
|
|
2
|
+
"version": "2.1.237",
|
|
3
|
+
"commit": "45590910f0b746ddad3fe7d8135c5c29b33ccf88",
|
|
4
|
+
"buildDate": "2026-08-19T22:55:17Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "338901351d4ff17495738c67fc3e12a32c1b506738ac5e012eb782d3d8b5be43",
|
|
9
|
+
"size": 317110288
|
|
10
10
|
},
|
|
11
11
|
"darwin-x64": {
|
|
12
12
|
"binary": "claude",
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "9f00789754a7b95febc6d4e37a3b6523d4d9c4c2333a2ce4bd596ad82186224e",
|
|
14
|
+
"size": 325793008
|
|
15
15
|
},
|
|
16
16
|
"linux-arm64": {
|
|
17
17
|
"binary": "claude",
|
|
18
|
-
"checksum": "
|
|
19
|
-
"size":
|
|
18
|
+
"checksum": "a701cfb6bb4703abc6f3ce47508c878ca8158ebdbeacd5c35c7d510c7bc70177",
|
|
19
|
+
"size": 331864296
|
|
20
20
|
},
|
|
21
21
|
"linux-x64": {
|
|
22
22
|
"binary": "claude",
|
|
23
|
-
"checksum": "
|
|
24
|
-
"size":
|
|
23
|
+
"checksum": "73975167f0108693cf6fd6614994781657ebb8456ebef5d247458734abfb3916",
|
|
24
|
+
"size": 334715184
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64-musl": {
|
|
27
27
|
"binary": "claude",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "60d832e81dd5076333e9f91286f660f2aaacc630079863599555caa8fe134eba",
|
|
29
|
+
"size": 325009176
|
|
30
30
|
},
|
|
31
31
|
"linux-x64-musl": {
|
|
32
32
|
"binary": "claude",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "b2c81ba8f2b0086b2536a56bf074bbf643043c2bd1aeea6ac8905709ae296168",
|
|
34
|
+
"size": 328843232
|
|
35
35
|
},
|
|
36
36
|
"win32-x64": {
|
|
37
37
|
"binary": "claude.exe",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "406167231b3636e55a01d0ce93567256c61e7973489e645883302f14808ae668",
|
|
39
|
+
"size": 330167456
|
|
40
40
|
},
|
|
41
41
|
"win32-arm64": {
|
|
42
42
|
"binary": "claude.exe",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
43
|
+
"checksum": "35978113ca98721cbf14c3abac90482d467419b9669d849c89d91c5664a5f95d",
|
|
44
|
+
"size": 318066848
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"sdkCompat": {
|
|
48
48
|
"testedWrapperVersions": [
|
|
49
|
-
"0.3.197",
|
|
50
|
-
"0.3.198",
|
|
51
49
|
"0.3.199",
|
|
52
50
|
"0.3.200",
|
|
53
51
|
"0.3.201",
|
package/manifest.zst.json
CHANGED
|
@@ -1,61 +1,59 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-08-
|
|
2
|
+
"version": "2.1.237",
|
|
3
|
+
"commit": "45590910f0b746ddad3fe7d8135c5c29b33ccf88",
|
|
4
|
+
"buildDate": "2026-08-19T22:57:46Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude.zst",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "6bdfd8d555fa5e42e7e4f155e5706f03cd47082d093bdcecd2980c9541cba64c",
|
|
9
|
+
"size": 63485985,
|
|
10
10
|
"bundle": {
|
|
11
|
-
"checksum": "
|
|
12
|
-
"size":
|
|
11
|
+
"checksum": "766ad312a75062e5761a190cf6d9a91129300f8d58502b1af70e301905004811",
|
|
12
|
+
"size": 63491494
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"darwin-x64": {
|
|
16
16
|
"binary": "claude.zst",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "c362bc2dbb47a963b2f73ae30766770073fa04dccc08f75646b5f3c1fdbba97f",
|
|
18
|
+
"size": 68099586,
|
|
19
19
|
"bundle": {
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "b0ed2bbb50025cdc930c25c210064b23e4e39c784971fb8ddc44f4019dac6cbf",
|
|
21
|
+
"size": 68104413
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"linux-arm64": {
|
|
25
25
|
"binary": "claude.zst",
|
|
26
|
-
"checksum": "
|
|
27
|
-
"size":
|
|
26
|
+
"checksum": "c0fd5f3d315d7f2e81559f417a44e36dfe60d357f6a940a40cd532e08520fd0e",
|
|
27
|
+
"size": 72222417
|
|
28
28
|
},
|
|
29
29
|
"linux-x64": {
|
|
30
30
|
"binary": "claude.zst",
|
|
31
|
-
"checksum": "
|
|
32
|
-
"size":
|
|
31
|
+
"checksum": "8901b24ccb274870109f6d89c3477e510565b86be656b31f655b03afcf197132",
|
|
32
|
+
"size": 73401339
|
|
33
33
|
},
|
|
34
34
|
"linux-arm64-musl": {
|
|
35
35
|
"binary": "claude.zst",
|
|
36
|
-
"checksum": "
|
|
37
|
-
"size":
|
|
36
|
+
"checksum": "01a70d3df6f417ff8dd64ae3ec57200d67abfef2647ae93951caaddd91bc1a8c",
|
|
37
|
+
"size": 70749737
|
|
38
38
|
},
|
|
39
39
|
"linux-x64-musl": {
|
|
40
40
|
"binary": "claude.zst",
|
|
41
|
-
"checksum": "
|
|
42
|
-
"size":
|
|
41
|
+
"checksum": "56dc1ece68b81ff0e6edc4f4b8437643a0cbad8f2cee84ea02a62cff554795bd",
|
|
42
|
+
"size": 72063095
|
|
43
43
|
},
|
|
44
44
|
"win32-x64": {
|
|
45
45
|
"binary": "claude.exe.zst",
|
|
46
|
-
"checksum": "
|
|
47
|
-
"size":
|
|
46
|
+
"checksum": "85ddfcf80b7a918b6707e6d3d611223f986c2c4e9b9c493206fd9807fa476a6d",
|
|
47
|
+
"size": 75828267
|
|
48
48
|
},
|
|
49
49
|
"win32-arm64": {
|
|
50
50
|
"binary": "claude.exe.zst",
|
|
51
|
-
"checksum": "
|
|
52
|
-
"size":
|
|
51
|
+
"checksum": "3018bba62073b6dd813aa1aa0ff4133f653ae5fbccd07ae6c6abc56cc64c9968",
|
|
52
|
+
"size": 72228518
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"sdkCompat": {
|
|
56
56
|
"testedWrapperVersions": [
|
|
57
|
-
"0.3.197",
|
|
58
|
-
"0.3.198",
|
|
59
57
|
"0.3.199",
|
|
60
58
|
"0.3.200",
|
|
61
59
|
"0.3.201",
|
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.237",
|
|
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.237",
|
|
61
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.237",
|
|
62
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.237",
|
|
63
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.237",
|
|
64
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.237",
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.237",
|
|
66
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.237",
|
|
67
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.237"
|
|
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.237"
|
|
84
84
|
}
|
package/sdk-tools.d.ts
CHANGED
|
@@ -401,6 +401,7 @@ export type ArtifactOutput =
|
|
|
401
401
|
| {
|
|
402
402
|
url: string;
|
|
403
403
|
path: string;
|
|
404
|
+
artifact_id?: string;
|
|
404
405
|
title?: string;
|
|
405
406
|
version?: string;
|
|
406
407
|
capabilities?: unknown;
|
|
@@ -2966,13 +2967,13 @@ export interface ArtifactInput {
|
|
|
2966
2967
|
*/
|
|
2967
2968
|
force?: boolean;
|
|
2968
2969
|
/**
|
|
2969
|
-
* read_asset
|
|
2970
|
+
* read_asset: directory to save the file into (default: the working directory); the file is named by the asset id plus the extension for its type.
|
|
2970
2971
|
*/
|
|
2971
|
-
|
|
2972
|
+
out_dir?: string;
|
|
2972
2973
|
/**
|
|
2973
|
-
* read_asset
|
|
2974
|
+
* read_asset and delete_asset: the asset's id (32 hex characters), from a list_assets or upload_asset result.
|
|
2974
2975
|
*/
|
|
2975
|
-
|
|
2976
|
+
asset_id?: string;
|
|
2976
2977
|
/**
|
|
2977
2978
|
* list_assets only: the `next` value from a previous list_assets result, to continue that listing.
|
|
2978
2979
|
*/
|
package/sdk.d.ts
CHANGED
|
@@ -2330,6 +2330,10 @@ export declare type PostToolUseHookInput = BaseHookInput & {
|
|
|
2330
2330
|
export declare type PostToolUseHookSpecificOutput = {
|
|
2331
2331
|
hookEventName: 'PostToolUse';
|
|
2332
2332
|
additionalContext?: string;
|
|
2333
|
+
/**
|
|
2334
|
+
* Host-asserted context shown to the auto-mode permission classifier alongside this tool call's result. In the live session the classifier may weigh a user statement relayed here as user intent (it can satisfy a consent bar a user turn would satisfy, never a hard boundary); values restored from saved session state are treated as unverified context only. Relay discipline is the host's obligation: put ONLY genuine user statements in intent-bearing positions — never tool output or model text dressed as one. Capped at 2000 UTF-16 code units, a budget shared across all hooks that contribute to one call (surrogate-pair-safe; emoji and other astral characters count as two). Honored on synchronous hook responses only: an async hook's late response arrives after the result message is frozen and this field in it is silently ignored. Security note: do not copy untrusted tool output or third-party text into it blindly — content placed here reaches the permission classifier with host-application framing. Applies only to calls the classifier transcript shows: read-only lookups the transcript omits (file reads, searches), inner REPL calls, and remote-engine shells produce no per-result line, and context attached to them is silently unused. Not a delivery channel: it is bound to a single call id and sized for a short assertion, not for relaying messages or events. Rewrite integrity: if this assertion describes output you are rewriting, return it in the SAME hook result as the rewrite — it is then dropped automatically if your rewrite is rejected or superseded by a later hook's rewrite; assertions returned without a rewrite are never invalidated by other hooks' rewrites, so a non-rewriting hook should assert only what holds regardless of other hooks' rewrites — hosts that need an assertion bound to exact output bytes should make it in the hook that produces those bytes. (Do NOT return an identity rewrite just to pair an assertion: hooks run in parallel on the ORIGINAL output, so an identity rewrite competes last-write-wins with sibling rewrites and can clobber a real redaction.)
|
|
2335
|
+
*/
|
|
2336
|
+
classifierContext?: string;
|
|
2333
2337
|
/**
|
|
2334
2338
|
* Replaces the tool output before it is sent to the model
|
|
2335
2339
|
*/
|
|
@@ -3095,6 +3099,7 @@ export declare type SDKAssistantMessage = {
|
|
|
3095
3099
|
|
|
3096
3100
|
|
|
3097
3101
|
|
|
3102
|
+
|
|
3098
3103
|
};
|
|
3099
3104
|
|
|
3100
3105
|
export declare type SDKAssistantMessageError = 'authentication_failed' | 'oauth_org_not_allowed' | 'account_on_hold' | 'billing_error' | 'rate_limit' | 'overloaded' | 'invalid_request' | 'model_not_found' | 'server_error' | 'unknown' | 'max_output_tokens';
|
|
@@ -4184,6 +4189,8 @@ declare type SDKHookCallbackRequest = {
|
|
|
4184
4189
|
callback_id: string;
|
|
4185
4190
|
input: coreTypes.HookInput;
|
|
4186
4191
|
tool_use_id?: string;
|
|
4192
|
+
|
|
4193
|
+
|
|
4187
4194
|
};
|
|
4188
4195
|
|
|
4189
4196
|
export declare type SDKHookProgressMessage = {
|