@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/bridge.d.ts +8 -1
- package/bridge.mjs +59 -59
- package/browser-sdk.js +33 -33
- package/manifest.json +19 -19
- package/manifest.zst.json +23 -23
- package/package.json +10 -10
- package/sdk-tools.d.ts +39 -17
- package/sdk.d.ts +9 -4
- package/sdk.mjs +48 -48
package/manifest.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-06-
|
|
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": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "463a79cc34a9787cff1b3361b4ec9e2dff928c18b077f41f0bb412e4cda78637",
|
|
9
|
+
"size": 216811232
|
|
10
10
|
},
|
|
11
11
|
"darwin-x64": {
|
|
12
12
|
"binary": "claude",
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "9e17e23d451cbbc64cf4b9536c1d25efd86808512617c855091fa608f77c9899",
|
|
14
|
+
"size": 224349952
|
|
15
15
|
},
|
|
16
16
|
"linux-arm64": {
|
|
17
17
|
"binary": "claude",
|
|
18
|
-
"checksum": "
|
|
19
|
-
"size":
|
|
18
|
+
"checksum": "817e5ff483568b78c49171be317b9b9190cade77248a5776e912789312961cb6",
|
|
19
|
+
"size": 231782112
|
|
20
20
|
},
|
|
21
21
|
"linux-x64": {
|
|
22
22
|
"binary": "claude",
|
|
23
|
-
"checksum": "
|
|
24
|
-
"size":
|
|
23
|
+
"checksum": "6a6d5d23486597c93138941c9b68caa0fbcd2dcedbf49e29a9c8d83e3a1cb329",
|
|
24
|
+
"size": 234436392
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64-musl": {
|
|
27
27
|
"binary": "claude",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "24906d06ab4cf312eb30a8d656a8d8c7fb22099ea8eb974e38ecfbc25d6631aa",
|
|
29
|
+
"size": 225161416
|
|
30
30
|
},
|
|
31
31
|
"linux-x64-musl": {
|
|
32
32
|
"binary": "claude",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "d0cb255cfb03513f6099af40f045b5852a1d8a1b59d0f405d84d2a01da6c9598",
|
|
34
|
+
"size": 229420432
|
|
35
35
|
},
|
|
36
36
|
"win32-x64": {
|
|
37
37
|
"binary": "claude.exe",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "6a286f0795d6dd46187b86e9124f819af35319169901cd883b80a75c47469516",
|
|
39
|
+
"size": 225908896
|
|
40
40
|
},
|
|
41
41
|
"win32-arm64": {
|
|
42
42
|
"binary": "claude.exe",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
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.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-06-
|
|
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": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "07281b2cab5a467352dc77e40899914eb5efb81137b9e97f6983079b6746ae08",
|
|
9
|
+
"size": 45639919,
|
|
10
10
|
"bundle": {
|
|
11
|
-
"checksum": "
|
|
12
|
-
"size":
|
|
11
|
+
"checksum": "44e74a8a2110fe7a88dfeb371b6d2b0df63903f83f19419410334a9202a8b332",
|
|
12
|
+
"size": 45639282
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"darwin-x64": {
|
|
16
16
|
"binary": "claude.zst",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "32ebbd1ffbe914c9bb0f600ddb511b5642c31069ec01a847a619d67b9438373d",
|
|
18
|
+
"size": 48559422,
|
|
19
19
|
"bundle": {
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "10c0d811088ee49170650dc5e6599a379bb6d37e2bf8b2bde8f9671609d585c9",
|
|
21
|
+
"size": 48557611
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"linux-arm64": {
|
|
25
25
|
"binary": "claude.zst",
|
|
26
|
-
"checksum": "
|
|
27
|
-
"size":
|
|
26
|
+
"checksum": "6d616cbcbb349b9b8764ad820843ebcaad98af6129a3e4d530a02dab4c2036bf",
|
|
27
|
+
"size": 53453835
|
|
28
28
|
},
|
|
29
29
|
"linux-x64": {
|
|
30
30
|
"binary": "claude.zst",
|
|
31
|
-
"checksum": "
|
|
32
|
-
"size":
|
|
31
|
+
"checksum": "87f8367e30e00b8115e72385d4f9b9280bc1ad6e58340837665917a4c411fc89",
|
|
32
|
+
"size": 54685312
|
|
33
33
|
},
|
|
34
34
|
"linux-arm64-musl": {
|
|
35
35
|
"binary": "claude.zst",
|
|
36
|
-
"checksum": "
|
|
37
|
-
"size":
|
|
36
|
+
"checksum": "b09a5bbd670219eb7c17fa2e3c6e73eb6508793cbda6a107228a67d8405ce03e",
|
|
37
|
+
"size": 52162612
|
|
38
38
|
},
|
|
39
39
|
"linux-x64-musl": {
|
|
40
40
|
"binary": "claude.zst",
|
|
41
|
-
"checksum": "
|
|
42
|
-
"size":
|
|
41
|
+
"checksum": "81a4518daa09109072f688b7ceca9c1bc9331d52b62a925fcd6bece56f725cf1",
|
|
42
|
+
"size": 53474357
|
|
43
43
|
},
|
|
44
44
|
"win32-x64": {
|
|
45
45
|
"binary": "claude.exe.zst",
|
|
46
|
-
"checksum": "
|
|
47
|
-
"size":
|
|
46
|
+
"checksum": "8b2e906b70df6847bcb43434bb65e029de2cf0b9ed440ab63026647f2c56f004",
|
|
47
|
+
"size": 54900732
|
|
48
48
|
},
|
|
49
49
|
"win32-arm64": {
|
|
50
50
|
"binary": "claude.exe.zst",
|
|
51
|
-
"checksum": "
|
|
52
|
-
"size":
|
|
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.
|
|
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.
|
|
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.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.
|
|
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+).
|