@anthropic-ai/claude-agent-sdk 0.3.266 → 0.3.267
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 +76 -76
- package/browser-sdk.d.ts +78 -1
- package/browser-sdk.js +60 -60
- package/manifest.json +19 -20
- package/manifest.zst.json +23 -24
- package/package.json +10 -10
- package/sdk-tools.d.ts +5 -1
- package/sdk.d.ts +18 -1
- package/sdk.mjs +76 -76
package/manifest.json
CHANGED
|
@@ -1,53 +1,52 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
2
|
+
"version": "2.1.267",
|
|
3
3
|
"manifestSignatureEnforcement": "flag",
|
|
4
|
-
"commit": "
|
|
5
|
-
"buildDate": "2026-09-
|
|
4
|
+
"commit": "a9e1808c8204fef901336d54bac7d4ab442955cb",
|
|
5
|
+
"buildDate": "2026-09-09T17:39:36Z",
|
|
6
6
|
"platforms": {
|
|
7
7
|
"darwin-arm64": {
|
|
8
8
|
"binary": "claude",
|
|
9
|
-
"checksum": "
|
|
10
|
-
"size":
|
|
9
|
+
"checksum": "a681f3008f0050029aeebcab3af51bb6a55ddeb625a3af3141a4416d43cd2558",
|
|
10
|
+
"size": 200489184
|
|
11
11
|
},
|
|
12
12
|
"darwin-x64": {
|
|
13
13
|
"binary": "claude",
|
|
14
|
-
"checksum": "
|
|
15
|
-
"size":
|
|
14
|
+
"checksum": "071988cb2e5a4378d8543d78e0ff5f8ed1ecc5e113271774a0582ee74fb0ef79",
|
|
15
|
+
"size": 209165280
|
|
16
16
|
},
|
|
17
17
|
"linux-arm64": {
|
|
18
18
|
"binary": "claude",
|
|
19
|
-
"checksum": "
|
|
20
|
-
"size":
|
|
19
|
+
"checksum": "226a4e009574044a18bf5495f127806b2a1bfcbf25b3c01608705fafee95fefb",
|
|
20
|
+
"size": 216718760
|
|
21
21
|
},
|
|
22
22
|
"linux-x64": {
|
|
23
23
|
"binary": "claude",
|
|
24
|
-
"checksum": "
|
|
25
|
-
"size":
|
|
24
|
+
"checksum": "0399c793ff571d5946ef923d80b4f330d05ac4b6842a6b0775468f5d389403c0",
|
|
25
|
+
"size": 217013744
|
|
26
26
|
},
|
|
27
27
|
"linux-arm64-musl": {
|
|
28
28
|
"binary": "claude",
|
|
29
|
-
"checksum": "
|
|
30
|
-
"size":
|
|
29
|
+
"checksum": "2aa337b3610742cdc9ed5dc5123d0ac41094849235182a5e6f2b7956da7ccaa5",
|
|
30
|
+
"size": 209663640
|
|
31
31
|
},
|
|
32
32
|
"linux-x64-musl": {
|
|
33
33
|
"binary": "claude",
|
|
34
|
-
"checksum": "
|
|
35
|
-
"size":
|
|
34
|
+
"checksum": "3c336039170511e6592be624097e95eb9e85be0ecf96f78b331907497512c401",
|
|
35
|
+
"size": 211034064
|
|
36
36
|
},
|
|
37
37
|
"win32-x64": {
|
|
38
38
|
"binary": "claude.exe",
|
|
39
|
-
"checksum": "
|
|
40
|
-
"size":
|
|
39
|
+
"checksum": "23dde2a47cf1d7d9c4a2d96d21fa80ea9bfc872dfde0ee06e9982d2908603350",
|
|
40
|
+
"size": 220051616
|
|
41
41
|
},
|
|
42
42
|
"win32-arm64": {
|
|
43
43
|
"binary": "claude.exe",
|
|
44
|
-
"checksum": "
|
|
45
|
-
"size":
|
|
44
|
+
"checksum": "0dc306259e3036af4255f66b77451d3f7297bcd376bfae20f7b42e2fa1473607",
|
|
45
|
+
"size": 211294368
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"sdkCompat": {
|
|
49
49
|
"testedWrapperVersions": [
|
|
50
|
-
"0.3.224",
|
|
51
50
|
"0.3.225",
|
|
52
51
|
"0.3.226",
|
|
53
52
|
"0.3.227"
|
package/manifest.zst.json
CHANGED
|
@@ -1,61 +1,60 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
2
|
+
"version": "2.1.267",
|
|
3
3
|
"manifestSignatureEnforcement": "flag",
|
|
4
|
-
"commit": "
|
|
5
|
-
"buildDate": "2026-09-
|
|
4
|
+
"commit": "a9e1808c8204fef901336d54bac7d4ab442955cb",
|
|
5
|
+
"buildDate": "2026-09-09T17:40:48Z",
|
|
6
6
|
"platforms": {
|
|
7
7
|
"darwin-arm64": {
|
|
8
8
|
"binary": "claude.zst",
|
|
9
|
-
"checksum": "
|
|
10
|
-
"size":
|
|
9
|
+
"checksum": "c5a8405e56c2c26b7cef16fa2ada72515478d5e5288b69360fec2741be65b71b",
|
|
10
|
+
"size": 66621695,
|
|
11
11
|
"bundle": {
|
|
12
|
-
"checksum": "
|
|
13
|
-
"size":
|
|
12
|
+
"checksum": "c6e30bda69ce84e5b44f9eb7b48c31ccb7794a2bb50932da13b940d15cfd8eee",
|
|
13
|
+
"size": 66619481
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"darwin-x64": {
|
|
17
17
|
"binary": "claude.zst",
|
|
18
|
-
"checksum": "
|
|
19
|
-
"size":
|
|
18
|
+
"checksum": "dbfe2fb95376f711d82e4652d978b8deb83c98c6eba340a68ecdc1d78f67ddb6",
|
|
19
|
+
"size": 70666263,
|
|
20
20
|
"bundle": {
|
|
21
|
-
"checksum": "
|
|
22
|
-
"size":
|
|
21
|
+
"checksum": "24034ea1d3368bd9b0a8ac36c1de1a2b4ab72123912e3f366318d6573a44a29b",
|
|
22
|
+
"size": 70672085
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"linux-arm64": {
|
|
26
26
|
"binary": "claude.zst",
|
|
27
|
-
"checksum": "
|
|
28
|
-
"size":
|
|
27
|
+
"checksum": "96b42c224156eb36f92362e29e789070079599538e6974e90d4fdc3cc7fb560d",
|
|
28
|
+
"size": 75836752
|
|
29
29
|
},
|
|
30
30
|
"linux-x64": {
|
|
31
31
|
"binary": "claude.zst",
|
|
32
|
-
"checksum": "
|
|
33
|
-
"size":
|
|
32
|
+
"checksum": "f21ed66d02ebdd75b33b8ce19c930968b2a006a6dad5c5b59d5f2b355622c4c0",
|
|
33
|
+
"size": 76440981
|
|
34
34
|
},
|
|
35
35
|
"linux-arm64-musl": {
|
|
36
36
|
"binary": "claude.zst",
|
|
37
|
-
"checksum": "
|
|
38
|
-
"size":
|
|
37
|
+
"checksum": "5ba1666b27024a2ae2fd3fd4d29c4ab5a358611d0cb767c4bb9784a0a3a72169",
|
|
38
|
+
"size": 74320070
|
|
39
39
|
},
|
|
40
40
|
"linux-x64-musl": {
|
|
41
41
|
"binary": "claude.zst",
|
|
42
|
-
"checksum": "
|
|
43
|
-
"size":
|
|
42
|
+
"checksum": "5553328b7a7fedd67a44cfbc2640dd236168298387e5c1e750227bc0c0b305c8",
|
|
43
|
+
"size": 74956187
|
|
44
44
|
},
|
|
45
45
|
"win32-x64": {
|
|
46
46
|
"binary": "claude.exe.zst",
|
|
47
|
-
"checksum": "
|
|
48
|
-
"size":
|
|
47
|
+
"checksum": "8ffcd85e6f6668e6185d8bc7c7b185ce93323019902c59c6e809a9ed2eec892f",
|
|
48
|
+
"size": 78827899
|
|
49
49
|
},
|
|
50
50
|
"win32-arm64": {
|
|
51
51
|
"binary": "claude.exe.zst",
|
|
52
|
-
"checksum": "
|
|
53
|
-
"size":
|
|
52
|
+
"checksum": "aa946837470a721111a3a66b437c784b72a6394e56033b15a9fb7e67632098f1",
|
|
53
|
+
"size": 75605903
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"sdkCompat": {
|
|
57
57
|
"testedWrapperVersions": [
|
|
58
|
-
"0.3.224",
|
|
59
58
|
"0.3.225",
|
|
60
59
|
"0.3.226",
|
|
61
60
|
"0.3.227"
|
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.267",
|
|
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.267",
|
|
61
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.267",
|
|
62
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.267",
|
|
63
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.267",
|
|
64
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.267",
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.267",
|
|
66
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.267",
|
|
67
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.267"
|
|
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.267"
|
|
84
84
|
}
|
package/sdk-tools.d.ts
CHANGED
|
@@ -448,6 +448,8 @@ export type ArtifactOutput =
|
|
|
448
448
|
contract?: string;
|
|
449
449
|
updated?: boolean;
|
|
450
450
|
audience?: string;
|
|
451
|
+
seq?: number;
|
|
452
|
+
unchanged?: true;
|
|
451
453
|
liveSubscription?: string;
|
|
452
454
|
}
|
|
453
455
|
| {
|
|
@@ -730,6 +732,8 @@ export interface BashInput {
|
|
|
730
732
|
/**
|
|
731
733
|
* Clear, concise description of what this command does in active voice. Never use words like "complex" or "risk" in the description - just describe what it does.
|
|
732
734
|
*
|
|
735
|
+
* Say what the command does in plain words: do not echo the command's text, its flags, or file paths - the user reads this description, often without seeing the command.
|
|
736
|
+
*
|
|
733
737
|
* For simple commands (git, npm, standard CLI tools), keep it brief (5-10 words):
|
|
734
738
|
* - ls → "List files in current directory"
|
|
735
739
|
* - git status → "Show working tree status"
|
|
@@ -3120,7 +3124,7 @@ export interface ArtifactInput {
|
|
|
3120
3124
|
*/
|
|
3121
3125
|
description?: string;
|
|
3122
3126
|
/**
|
|
3123
|
-
* A short name for
|
|
3127
|
+
* A short name for this publish, max 60 chars (e.g. "Draft to legal"). Optional — a few words, not a description.
|
|
3124
3128
|
*/
|
|
3125
3129
|
label?: string;
|
|
3126
3130
|
/**
|
package/sdk.d.ts
CHANGED
|
@@ -3383,7 +3383,7 @@ export declare type SDKAssistantMessage = {
|
|
|
3383
3383
|
|
|
3384
3384
|
};
|
|
3385
3385
|
|
|
3386
|
-
export declare type SDKAssistantMessageError = 'authentication_failed' | 'oauth_org_not_allowed' | 'account_on_hold' | 'billing_error' | 'rate_limit' | 'overloaded' | 'invalid_request' | 'model_not_found' | 'server_error' | 'unknown' | 'max_output_tokens';
|
|
3386
|
+
export declare type SDKAssistantMessageError = 'authentication_failed' | 'oauth_org_not_allowed' | 'account_on_hold' | 'billing_error' | 'rate_limit' | 'overloaded' | 'invalid_request' | 'model_not_found' | 'server_error' | 'unknown' | 'max_output_tokens' | 'cloud_credential_error';
|
|
3387
3387
|
|
|
3388
3388
|
export declare type SDKAuthStatusMessage = {
|
|
3389
3389
|
type: 'auth_status';
|
|
@@ -6472,6 +6472,7 @@ export declare interface Settings {
|
|
|
6472
6472
|
[k: string]: unknown;
|
|
6473
6473
|
};
|
|
6474
6474
|
};
|
|
6475
|
+
|
|
6475
6476
|
/**
|
|
6476
6477
|
* Additional marketplaces to make available for this repository. Typically used in repository .claude/settings.json to ensure team members have required plugin sources.
|
|
6477
6478
|
*/
|
|
@@ -8000,6 +8001,10 @@ export declare interface Settings {
|
|
|
8000
8001
|
* Persisted effort level for supported models.
|
|
8001
8002
|
*/
|
|
8002
8003
|
effortLevel?: 'low' | 'medium' | 'high' | 'xhigh';
|
|
8004
|
+
/**
|
|
8005
|
+
* Maximum effort level. Anything above it (an /effort or /model pick, --effort, CLAUDE_CODE_EFFORT_LEVEL, a model default) is clamped to it, on every provider including Bedrock, Vertex and Foundry. Combines with an organization's per-model effort cap by taking the lower of the two; across settings files the lowest value wins, and modelSettings.<model>.maxEffortLevel replaces it per model. Enforced client-side: an effort supplied through CLAUDE_CODE_EXTRA_BODY is not clamped.
|
|
8006
|
+
*/
|
|
8007
|
+
maxEffortLevel?: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
8003
8008
|
/**
|
|
8004
8009
|
* Per-model settings keyed by canonical model name.
|
|
8005
8010
|
*/
|
|
@@ -8009,6 +8014,10 @@ export declare interface Settings {
|
|
|
8009
8014
|
* Persisted effort level for this model.
|
|
8010
8015
|
*/
|
|
8011
8016
|
effortLevel?: 'low' | 'medium' | 'high' | 'xhigh';
|
|
8017
|
+
/**
|
|
8018
|
+
* 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.
|
|
8019
|
+
*/
|
|
8020
|
+
maxEffortLevel?: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
8012
8021
|
[k: string]: unknown;
|
|
8013
8022
|
};
|
|
8014
8023
|
};
|
|
@@ -8722,6 +8731,14 @@ export declare interface Transport {
|
|
|
8722
8731
|
* control_responses matching this id — only the worker may answer.
|
|
8723
8732
|
*/
|
|
8724
8733
|
expectControlResponse?(requestId: string): void;
|
|
8734
|
+
/**
|
|
8735
|
+
* Called by Query immediately before it yields `message` to the SDK
|
|
8736
|
+
* consumer. Transports that keep a consumer-facing delivery cursor
|
|
8737
|
+
* (BrowserSSETransport's getLastSequenceNum()) advance it here, so the
|
|
8738
|
+
* cursor covers exactly the messages the consumer was handed — not ones
|
|
8739
|
+
* still buffered between the transport and the consumer.
|
|
8740
|
+
*/
|
|
8741
|
+
markDelivered?(message: object): void;
|
|
8725
8742
|
/**
|
|
8726
8743
|
* End the input stream
|
|
8727
8744
|
*/
|