@anthropic-ai/claude-agent-sdk 0.3.146 → 0.3.148
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 +107 -105
- package/bridge.mjs +83 -81
- package/browser-sdk.js +2 -2
- package/manifest.json +19 -19
- package/manifest.zst.json +23 -23
- package/package.json +10 -10
- package/sdk.d.ts +19 -3
- package/sdk.mjs +45 -45
package/manifest.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-05-
|
|
2
|
+
"version": "2.1.148",
|
|
3
|
+
"commit": "650a3d6e4b17f2fd01a8432a7691d9fb147adf8d",
|
|
4
|
+
"buildDate": "2026-05-21T23:11:38Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "f4a1860d3d9b01653dde4183e2f1216ca9e0c1a404dd63caa4edf07c904102aa",
|
|
9
|
+
"size": 211584672
|
|
10
10
|
},
|
|
11
11
|
"darwin-x64": {
|
|
12
12
|
"binary": "claude",
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "7c52d8419cc22b8355c6309d4542df32b3f245d1a7c3329a30797244ef3c4629",
|
|
14
|
+
"size": 214082320
|
|
15
15
|
},
|
|
16
16
|
"linux-arm64": {
|
|
17
17
|
"binary": "claude",
|
|
18
|
-
"checksum": "
|
|
19
|
-
"size":
|
|
18
|
+
"checksum": "b53c29b1fe003372636048c16d57a74f1ca2c57d8413dd5b14e2ca77710823ed",
|
|
19
|
+
"size": 236959368
|
|
20
20
|
},
|
|
21
21
|
"linux-x64": {
|
|
22
22
|
"binary": "claude",
|
|
23
|
-
"checksum": "
|
|
24
|
-
"size":
|
|
23
|
+
"checksum": "3b38836a1801a6397f8431c6a62b127ce47e3e9d103c1a700fca7f9c8ab5f8ac",
|
|
24
|
+
"size": 237037264
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64-musl": {
|
|
27
27
|
"binary": "claude",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "06b54aef9989ea379933239c3f2dbee254034523ff67f9a0c8ed31ac6982c077",
|
|
29
|
+
"size": 229814104
|
|
30
30
|
},
|
|
31
31
|
"linux-x64-musl": {
|
|
32
32
|
"binary": "claude",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "ad0077c9ec67ec2eaeee8be7624cc2e55b9e012e1c19154e5b80ef0a47d0e360",
|
|
34
|
+
"size": 231431216
|
|
35
35
|
},
|
|
36
36
|
"win32-x64": {
|
|
37
37
|
"binary": "claude.exe",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "1bb46bdb06ef092b0af29cafbfec6ab73251ea34562cfe1d3a5bdf67fe3a5f93",
|
|
39
|
+
"size": 232827552
|
|
40
40
|
},
|
|
41
41
|
"win32-arm64": {
|
|
42
42
|
"binary": "claude.exe",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
43
|
+
"checksum": "d86eeb4d84a2bbee253913843a4a507192a37512a2d918a4c91e3f583cb310a5",
|
|
44
|
+
"size": 228792992
|
|
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-05-
|
|
2
|
+
"version": "2.1.148",
|
|
3
|
+
"commit": "650a3d6e4b17f2fd01a8432a7691d9fb147adf8d",
|
|
4
|
+
"buildDate": "2026-05-21T23:19:25Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude.zst",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "cbb332101752042b48f8afff379ca5ba2f2c88cd28cb9b551fadccd7249af847",
|
|
9
|
+
"size": 43811713,
|
|
10
10
|
"bundle": {
|
|
11
|
-
"checksum": "
|
|
12
|
-
"size":
|
|
11
|
+
"checksum": "e1cddbe12614814a7eea85c3da3bd5eb9e8c929a5627efd6c289922b406e38ec",
|
|
12
|
+
"size": 43807431
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"darwin-x64": {
|
|
16
16
|
"binary": "claude.zst",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "4799a5c7a0cae82c27b231f596d3f958155ecd095ebd2439e39adae63c6c46ba",
|
|
18
|
+
"size": 45712684,
|
|
19
19
|
"bundle": {
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "af5335b1be1d801e178cfe409a42f6660c2a64b3d54fa35c3d1d8877c3005922",
|
|
21
|
+
"size": 45722868
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"linux-arm64": {
|
|
25
25
|
"binary": "claude.zst",
|
|
26
|
-
"checksum": "
|
|
27
|
-
"size":
|
|
26
|
+
"checksum": "514f371de6bbd24c0ae3b7cc76e5a9149ac2fc7a34ad90571cf403e305b92629",
|
|
27
|
+
"size": 51535302
|
|
28
28
|
},
|
|
29
29
|
"linux-x64": {
|
|
30
30
|
"binary": "claude.zst",
|
|
31
|
-
"checksum": "
|
|
32
|
-
"size":
|
|
31
|
+
"checksum": "cc25e702c43cbb618578402ca7ecc516aad3629f4962542bd5b4a36e42c525c6",
|
|
32
|
+
"size": 52151886
|
|
33
33
|
},
|
|
34
34
|
"linux-arm64-musl": {
|
|
35
35
|
"binary": "claude.zst",
|
|
36
|
-
"checksum": "
|
|
37
|
-
"size":
|
|
36
|
+
"checksum": "3f043d6a1599fc07e2b671e9c4141c0b7fed79bedf1de461088cc8f87cadf862",
|
|
37
|
+
"size": 50165954
|
|
38
38
|
},
|
|
39
39
|
"linux-x64-musl": {
|
|
40
40
|
"binary": "claude.zst",
|
|
41
|
-
"checksum": "
|
|
42
|
-
"size":
|
|
41
|
+
"checksum": "5c996f1a8b26f25eb5eafa29ed6be41c103cc08e3812bbe075cd5ed551db3acc",
|
|
42
|
+
"size": 50891425
|
|
43
43
|
},
|
|
44
44
|
"win32-x64": {
|
|
45
45
|
"binary": "claude.exe.zst",
|
|
46
|
-
"checksum": "
|
|
47
|
-
"size":
|
|
46
|
+
"checksum": "916a7e2283a2dd4667698e61750aab338b896e15b6e9dbb8e2bd02185516618e",
|
|
47
|
+
"size": 52891824
|
|
48
48
|
},
|
|
49
49
|
"win32-arm64": {
|
|
50
50
|
"binary": "claude.exe.zst",
|
|
51
|
-
"checksum": "
|
|
52
|
-
"size":
|
|
51
|
+
"checksum": "425d2e50e3908ba85592b359783d463a31cbd7254ff01f86f006fc29360ad797",
|
|
52
|
+
"size": 51187630
|
|
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.3.
|
|
3
|
+
"version": "0.3.148",
|
|
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.148",
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.148",
|
|
66
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.148",
|
|
67
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.148",
|
|
68
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.148",
|
|
69
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.148",
|
|
70
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.148",
|
|
71
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.148"
|
|
72
72
|
},
|
|
73
73
|
"files": [
|
|
74
74
|
"sdk.mjs",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"manifest.json",
|
|
87
87
|
"manifest.zst.json"
|
|
88
88
|
],
|
|
89
|
-
"claudeCodeVersion": "2.1.
|
|
89
|
+
"claudeCodeVersion": "2.1.148"
|
|
90
90
|
}
|
package/sdk.d.ts
CHANGED
|
@@ -988,6 +988,10 @@ export declare type McpClaudeAIProxyServerConfig = {
|
|
|
988
988
|
type: 'claudeai-proxy';
|
|
989
989
|
url: string;
|
|
990
990
|
id: string;
|
|
991
|
+
/**
|
|
992
|
+
* Per-server tool-call timeout in milliseconds. Overrides the MCP_TOOL_TIMEOUT environment variable for this server. Hard wall-clock limit per call; progress notifications do not extend it. Floored at 1000ms.
|
|
993
|
+
*/
|
|
994
|
+
timeout?: number;
|
|
991
995
|
};
|
|
992
996
|
|
|
993
997
|
export declare type McpHttpServerConfig = {
|
|
@@ -995,6 +999,10 @@ export declare type McpHttpServerConfig = {
|
|
|
995
999
|
url: string;
|
|
996
1000
|
headers?: Record<string, string>;
|
|
997
1001
|
tools?: McpServerToolPolicy[];
|
|
1002
|
+
/**
|
|
1003
|
+
* Per-server tool-call timeout in milliseconds. Overrides the MCP_TOOL_TIMEOUT environment variable for this server. Hard wall-clock limit per call; progress notifications do not extend it. Floored at 1000ms.
|
|
1004
|
+
*/
|
|
1005
|
+
timeout?: number;
|
|
998
1006
|
/**
|
|
999
1007
|
* When true, all tools from this server are always included in the prompt and never deferred behind tool search. Equivalent to setting defer_loading: false on the API. Default: tools are deferred when tool search is enabled. As a side effect this also blocks startup until the server is connected (capped at the standard 5s connect timeout) even though MCP startup is otherwise non-blocking by default, since the tools must be present when the turn-1 prompt is built.
|
|
1000
1008
|
*/
|
|
@@ -1101,6 +1109,10 @@ export declare type McpSSEServerConfig = {
|
|
|
1101
1109
|
url: string;
|
|
1102
1110
|
headers?: Record<string, string>;
|
|
1103
1111
|
tools?: McpServerToolPolicy[];
|
|
1112
|
+
/**
|
|
1113
|
+
* Per-server tool-call timeout in milliseconds. Overrides the MCP_TOOL_TIMEOUT environment variable for this server. Hard wall-clock limit per call; progress notifications do not extend it. Floored at 1000ms.
|
|
1114
|
+
*/
|
|
1115
|
+
timeout?: number;
|
|
1104
1116
|
/**
|
|
1105
1117
|
* When true, all tools from this server are always included in the prompt and never deferred behind tool search. Equivalent to setting defer_loading: false on the API. Default: tools are deferred when tool search is enabled. As a side effect this also blocks startup until the server is connected (capped at the standard 5s connect timeout) even though MCP startup is otherwise non-blocking by default, since the tools must be present when the turn-1 prompt is built.
|
|
1106
1118
|
*/
|
|
@@ -1113,6 +1125,10 @@ export declare type McpStdioServerConfig = {
|
|
|
1113
1125
|
command: string;
|
|
1114
1126
|
args?: string[];
|
|
1115
1127
|
env?: Record<string, string>;
|
|
1128
|
+
/**
|
|
1129
|
+
* Per-server tool-call timeout in milliseconds. Overrides the MCP_TOOL_TIMEOUT environment variable for this server. Hard wall-clock limit per call; progress notifications do not extend it. Floored at 1000ms.
|
|
1130
|
+
*/
|
|
1131
|
+
timeout?: number;
|
|
1116
1132
|
/**
|
|
1117
1133
|
* When true, all tools from this server are always included in the prompt and never deferred behind tool search. Equivalent to setting defer_loading: false on the API. Default: tools are deferred when tool search is enabled. As a side effect this also blocks startup until the server is connected (capped at the standard 5s connect timeout) even though MCP startup is otherwise non-blocking by default, since the tools must be present when the turn-1 prompt is built.
|
|
1118
1134
|
*/
|
|
@@ -3205,12 +3221,12 @@ export declare type SDKMemoryRecallMessage = {
|
|
|
3205
3221
|
mode: 'select' | 'synthesize';
|
|
3206
3222
|
memories: {
|
|
3207
3223
|
/**
|
|
3208
|
-
* Absolute path to the memory file,
|
|
3224
|
+
* Absolute path to the memory file, a synthesis sentinel of the form `<synthesis:DIR>` when mode is 'synthesize', or an https URL when scope is 'organization'.
|
|
3209
3225
|
*/
|
|
3210
3226
|
path: string;
|
|
3211
|
-
scope: 'personal' | 'team';
|
|
3227
|
+
scope: 'personal' | 'team' | 'organization';
|
|
3212
3228
|
/**
|
|
3213
|
-
*
|
|
3229
|
+
* The surfaced memory body. Always present for 'synthesize' mode and 'organization' scope (neither has an on-disk path to lazy-load from); absent for file-backed 'select' entries (renderers lazy-load from path).
|
|
3214
3230
|
*/
|
|
3215
3231
|
content?: string;
|
|
3216
3232
|
}[];
|