@anthropic-ai/claude-agent-sdk 0.3.247 → 0.3.248
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 +95 -95
- package/browser-sdk.js +45 -45
- package/manifest.json +19 -20
- package/manifest.zst.json +23 -24
- package/package.json +10 -10
- package/sdk-tools.d.ts +2 -1
- package/sdk.d.ts +34 -2
- package/sdk.mjs +77 -77
package/manifest.json
CHANGED
|
@@ -1,52 +1,51 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-08-
|
|
2
|
+
"version": "2.1.248",
|
|
3
|
+
"commit": "8c9482ad0510ad5e3c88f0ebe6f035ec148f73e2",
|
|
4
|
+
"buildDate": "2026-08-27T19:38:50Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "a3f276daa51919f378bcd797d44f8e3d09653c2858123157d272de38952efeef",
|
|
9
|
+
"size": 206463136
|
|
10
10
|
},
|
|
11
11
|
"darwin-x64": {
|
|
12
12
|
"binary": "claude",
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "35c21b09d049a4d040c511cd9f73de01df83aa1d4b35a43ae1353bde413b42bc",
|
|
14
|
+
"size": 215124048
|
|
15
15
|
},
|
|
16
16
|
"linux-arm64": {
|
|
17
17
|
"binary": "claude",
|
|
18
|
-
"checksum": "
|
|
19
|
-
"size":
|
|
18
|
+
"checksum": "76655a3731274f36236632b9acbcb9bef7055de20041c411b761856043fbc0df",
|
|
19
|
+
"size": 223141128
|
|
20
20
|
},
|
|
21
21
|
"linux-x64": {
|
|
22
22
|
"binary": "claude",
|
|
23
|
-
"checksum": "
|
|
24
|
-
"size":
|
|
23
|
+
"checksum": "3edee3cb054bd6823674fd60d5c0e442825b28ee8fbf815af2d16bf0de072e16",
|
|
24
|
+
"size": 223599960
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64-musl": {
|
|
27
27
|
"binary": "claude",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "ca9cabd7c636889de73c399d31be4f115fd2737c64482ada7bf4b1c0d51448f3",
|
|
29
|
+
"size": 215889472
|
|
30
30
|
},
|
|
31
31
|
"linux-x64-musl": {
|
|
32
32
|
"binary": "claude",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "155e1aa56d0c7e2aaae92788c414e7c43315220289bbd38f7a89ba33d07ff48f",
|
|
34
|
+
"size": 217575288
|
|
35
35
|
},
|
|
36
36
|
"win32-x64": {
|
|
37
37
|
"binary": "claude.exe",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "c322169422b45ec4bbfeae3aae6cfd6367a622b0d12f06ba9766e18bb8eca2af",
|
|
39
|
+
"size": 226708128
|
|
40
40
|
},
|
|
41
41
|
"win32-arm64": {
|
|
42
42
|
"binary": "claude.exe",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
43
|
+
"checksum": "d3ee9756700a4e7642216e04f1a57baba9633732de9d85a4b7918c4731e4b572",
|
|
44
|
+
"size": 217812640
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"sdkCompat": {
|
|
48
48
|
"testedWrapperVersions": [
|
|
49
|
-
"0.3.210",
|
|
50
49
|
"0.3.211",
|
|
51
50
|
"0.3.212",
|
|
52
51
|
"0.3.214",
|
package/manifest.zst.json
CHANGED
|
@@ -1,60 +1,59 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-08-
|
|
2
|
+
"version": "2.1.248",
|
|
3
|
+
"commit": "8c9482ad0510ad5e3c88f0ebe6f035ec148f73e2",
|
|
4
|
+
"buildDate": "2026-08-27T19:40:05Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude.zst",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "b29c2c80dd0e93a692fdfd910204b04b61cc98983634bfb7d7ee3882809b4568",
|
|
9
|
+
"size": 63732872,
|
|
10
10
|
"bundle": {
|
|
11
|
-
"checksum": "
|
|
12
|
-
"size":
|
|
11
|
+
"checksum": "19cdcfee1314ed0958a7805ce4dd000b4651d0cecca5f6bbcd9ef68976628a32",
|
|
12
|
+
"size": 63735676
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"darwin-x64": {
|
|
16
16
|
"binary": "claude.zst",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "bb04d8fa542d01b96b6ddee76560667c50eeefb4cfb3b7ad5b9dc58d36dbfa5f",
|
|
18
|
+
"size": 67819333,
|
|
19
19
|
"bundle": {
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "2db3fd3b76a70a421703ebfc23afee17cb40dfbf8b0bd46a5288dc041723e3d6",
|
|
21
|
+
"size": 67817366
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"linux-arm64": {
|
|
25
25
|
"binary": "claude.zst",
|
|
26
|
-
"checksum": "
|
|
27
|
-
"size":
|
|
26
|
+
"checksum": "eb1343b9092ddfbaf39bc44afeaf596e0d62516aadcf00c32626753c267cd90d",
|
|
27
|
+
"size": 73072310
|
|
28
28
|
},
|
|
29
29
|
"linux-x64": {
|
|
30
30
|
"binary": "claude.zst",
|
|
31
|
-
"checksum": "
|
|
32
|
-
"size":
|
|
31
|
+
"checksum": "c6e7e88189b5c8319e32b92ea53813eec683dcdfe187257d502b7e57d8e0f33a",
|
|
32
|
+
"size": 73704780
|
|
33
33
|
},
|
|
34
34
|
"linux-arm64-musl": {
|
|
35
35
|
"binary": "claude.zst",
|
|
36
|
-
"checksum": "
|
|
37
|
-
"size":
|
|
36
|
+
"checksum": "68ef3296006335ab24a0eca03332e97d2e0e92909773c6629b559f2bb5d04503",
|
|
37
|
+
"size": 71555622
|
|
38
38
|
},
|
|
39
39
|
"linux-x64-musl": {
|
|
40
40
|
"binary": "claude.zst",
|
|
41
|
-
"checksum": "
|
|
42
|
-
"size":
|
|
41
|
+
"checksum": "28dee5aabacf56bd7d0a984c89da642fae2e37e6782951efadcebe160fba00e5",
|
|
42
|
+
"size": 72211859
|
|
43
43
|
},
|
|
44
44
|
"win32-x64": {
|
|
45
45
|
"binary": "claude.exe.zst",
|
|
46
|
-
"checksum": "
|
|
47
|
-
"size":
|
|
46
|
+
"checksum": "efd339adce351a3406b9583c1ce1c2cace7c2745000d8adcb420477459edfc83",
|
|
47
|
+
"size": 76106262
|
|
48
48
|
},
|
|
49
49
|
"win32-arm64": {
|
|
50
50
|
"binary": "claude.exe.zst",
|
|
51
|
-
"checksum": "
|
|
52
|
-
"size":
|
|
51
|
+
"checksum": "d11e5d07414acaa8afd744bcc042da56406091a1b6ed9783591abeddd9f32272",
|
|
52
|
+
"size": 72889557
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"sdkCompat": {
|
|
56
56
|
"testedWrapperVersions": [
|
|
57
|
-
"0.3.210",
|
|
58
57
|
"0.3.211",
|
|
59
58
|
"0.3.212",
|
|
60
59
|
"0.3.214",
|
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.248",
|
|
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.248",
|
|
61
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.248",
|
|
62
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.248",
|
|
63
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.248",
|
|
64
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.248",
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.248",
|
|
66
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.248",
|
|
67
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.248"
|
|
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.248"
|
|
84
84
|
}
|
package/sdk-tools.d.ts
CHANGED
|
@@ -448,6 +448,7 @@ export type ArtifactOutput =
|
|
|
448
448
|
artifacts: {
|
|
449
449
|
title: string;
|
|
450
450
|
url: string;
|
|
451
|
+
favicon?: string;
|
|
451
452
|
updatedAt?: string;
|
|
452
453
|
rel?: "mine" | "shared";
|
|
453
454
|
}[];
|
|
@@ -3062,7 +3063,7 @@ export interface ArtifactInput {
|
|
|
3062
3063
|
*/
|
|
3063
3064
|
file_path?: string;
|
|
3064
3065
|
/**
|
|
3065
|
-
* Browser-tab icon: one or two emoji (e.g. "📊"). No markup. Required
|
|
3066
|
+
* Browser-tab icon: one or two emoji (e.g. "📊"). No markup. Required on a page's first publish; omit on a redeploy (same file path this session, or `url`) to keep the artifact's icon — pass a new one only when the user asks.
|
|
3066
3067
|
*/
|
|
3067
3068
|
favicon?: string;
|
|
3068
3069
|
/**
|
package/sdk.d.ts
CHANGED
|
@@ -499,8 +499,9 @@ declare namespace coreTypes {
|
|
|
499
499
|
* Creates an MCP server instance that can be used with the SDK transport.
|
|
500
500
|
* This allows SDK users to define custom tools that run in the same process.
|
|
501
501
|
*
|
|
502
|
-
* Tool calls are bounded by the MCP tool-call timeout —
|
|
503
|
-
*
|
|
502
|
+
* Tool calls are bounded by the MCP tool-call timeout — `options.timeout`
|
|
503
|
+
* (ms) for this server, else the MCP_TOOL_TIMEOUT env var, effectively
|
|
504
|
+
* unbounded by default.
|
|
504
505
|
*/
|
|
505
506
|
export declare function createSdkMcpServer(_options: CreateSdkMcpServerOptions): McpSdkServerConfigWithInstance;
|
|
506
507
|
|
|
@@ -523,6 +524,15 @@ declare type CreateSdkMcpServerOptions = {
|
|
|
523
524
|
* works and is OR'd with this.
|
|
524
525
|
*/
|
|
525
526
|
alwaysLoad?: boolean;
|
|
527
|
+
/**
|
|
528
|
+
* Per-server tool-call timeout in milliseconds. Overrides the
|
|
529
|
+
* MCP_TOOL_TIMEOUT environment variable for this server. Hard wall-clock
|
|
530
|
+
* limit per call; progress notifications do not extend it. Values below
|
|
531
|
+
* 1000ms are ignored (falls through to MCP_TOOL_TIMEOUT or the default).
|
|
532
|
+
* Applies when the server is first registered; changing it for an
|
|
533
|
+
* already-registered server has no effect until it is removed and re-added.
|
|
534
|
+
*/
|
|
535
|
+
timeout?: number;
|
|
526
536
|
};
|
|
527
537
|
|
|
528
538
|
export declare type CwdChangedHookInput = BaseHookInput & {
|
|
@@ -1075,6 +1085,10 @@ export declare type McpHttpServerConfig = {
|
|
|
1075
1085
|
export declare type McpSdkServerConfig = {
|
|
1076
1086
|
type: 'sdk';
|
|
1077
1087
|
name: string;
|
|
1088
|
+
/**
|
|
1089
|
+
* 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. Values below 1000ms are ignored (falls through to MCP_TOOL_TIMEOUT or the default). Applies when the server is first registered; changing it for an already-registered server has no effect until it is removed and re-added.
|
|
1090
|
+
*/
|
|
1091
|
+
timeout?: number;
|
|
1078
1092
|
};
|
|
1079
1093
|
|
|
1080
1094
|
/**
|
|
@@ -3725,6 +3739,15 @@ declare type SDKControlInitializeRequest = {
|
|
|
3725
3739
|
subtype: 'initialize';
|
|
3726
3740
|
hooks?: Partial<Record<coreTypes.HookEvent, SDKHookCallbackMatcher[]>>;
|
|
3727
3741
|
sdkMcpServers?: string[];
|
|
3742
|
+
/**
|
|
3743
|
+
* Settings for the SDK-hosted MCP servers named in sdkMcpServers, keyed by server name. Sent as a separate field so a CLI that predates it ignores it; entries whose name is not in sdkMcpServers, and values that do not match this shape, are ignored rather than rejected. Applied when the server is first registered.
|
|
3744
|
+
*/
|
|
3745
|
+
sdkMcpServerConfigs?: Record<string, {
|
|
3746
|
+
/**
|
|
3747
|
+
* 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. Values below 1000ms are ignored (falls through to MCP_TOOL_TIMEOUT or the default). Applies when the server is first registered; changing it for an already-registered server has no effect until it is removed and re-added.
|
|
3748
|
+
*/
|
|
3749
|
+
timeout?: number;
|
|
3750
|
+
}>;
|
|
3728
3751
|
jsonSchema?: Record<string, unknown>;
|
|
3729
3752
|
systemPrompt?: string[];
|
|
3730
3753
|
appendSystemPrompt?: string;
|
|
@@ -3797,6 +3820,7 @@ export declare type SDKControlInitializeResponse = {
|
|
|
3797
3820
|
|
|
3798
3821
|
|
|
3799
3822
|
|
|
3823
|
+
|
|
3800
3824
|
};
|
|
3801
3825
|
|
|
3802
3826
|
/**
|
|
@@ -4868,6 +4892,7 @@ export declare type SDKSystemMessage = {
|
|
|
4868
4892
|
|
|
4869
4893
|
fast_mode_state?: FastModeState;
|
|
4870
4894
|
fast_mode_disabled_reason?: FastModeDisabledReason;
|
|
4895
|
+
|
|
4871
4896
|
/**
|
|
4872
4897
|
* The effort level the session will send on its next request — after env overrides, session state, org caps and model-support downgrades; the same value get_settings reports as applied.effort. null when no effort parameter will be sent (a model without effort, CLAUDE_CODE_EFFORT_LEVEL=unset, or an internal numeric budget). Present on Remote Control bridge init frames (terminal- and Desktop/VS Code-hosted sessions); absent on hosts that do not publish it and on CLIs that predate the field. Re-emitted inits carry the current value — the newest frame wins.
|
|
4873
4898
|
*/
|
|
@@ -4882,6 +4907,7 @@ export declare type SDKSystemMessage = {
|
|
|
4882
4907
|
|
|
4883
4908
|
|
|
4884
4909
|
|
|
4910
|
+
|
|
4885
4911
|
uuid: UUID;
|
|
4886
4912
|
session_id: string;
|
|
4887
4913
|
};
|
|
@@ -5068,6 +5094,7 @@ export declare type SDKUserMessage = {
|
|
|
5068
5094
|
|
|
5069
5095
|
|
|
5070
5096
|
|
|
5097
|
+
|
|
5071
5098
|
uuid?: UUID;
|
|
5072
5099
|
session_id?: string;
|
|
5073
5100
|
/**
|
|
@@ -5118,6 +5145,7 @@ export declare type SDKUserMessageReplay = {
|
|
|
5118
5145
|
|
|
5119
5146
|
|
|
5120
5147
|
|
|
5148
|
+
|
|
5121
5149
|
uuid: UUID;
|
|
5122
5150
|
session_id: string;
|
|
5123
5151
|
isReplay: true;
|
|
@@ -5453,6 +5481,10 @@ export declare interface Settings {
|
|
|
5453
5481
|
* Number of days to retain chat transcripts before automatic cleanup (default: 30). Minimum 1. Use a large value for long retention; use --no-session-persistence to disable transcript writes entirely.
|
|
5454
5482
|
*/
|
|
5455
5483
|
cleanupPeriodDays?: number;
|
|
5484
|
+
/**
|
|
5485
|
+
* Retention ceiling in days for session transcripts created or last written by a desktop-host surface (Claude Desktop, Cowork), which are otherwise exempt from the cleanupPeriodDays sweep. 0 (the default) means no ceiling: such transcripts are kept until deleted another way. Unlike cleanupPeriodDays, 0 is allowed because this setting never disables writes — it only bounds an exemption from deletion. The ceiling is a hard cap: it also bounds an active archive grace, so the grace window of a release marker never keeps files past the ceiling. Ignored when cleanupPeriodDays is managed by org policy. A ceiling at or below cleanupPeriodDays effectively disables the exemption: those transcripts age out on the regular cleanupPeriodDays schedule, so the effective retention is whichever of the two periods is longer.
|
|
5486
|
+
*/
|
|
5487
|
+
desktopSessionCleanupPeriodDays?: number;
|
|
5456
5488
|
/**
|
|
5457
5489
|
* Set to false to turn off syncing of the skills you have enabled on claude.ai. In your user settings (or managed settings): nothing more is downloaded, previously synced skills (~/.claude/skills/synced) can no longer be run, are hidden from every session started afterwards, and are moved to ~/.claude/skills/.trash at the next launch (deleted after cleanupPeriodDays; re-downloaded, not restored, if you re-enable). In .claude/settings.local.json or --settings: downloads stop and synced skills are blocked and hidden for sessions in that workspace or invocation only (nothing is moved). Not read from project settings (.claude/settings.json). Only false is honored — the feature is enabled server-side for your account, so setting true does not turn it on early. While it is on, synced skills are available in every session, re-synced every 10 minutes, and removed when you disable them on claude.ai. Only applies when signed in with your Claude account.
|
|
5458
5490
|
*/
|