@anthropic-ai/claude-agent-sdk 0.2.124 → 0.2.128
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 +96 -102
- package/bridge.mjs +62 -62
- package/browser-sdk.js +36 -36
- package/manifest.json +19 -19
- package/manifest.zst.json +23 -23
- package/package.json +10 -10
- package/sdk.d.ts +35 -5
- package/sdk.mjs +40 -40
package/manifest.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-
|
|
2
|
+
"version": "2.1.128",
|
|
3
|
+
"commit": "d6caed183d5f5b985cab02ef8c812d2abee9ecd9",
|
|
4
|
+
"buildDate": "2026-05-04T17:39:35Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "1a56ae4cd171ba7839fc2b03d558022ffaebb5693be532d8f3c344731063e979",
|
|
9
|
+
"size": 216953600
|
|
10
10
|
},
|
|
11
11
|
"darwin-x64": {
|
|
12
12
|
"binary": "claude",
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "eb7f5441fcc169a01ec6a655d7663dffbcfe9cb03491dc0c7a157e9e67da3737",
|
|
14
|
+
"size": 218517840
|
|
15
15
|
},
|
|
16
16
|
"linux-arm64": {
|
|
17
17
|
"binary": "claude",
|
|
18
|
-
"checksum": "
|
|
19
|
-
"size":
|
|
18
|
+
"checksum": "e2a31879b7433f658d915e6716249f10b913b467873950e8e7e066ba7c4d96e9",
|
|
19
|
+
"size": 248973888
|
|
20
20
|
},
|
|
21
21
|
"linux-x64": {
|
|
22
22
|
"binary": "claude",
|
|
23
|
-
"checksum": "
|
|
24
|
-
"size":
|
|
23
|
+
"checksum": "770c81373ad42970ef576676da78d6be60413f4ade23abadbf1343ca0809bb3e",
|
|
24
|
+
"size": 248789632
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64-musl": {
|
|
27
27
|
"binary": "claude",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "7d0e38623925ee076ede98392b2169bd88a2c529f080d7807ae03c350b6b2337",
|
|
29
|
+
"size": 241699200
|
|
30
30
|
},
|
|
31
31
|
"linux-x64-musl": {
|
|
32
32
|
"binary": "claude",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "b6480ddd313432e37b35a356c38067b1a76b900a936e30e975111ad11f70dcf4",
|
|
34
|
+
"size": 243054976
|
|
35
35
|
},
|
|
36
36
|
"win32-x64": {
|
|
37
37
|
"binary": "claude.exe",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "1d920cb73f612083ae4133ea4b63e1e8c7a4624a8ba827dfc928c12e86ad803e",
|
|
39
|
+
"size": 254711968
|
|
40
40
|
},
|
|
41
41
|
"win32-arm64": {
|
|
42
42
|
"binary": "claude.exe",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
43
|
+
"checksum": "3b957bec823951455840accbdb6cfa970505691ce39b1fefa9de5c32a2ee2ff6",
|
|
44
|
+
"size": 250775712
|
|
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-
|
|
2
|
+
"version": "2.1.128",
|
|
3
|
+
"commit": "d6caed183d5f5b985cab02ef8c812d2abee9ecd9",
|
|
4
|
+
"buildDate": "2026-05-04T17:47:02Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude.zst",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "4a87c9d8b6546c232d1be9e192d6912cacee89d9e209cbdf2717b5a7b488078d",
|
|
9
|
+
"size": 44848059,
|
|
10
10
|
"bundle": {
|
|
11
|
-
"checksum": "
|
|
12
|
-
"size":
|
|
11
|
+
"checksum": "b5fee793d11f4cc88cd1b353ea5749fde1740f6d9abd0fde34da6f4037a79d3e",
|
|
12
|
+
"size": 44847617
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"darwin-x64": {
|
|
16
16
|
"binary": "claude.zst",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "f5b432e54173ec5c5a0aa74c4a56ec4f82e7156ca2ee9c74f0b6cd2876b1eddd",
|
|
18
|
+
"size": 46559830,
|
|
19
19
|
"bundle": {
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "5d7b382dab3f21b9ec419bbc1ffc0a46f2e146fdaa8bbbad06273bde402a3516",
|
|
21
|
+
"size": 46571579
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"linux-arm64": {
|
|
25
25
|
"binary": "claude.zst",
|
|
26
|
-
"checksum": "
|
|
27
|
-
"size":
|
|
26
|
+
"checksum": "d64248f96a0c7621dc462ca66180f3925c447caeef5b8ac8bb0d167267798a45",
|
|
27
|
+
"size": 54376604
|
|
28
28
|
},
|
|
29
29
|
"linux-x64": {
|
|
30
30
|
"binary": "claude.zst",
|
|
31
|
-
"checksum": "
|
|
32
|
-
"size":
|
|
31
|
+
"checksum": "fe962c16d9766154722d657a6adcf7cf8f181d015b3276c343db25573226224e",
|
|
32
|
+
"size": 54959044
|
|
33
33
|
},
|
|
34
34
|
"linux-arm64-musl": {
|
|
35
35
|
"binary": "claude.zst",
|
|
36
|
-
"checksum": "
|
|
37
|
-
"size":
|
|
36
|
+
"checksum": "7141c50d86dbaa4a82f8eeaa22ded6c4ddb0f17a7dd461423cd758179ba35e26",
|
|
37
|
+
"size": 53008770
|
|
38
38
|
},
|
|
39
39
|
"linux-x64-musl": {
|
|
40
40
|
"binary": "claude.zst",
|
|
41
|
-
"checksum": "
|
|
42
|
-
"size":
|
|
41
|
+
"checksum": "c70417c61100cd6a490c342249e856621caec5bc3bc83b73fce5bd7bf9d72874",
|
|
42
|
+
"size": 53646358
|
|
43
43
|
},
|
|
44
44
|
"win32-x64": {
|
|
45
45
|
"binary": "claude.exe.zst",
|
|
46
|
-
"checksum": "
|
|
47
|
-
"size":
|
|
46
|
+
"checksum": "e61a1d9fc923a66da34541aec7abf29cd1b5a9dc6cb6e400459021f1acf907ca",
|
|
47
|
+
"size": 56045417
|
|
48
48
|
},
|
|
49
49
|
"win32-arm64": {
|
|
50
50
|
"binary": "claude.exe.zst",
|
|
51
|
-
"checksum": "
|
|
52
|
-
"size":
|
|
51
|
+
"checksum": "bf6fda0f6a6becc044531987ae241ac0cb760773ace6ec43e3a565ea8a024207",
|
|
52
|
+
"size": 54140510
|
|
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.2.
|
|
3
|
+
"version": "0.2.128",
|
|
4
4
|
"main": "sdk.mjs",
|
|
5
5
|
"types": "sdk.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -55,14 +55,14 @@
|
|
|
55
55
|
"zod": "^4.0.0"
|
|
56
56
|
},
|
|
57
57
|
"optionalDependencies": {
|
|
58
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.2.
|
|
59
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.2.
|
|
60
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.2.
|
|
61
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.2.
|
|
62
|
-
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.2.
|
|
63
|
-
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.2.
|
|
64
|
-
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.2.
|
|
65
|
-
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.2.
|
|
58
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.2.128",
|
|
59
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.2.128",
|
|
60
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.2.128",
|
|
61
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.2.128",
|
|
62
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.2.128",
|
|
63
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.2.128",
|
|
64
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.2.128",
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.2.128"
|
|
66
66
|
},
|
|
67
67
|
"files": [
|
|
68
68
|
"sdk.mjs",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"manifest.json",
|
|
79
79
|
"manifest.zst.json"
|
|
80
80
|
],
|
|
81
|
-
"claudeCodeVersion": "2.1.
|
|
81
|
+
"claudeCodeVersion": "2.1.128"
|
|
82
82
|
}
|
package/sdk.d.ts
CHANGED
|
@@ -937,7 +937,7 @@ export declare type McpHttpServerConfig = {
|
|
|
937
937
|
headers?: Record<string, string>;
|
|
938
938
|
tools?: McpServerToolPolicy[];
|
|
939
939
|
/**
|
|
940
|
-
* 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.
|
|
940
|
+
* 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 when MCP_CONNECTION_NONBLOCKING=1, since the tools must be present when the turn-1 prompt is built.
|
|
941
941
|
*/
|
|
942
942
|
alwaysLoad?: boolean;
|
|
943
943
|
};
|
|
@@ -1042,7 +1042,7 @@ export declare type McpSSEServerConfig = {
|
|
|
1042
1042
|
headers?: Record<string, string>;
|
|
1043
1043
|
tools?: McpServerToolPolicy[];
|
|
1044
1044
|
/**
|
|
1045
|
-
* 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.
|
|
1045
|
+
* 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 when MCP_CONNECTION_NONBLOCKING=1, since the tools must be present when the turn-1 prompt is built.
|
|
1046
1046
|
*/
|
|
1047
1047
|
alwaysLoad?: boolean;
|
|
1048
1048
|
};
|
|
@@ -1053,7 +1053,7 @@ export declare type McpStdioServerConfig = {
|
|
|
1053
1053
|
args?: string[];
|
|
1054
1054
|
env?: Record<string, string>;
|
|
1055
1055
|
/**
|
|
1056
|
-
* 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.
|
|
1056
|
+
* 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 when MCP_CONNECTION_NONBLOCKING=1, since the tools must be present when the turn-1 prompt is built.
|
|
1057
1057
|
*/
|
|
1058
1058
|
alwaysLoad?: boolean;
|
|
1059
1059
|
};
|
|
@@ -1338,6 +1338,14 @@ export declare type Options = {
|
|
|
1338
1338
|
* @alpha
|
|
1339
1339
|
*/
|
|
1340
1340
|
sessionStore?: SessionStore;
|
|
1341
|
+
/**
|
|
1342
|
+
* Controls how aggressively transcript entries are flushed to
|
|
1343
|
+
* {@link Options.sessionStore}. Defaults to `'batched'`. Ignored when
|
|
1344
|
+
* `sessionStore` is not set.
|
|
1345
|
+
*
|
|
1346
|
+
* @alpha
|
|
1347
|
+
*/
|
|
1348
|
+
sessionStoreFlush?: SessionStoreFlush;
|
|
1341
1349
|
/**
|
|
1342
1350
|
* Timeout for each `sessionStore.load()` / `sessionStore.listSubkeys()` call
|
|
1343
1351
|
* during resume materialization. If the adapter doesn't settle within this
|
|
@@ -3702,6 +3710,20 @@ export declare type SessionStoreEntry = {
|
|
|
3702
3710
|
[k: string]: unknown;
|
|
3703
3711
|
};
|
|
3704
3712
|
|
|
3713
|
+
/**
|
|
3714
|
+
* Flush strategy for {@link Options.sessionStore} transcript mirroring.
|
|
3715
|
+
*
|
|
3716
|
+
* - `'batched'` (default): buffer transcript_mirror frames and flush at
|
|
3717
|
+
* end-of-turn or when pending thresholds are exceeded.
|
|
3718
|
+
* - `'eager'`: schedule a background flush after every frame, giving
|
|
3719
|
+
* near-real-time delivery to {@link SessionStore.append}. Each frame
|
|
3720
|
+
* becomes its own `append()` batch (no coalescing), so adapters should
|
|
3721
|
+
* be cheap per call.
|
|
3722
|
+
*
|
|
3723
|
+
* @alpha
|
|
3724
|
+
*/
|
|
3725
|
+
export declare type SessionStoreFlush = 'batched' | 'eager';
|
|
3726
|
+
|
|
3705
3727
|
/**
|
|
3706
3728
|
* Incrementally-maintained session summary.
|
|
3707
3729
|
*
|
|
@@ -4117,6 +4139,10 @@ export declare interface Settings {
|
|
|
4117
4139
|
* Disable the background-agents fleet (`claude agents`, `--bg`, /background, the on-demand daemon). Typically set in managed settings. Equivalent to CLAUDE_CODE_DISABLE_AGENTS_FLEET=1.
|
|
4118
4140
|
*/
|
|
4119
4141
|
disableBackgroundAgents?: boolean;
|
|
4142
|
+
/**
|
|
4143
|
+
* Disable Remote Control (claude.ai/code, `claude remote-control`, `--remote-control`/`--rc`, auto-start, and the in-session toggle). Typically set in managed settings.
|
|
4144
|
+
*/
|
|
4145
|
+
disableRemoteControl?: boolean;
|
|
4120
4146
|
/**
|
|
4121
4147
|
* Disable inline shell execution in skills and custom slash commands from user, project, or plugin sources. Commands are replaced with a placeholder instead of being run.
|
|
4122
4148
|
*/
|
|
@@ -4980,11 +5006,11 @@ export declare interface Settings {
|
|
|
4980
5006
|
autoSubmit?: boolean;
|
|
4981
5007
|
};
|
|
4982
5008
|
/**
|
|
4983
|
-
*
|
|
5009
|
+
* Managed-org opt-in for channel notifications (MCP servers with the claude/channel capability pushing inbound messages). claude.ai Teams/Enterprise: default off. Console: default on unless managed settings exist. Set true to allow; users then select servers via --channels.
|
|
4984
5010
|
*/
|
|
4985
5011
|
channelsEnabled?: boolean;
|
|
4986
5012
|
/**
|
|
4987
|
-
*
|
|
5013
|
+
* Managed-org allowlist of channel plugins. When set, replaces the default Anthropic allowlist — admins decide which plugins may push inbound messages. Undefined falls back to the default. Requires channelsEnabled: true.
|
|
4988
5014
|
*/
|
|
4989
5015
|
allowedChannelPlugins?: {
|
|
4990
5016
|
marketplace: string;
|
|
@@ -5489,6 +5515,10 @@ export declare type UserPromptSubmitHookSpecificOutput = {
|
|
|
5489
5515
|
hookEventName: 'UserPromptSubmit';
|
|
5490
5516
|
additionalContext?: string;
|
|
5491
5517
|
sessionTitle?: string;
|
|
5518
|
+
/**
|
|
5519
|
+
* When decision is "block", omit the original prompt from the block message
|
|
5520
|
+
*/
|
|
5521
|
+
suppressOriginalPrompt?: boolean;
|
|
5492
5522
|
};
|
|
5493
5523
|
|
|
5494
5524
|
/**
|