@anthropic-ai/claude-agent-sdk 0.2.80 → 0.2.81
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 +162 -0
- package/bridge.mjs +80 -0
- package/browser-sdk.js +2 -2
- package/cli.js +2412 -2330
- package/manifest.json +18 -18
- package/manifest.zst.json +22 -22
- package/package.json +6 -2
- package/sdk-tools.d.ts +1 -5
- package/sdk.d.ts +25 -3
- package/sdk.mjs +3 -3
package/manifest.json
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"buildDate": "2026-03-
|
|
2
|
+
"version": "2.1.81",
|
|
3
|
+
"buildDate": "2026-03-20T21:31:30Z",
|
|
4
4
|
"platforms": {
|
|
5
5
|
"darwin-arm64": {
|
|
6
6
|
"binary": "claude",
|
|
7
|
-
"checksum": "
|
|
8
|
-
"size":
|
|
7
|
+
"checksum": "d014162177fc18bfeb7f93d942130dd964f7424e4101f6ad569de66e6eddca03",
|
|
8
|
+
"size": 193286000
|
|
9
9
|
},
|
|
10
10
|
"darwin-x64": {
|
|
11
11
|
"binary": "claude",
|
|
12
|
-
"checksum": "
|
|
13
|
-
"size":
|
|
12
|
+
"checksum": "3c63d8173d4a86ab3985aead73c4699e42956d10c2f946179274be76ec657099",
|
|
13
|
+
"size": 199366256
|
|
14
14
|
},
|
|
15
15
|
"linux-arm64": {
|
|
16
16
|
"binary": "claude",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "ccfc3845c8d1a2ded9656a3a517694a844a1b7005b87c784a66f7a60cc58012c",
|
|
18
|
+
"size": 235183215
|
|
19
19
|
},
|
|
20
20
|
"linux-x64": {
|
|
21
21
|
"binary": "claude",
|
|
22
|
-
"checksum": "
|
|
23
|
-
"size":
|
|
22
|
+
"checksum": "047e3f5591d6238b08dd9518729ac335b0e8df1c80fe985e5d7fbda2c18fc281",
|
|
23
|
+
"size": 237954904
|
|
24
24
|
},
|
|
25
25
|
"linux-arm64-musl": {
|
|
26
26
|
"binary": "claude",
|
|
27
|
-
"checksum": "
|
|
28
|
-
"size":
|
|
27
|
+
"checksum": "eab144605b0b0cc7d41325ef4dc9d553cdee853234da8bd7cd8187552b875399",
|
|
28
|
+
"size": 225718687
|
|
29
29
|
},
|
|
30
30
|
"linux-x64-musl": {
|
|
31
31
|
"binary": "claude",
|
|
32
|
-
"checksum": "
|
|
33
|
-
"size":
|
|
32
|
+
"checksum": "480a961630459c0790e38d4860a2653fd39ae96aadc38044f669e1c2db686254",
|
|
33
|
+
"size": 228552392
|
|
34
34
|
},
|
|
35
35
|
"win32-x64": {
|
|
36
36
|
"binary": "claude.exe",
|
|
37
|
-
"checksum": "
|
|
38
|
-
"size":
|
|
37
|
+
"checksum": "6d34836bf4d62f4bd5221fb69899ed5b2edc380d35fb0f23218c62fae94e28b9",
|
|
38
|
+
"size": 242411680
|
|
39
39
|
},
|
|
40
40
|
"win32-arm64": {
|
|
41
41
|
"binary": "claude.exe",
|
|
42
|
-
"checksum": "
|
|
43
|
-
"size":
|
|
42
|
+
"checksum": "18352be0d91c690b0fe2ed6841e4908c266c06eb7000555118e91966b67b9ea5",
|
|
43
|
+
"size": 238605472
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
}
|
package/manifest.zst.json
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"buildDate": "2026-03-
|
|
2
|
+
"version": "2.1.81",
|
|
3
|
+
"buildDate": "2026-03-20T21:31:31Z",
|
|
4
4
|
"platforms": {
|
|
5
5
|
"darwin-arm64": {
|
|
6
6
|
"binary": "claude.zst",
|
|
7
|
-
"checksum": "
|
|
8
|
-
"size":
|
|
7
|
+
"checksum": "daaa46988395c254a933f76c6d1e120caf647fb93d746372b9ce421d87d7d3b2",
|
|
8
|
+
"size": 41085748,
|
|
9
9
|
"bundle": {
|
|
10
|
-
"checksum": "
|
|
11
|
-
"size":
|
|
10
|
+
"checksum": "7172c446022862e58d0c46e33ad0f27ca130fbeabff9e36153779fc3f66af4b2",
|
|
11
|
+
"size": 41085968
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"darwin-x64": {
|
|
15
15
|
"binary": "claude.zst",
|
|
16
|
-
"checksum": "
|
|
17
|
-
"size":
|
|
16
|
+
"checksum": "929247cb00b2de41c74c74f221a615f07b53e92fe1bc10569909d7e867395d67",
|
|
17
|
+
"size": 43512291,
|
|
18
18
|
"bundle": {
|
|
19
|
-
"checksum": "
|
|
20
|
-
"size":
|
|
19
|
+
"checksum": "8588a7c0a75d21c900d2709b59665809d21f2fc901578bcc35ed8b1171d72037",
|
|
20
|
+
"size": 43515586
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"linux-arm64": {
|
|
24
24
|
"binary": "claude.zst",
|
|
25
|
-
"checksum": "
|
|
26
|
-
"size":
|
|
25
|
+
"checksum": "ca80b6bceb380a971334dedfc5c032b14779e4e69775a21b3ced33f970d67a77",
|
|
26
|
+
"size": 52977626
|
|
27
27
|
},
|
|
28
28
|
"linux-x64": {
|
|
29
29
|
"binary": "claude.zst",
|
|
30
|
-
"checksum": "
|
|
31
|
-
"size":
|
|
30
|
+
"checksum": "fe51a059c7840c571b201e6943c0aa1f502ff738bbedc86fbb5e63f938dacbcc",
|
|
31
|
+
"size": 53708186
|
|
32
32
|
},
|
|
33
33
|
"linux-arm64-musl": {
|
|
34
34
|
"binary": "claude.zst",
|
|
35
|
-
"checksum": "
|
|
36
|
-
"size":
|
|
35
|
+
"checksum": "7b7cf79deaa20720941400899863ebf0a691d5db10e3359c2fce03765ef31a20",
|
|
36
|
+
"size": 50903082
|
|
37
37
|
},
|
|
38
38
|
"linux-x64-musl": {
|
|
39
39
|
"binary": "claude.zst",
|
|
40
|
-
"checksum": "
|
|
41
|
-
"size":
|
|
40
|
+
"checksum": "5566d29e1a31c515fb4f0879223647bd6f3f2bbe73dad1e34d3665add5c8a8b2",
|
|
41
|
+
"size": 51699949
|
|
42
42
|
},
|
|
43
43
|
"win32-x64": {
|
|
44
44
|
"binary": "claude.exe.zst",
|
|
45
|
-
"checksum": "
|
|
46
|
-
"size":
|
|
45
|
+
"checksum": "3d986f1ae2be61fa6e1be7ff1105ffb36bdb71f2a2927acc24f3312a9fc038c9",
|
|
46
|
+
"size": 54472548
|
|
47
47
|
},
|
|
48
48
|
"win32-arm64": {
|
|
49
49
|
"binary": "claude.exe.zst",
|
|
50
|
-
"checksum": "
|
|
51
|
-
"size":
|
|
50
|
+
"checksum": "2816c6f4eb351bb596f513f13c76bdbf2f32545df1d813f28633ceb3354d956e",
|
|
51
|
+
"size": 52521404
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anthropic-ai/claude-agent-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.81",
|
|
4
4
|
"main": "sdk.mjs",
|
|
5
5
|
"types": "sdk.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
"types": "./browser-sdk.d.ts",
|
|
17
17
|
"default": "./browser-sdk.js"
|
|
18
18
|
},
|
|
19
|
+
"./bridge": {
|
|
20
|
+
"types": "./bridge.d.ts",
|
|
21
|
+
"default": "./bridge.mjs"
|
|
22
|
+
},
|
|
19
23
|
"./sdk-tools": {
|
|
20
24
|
"types": "./sdk-tools.d.ts"
|
|
21
25
|
},
|
|
@@ -58,5 +62,5 @@
|
|
|
58
62
|
"@img/sharp-win32-arm64": "^0.34.2",
|
|
59
63
|
"@img/sharp-win32-x64": "^0.34.2"
|
|
60
64
|
},
|
|
61
|
-
"claudeCodeVersion": "2.1.
|
|
65
|
+
"claudeCodeVersion": "2.1.81"
|
|
62
66
|
}
|
package/sdk-tools.d.ts
CHANGED
|
@@ -2215,7 +2215,7 @@ export interface ConfigInput {
|
|
|
2215
2215
|
}
|
|
2216
2216
|
export interface EnterWorktreeInput {
|
|
2217
2217
|
/**
|
|
2218
|
-
* Optional name for the worktree. A random name is generated if not provided.
|
|
2218
|
+
* Optional name for the worktree (letters, digits, dots, underscores, dashes only; max 64 chars). A random name is generated if not provided.
|
|
2219
2219
|
*/
|
|
2220
2220
|
name?: string;
|
|
2221
2221
|
}
|
|
@@ -2313,10 +2313,6 @@ export interface ExitPlanModeOutput {
|
|
|
2313
2313
|
* Unique identifier for the plan approval request
|
|
2314
2314
|
*/
|
|
2315
2315
|
requestId?: string;
|
|
2316
|
-
/**
|
|
2317
|
-
* Whether this plan was generated by an ultraplan remote session
|
|
2318
|
-
*/
|
|
2319
|
-
isUltraplan?: boolean;
|
|
2320
2316
|
}
|
|
2321
2317
|
export interface FileEditOutput {
|
|
2322
2318
|
/**
|
package/sdk.d.ts
CHANGED
|
@@ -1880,7 +1880,7 @@ declare type SDKControlPermissionRequest = {
|
|
|
1880
1880
|
description?: string;
|
|
1881
1881
|
};
|
|
1882
1882
|
|
|
1883
|
-
declare type SDKControlRequest = {
|
|
1883
|
+
export declare type SDKControlRequest = {
|
|
1884
1884
|
type: 'control_request';
|
|
1885
1885
|
request_id: string;
|
|
1886
1886
|
request: SDKControlRequestInner;
|
|
@@ -1888,7 +1888,7 @@ declare type SDKControlRequest = {
|
|
|
1888
1888
|
|
|
1889
1889
|
declare type SDKControlRequestInner = SDKControlInterruptRequest | SDKControlPermissionRequest | SDKControlInitializeRequest | SDKControlSetPermissionModeRequest | SDKControlSetModelRequest | SDKControlSetMaxThinkingTokensRequest | SDKControlMcpStatusRequest | SDKHookCallbackRequest | SDKControlMcpMessageRequest | SDKControlRewindFilesRequest | SDKControlCancelAsyncMessageRequest | SDKControlMcpSetServersRequest | SDKControlMcpReconnectRequest | SDKControlMcpToggleRequest | SDKControlEndSessionRequest | SDKControlMcpAuthenticateRequest | SDKControlMcpClearAuthRequest | SDKControlMcpOAuthCallbackUrlRequest | SDKControlClaudeAuthenticateRequest | SDKControlClaudeOAuthCallbackRequest | SDKControlClaudeOAuthWaitForCompletionRequest | SDKControlRemoteControlRequest | SDKControlSetProactiveRequest | SDKControlGenerateSessionTitleRequest | SDKControlSideQuestionRequest | SDKControlStopTaskRequest | SDKControlApplyFlagSettingsRequest | SDKControlGetSettingsRequest | SDKControlElicitationRequest;
|
|
1890
1890
|
|
|
1891
|
-
declare type SDKControlResponse = {
|
|
1891
|
+
export declare type SDKControlResponse = {
|
|
1892
1892
|
type: 'control_response';
|
|
1893
1893
|
response: ControlResponse | ControlErrorResponse;
|
|
1894
1894
|
};
|
|
@@ -2353,6 +2353,7 @@ export declare type SDKTaskProgressMessage = {
|
|
|
2353
2353
|
};
|
|
2354
2354
|
last_tool_name?: string;
|
|
2355
2355
|
summary?: string;
|
|
2356
|
+
|
|
2356
2357
|
uuid: UUID;
|
|
2357
2358
|
session_id: string;
|
|
2358
2359
|
};
|
|
@@ -2458,6 +2459,7 @@ export declare type SessionStartHookInput = BaseHookInput & {
|
|
|
2458
2459
|
export declare type SessionStartHookSpecificOutput = {
|
|
2459
2460
|
hookEventName: 'SessionStart';
|
|
2460
2461
|
additionalContext?: string;
|
|
2462
|
+
initialUserMessage?: string;
|
|
2461
2463
|
};
|
|
2462
2464
|
|
|
2463
2465
|
/**
|
|
@@ -2639,13 +2641,17 @@ export declare interface Settings {
|
|
|
2639
2641
|
*/
|
|
2640
2642
|
hooks: ({
|
|
2641
2643
|
/**
|
|
2642
|
-
*
|
|
2644
|
+
* Shell command hook type
|
|
2643
2645
|
*/
|
|
2644
2646
|
type: 'command';
|
|
2645
2647
|
/**
|
|
2646
2648
|
* Shell command to execute
|
|
2647
2649
|
*/
|
|
2648
2650
|
command: string;
|
|
2651
|
+
/**
|
|
2652
|
+
* Shell interpreter. 'bash' uses your $SHELL (bash/zsh/sh); 'powershell' uses pwsh. Defaults to bash.
|
|
2653
|
+
*/
|
|
2654
|
+
shell?: 'bash' | 'powershell';
|
|
2649
2655
|
/**
|
|
2650
2656
|
* Timeout in seconds for this specific command
|
|
2651
2657
|
*/
|
|
@@ -2767,6 +2773,10 @@ export declare interface Settings {
|
|
|
2767
2773
|
* Disable all hooks and statusLine execution
|
|
2768
2774
|
*/
|
|
2769
2775
|
disableAllHooks?: boolean;
|
|
2776
|
+
/**
|
|
2777
|
+
* Default shell for input-box ! commands. Defaults to 'bash' on all platforms (no Windows auto-flip).
|
|
2778
|
+
*/
|
|
2779
|
+
defaultShell?: 'bash' | 'powershell';
|
|
2770
2780
|
/**
|
|
2771
2781
|
* When true (and set in managed settings), only hooks from managed settings run. User, project, and local hooks are ignored.
|
|
2772
2782
|
*/
|
|
@@ -2787,6 +2797,10 @@ export declare interface Settings {
|
|
|
2787
2797
|
* When true (and set in managed settings), allowedMcpServers is only read from managed settings. deniedMcpServers still merges from all sources, so users can deny servers for themselves. Users can still add their own MCP servers, but only the admin-defined allowlist applies.
|
|
2788
2798
|
*/
|
|
2789
2799
|
allowManagedMcpServersOnly?: boolean;
|
|
2800
|
+
/**
|
|
2801
|
+
* When set in managed settings, blocks non-plugin customization sources for the listed surfaces. Array form locks specific surfaces (e.g. ["skills", "hooks"]); `true` locks all four; `false` is an explicit no-op. Blocked: ~/.claude/{surface}/, .claude/{surface}/ (project), settings.json hooks, .mcp.json. NOT blocked: managed (policySettings) sources, plugin-provided customizations. Composes with strictKnownMarketplaces for end-to-end admin control — plugins gated by marketplace allowlist, everything else blocked here.
|
|
2802
|
+
*/
|
|
2803
|
+
strictPluginOnlyCustomization?: boolean | ('skills' | 'agents' | 'hooks' | 'mcp')[];
|
|
2790
2804
|
/**
|
|
2791
2805
|
* Custom status line display configuration
|
|
2792
2806
|
*/
|
|
@@ -3533,6 +3547,10 @@ export declare interface Settings {
|
|
|
3533
3547
|
* When false, prompt suggestions are disabled. When absent or true, prompt suggestions are enabled.
|
|
3534
3548
|
*/
|
|
3535
3549
|
promptSuggestionEnabled?: boolean;
|
|
3550
|
+
/**
|
|
3551
|
+
* When true, the plan-approval dialog offers a "clear context" option. Defaults to false.
|
|
3552
|
+
*/
|
|
3553
|
+
showClearContextOnPlanAccept?: boolean;
|
|
3536
3554
|
/**
|
|
3537
3555
|
* Name of an agent (built-in or custom) to use for the main thread. Applies the agent's system prompt, tool restrictions, and model.
|
|
3538
3556
|
*/
|
|
@@ -3595,6 +3613,10 @@ export declare interface Settings {
|
|
|
3595
3613
|
* Custom directory path for auto-memory storage. Supports ~/ prefix for home directory expansion. Ignored if set in projectSettings (checked-in .claude/settings.json) for security. When unset, defaults to ~/.claude/projects/<sanitized-cwd>/memory/.
|
|
3596
3614
|
*/
|
|
3597
3615
|
autoMemoryDirectory?: string;
|
|
3616
|
+
/**
|
|
3617
|
+
* Enable background memory consolidation (auto-dream). When set, overrides the server-side default.
|
|
3618
|
+
*/
|
|
3619
|
+
autoDreamEnabled?: boolean;
|
|
3598
3620
|
/**
|
|
3599
3621
|
* Show thinking summaries in the transcript view (ctrl+o). Default: false.
|
|
3600
3622
|
*/
|