@anthropic-ai/claude-agent-sdk 0.3.183 → 0.3.186

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.183",
3
- "commit": "9d251abdbce0c0a6190d290add83634e0ab481f6",
4
- "buildDate": "2026-06-18T23:12:17Z",
2
+ "version": "2.1.186",
3
+ "commit": "6a56aff51d9e9faf62f26f2748501c2e32eec5e8",
4
+ "buildDate": "2026-06-22T16:51:01Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "6218efccd06194ea0bc381121bf03040a027a04d991eaed886da02a00449ad0f",
9
- "size": 215952608
8
+ "checksum": "463a79cc34a9787cff1b3361b4ec9e2dff928c18b077f41f0bb412e4cda78637",
9
+ "size": 216811232
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "c70248f96b5831ff86ac169ab53c87ec5480f91ae386783da11004875c2ad1b7",
14
- "size": 223491328
13
+ "checksum": "9e17e23d451cbbc64cf4b9536c1d25efd86808512617c855091fa608f77c9899",
14
+ "size": 224349952
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "260a6e43fe9c6fd8800317581982ff50e4f4401d02ef625faa4df723bb9710b3",
19
- "size": 230930144
18
+ "checksum": "817e5ff483568b78c49171be317b9b9190cade77248a5776e912789312961cb6",
19
+ "size": 231782112
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "df3b409c5b25299df52c5ee81f64811dbdcb2e18c1beefe7f733c326f0a8cdce",
24
- "size": 233584424
23
+ "checksum": "6a6d5d23486597c93138941c9b68caa0fbcd2dcedbf49e29a9c8d83e3a1cb329",
24
+ "size": 234436392
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "6f5a9fc9b3abbd4b13495b2bf7e6b81eb735ec4eb48b766474ee1ff44e5b0e6b",
29
- "size": 224309448
28
+ "checksum": "24906d06ab4cf312eb30a8d656a8d8c7fb22099ea8eb974e38ecfbc25d6631aa",
29
+ "size": 225161416
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "45cc1ce016560d368c31ea8cfb9069799160883787dac31f8961d64ebf84ac06",
34
- "size": 228568464
33
+ "checksum": "d0cb255cfb03513f6099af40f045b5852a1d8a1b59d0f405d84d2a01da6c9598",
34
+ "size": 229420432
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "ba6e71d0e39b33c42a519bd10fc6d79b04d62cedcc918b3991ff863462261eb0",
39
- "size": 225108640
38
+ "checksum": "6a286f0795d6dd46187b86e9124f819af35319169901cd883b80a75c47469516",
39
+ "size": 225908896
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "0d75484e247f8e30062d143b49f97f317d3347d98d61e1f7285b72e29cd2b8d8",
44
- "size": 219771552
43
+ "checksum": "245869d5e5242aabfde49b091628aa4b3e7546f2cac52e1d6feb221a820910bc",
44
+ "size": 220571808
45
45
  }
46
46
  }
47
47
  }
