@anthropic-ai/claude-agent-sdk 0.3.152 → 0.3.153

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,47 +1,47 @@
1
1
  {
2
- "version": "2.1.152",
3
- "commit": "228d8c605defcb10a183db2dbf364a2d6c490c8b",
4
- "buildDate": "2026-05-26T19:31:46Z",
2
+ "version": "2.1.153",
3
+ "commit": "6cfd211761f355dcebba152b66399d0416e445d2",
4
+ "buildDate": "2026-05-27T20:11:39Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "43cb9361f7bc48c39214d5f125003b8de0ebde5cd6a1173e6b74fcdd10966d46",
9
- "size": 214210080
8
+ "checksum": "449d9c89d7a63b1d427d912a7bd6e6f23f9a7b363866697c9fa9a0012546b254",
9
+ "size": 214457760
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "e9ecf8da70518a4ff852baf36c9eac369762a4568ba3cd5078fa894303e39735",
14
- "size": 216724240
13
+ "checksum": "4b90521c64b728caabe221737ce8a83d362ef0852eee7d789f014f7ff73ce97b",
14
+ "size": 216971920
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "35ef2685c4f679b5c4610ef56b30a680b6d595b958b4fa5ec0bfa2852195f345",
19
- "size": 239515272
18
+ "checksum": "6277fbbea72228a069e4719fc3e5fa36f16749247a2321c520dae93e83e92d9c",
19
+ "size": 239777416
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "5155bdca27f754aba0d2fe2f80336f5fd4793224561c234a723f0ccef654a8e8",
24
- "size": 239650512
23
+ "checksum": "214f603f31942162dac9a65f18d43b3ac646ae215240fad481c4aad6c60f2e38",
24
+ "size": 239896272
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "b374ef7f8c59d10a04071f6c50ccd83008188b7db26589f4fb359ee435d49929",
29
- "size": 232370008
28
+ "checksum": "5071eceaedd2d4d6b085faa46e1a60befad432176a9ec39fd10c004564381308",
29
+ "size": 232632152
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "d4cd1951ceb25ef2bed74cd9e0dc6dec4f1219f086a35a1433eb988443096e48",
34
- "size": 234044464
33
+ "checksum": "fb2b406b244466db17b48e2864ec7c90b852ef3f404bbb1d9c9bf914efee39d1",
34
+ "size": 234290224
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "bbea6d550bdd765c3b9e3b1fa19a49d04dd16c1687e5b21f9e0974a18b867a73",
39
- "size": 235329184
38
+ "checksum": "8bda00dba0e8b44e67966a07ee32cf23032f7ebb90e77d4f82ab2e39b1118623",
39
+ "size": 235564192
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "fd4711d17e9576fec0998c85a3726e43c26e7735e1f4552064310897acf1781b",
44
- "size": 231294112
43
+ "checksum": "240240e32f10bc7d4124c1c5603313e243cabaae80e174e2c6eb27f5b1e1ebe9",
44
+ "size": 231529120
45
45
  }
46
46
  }
47
47
  }
