@anthropic-ai/claude-agent-sdk 0.3.235 → 0.3.237

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,51 @@
1
1
  {
2
- "version": "2.1.235",
3
- "commit": "ba01fa45e3d1d888c1c23caed775ddd06192448b",
4
- "buildDate": "2026-08-18T01:48:25Z",
2
+ "version": "2.1.237",
3
+ "commit": "45590910f0b746ddad3fe7d8135c5c29b33ccf88",
4
+ "buildDate": "2026-08-19T22:55:17Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "83b8f806f6f2eea316cfe246628e6c23374711d868f1fd0409db551b877b7748",
9
- "size": 313334608
8
+ "checksum": "338901351d4ff17495738c67fc3e12a32c1b506738ac5e012eb782d3d8b5be43",
9
+ "size": 317110288
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "325a2dbc166ba8361a913ce588dce4a236789502060239acea52072bb51a54f1",
14
- "size": 321995248
13
+ "checksum": "9f00789754a7b95febc6d4e37a3b6523d4d9c4c2333a2ce4bd596ad82186224e",
14
+ "size": 325793008
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "cff9592faa292db0f6ac21874f151b8c3d44e23bf0ab9fd1bcca95edc3469549",
19
- "size": 328063208
18
+ "checksum": "a701cfb6bb4703abc6f3ce47508c878ca8158ebdbeacd5c35c7d510c7bc70177",
19
+ "size": 331864296
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "bfcf0ae2dbf94b2b6a106074aabf3938b9a10889c3b678e4cb5a00c03274d5d5",
24
- "size": 330946864
23
+ "checksum": "73975167f0108693cf6fd6614994781657ebb8456ebef5d247458734abfb3916",
24
+ "size": 334715184
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "c852a47a50db72560a779240a0a9b86ef38cc1453ab5268228f6519e0eb231de",
29
- "size": 321208088
28
+ "checksum": "60d832e81dd5076333e9f91286f660f2aaacc630079863599555caa8fe134eba",
29
+ "size": 325009176
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "6aae801d8f9d31d372e2152cab17d582941d94be03cfcd63328bb4436f0e0385",
34
- "size": 325074912
33
+ "checksum": "b2c81ba8f2b0086b2536a56bf074bbf643043c2bd1aeea6ac8905709ae296168",
34
+ "size": 328843232
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "6786fa5d75a64260de09a3b5f88cd4644dc4292e45a38a4df93dc7eb4d0df3fb",
39
- "size": 326528672
38
+ "checksum": "406167231b3636e55a01d0ce93567256c61e7973489e645883302f14808ae668",
39
+ "size": 330167456
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "8709594f6daebfef9a03ab56401600cfd1d0a980c640daf30d6de6f7cf3f42fe",
44
- "size": 314428576
43
+ "checksum": "35978113ca98721cbf14c3abac90482d467419b9669d849c89d91c5664a5f95d",
44
+ "size": 318066848
45
45
  }
46
46
  },
