@anthropic-ai/claude-agent-sdk 0.3.287 → 0.3.288
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 +81 -80
- package/browser-sdk.js +39 -38
- package/core-ejtftkpy.mjs +33 -0
- package/core-wn2j871p.mjs +40 -0
- package/core.mjs +17 -17
- package/manifest.json +20 -21
- package/manifest.zst.json +24 -25
- package/package.json +12 -12
- package/sdk.d.ts +14 -2
- package/sdk.mjs +70 -70
- package/core-kgfyd2t2.mjs +0 -33
- package/core-q38rzykt.mjs +0 -40
package/manifest.json
CHANGED
|
@@ -1,54 +1,53 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
2
|
+
"version": "2.1.288",
|
|
3
3
|
"manifestSignatureEnforcement": "flag",
|
|
4
|
-
"commit": "
|
|
5
|
-
"modsCommit": "
|
|
6
|
-
"buildDate": "2026-10-
|
|
4
|
+
"commit": "17fe1eb736e5b1433d6ca86a1db334cec8520450",
|
|
5
|
+
"modsCommit": "52c76441cae91f6891e4712306bffb057ff6fec5",
|
|
6
|
+
"buildDate": "2026-10-02T17:00:28Z",
|
|
7
7
|
"platforms": {
|
|
8
8
|
"darwin-arm64": {
|
|
9
9
|
"binary": "claude",
|
|
10
|
-
"checksum": "
|
|
11
|
-
"size":
|
|
10
|
+
"checksum": "bbe93063f7a0879a1021b2891e5c9354e5b3b98433e32efe6750f7710afed750",
|
|
11
|
+
"size": 229255312
|
|
12
12
|
},
|
|
13
13
|
"darwin-x64": {
|
|
14
14
|
"binary": "claude",
|
|
15
|
-
"checksum": "
|
|
16
|
-
"size":
|
|
15
|
+
"checksum": "946acab03a55b60e2016e30964c48b96ef6673cb5da684383f4835da410eede0",
|
|
16
|
+
"size": 237702400
|
|
17
17
|
},
|
|
18
18
|
"linux-arm64": {
|
|
19
19
|
"binary": "claude",
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "359ab6a058fcde9741dff54979a212fd134cdf8e8cfc2f8de02bc350b9e2b9d5",
|
|
21
|
+
"size": 245096440
|
|
22
22
|
},
|
|
23
23
|
"linux-x64": {
|
|
24
24
|
"binary": "claude",
|
|
25
|
-
"checksum": "
|
|
26
|
-
"size":
|
|
25
|
+
"checksum": "0298068b686e7fdbaf9402a7a587bb7f49c0b0e084de09f69145a0719207640c",
|
|
26
|
+
"size": 245734584
|
|
27
27
|
},
|
|
28
28
|
"linux-arm64-musl": {
|
|
29
29
|
"binary": "claude",
|
|
30
|
-
"checksum": "
|
|
31
|
-
"size":
|
|
30
|
+
"checksum": "6b9816b225b303dacc17acc9d83016055274498effdbce6227e62d5dbaa762b9",
|
|
31
|
+
"size": 237451072
|
|
32
32
|
},
|
|
33
33
|
"linux-x64-musl": {
|
|
34
34
|
"binary": "claude",
|
|
35
|
-
"checksum": "
|
|
36
|
-
"size":
|
|
35
|
+
"checksum": "b4334268a2ce06bf984dab2d6925cc5afe9d2344fa427fc362e266da0d57a894",
|
|
36
|
+
"size": 239480920
|
|
37
37
|
},
|
|
38
38
|
"win32-x64": {
|
|
39
39
|
"binary": "claude.exe",
|
|
40
|
-
"checksum": "
|
|
41
|
-
"size":
|
|
40
|
+
"checksum": "84304f7d4b0cd0ebcbe8318695a260151b48991a6659c3366fdd5da290c0ab91",
|
|
41
|
+
"size": 249149600
|
|
42
42
|
},
|
|
43
43
|
"win32-arm64": {
|
|
44
44
|
"binary": "claude.exe",
|
|
45
|
-
"checksum": "
|
|
46
|
-
"size":
|
|
45
|
+
"checksum": "5015d2b92866232b85384ac6e5eef4ff155418a92123503e52714c29186af8c6",
|
|
46
|
+
"size": 236673184
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"sdkCompat": {
|
|
50
50
|
"testedWrapperVersions": [
|
|
51
|
-
"0.3.247",
|
|
52
51
|
"0.3.248",
|
|
53
52
|
"0.3.250",
|
|
54
53
|
"0.3.251",
|
package/manifest.zst.json
CHANGED
|
@@ -1,62 +1,61 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
2
|
+
"version": "2.1.288",
|
|
3
3
|
"manifestSignatureEnforcement": "flag",
|
|
4
|
-
"commit": "
|
|
5
|
-
"modsCommit": "
|
|
6
|
-
"buildDate": "2026-10-
|
|
4
|
+
"commit": "17fe1eb736e5b1433d6ca86a1db334cec8520450",
|
|
5
|
+
"modsCommit": "52c76441cae91f6891e4712306bffb057ff6fec5",
|
|
6
|
+
"buildDate": "2026-10-02T17:01:52Z",
|
|
7
7
|
"platforms": {
|
|
8
8
|
"darwin-arm64": {
|
|
9
9
|
"binary": "claude.zst",
|
|
10
|
-
"checksum": "
|
|
11
|
-
"size":
|
|
10
|
+
"checksum": "ba88682b23623966b04ec3639b537ef643c1d0686cc76286cc689602be8c1200",
|
|
11
|
+
"size": 76486664,
|
|
12
12
|
"bundle": {
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "48d54124d3c346c2b8f18b02bbe2f5d7c0184b826d66ee55a5428b26c6cbdfa4",
|
|
14
|
+
"size": 76499869
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"darwin-x64": {
|
|
18
18
|
"binary": "claude.zst",
|
|
19
|
-
"checksum": "
|
|
20
|
-
"size":
|
|
19
|
+
"checksum": "c470eaaccffe95fb288e933cf153c8907f8a2ad0d774d7544f13bbda6864676a",
|
|
20
|
+
"size": 80669475,
|
|
21
21
|
"bundle": {
|
|
22
|
-
"checksum": "
|
|
23
|
-
"size":
|
|
22
|
+
"checksum": "7bebb03604b8ace9c91d03beeff4783170bd42fb49774aef622ec86fee2f9014",
|
|
23
|
+
"size": 80664734
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64": {
|
|
27
27
|
"binary": "claude.zst",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "65cc3a14ea007b1f949cfc09cee9c523cd61617eeb6c78b6386520c0c4b7b47b",
|
|
29
|
+
"size": 85569159
|
|
30
30
|
},
|
|
31
31
|
"linux-x64": {
|
|
32
32
|
"binary": "claude.zst",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "dc67a1d84fec13386cfc50f231211427fee5bd7b7b7f4b5a55af1a6af6f2f326",
|
|
34
|
+
"size": 86304607
|
|
35
35
|
},
|
|
36
36
|
"linux-arm64-musl": {
|
|
37
37
|
"binary": "claude.zst",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "6bd0ec7c4568b53837ea94cf34f9c0e4fed911644ac9b59579aa6e2fb7e3fbcd",
|
|
39
|
+
"size": 83980534
|
|
40
40
|
},
|
|
41
41
|
"linux-x64-musl": {
|
|
42
42
|
"binary": "claude.zst",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
43
|
+
"checksum": "6dc8667b6aa3c6199b0a0920149971a806d532e6e302fa281127449795b1572f",
|
|
44
|
+
"size": 84763155
|
|
45
45
|
},
|
|
46
46
|
"win32-x64": {
|
|
47
47
|
"binary": "claude.exe.zst",
|
|
48
|
-
"checksum": "
|
|
49
|
-
"size":
|
|
48
|
+
"checksum": "36aa8c97bf8665d371c5b5be82f2f1252fcc623dd323a6c7ac1fba0b09b8a35c",
|
|
49
|
+
"size": 88605512
|
|
50
50
|
},
|
|
51
51
|
"win32-arm64": {
|
|
52
52
|
"binary": "claude.exe.zst",
|
|
53
|
-
"checksum": "
|
|
54
|
-
"size":
|
|
53
|
+
"checksum": "35ac5392396c85b0729146af1f1be7f3b4203c3e9dcfccba119ca209f143d1c6",
|
|
54
|
+
"size": 84944844
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
"sdkCompat": {
|
|
58
58
|
"testedWrapperVersions": [
|
|
59
|
-
"0.3.247",
|
|
60
59
|
"0.3.248",
|
|
61
60
|
"0.3.250",
|
|
62
61
|
"0.3.251",
|
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.288",
|
|
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.288",
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.288",
|
|
66
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.288",
|
|
67
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.288",
|
|
68
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.288",
|
|
69
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.288",
|
|
70
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.288",
|
|
71
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.288"
|
|
72
72
|
},
|
|
73
73
|
"files": [
|
|
74
74
|
"sdk.mjs",
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
"extractFromBunfs.d.ts",
|
|
86
86
|
"manifest.json",
|
|
87
87
|
"manifest.zst.json",
|
|
88
|
-
"core-
|
|
89
|
-
"core-
|
|
88
|
+
"core-ejtftkpy.mjs",
|
|
89
|
+
"core-wn2j871p.mjs"
|
|
90
90
|
],
|
|
91
|
-
"claudeCodeVersion": "2.1.
|
|
91
|
+
"claudeCodeVersion": "2.1.288"
|
|
92
92
|
}
|
package/sdk.d.ts
CHANGED
|
@@ -244,6 +244,8 @@ export declare type CanUseTool = (toolName: string, input: Record<string, unknow
|
|
|
244
244
|
};
|
|
245
245
|
/** Explains why this permission request was triggered. */
|
|
246
246
|
decisionReason?: string;
|
|
247
|
+
|
|
248
|
+
|
|
247
249
|
/**
|
|
248
250
|
* Full permission prompt sentence rendered by the bridge (e.g.
|
|
249
251
|
* "Claude wants to read foo.txt"). Use this as the primary prompt
|
|
@@ -2669,7 +2671,7 @@ export declare type PostToolUseHookSpecificOutput = {
|
|
|
2669
2671
|
hookEventName: 'PostToolUse';
|
|
2670
2672
|
additionalContext?: string;
|
|
2671
2673
|
/**
|
|
2672
|
-
* 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)
|
|
2674
|
+
* 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) 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.)
|
|
2673
2675
|
*/
|
|
2674
2676
|
classifierContext?: string;
|
|
2675
2677
|
/**
|
|
@@ -4569,7 +4571,7 @@ export declare type SDKControlInitializeResponse = {
|
|
|
4569
4571
|
plugins_applied?: boolean;
|
|
4570
4572
|
|
|
4571
4573
|
/**
|
|
4572
|
-
* What became of each entry of this initialize's sdkMcpServerManifests, keyed by sdk server name, for the entries whose name is in sdkMcpServers. 'parked': kept for the connect that follows this reply, which answers the server's MCP initialize and first tools/list from it (a later failure to replay shows up as live mcp_message frames, as when no entry was sent). 'already_connected': this CLI already had a live client for the server. 'protocol_version_mismatch': initializeResult.protocolVersion is not the version this CLI's client requests. 'malformed': the entry is not of the documented shape, reported whether or not manifests were honoured (every name in sdkMcpServers gets this when the field itself is not an object). 'not_honoured': the CLI did not use the entry: manifests or remote manifests are switched off in this CLI, the session service has not told this remote-session worker in the last five minutes that only the account owning the session can send events to it, or the request reached such a worker other than over its session stream (nothing for the host to change in any of these cases); or it came over the session stream without sdkMcpServerManifestsOrigin or on a frame too old to trust (the host's to fix). Absent when the request carried no sdkMcpServerManifests or named no sdkMcpServers, and on CLIs that predate the field.
|
|
4574
|
+
* What became of each entry of this initialize's sdkMcpServerManifests, keyed by sdk server name, for the entries whose name is in sdkMcpServers. 'parked': kept for the connect that follows this reply, which answers the server's MCP initialize and first tools/list from it (a later failure to replay shows up as live mcp_message frames, as when no entry was sent). 'already_connected': this CLI already had a live client for the server. 'protocol_version_mismatch': initializeResult.protocolVersion is not the version this CLI's client requests. 'malformed': the entry is not of the documented shape, reported whether or not manifests were honoured (every name in sdkMcpServers gets this when the field itself is not an object); or an honoured entry is past the limits this CLI sets on a live answer. 'not_honoured': the CLI did not use the entry: manifests or remote manifests are switched off in this CLI, the session service has not told this remote-session worker in the last five minutes that only the account owning the session can send events to it, or the request reached such a worker other than over its session stream (nothing for the host to change in any of these cases); or this CLI had read as many tool lists as it allows in a minute (send it again later); or it came over the session stream without sdkMcpServerManifestsOrigin or on a frame too old to trust (the host's to fix). Absent when the request carried no sdkMcpServerManifests or named no sdkMcpServers, and on CLIs that predate the field.
|
|
4573
4575
|
*/
|
|
4574
4576
|
sdk_mcp_manifests_parked?: Record<string, 'parked' | 'already_connected' | 'protocol_version_mismatch' | 'malformed' | 'not_honoured'>;
|
|
4575
4577
|
|
|
@@ -5249,6 +5251,10 @@ export declare type SDKInformationalMessage = {
|
|
|
5249
5251
|
* When true, execution stops after this message (e.g. a Stop hook denied continuation).
|
|
5250
5252
|
*/
|
|
5251
5253
|
prevent_continuation?: boolean;
|
|
5254
|
+
/**
|
|
5255
|
+
* Opaque feature tag on a line a host may treat specially; absent on ordinary lines. Hosts ignore values they do not know.
|
|
5256
|
+
*/
|
|
5257
|
+
tag?: string;
|
|
5252
5258
|
uuid: UUID;
|
|
5253
5259
|
session_id: string;
|
|
5254
5260
|
};
|
|
@@ -5736,6 +5742,7 @@ export declare type SDKResultSuccess = {
|
|
|
5736
5742
|
|
|
5737
5743
|
|
|
5738
5744
|
|
|
5745
|
+
|
|
5739
5746
|
user_message_uuid?: string;
|
|
5740
5747
|
user_message_uuids?: string[];
|
|
5741
5748
|
resume_reason?: string;
|
|
@@ -5761,6 +5768,7 @@ export declare type SDKResultSuccess = {
|
|
|
5761
5768
|
first_text_post_wall_ms?: number;
|
|
5762
5769
|
time_to_request_from_spawn_ms?: number;
|
|
5763
5770
|
warm_spare_claimed?: boolean;
|
|
5771
|
+
|
|
5764
5772
|
time_origin_ms?: number;
|
|
5765
5773
|
is_error: boolean;
|
|
5766
5774
|
api_error_status?: number | null;
|
|
@@ -8958,6 +8966,10 @@ export declare interface Settings {
|
|
|
8958
8966
|
* Maximum effort level for this model. Within one settings file it replaces the top-level maxEffortLevel for the model ("max" exempts it); across settings files the lowest applicable value wins. Keyed like effortLevel: the canonical model name also matches its dated, [1m], Bedrock and Vertex spellings.
|
|
8959
8967
|
*/
|
|
8960
8968
|
maxEffortLevel?: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
8969
|
+
/**
|
|
8970
|
+
* Auto-compact window for this model, in tokens (100000 to 1000000), or "auto" for the window tuned for the model. Within one settings file it replaces the top-level autoCompactWindow for the model. /autocompact saves here. The canonical model name as key also matches its dated, [1m], Bedrock and Vertex spellings.
|
|
8971
|
+
*/
|
|
8972
|
+
autoCompactWindow?: 'auto' | number;
|
|
8961
8973
|
[k: string]: unknown;
|
|
8962
8974
|
};
|
|
8963
8975
|
};
|