package/manifest.zst.json CHANGED
@@ -1,55 +1,55 @@
1
1
  {
2
- "version": "2.1.152",
3
- "commit": "228d8c605defcb10a183db2dbf364a2d6c490c8b",
4
- "buildDate": "2026-05-26T19:38:56Z",
2
+ "version": "2.1.153",
3
+ "commit": "6cfd211761f355dcebba152b66399d0416e445d2",
4
+ "buildDate": "2026-05-27T20:18:33Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "a5ab75688f90400bcfaedf0b2523f16fcf4b40a669fbf5a77ae17f9a14aa28fd",
9
- "size": 44188705,
8
+ "checksum": "16af1a1864280dc72058420aaa95ad871548ab4a642e80e5b185fdf52afe4434",
9
+ "size": 44258200,
10
10
  "bundle": {
11
- "checksum": "411f91e7e12813f38d5b4dfbc8cf442cd3264eb89a768fe8069db426e3be029c",
12
- "size": 44194378
11
+ "checksum": "d398b4cbe9da8b4525afc51c7b765f3804e44306450f90f0d15fa0481a7ceb49",
12
+ "size": 44260085
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "8d29ad1c4afc14daf979bbd03f70184d15244b9148feeaf20980a2b1758c4fb0",
18
- "size": 46093789,
17
+ "checksum": "7ca60a8ff63defa35ce2cddb66035833145b491eb76f093bd538b853be9bce8c",
18
+ "size": 46169639,
19
19
  "bundle": {
20
- "checksum": "3375934557535af4a57da32988b56fb68bcc7f6a44ec76b830507825dab99096",
21
- "size": 46103347
20
+ "checksum": "15066bce318fbc9d9c0602bcfb9a02dce7fb3d6d97705c226e40b918724fdafc",
21
+ "size": 46177081
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "82006d5a2c02d5ad3f8738064aaaa0cf0a595fb0721579c5dbdc8203a425e051",
27
- "size": 51901590
26
+ "checksum": "89413e37f65e673474d9f1d941d4e282ebee6e9ee0403343acb8e4eb467f96d9",
27
+ "size": 51971265
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "affeeae869a8a29aab4ecf0a6af4d84d60d0d5a40104f2c0e6b5b661027d0214",
32
- "size": 52517356
31
+ "checksum": "2dde7ff04ce2c89dbf05f07508c9e98f306d3d137f7f95c68988a061582a15be",
32
+ "size": 52597782
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "d806349f5c3ae337f346028f2de2abecefde187225b1bbe8b751047992f2d20d",
37
- "size": 50533642
36
+ "checksum": "27faa2760bbd26ed92fb396d68c98dd945745be9b7518f452906a8bf9d49c6f9",
37
+ "size": 50590686
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "40fb092ac9f7626a6c22c61b8524b4eedaf9bd831d17c9a0b1ce5ebd866787d4",
42
- "size": 51224312
41
+ "checksum": "81b4309249da7748cfbd0c71575f4c3529ace87ac8517dd8b1589b7b684d79a1",
42
+ "size": 51288054
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "20c5c3eb679ffe26d564af25eae1956f5246af38b88330d576ebf1d097f871a2",
47
- "size": 53249402
46
+ "checksum": "2ad9e38724ed36008708785dce9866ee64a4f352abbfff593482bddf9b587d3b",
47
+ "size": 53313137
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "26d0fad322fd6085eb8db60b1c1024e7012068576472aa008bceed52133dfe25",
52
- "size": 51534095
51
+ "checksum": "30c5585b84fb8df3b762cdae64d5354dc57354d5286ff88416b7f35ad973444b",
52
+ "size": 51597586
53
53
  }
54
54
  }
55
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-agent-sdk",
3
- "version": "0.3.152",
3
+ "version": "0.3.153",
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.152",
65
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.152",
66
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.152",
67
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.152",
68
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.152",
69
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.152",
70
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.152",
71
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.152"
64
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.153",
65
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.153",
66
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.153",
67
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.153",
68
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.153",
69
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.153",
70
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.153",
71
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.153"
72
72
  },
73
73
  "files": [
74
74
  "sdk.mjs",
@@ -86,5 +86,5 @@
86
86
  "manifest.json",
87
87
  "manifest.zst.json"
88
88
  ],
89
- "claudeCodeVersion": "2.1.152"
89
+ "claudeCodeVersion": "2.1.153"
90
90
  }