package/manifest.zst.json CHANGED
@@ -1,55 +1,55 @@
1
1
  {
2
- "version": "2.1.183",
3
- "commit": "9d251abdbce0c0a6190d290add83634e0ab481f6",
4
- "buildDate": "2026-06-18T23:14:00Z",
2
+ "version": "2.1.186",
3
+ "commit": "6a56aff51d9e9faf62f26f2748501c2e32eec5e8",
4
+ "buildDate": "2026-06-22T16:52:43Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "b56fd5ad3cf9207287b420303e7c0aedf2b5b22a09cd85ab7bf82910834bd0a8",
9
- "size": 45418564,
8
+ "checksum": "07281b2cab5a467352dc77e40899914eb5efb81137b9e97f6983079b6746ae08",
9
+ "size": 45639919,
10
10
  "bundle": {
11
- "checksum": "26d8c626328f7ee7849036002b360895b147ea5a9ba818344d36c8fcccb7745c",
12
- "size": 45422017
11
+ "checksum": "44e74a8a2110fe7a88dfeb371b6d2b0df63903f83f19419410334a9202a8b332",
12
+ "size": 45639282
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "a658723cf4b9276bd95ed641591afc267468b21ad9e7cf72329000c75bc46abf",
18
- "size": 48310808,
17
+ "checksum": "32ebbd1ffbe914c9bb0f600ddb511b5642c31069ec01a847a619d67b9438373d",
18
+ "size": 48559422,
19
19
  "bundle": {
20
- "checksum": "820ffe5eb6580e354d35c66ea02d8315ebe3d7dbfcdaa5ded6666088a2b4ed78",
21
- "size": 48316126
20
+ "checksum": "10c0d811088ee49170650dc5e6599a379bb6d37e2bf8b2bde8f9671609d585c9",
21
+ "size": 48557611
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "6ef906b32d73d87d879fd2109e5023563be653077048a6e51de4d78286a1ddba",
27
- "size": 53221350
26
+ "checksum": "6d616cbcbb349b9b8764ad820843ebcaad98af6129a3e4d530a02dab4c2036bf",
27
+ "size": 53453835
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "6b19b65fe3119815f1750ab5d67b5d0690a770ab2edb1e37523b39824e344590",
32
- "size": 54432383
31
+ "checksum": "87f8367e30e00b8115e72385d4f9b9280bc1ad6e58340837665917a4c411fc89",
32
+ "size": 54685312
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "e105196660b31e4cc9bc54fdf61b21aca57c774b124628947d1abfd2a95fcf92",
37
- "size": 51936964
36
+ "checksum": "b09a5bbd670219eb7c17fa2e3c6e73eb6508793cbda6a107228a67d8405ce03e",
37
+ "size": 52162612
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "9fb295eb0c434a50d2f55c93af49766287d5a28c9ab5adf1e2638e2a361f3e8f",
42
- "size": 53241974
41
+ "checksum": "81a4518daa09109072f688b7ceca9c1bc9331d52b62a925fcd6bece56f725cf1",
42
+ "size": 53474357
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "30bffcb555628fe22c41e3f4fa8f8bca7e947f635fa298c642d0c9a1d1da20bc",
47
- "size": 54673765
46
+ "checksum": "8b2e906b70df6847bcb43434bb65e029de2cf0b9ed440ab63026647f2c56f004",
47
+ "size": 54900732
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "dcf1d1e0ce50f2fd1c7fda492198ae8a1e9d63f620c2968b3766c8451d3c37a7",
52
- "size": 52724650
51
+ "checksum": "6af44d4ecf904ac01b327a617602914584cd9ce71b84b5aac5f56034ec5a1350",
52
+ "size": 52984388
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.183",
3
+ "version": "0.3.186",
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.183",
61
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.183",
62
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.183",
63
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.183",
64
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.183",
65
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.183",
66
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.183",
67
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.183"
60
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.186",
61
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.186",
62
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.186",
63
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.186",
64
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.186",
65
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.186",
66
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.186",
67
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.186"
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.183"
83
+ "claudeCodeVersion": "2.1.186"
84
84
  }
package/sdk-tools.d.ts CHANGED
@@ -22,6 +22,7 @@ export type ToolInputSchemas =
22
22
  | ListMcpResourcesInput
23
23
  | McpInput
24
24
  | NotebookEditInput
25
+ | ReadMcpResourceDirInput
25
26
  | ReadMcpResourceInput
26
27
  | TodoWriteInput
27
28
  | WebFetchInput
@@ -60,6 +61,7 @@ export type ToolOutputSchemas =
60
61
  | ListMcpResourcesOutput
61
62
  | McpOutput
62
63
  | NotebookEditOutput
64
+ | ReadMcpResourceDirOutput
63
65
  | ReadMcpResourceOutput
64
66
  | TodoWriteOutput
65
67
  | WebFetchOutput
@@ -665,6 +667,16 @@ export interface NotebookEditInput {
665
667
  */
666
668
  edit_mode?: "replace" | "insert" | "delete";
667
669
  }
670
+ export interface ReadMcpResourceDirInput {
671
+ /**
672
+ * The MCP server name
673
+ */
674
+ server: string;
675
+ /**
676
+ * The directory resource URI to list
677
+ */
678
+ uri: string;
679
+ }
668
680
  export interface ReadMcpResourceInput {
669
681
  /**
670
682
  * The MCP server name
@@ -2515,6 +2527,10 @@ export interface ArtifactInput {
2515
2527
  * Existing artifact URL to redeploy to. Pass when the user gives you a URL for an artifact not published in this session; omit for new artifacts or same-session redeploys. Must be an artifact the user owns.
2516
2528
  */
2517
2529
  url?: string;
2530
+ /**
2531
+ * Overwrite without a conflict check. Use only after a 409 when you have reconciled with the other session's version and intend to replace it. Omit (or false) to send baseVersion so a concurrent write 409s instead of being silently clobbered.
2532
+ */
2533
+ force?: boolean;
2518
2534
  }
2519
2535
  export interface PushNotificationInput {
2520
2536
  /**
@@ -2838,6 +2854,29 @@ export interface NotebookEditOutput {
2838
2854
  */
2839
2855
  updated_file: string;
2840
2856
  }
2857
+ export interface ReadMcpResourceDirOutput {
2858
+ /**
2859
+ * Direct children of the directory resource. Subdirectories appear with mimeType "inode/directory".
2860
+ */
2861
+ resources: {
2862
+ /**
2863
+ * Child resource URI
2864
+ */
2865
+ uri: string;
2866
+ /**
2867
+ * Child resource name
2868
+ */
2869
+ name: string;
2870
+ /**
2871
+ * Child MIME type
2872
+ */
2873
+ mimeType?: string;
2874
+ }[];
2875
+ /**
2876
+ * Human-readable error when the server could not list the directory
2877
+ */
2878
+ error?: string;
2879
+ }
2841
2880
  export interface ReadMcpResourceOutput {
2842
2881
  contents: {
2843
2882
  /**
@@ -2861,23 +2900,6 @@ export interface ReadMcpResourceOutput {
2861
2900
  * Human-readable error when the server could not read the resource
2862
2901
  */
2863
2902
  error?: string;
2864
- /**
2865
- * Direct children when the URI is a directory resource (SEP-2640 resources/directory/read). Subdirectories appear with mimeType "inode/directory".
2866
- */
2867
- resources?: {
2868
- /**
2869
- * Child resource URI
2870
- */
2871
- uri: string;
2872
- /**
2873
- * Child resource name
2874
- */
2875
- name: string;
2876
- /**
2877
- * Child MIME type
2878
- */
2879
- mimeType?: string;
2880
- }[];
2881
2903
  }
2882
2904
  export interface TodoWriteOutput {
2883
2905
  /**
package/sdk.d.ts CHANGED
@@ -3374,7 +3374,7 @@ export declare type SDKControlRequest = {
3374
3374
  request: SDKControlRequestInner;
3375
3375
  };
3376
3376
 
3377
- declare type SDKControlRequestInner = SDKControlInterruptRequest | SDKControlPermissionRequest | SDKControlInitializeRequest | SDKControlSetPermissionModeRequest | SDKControlSetModelRequest | SDKControlSetMaxThinkingTokensRequest | SDKControlRenameSessionRequest | SDKControlSetColorRequest | SDKControlMcpStatusRequest | SDKControlGetContextUsageRequest | SDKControlGetSessionCostRequest | SDKControlGetUsageRequest | SDKControlGetBinaryVersionRequest | SDKControlMcpCallRequest | SDKControlFileSuggestionsRequest | SDKHookCallbackRequest | SDKControlMcpMessageRequest | SDKControlRewindFilesRequest | SDKControlCancelAsyncMessageRequest | SDKControlReadFileRequest | SDKControlSeedReadStateRequest | SDKControlMcpSetServersRequest | SDKControlRegisterRepoRootRequest | SDKControlReloadPluginsRequest | SDKControlReloadSkillsRequest | SDKControlMcpReconnectRequest | SDKControlMcpToggleRequest | SDKControlSetMcpPermissionModeOverrideRequest | SDKControlChannelEnableRequest | SDKControlEndSessionRequest | SDKControlMcpAuthenticateRequest | SDKControlMcpClearAuthRequest | SDKControlMcpOAuthCallbackUrlRequest | SDKControlClaudeAuthenticateRequest | SDKControlClaudeOAuthCallbackRequest | SDKControlClaudeOAuthWaitForCompletionRequest | SDKControlRemoteControlRequest | SDKControlGenerateSessionTitleRequest | SDKControlSideQuestionRequest | SDKControlUltrareviewLaunchRequest | SDKControlStageFileRequest | SDKControlMessageRatedRequest | SDKControlOAuthTokenRefreshRequest | SDKControlHostAuthTokenRefreshRequest | SDKControlStopTaskRequest | SDKControlBackgroundTasksRequest | SDKControlApplyFlagSettingsRequest | SDKControlGetSettingsRequest | SDKControlElicitationRequest | SDKControlRequestUserDialogRequest | SDKControlSubmitFeedbackRequest;
3377
+ declare type SDKControlRequestInner = SDKControlInterruptRequest | SDKControlPermissionRequest | SDKControlInitializeRequest | SDKControlSetPermissionModeRequest | SDKControlSetModelRequest | SDKControlSetMaxThinkingTokensRequest | SDKControlRenameSessionRequest | SDKControlSetColorRequest | SDKControlMcpStatusRequest | SDKControlGetContextUsageRequest | SDKControlGetSessionCostRequest | SDKControlGetUsageRequest | SDKControlGetBinaryVersionRequest | SDKControlMcpCallRequest | SDKControlFileSuggestionsRequest | SDKHookCallbackRequest | SDKControlMcpMessageRequest | SDKControlRewindFilesRequest | SDKControlCancelAsyncMessageRequest | SDKControlReadFileRequest | SDKControlSeedReadStateRequest | SDKControlMcpSetServersRequest | SDKControlRegisterRepoRootRequest | SDKControlReloadPluginsRequest | SDKControlReloadSkillsRequest | SDKControlMcpReconnectRequest | SDKControlMcpToggleRequest | SDKControlSetMcpPermissionModeOverrideRequest | SDKControlRewindConversationRequest | SDKControlChannelEnableRequest | SDKControlEndSessionRequest | SDKControlMcpAuthenticateRequest | SDKControlMcpClearAuthRequest | SDKControlMcpOAuthCallbackUrlRequest | SDKControlClaudeAuthenticateRequest | SDKControlClaudeOAuthCallbackRequest | SDKControlClaudeOAuthWaitForCompletionRequest | SDKControlRemoteControlRequest | SDKControlGenerateSessionTitleRequest | SDKControlSideQuestionRequest | SDKControlUltrareviewLaunchRequest | SDKControlStageFileRequest | SDKControlMessageRatedRequest | SDKControlOAuthTokenRefreshRequest | SDKControlHostAuthTokenRefreshRequest | SDKControlStopTaskRequest | SDKControlBackgroundTasksRequest | SDKControlApplyFlagSettingsRequest | SDKControlGetSettingsRequest | SDKControlElicitationRequest | SDKControlRequestUserDialogRequest | SDKControlSubmitFeedbackRequest;
3378
3378
 
3379
3379
  /**
3380
3380
  * Requests the SDK consumer to render a tool-driven blocking dialog and return the user choice. Used by tools that previously rendered Ink JSX via setToolJSX with an onDone callback.
@@ -3829,6 +3829,7 @@ export declare type SDKRateLimitInfo = {
3829
3829
  overageInUse?: boolean;
3830
3830
  surpassedThreshold?: number;
3831
3831
 
3832
+
3832
3833
  errorCode?: 'credits_required';
3833
3834
  canUserPurchaseCredits?: boolean;
3834
3835
  hasChargeableSavedPaymentMethod?: boolean;
@@ -4924,6 +4925,10 @@ export declare interface Settings {
4924
4925
  * Default shell for input-box ! commands. Defaults to 'bash' on all platforms (no Windows auto-flip).
4925
4926
  */
4926
4927
  defaultShell?: 'bash' | 'powershell';
4928
+ /**
4929
+ * Whether Claude responds after an input-box ! bash command runs. Set to false to add the command output to context without a response. Default: true.
4930
+ */
4931
+ respondToBashCommands?: boolean;
4927
4932
  /**
4928
4933
  * When true (and set in managed settings), only hooks from managed settings run. User, project, and local hooks are ignored.
4929
4934
  */
@@ -6017,9 +6022,9 @@ export declare interface Settings {
6017
6022
  */
6018
6023
  todoFeatureEnabled?: boolean;
6019
6024
  /**
6020
- * How spawned teammates execute (tmux, in-process, auto)
6025
+ * How spawned teammates execute (tmux, iterm2, in-process, auto)
6021
6026
  */
6022
- teammateMode?: 'auto' | 'tmux' | 'in-process';
6027
+ teammateMode?: 'auto' | 'tmux' | 'iterm2' | 'in-process';
6023
6028
  /**
6024
6029
  * Start Remote Control bridge automatically each session
6025
6030
  */
@@ -6330,7 +6335,7 @@ export declare type TeammateIdleHookInput = BaseHookInput & {
6330
6335
  /**
6331
6336
  * Why the query loop terminated. Unset when the loop was bypassed (local slash command) or interrupted externally (budget/retry limits checked between yields).
6332
6337
  */
6333
- export declare type TerminalReason = 'blocking_limit' | 'rapid_refill_breaker' | 'prompt_too_long' | 'image_error' | 'model_error' | 'aborted_streaming' | 'aborted_tools' | 'stop_hook_prevented' | 'hook_stopped' | 'tool_deferred' | 'max_turns' | 'completed';
6338
+ export declare type TerminalReason = 'blocking_limit' | 'rapid_refill_breaker' | 'prompt_too_long' | 'image_error' | 'model_error' | 'aborted_streaming' | 'aborted_tools' | 'stop_hook_prevented' | 'hook_stopped' | 'tool_deferred' | 'max_turns' | 'background_requested' | 'completed';
6334
6339
 
6335
6340
  /**
6336
6341
  * Claude decides when and how much to think (Opus 4.6+).