47
47
  "sdkCompat": {
48
48
  "testedWrapperVersions": [
49
- "0.3.197",
50
- "0.3.198",
51
49
  "0.3.199",
52
50
  "0.3.200",
53
51
  "0.3.201",
package/manifest.zst.json CHANGED
@@ -1,61 +1,59 @@
1
1
  {
2
- "version": "2.1.235",
3
- "commit": "ba01fa45e3d1d888c1c23caed775ddd06192448b",
4
- "buildDate": "2026-08-18T01:50:18Z",
2
+ "version": "2.1.237",
3
+ "commit": "45590910f0b746ddad3fe7d8135c5c29b33ccf88",
4
+ "buildDate": "2026-08-19T22:57:46Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "64d9a0d943bd19b86b129d1999448ae84646c9b65cf973c4a86868432690c44e",
9
- "size": 62750371,
8
+ "checksum": "6bdfd8d555fa5e42e7e4f155e5706f03cd47082d093bdcecd2980c9541cba64c",
9
+ "size": 63485985,
10
10
  "bundle": {
11
- "checksum": "7b8fa15d473fbf54042c78917f6008d1fafff2b3f4f33d236151763e15b6b0a0",
12
- "size": 62762493
11
+ "checksum": "766ad312a75062e5761a190cf6d9a91129300f8d58502b1af70e301905004811",
12
+ "size": 63491494
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "46c273a1e1ba96313f0efd6f3b613b64fa6e62701e7c373cabf61454e84f2d10",
18
- "size": 67364668,
17
+ "checksum": "c362bc2dbb47a963b2f73ae30766770073fa04dccc08f75646b5f3c1fdbba97f",
18
+ "size": 68099586,
19
19
  "bundle": {
20
- "checksum": "10fda1f5e7257e827fe9efb6f9da90efc7e92301ba051b7bfeb1e2cd8d9d68a7",
21
- "size": 67365408
20
+ "checksum": "b0ed2bbb50025cdc930c25c210064b23e4e39c784971fb8ddc44f4019dac6cbf",
21
+ "size": 68104413
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "eab7499cd16fdfd907887ae3ad094600cc7153f1ebaadb5122245c63cb916221",
27
- "size": 71589337
26
+ "checksum": "c0fd5f3d315d7f2e81559f417a44e36dfe60d357f6a940a40cd532e08520fd0e",
27
+ "size": 72222417
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "09976131001b794c1124af4ba971f7f03886c69a5d6ec70c8b44b955fafba038",
32
- "size": 72781979
31
+ "checksum": "8901b24ccb274870109f6d89c3477e510565b86be656b31f655b03afcf197132",
32
+ "size": 73401339
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "fc18507b4fe81e6a7e9a33df96baff59b0ff58f3068e681f3030b5946c6dd81b",
37
- "size": 70224998
36
+ "checksum": "01a70d3df6f417ff8dd64ae3ec57200d67abfef2647ae93951caaddd91bc1a8c",
37
+ "size": 70749737
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "d95803e48b20cdd5a17bff7636d549e7f43b4e9d0d6240b93f0a1fe668447a11",
42
- "size": 71315234
41
+ "checksum": "56dc1ece68b81ff0e6edc4f4b8437643a0cbad8f2cee84ea02a62cff554795bd",
42
+ "size": 72063095
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "0edc56f8a064608dd06cb9ddcd826b59bc3d43d039fc9cdfd74a40dcc4969494",
47
- "size": 75127952
46
+ "checksum": "85ddfcf80b7a918b6707e6d3d611223f986c2c4e9b9c493206fd9807fa476a6d",
47
+ "size": 75828267
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "3d8a085053720c9bfd539e2e3188c436fcab206e0f0f3922ffbd3e96a2ccddc1",
52
- "size": 71516738
51
+ "checksum": "3018bba62073b6dd813aa1aa0ff4133f653ae5fbccd07ae6c6abc56cc64c9968",
52
+ "size": 72228518
53
53
  }
54
54
  },
55
55
  "sdkCompat": {
56
56
  "testedWrapperVersions": [
57
- "0.3.197",
58
- "0.3.198",
59
57
  "0.3.199",
60
58
  "0.3.200",
61
59
  "0.3.201",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-agent-sdk",
3
- "version": "0.3.235",
3
+ "version": "0.3.237",
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.235",
61
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.235",
62
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.235",
63
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.235",
64
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.235",
65
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.235",
66
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.235",
67
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.235"
60
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.237",
61
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.237",
62
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.237",
63
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.237",
64
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.237",
65
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.237",
66
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.237",
67
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.237"
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.235"
83
+ "claudeCodeVersion": "2.1.237"
84
84
  }
package/sdk-tools.d.ts CHANGED
@@ -401,6 +401,7 @@ export type ArtifactOutput =
401
401
  | {
402
402
  url: string;
403
403
  path: string;
404
+ artifact_id?: string;
404
405
  title?: string;
405
406
  version?: string;
406
407
  capabilities?: unknown;
@@ -2966,13 +2967,13 @@ export interface ArtifactInput {
2966
2967
  */
2967
2968
  force?: boolean;
2968
2969
  /**
2969
- * read_asset and delete_asset: the asset's id (32 hex characters), from a list_assets or upload_asset result.
2970
+ * read_asset: directory to save the file into (default: the working directory); the file is named by the asset id plus the extension for its type.
2970
2971
  */
2971
- asset_id?: string;
2972
+ out_dir?: string;
2972
2973
  /**
2973
- * read_asset only: directory to save the file into (default: the working directory). The file is named by the asset id plus the extension for its type.
2974
+ * read_asset and delete_asset: the asset's id (32 hex characters), from a list_assets or upload_asset result.
2974
2975
  */
2975
- out_dir?: string;
2976
+ asset_id?: string;
2976
2977
  /**
2977
2978
  * list_assets only: the `next` value from a previous list_assets result, to continue that listing.
2978
2979
  */
package/sdk.d.ts CHANGED
@@ -2330,6 +2330,10 @@ export declare type PostToolUseHookInput = BaseHookInput & {
2330
2330
  export declare type PostToolUseHookSpecificOutput = {
2331
2331
  hookEventName: 'PostToolUse';
2332
2332
  additionalContext?: string;
2333
+ /**
2334
+ * 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), inner REPL calls, 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.)
2335
+ */
2336
+ classifierContext?: string;
2333
2337
  /**
2334
2338
  * Replaces the tool output before it is sent to the model
2335
2339
  */
@@ -3095,6 +3099,7 @@ export declare type SDKAssistantMessage = {
3095
3099
 
3096
3100
 
3097
3101
 
3102
+
3098
3103
  };
3099
3104
 
3100
3105
  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';
@@ -4184,6 +4189,8 @@ declare type SDKHookCallbackRequest = {
4184
4189
  callback_id: string;
4185
4190
  input: coreTypes.HookInput;
4186
4191
  tool_use_id?: string;
4192
+
4193
+
4187
4194
  };
4188
4195
 
4189
4196
  export declare type SDKHookProgressMessage = {