@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/manifest.json CHANGED
@@ -1,53 +1,52 @@
1
1
  {
2
- "version": "2.1.266",
2
+ "version": "2.1.267",
3
3
  "manifestSignatureEnforcement": "flag",
4
- "commit": "eb01d60909645dfca0bf35a844b946aabaa3a75e",
5
- "buildDate": "2026-09-08T23:11:11Z",
4
+ "commit": "a9e1808c8204fef901336d54bac7d4ab442955cb",
5
+ "buildDate": "2026-09-09T17:39:36Z",
6
6
  "platforms": {
7
7
  "darwin-arm64": {
8
8
  "binary": "claude",
9
- "checksum": "553d1b9e9e7068b275c0a783c7e139ff6503096f286e674c8c919379fb0eca62",
10
- "size": 199422144
9
+ "checksum": "a681f3008f0050029aeebcab3af51bb6a55ddeb625a3af3141a4416d43cd2558",
10
+ "size": 200489184
11
11
  },
12
12
  "darwin-x64": {
13
13
  "binary": "claude",
14
- "checksum": "e8010163be47e29681e768946865130482e82bb47b2c5e7d0f217bacd25b526d",
15
- "size": 208075488
14
+ "checksum": "071988cb2e5a4378d8543d78e0ff5f8ed1ecc5e113271774a0582ee74fb0ef79",
15
+ "size": 209165280
16
16
  },
17
17
  "linux-arm64": {
18
18
  "binary": "claude",
19
- "checksum": "6e44c5d3c97efaa1ee35ab8dd875a907681707e5cc4f6ca0da3d13a917bbcedb",
20
- "size": 215670184
19
+ "checksum": "226a4e009574044a18bf5495f127806b2a1bfcbf25b3c01608705fafee95fefb",
20
+ "size": 216718760
21
21
  },
22
22
  "linux-x64": {
23
23
  "binary": "claude",
24
- "checksum": "19842705e989393fce936804df6d2ab034860e24b8f8880357981d87ffd83fac",
25
- "size": 215940592
24
+ "checksum": "0399c793ff571d5946ef923d80b4f330d05ac4b6842a6b0775468f5d389403c0",
25
+ "size": 217013744
26
26
  },
27
27
  "linux-arm64-musl": {
28
28
  "binary": "claude",
29
- "checksum": "7736377f052bffce3113570dc80a9fa1661f911fb0f6730e3b3b550db1991f10",
30
- "size": 208615064
29
+ "checksum": "2aa337b3610742cdc9ed5dc5123d0ac41094849235182a5e6f2b7956da7ccaa5",
30
+ "size": 209663640
31
31
  },
32
32
  "linux-x64-musl": {
33
33
  "binary": "claude",
34
- "checksum": "1b92f53d2380955bf43cf50c261f88ae69e865b620e214be217cb346d0faaff1",
35
- "size": 209956816
34
+ "checksum": "3c336039170511e6592be624097e95eb9e85be0ecf96f78b331907497512c401",
35
+ "size": 211034064
36
36
  },
37
37
  "win32-x64": {
38
38
  "binary": "claude.exe",
39
- "checksum": "d2c5f7b3b6a12819097ceb6efbce2a390157166003fcaee32dbde0e6d7b45ef7",
40
- "size": 218971808
39
+ "checksum": "23dde2a47cf1d7d9c4a2d96d21fa80ea9bfc872dfde0ee06e9982d2908603350",
40
+ "size": 220051616
41
41
  },
42
42
  "win32-arm64": {
43
43
  "binary": "claude.exe",
44
- "checksum": "ca711c1637af25d5ab517bc499603355fdaccf3884728228960aaeab3f601294",
45
- "size": 210214048
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.266",
2
+ "version": "2.1.267",
3
3
  "manifestSignatureEnforcement": "flag",
4
- "commit": "eb01d60909645dfca0bf35a844b946aabaa3a75e",
5
- "buildDate": "2026-09-08T23:12:14Z",
4
+ "commit": "a9e1808c8204fef901336d54bac7d4ab442955cb",
5
+ "buildDate": "2026-09-09T17:40:48Z",
6
6
  "platforms": {
7
7
  "darwin-arm64": {
8
8
  "binary": "claude.zst",
9
- "checksum": "fec3b87dcf30dd612d07f304aa3134057a6ebc37caabdb46f001559c094cbe0a",
10
- "size": 66235285,
9
+ "checksum": "c5a8405e56c2c26b7cef16fa2ada72515478d5e5288b69360fec2741be65b71b",
10
+ "size": 66621695,
11
11
  "bundle": {
12
- "checksum": "1fd53335cc23bbc951f5a07748f84ceae4847374a84ef3a8cc1808367a2cb110",
13
- "size": 66237126
12
+ "checksum": "c6e30bda69ce84e5b44f9eb7b48c31ccb7794a2bb50932da13b940d15cfd8eee",
13
+ "size": 66619481
14
14
  }
15
15
  },
16
16
  "darwin-x64": {
17
17
  "binary": "claude.zst",
18
- "checksum": "fce3bad16eb9c803d836a3239cc51cab80b2f9ad2265a4f7141331069e3dee57",
19
- "size": 70277891,
18
+ "checksum": "dbfe2fb95376f711d82e4652d978b8deb83c98c6eba340a68ecdc1d78f67ddb6",
19
+ "size": 70666263,
20
20
  "bundle": {
21
- "checksum": "7be9b10333fe856400f18c3f269bde9fd21babee8d5a07084d8f4951fe295625",
22
- "size": 70275565
21
+ "checksum": "24034ea1d3368bd9b0a8ac36c1de1a2b4ab72123912e3f366318d6573a44a29b",
22
+ "size": 70672085
23
23
  }
24
24
  },
25
25
  "linux-arm64": {
26
26
  "binary": "claude.zst",
27
- "checksum": "7d8bc13e8109a781b0d90245871fec32925c99956c458f05efe1043f9ec2c626",
28
- "size": 75447030
27
+ "checksum": "96b42c224156eb36f92362e29e789070079599538e6974e90d4fdc3cc7fb560d",
28
+ "size": 75836752
29
29
  },
30
30
  "linux-x64": {
31
31
  "binary": "claude.zst",
32
- "checksum": "44ed095b31d64f2ed539b2847f3e3a6f2f02f5d7a447f0a895a998c7a2878f37",
33
- "size": 76051094
32
+ "checksum": "f21ed66d02ebdd75b33b8ce19c930968b2a006a6dad5c5b59d5f2b355622c4c0",
33
+ "size": 76440981
34
34
  },
35
35
  "linux-arm64-musl": {
36
36
  "binary": "claude.zst",
37
- "checksum": "ea6aee7861e4ad0179279ec4878af9b726a1932ee503a77e5af4a613d00b5085",
38
- "size": 73931273
37
+ "checksum": "5ba1666b27024a2ae2fd3fd4d29c4ab5a358611d0cb767c4bb9784a0a3a72169",
38
+ "size": 74320070
39
39
  },
40
40
  "linux-x64-musl": {
41
41
  "binary": "claude.zst",
42
- "checksum": "e87cb524e808ea07f24a401f7d47feeca6fb52d349837506b96ff7cafcf555da",
43
- "size": 74565322
42
+ "checksum": "5553328b7a7fedd67a44cfbc2640dd236168298387e5c1e750227bc0c0b305c8",
43
+ "size": 74956187
44
44
  },
45
45
  "win32-x64": {
46
46
  "binary": "claude.exe.zst",
47
- "checksum": "b6be4b20d80c3535c1245cb3f2f7eca58f83929ce4a66969de15d5d0f2bd1fe8",
48
- "size": 78432170
47
+ "checksum": "8ffcd85e6f6668e6185d8bc7c7b185ce93323019902c59c6e809a9ed2eec892f",
48
+ "size": 78827899
49
49
  },
50
50
  "win32-arm64": {
51
51
  "binary": "claude.exe.zst",
52
- "checksum": "365ff027777116ab9b5d58bd68f8a7db67f9bb9f59319b4ebed87793cbd67726",
53
- "size": 75211940
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.266",
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.266",
61
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.266",
62
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.266",
63
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.266",
64
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.266",
65
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.266",
66
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.266",
67
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.266"
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.266"
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 the version this publish makes, max 60 chars (e.g. "Draft to legal"). Shown in the version picker. Optional — a few words, not a description.
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
  */