@anthropic-ai/claude-agent-sdk 0.3.142 → 0.3.143
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 +81 -81
- package/bridge.mjs +59 -59
- package/browser-sdk.js +21 -21
- package/manifest.json +19 -19
- package/manifest.zst.json +23 -23
- package/package.json +12 -14
- package/sdk.d.ts +8 -1
- package/sdk.mjs +42 -42
package/manifest.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-05-
|
|
2
|
+
"version": "2.1.143",
|
|
3
|
+
"commit": "cfb8132e4c3551e2773f41a1900efd1cc93637db",
|
|
4
|
+
"buildDate": "2026-05-15T17:47:13Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "2701c6cfd68483f8faf0316a1ba6481a1455a90645ada179f0c48d8c36d722ef",
|
|
9
|
+
"size": 207605280
|
|
10
10
|
},
|
|
11
11
|
"darwin-x64": {
|
|
12
12
|
"binary": "claude",
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "bc8ff4ce02b765a033808fb596f9522306cbe5c50d21344ed8752c08966f362c",
|
|
14
|
+
"size": 210119440
|
|
15
15
|
},
|
|
16
16
|
"linux-arm64": {
|
|
17
17
|
"binary": "claude",
|
|
18
|
-
"checksum": "
|
|
19
|
-
"size":
|
|
18
|
+
"checksum": "32e8edc4a5c3c41d18607c75d1b8e7bec643330c03e266be46ac3b41a446c4eb",
|
|
19
|
+
"size": 232961672
|
|
20
20
|
},
|
|
21
21
|
"linux-x64": {
|
|
22
22
|
"binary": "claude",
|
|
23
|
-
"checksum": "
|
|
24
|
-
"size":
|
|
23
|
+
"checksum": "f75fdc3ff9d9cd494b86192f9e349b5c5c6d3970ed4d5cd5c7b330c5a2b1dcc4",
|
|
24
|
+
"size": 233088720
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64-musl": {
|
|
27
27
|
"binary": "claude",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "e68903ec56ddd5560bb0820c96c8f7a4193e7eab6236ede56cb2e05f450ce44f",
|
|
29
|
+
"size": 225816408
|
|
30
30
|
},
|
|
31
31
|
"linux-x64-musl": {
|
|
32
32
|
"binary": "claude",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "e4cb8588ed6e38f9920bdaa2611263d4a0b0d11300f1d23945df234fdf5e278a",
|
|
34
|
+
"size": 227482672
|
|
35
35
|
},
|
|
36
36
|
"win32-x64": {
|
|
37
37
|
"binary": "claude.exe",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "e480244f2a4660fe76ed32442c1e3e2edda8fb5433417e73faba39f0e7f69eb6",
|
|
39
|
+
"size": 228902560
|
|
40
40
|
},
|
|
41
41
|
"win32-arm64": {
|
|
42
42
|
"binary": "claude.exe",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
43
|
+
"checksum": "5cbad78d2f316fedd0d621289aae558aaf259b404d0a46e0e49662ef3b397986",
|
|
44
|
+
"size": 224866976
|
|
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.143",
|
|
3
|
+
"commit": "cfb8132e4c3551e2773f41a1900efd1cc93637db",
|
|
4
|
+
"buildDate": "2026-05-15T17:54:02Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude.zst",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "de2803764796c6b908c203b330c4aa152be67291b85afb11777a9705b9f3133a",
|
|
9
|
+
"size": 42998050,
|
|
10
10
|
"bundle": {
|
|
11
|
-
"checksum": "
|
|
12
|
-
"size":
|
|
11
|
+
"checksum": "ed3695422acd6338ab038aa0964b00c98d6e2cd0b17bb5b482d5f66082294038",
|
|
12
|
+
"size": 43008215
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"darwin-x64": {
|
|
16
16
|
"binary": "claude.zst",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "e0c65fc323f611df3d5093f8f21494a6f811f39de7f28bf93b552902f1fe9abf",
|
|
18
|
+
"size": 44914712,
|
|
19
19
|
"bundle": {
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "f89d54e92a526eab1c1441ad716941c8c20462809d692ae5a03d29fc475913e6",
|
|
21
|
+
"size": 44916790
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"linux-arm64": {
|
|
25
25
|
"binary": "claude.zst",
|
|
26
|
-
"checksum": "
|
|
27
|
-
"size":
|
|
26
|
+
"checksum": "81e45b0efc7cf75298912cbcf953d366f1937c7573fbc3457508cb9022c21bb1",
|
|
27
|
+
"size": 50768400
|
|
28
28
|
},
|
|
29
29
|
"linux-x64": {
|
|
30
30
|
"binary": "claude.zst",
|
|
31
|
-
"checksum": "
|
|
32
|
-
"size":
|
|
31
|
+
"checksum": "6cbd2d23d9b6f8e06f8a1614f5212d13ae3b1c748b6b59df90157575b3e4f8a1",
|
|
32
|
+
"size": 51405057
|
|
33
33
|
},
|
|
34
34
|
"linux-arm64-musl": {
|
|
35
35
|
"binary": "claude.zst",
|
|
36
|
-
"checksum": "
|
|
37
|
-
"size":
|
|
36
|
+
"checksum": "53b68f1d98c2e24c100f5fc7e873cad7f0470af69c751cd5917460402277fb2f",
|
|
37
|
+
"size": 49422676
|
|
38
38
|
},
|
|
39
39
|
"linux-x64-musl": {
|
|
40
40
|
"binary": "claude.zst",
|
|
41
|
-
"checksum": "
|
|
42
|
-
"size":
|
|
41
|
+
"checksum": "fe24a7fa385ade60594375ec9fada75060bf028d6562b84461f4dd1b13abc521",
|
|
42
|
+
"size": 50119926
|
|
43
43
|
},
|
|
44
44
|
"win32-x64": {
|
|
45
45
|
"binary": "claude.exe.zst",
|
|
46
|
-
"checksum": "
|
|
47
|
-
"size":
|
|
46
|
+
"checksum": "f1070448e53ffdd83f65b2773bffa2e1136d462e2f3be72cff0f4effd0611ac4",
|
|
47
|
+
"size": 52123091
|
|
48
48
|
},
|
|
49
49
|
"win32-arm64": {
|
|
50
50
|
"binary": "claude.exe.zst",
|
|
51
|
-
"checksum": "
|
|
52
|
-
"size":
|
|
51
|
+
"checksum": "967b9e021cdc470d10478e5ff8cfe93624337a7475478658954f275489d28adb",
|
|
52
|
+
"size": 50393488
|
|
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.143",
|
|
4
4
|
"main": "sdk.mjs",
|
|
5
5
|
"types": "sdk.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -47,22 +47,20 @@
|
|
|
47
47
|
"automation",
|
|
48
48
|
"code-generation"
|
|
49
49
|
],
|
|
50
|
-
"dependencies": {
|
|
51
|
-
"@anthropic-ai/sdk": "^0.93.0",
|
|
52
|
-
"@modelcontextprotocol/sdk": "^1.29.0"
|
|
53
|
-
},
|
|
54
50
|
"peerDependencies": {
|
|
51
|
+
"@anthropic-ai/sdk": ">=0.93.0",
|
|
52
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
55
53
|
"zod": "^4.0.0"
|
|
56
54
|
},
|
|
57
55
|
"optionalDependencies": {
|
|
58
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.
|
|
59
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.
|
|
60
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.
|
|
61
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.
|
|
62
|
-
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.
|
|
63
|
-
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.
|
|
64
|
-
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.
|
|
65
|
-
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.
|
|
56
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.143",
|
|
57
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.143",
|
|
58
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.143",
|
|
59
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.143",
|
|
60
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.143",
|
|
61
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.143",
|
|
62
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.143",
|
|
63
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.143"
|
|
66
64
|
},
|
|
67
65
|
"files": [
|
|
68
66
|
"sdk.mjs",
|
|
@@ -78,5 +76,5 @@
|
|
|
78
76
|
"manifest.json",
|
|
79
77
|
"manifest.zst.json"
|
|
80
78
|
],
|
|
81
|
-
"claudeCodeVersion": "2.1.
|
|
79
|
+
"claudeCodeVersion": "2.1.143"
|
|
82
80
|
}
|
package/sdk.d.ts
CHANGED
|
@@ -957,6 +957,7 @@ export declare type McpHttpServerConfig = {
|
|
|
957
957
|
* 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.
|
|
958
958
|
*/
|
|
959
959
|
alwaysLoad?: boolean;
|
|
960
|
+
|
|
960
961
|
};
|
|
961
962
|
|
|
962
963
|
export declare type McpSdkServerConfig = {
|
|
@@ -1062,6 +1063,7 @@ export declare type McpSSEServerConfig = {
|
|
|
1062
1063
|
* 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.
|
|
1063
1064
|
*/
|
|
1064
1065
|
alwaysLoad?: boolean;
|
|
1066
|
+
|
|
1065
1067
|
};
|
|
1066
1068
|
|
|
1067
1069
|
export declare type McpStdioServerConfig = {
|
|
@@ -1073,6 +1075,7 @@ export declare type McpStdioServerConfig = {
|
|
|
1073
1075
|
* 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.
|
|
1074
1076
|
*/
|
|
1075
1077
|
alwaysLoad?: boolean;
|
|
1078
|
+
|
|
1076
1079
|
};
|
|
1077
1080
|
|
|
1078
1081
|
/**
|
|
@@ -3569,7 +3572,7 @@ export declare type SDKTaskUpdatedMessage = {
|
|
|
3569
3572
|
* Wire-safe subset of TaskState fields that changed. Excludes abortController, messages, result. Clients merge into their local task map.
|
|
3570
3573
|
*/
|
|
3571
3574
|
patch: {
|
|
3572
|
-
status?: 'pending' | 'running' | 'completed' | 'failed' | 'killed';
|
|
3575
|
+
status?: 'pending' | 'running' | 'completed' | 'failed' | 'killed' | 'paused';
|
|
3573
3576
|
description?: string;
|
|
3574
3577
|
end_time?: number;
|
|
3575
3578
|
total_paused_ms?: number;
|
|
@@ -4274,6 +4277,10 @@ export declare interface Settings {
|
|
|
4274
4277
|
* Which ref new worktrees branch from. 'fresh' (default) branches from origin/<default-branch> for a clean tree. 'head' branches from your current local HEAD so unpushed commits and feature-branch state are present. Applies to --worktree, EnterWorktree, and agent isolation.
|
|
4275
4278
|
*/
|
|
4276
4279
|
baseRef?: 'fresh' | 'head';
|
|
4280
|
+
/**
|
|
4281
|
+
* Isolation mode for background sessions in this repo. 'worktree' (default) blocks Edit/Write in the main checkout until EnterWorktree is called. 'none' lets background jobs edit the working copy directly.
|
|
4282
|
+
*/
|
|
4283
|
+
bgIsolation?: 'worktree' | 'none';
|
|
4277
4284
|
};
|
|
4278
4285
|
/**
|
|
4279
4286
|
* Disable all hooks and statusLine execution
|