package/sdk.d.ts CHANGED
@@ -418,6 +418,7 @@ declare namespace coreTypes {
418
418
  SDKTaskProgressMessage,
419
419
  SDKTaskStartedMessage,
420
420
  SDKTaskUpdatedMessage,
421
+ SDKThinkingTokensMessage,
421
422
  SDKToolProgressMessage,
422
423
  SDKToolUseSummaryMessage,
423
424
  SDKUserMessageReplay,
@@ -1841,8 +1842,11 @@ export declare type Options = {
1841
1842
  */
1842
1843
  stderr?: (data: string) => void;
1843
1844
  /**
1844
- * Enforce strict validation of MCP server configurations.
1845
- * When true, invalid configurations will cause errors instead of warnings.
1845
+ * Only use MCP servers passed via the `mcpServers` option (and servers
1846
+ * declared by explicitly-passed agent definitions in `agents`), ignoring
1847
+ * all other MCP configurations: project `.mcp.json`, user settings,
1848
+ * plugins, and on-disk agent frontmatter — including subagent frontmatter
1849
+ * MCP. Maps to the CLI `--strict-mcp-config` flag.
1846
1850
  */
1847
1851
  strictMcpConfig?: boolean;
1848
1852
  /**
@@ -3291,7 +3295,7 @@ export declare type SDKMemoryRecallMessage = {
3291
3295
  session_id: string;
3292
3296
  };
3293
3297
 
3294
- export declare type SDKMessage = SDKAssistantMessage | SDKUserMessage | SDKUserMessageReplay | SDKResultMessage | SDKSystemMessage | SDKPartialAssistantMessage | SDKCompactBoundaryMessage | SDKStatusMessage | SDKAPIRetryMessage | SDKLocalCommandOutputMessage | SDKHookStartedMessage | SDKHookProgressMessage | SDKHookResponseMessage | SDKPluginInstallMessage | SDKToolProgressMessage | SDKAuthStatusMessage | SDKTaskNotificationMessage | SDKTaskStartedMessage | SDKTaskUpdatedMessage | SDKTaskProgressMessage | SDKSessionStateChangedMessage | SDKNotificationMessage | SDKFilesPersistedEvent | SDKToolUseSummaryMessage | SDKMemoryRecallMessage | SDKRateLimitEvent | SDKElicitationCompleteMessage | SDKPermissionDeniedMessage | SDKPromptSuggestionMessage | SDKMirrorErrorMessage;
3298
+ export declare type SDKMessage = SDKAssistantMessage | SDKUserMessage | SDKUserMessageReplay | SDKResultMessage | SDKSystemMessage | SDKPartialAssistantMessage | SDKCompactBoundaryMessage | SDKStatusMessage | SDKAPIRetryMessage | SDKLocalCommandOutputMessage | SDKHookStartedMessage | SDKHookProgressMessage | SDKHookResponseMessage | SDKPluginInstallMessage | SDKToolProgressMessage | SDKAuthStatusMessage | SDKTaskNotificationMessage | SDKTaskStartedMessage | SDKTaskUpdatedMessage | SDKTaskProgressMessage | SDKThinkingTokensMessage | SDKSessionStateChangedMessage | SDKNotificationMessage | SDKFilesPersistedEvent | SDKToolUseSummaryMessage | SDKMemoryRecallMessage | SDKRateLimitEvent | SDKElicitationCompleteMessage | SDKPermissionDeniedMessage | SDKPromptSuggestionMessage | SDKMirrorErrorMessage;
3295
3299
 
3296
3300
  /**
3297
3301
  * Provenance of a user-role message (peer session, team lead, channel). Absent or `human` means keyboard input from the user.
@@ -3703,6 +3707,18 @@ export declare type SDKTaskUpdatedMessage = {
3703
3707
  session_id: string;
3704
3708
  };
3705
3709
 
3710
+ /**
3711
+ * Live thinking-token estimate, digested from thinking_delta.estimated_tokens during the redacted-thinking phase (where the API otherwise streams only pings). estimated_tokens is the running total for the current thinking block; estimated_tokens_delta is the increment carried by this frame. Approximate progress for spinners/pills, not the authoritative billed output_tokens.
3712
+ */
3713
+ export declare type SDKThinkingTokensMessage = {
3714
+ type: 'system';
3715
+ subtype: 'thinking_tokens';
3716
+ estimated_tokens: number;
3717
+ estimated_tokens_delta: number;
3718
+ uuid: UUID;
3719
+ session_id: string;
3720
+ };
3721
+
3706
3722
  export declare type SDKToolProgressMessage = {
3707
3723
  type: 'tool_progress';
3708
3724
  tool_use_id: string;
@@ -4439,6 +4455,10 @@ export declare interface Settings {
4439
4455
  */
4440
4456
  disableRemoteControl?: boolean;
4441
4457
 
4458
+ /**
4459
+ * Enable or disable the Workflows feature for this user. Unset = default by plan once the feature is available.
4460
+ */
4461
+ enableWorkflows?: boolean;
4442
4462
  /**
4443
4463
  * Disable inline shell execution in skills and custom slash commands from user, project, or plugin sources. Commands are replaced with a placeholder instead of being run.
4444
4464
  */
@@ -4548,6 +4568,10 @@ export declare interface Settings {
4548
4568
  * Directories to include via git sparse-checkout (cone mode). Use for monorepos where the marketplace lives in a subdirectory. Example: [".claude-plugin", "plugins"]. If omitted, the full repository is cloned.
4549
4569
  */
4550
4570
  sparsePaths?: string[];
4571
+ /**
4572
+ * Skip Git LFS smudge during clone and update (sets GIT_LFS_SKIP_SMUDGE=1) so LFS pointer files stay as pointers instead of downloading their content. Use for marketplaces hosted in repos with large LFS objects.
4573
+ */
4574
+ skipLfs?: boolean;
4551
4575
  } | {
4552
4576
  source: 'git';
4553
4577
  /**
@@ -4566,6 +4590,10 @@ export declare interface Settings {
4566
4590
  * Directories to include via git sparse-checkout (cone mode). Use for monorepos where the marketplace lives in a subdirectory. Example: [".claude-plugin", "plugins"]. If omitted, the full repository is cloned.
4567
4591
  */
4568
4592
  sparsePaths?: string[];
4593
+ /**
4594
+ * Skip Git LFS smudge during clone and update (sets GIT_LFS_SKIP_SMUDGE=1) so LFS pointer files stay as pointers instead of downloading their content. Use for marketplaces hosted in repos with large LFS objects.
4595
+ */
4596
+ skipLfs?: boolean;
4569
4597
  } | {
4570
4598
  source: 'npm';
4571
4599
  /**
@@ -4740,6 +4768,10 @@ export declare interface Settings {
4740
4768
  * Directories to include via git sparse-checkout (cone mode). Use for monorepos where the marketplace lives in a subdirectory. Example: [".claude-plugin", "plugins"]. If omitted, the full repository is cloned.
4741
4769
  */
4742
4770
  sparsePaths?: string[];
4771
+ /**
4772
+ * Skip Git LFS smudge during clone and update (sets GIT_LFS_SKIP_SMUDGE=1) so LFS pointer files stay as pointers instead of downloading their content. Use for marketplaces hosted in repos with large LFS objects.
4773
+ */
4774
+ skipLfs?: boolean;
4743
4775
  } | {
4744
4776
  source: 'git';
4745
4777
  /**
@@ -4758,6 +4790,10 @@ export declare interface Settings {
4758
4790
  * Directories to include via git sparse-checkout (cone mode). Use for monorepos where the marketplace lives in a subdirectory. Example: [".claude-plugin", "plugins"]. If omitted, the full repository is cloned.
4759
4791
  */
4760
4792
  sparsePaths?: string[];
4793
+ /**
4794
+ * Skip Git LFS smudge during clone and update (sets GIT_LFS_SKIP_SMUDGE=1) so LFS pointer files stay as pointers instead of downloading their content. Use for marketplaces hosted in repos with large LFS objects.
4795
+ */
4796
+ skipLfs?: boolean;
4761
4797
  } | {
4762
4798
  source: 'npm';
4763
4799
  /**
@@ -4922,6 +4958,10 @@ export declare interface Settings {
4922
4958
  * Directories to include via git sparse-checkout (cone mode). Use for monorepos where the marketplace lives in a subdirectory. Example: [".claude-plugin", "plugins"]. If omitted, the full repository is cloned.
4923
4959
  */
4924
4960
  sparsePaths?: string[];
4961
+ /**
4962
+ * Skip Git LFS smudge during clone and update (sets GIT_LFS_SKIP_SMUDGE=1) so LFS pointer files stay as pointers instead of downloading their content. Use for marketplaces hosted in repos with large LFS objects.
4963
+ */
4964
+ skipLfs?: boolean;
4925
4965
  } | {
4926
4966
  source: 'git';
4927
4967
  /**
@@ -4940,6 +4980,10 @@ export declare interface Settings {
4940
4980
  * Directories to include via git sparse-checkout (cone mode). Use for monorepos where the marketplace lives in a subdirectory. Example: [".claude-plugin", "plugins"]. If omitted, the full repository is cloned.
4941
4981
  */
4942
4982
  sparsePaths?: string[];
4983
+ /**
4984
+ * Skip Git LFS smudge during clone and update (sets GIT_LFS_SKIP_SMUDGE=1) so LFS pointer files stay as pointers instead of downloading their content. Use for marketplaces hosted in repos with large LFS objects.
4985
+ */
4986
+ skipLfs?: boolean;
4943
4987
  } | {
4944
4988
  source: 'npm';
4945
4989
  /**
@@ -5370,6 +5414,7 @@ export declare interface Settings {
5370
5414
  * Whether the user has accepted the bypass permissions mode dialog
5371
5415
  */
5372
5416
  skipDangerousModePermissionPrompt?: boolean;
5417
+
5373
5418
  /**
5374
5419
  * Disable auto mode
5375
5420
  */