@anthropic-ai/claude-agent-sdk 0.2.71 → 0.2.73
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/cli.js +3378 -2384
- package/manifest.json +18 -18
- package/manifest.zst.json +18 -18
- package/package.json +2 -2
- package/sdk-tools.d.ts +27 -1
- package/sdk.d.ts +35 -1
- package/sdk.mjs +22 -22
- package/vendor/tree-sitter-bash/arm64-darwin/tree-sitter-bash.node +0 -0
- package/vendor/tree-sitter-bash/arm64-linux/tree-sitter-bash.node +0 -0
- package/vendor/tree-sitter-bash/arm64-win32/tree-sitter-bash.node +0 -0
- package/vendor/tree-sitter-bash/x64-darwin/tree-sitter-bash.node +0 -0
- package/vendor/tree-sitter-bash/x64-linux/tree-sitter-bash.node +0 -0
- package/vendor/tree-sitter-bash/x64-win32/tree-sitter-bash.node +0 -0
- package/tree-sitter-bash.wasm +0 -0
- package/tree-sitter.wasm +0 -0
package/manifest.json
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"buildDate": "2026-03-
|
|
2
|
+
"version": "2.1.73",
|
|
3
|
+
"buildDate": "2026-03-11T15:05:33Z",
|
|
4
4
|
"platforms": {
|
|
5
5
|
"darwin-arm64": {
|
|
6
6
|
"binary": "claude",
|
|
7
|
-
"checksum": "
|
|
8
|
-
"size":
|
|
7
|
+
"checksum": "5d402f804dde699c3824e93fefc198d81a52947a43e578286ea01cea9c029a73",
|
|
8
|
+
"size": 189851520
|
|
9
9
|
},
|
|
10
10
|
"darwin-x64": {
|
|
11
11
|
"binary": "claude",
|
|
12
|
-
"checksum": "
|
|
13
|
-
"size":
|
|
12
|
+
"checksum": "3b03e15e3e809ada49e5a4125eb36508585b6d5adcd715b23d1ca3bedeb2a4e9",
|
|
13
|
+
"size": 195931776
|
|
14
14
|
},
|
|
15
15
|
"linux-arm64": {
|
|
16
16
|
"binary": "claude",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "7a9d6851c57df4af7ac2800817a81970cf17c388e02d3749610d2fe199c2d0f0",
|
|
18
|
+
"size": 231753229
|
|
19
19
|
},
|
|
20
20
|
"linux-x64": {
|
|
21
21
|
"binary": "claude",
|
|
22
|
-
"checksum": "
|
|
23
|
-
"size":
|
|
22
|
+
"checksum": "960cd0d71a225f3b946bb49dd5c19624c558077d9cf3da4eb570380b43135b7d",
|
|
23
|
+
"size": 234516204
|
|
24
24
|
},
|
|
25
25
|
"linux-arm64-musl": {
|
|
26
26
|
"binary": "claude",
|
|
27
|
-
"checksum": "
|
|
28
|
-
"size":
|
|
27
|
+
"checksum": "e8fb09d172884ef29148bf8959a0d31d3497ac567ca8f3efc83535a0b77e6d3e",
|
|
28
|
+
"size": 222272317
|
|
29
29
|
},
|
|
30
30
|
"linux-x64-musl": {
|
|
31
31
|
"binary": "claude",
|
|
32
|
-
"checksum": "
|
|
33
|
-
"size":
|
|
32
|
+
"checksum": "60eb9a5a683f103c845917afddd352c92e72bea367cf942c04a959aa56264e5d",
|
|
33
|
+
"size": 225113692
|
|
34
34
|
},
|
|
35
35
|
"win32-x64": {
|
|
36
36
|
"binary": "claude.exe",
|
|
37
|
-
"checksum": "
|
|
38
|
-
"size":
|
|
37
|
+
"checksum": "8e0312e20fdd4735f309f8cc1d277cd7171823ffb3c4e722e04d741a553f38e0",
|
|
38
|
+
"size": 238328480
|
|
39
39
|
},
|
|
40
40
|
"win32-arm64": {
|
|
41
41
|
"binary": "claude.exe",
|
|
42
|
-
"checksum": "
|
|
43
|
-
"size":
|
|
42
|
+
"checksum": "151830ad8cedccbd8b1c053ea495a5b63b878379a3004c393a2394cecddf1164",
|
|
43
|
+
"size": 232914592
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
}
|
package/manifest.zst.json
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"buildDate": "2026-03-
|
|
2
|
+
"version": "2.1.73",
|
|
3
|
+
"buildDate": "2026-03-11T15:05:34Z",
|
|
4
4
|
"platforms": {
|
|
5
5
|
"darwin-arm64": {
|
|
6
6
|
"binary": "claude.zst",
|
|
7
|
-
"checksum": "
|
|
8
|
-
"size":
|
|
7
|
+
"checksum": "207d2762e9b55d6386bc95422f7be9873a413d5855f89fed342fb58812f87851",
|
|
8
|
+
"size": 40370522
|
|
9
9
|
},
|
|
10
10
|
"darwin-x64": {
|
|
11
11
|
"binary": "claude.zst",
|
|
12
|
-
"checksum": "
|
|
13
|
-
"size":
|
|
12
|
+
"checksum": "32b4e987208334516c38f54267e81964a1ca06aeea6b04b02ca272d13ecb5155",
|
|
13
|
+
"size": 42799457
|
|
14
14
|
},
|
|
15
15
|
"linux-arm64": {
|
|
16
16
|
"binary": "claude.zst",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "e3324cae62b5e2b079d0a4219434582e1a00334672f76e15eaa898c0f12ffb95",
|
|
18
|
+
"size": 52289295
|
|
19
19
|
},
|
|
20
20
|
"linux-x64": {
|
|
21
21
|
"binary": "claude.zst",
|
|
22
|
-
"checksum": "
|
|
23
|
-
"size":
|
|
22
|
+
"checksum": "d4367d1a03f819d8f886e53f537e28765aefcd6212782d87ca99c07c4e8c316b",
|
|
23
|
+
"size": 53026759
|
|
24
24
|
},
|
|
25
25
|
"linux-arm64-musl": {
|
|
26
26
|
"binary": "claude.zst",
|
|
27
|
-
"checksum": "
|
|
28
|
-
"size":
|
|
27
|
+
"checksum": "965383f4de337844468245f7658ab8226bbec0747c5c53b5d4091e0571863b24",
|
|
28
|
+
"size": 50287213
|
|
29
29
|
},
|
|
30
30
|
"linux-x64-musl": {
|
|
31
31
|
"binary": "claude.zst",
|
|
32
|
-
"checksum": "
|
|
33
|
-
"size":
|
|
32
|
+
"checksum": "c4da0de9748bd9058399250f7a1759c71232246991588ec572650647eeee2c3b",
|
|
33
|
+
"size": 51008966
|
|
34
34
|
},
|
|
35
35
|
"win32-x64": {
|
|
36
36
|
"binary": "claude.exe.zst",
|
|
37
|
-
"checksum": "
|
|
38
|
-
"size":
|
|
37
|
+
"checksum": "9ccf960da33e05bc30244ff1b0f3115fcb4f47e5f329647f9013d9551a306c6a",
|
|
38
|
+
"size": 53513749
|
|
39
39
|
},
|
|
40
40
|
"win32-arm64": {
|
|
41
41
|
"binary": "claude.exe.zst",
|
|
42
|
-
"checksum": "
|
|
43
|
-
"size":
|
|
42
|
+
"checksum": "22d58f8b568ef4fc5118fc61f9ef99d957cbfc7aa485761d5e875f374f336a64",
|
|
43
|
+
"size": 51586350
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
}
|
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.73",
|
|
4
4
|
"main": "sdk.mjs",
|
|
5
5
|
"types": "sdk.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"@img/sharp-win32-arm64": "^0.34.2",
|
|
49
49
|
"@img/sharp-win32-x64": "^0.34.2"
|
|
50
50
|
},
|
|
51
|
-
"claudeCodeVersion": "2.1.
|
|
51
|
+
"claudeCodeVersion": "2.1.73"
|
|
52
52
|
}
|
package/sdk-tools.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export type ToolInputSchemas =
|
|
|
33
33
|
| AskUserQuestionInput
|
|
34
34
|
| ConfigInput
|
|
35
35
|
| EnterWorktreeInput
|
|
36
|
+
| ExitWorktreeInput
|
|
36
37
|
| ToolOutputSchemas;
|
|
37
38
|
export type ToolOutputSchemas =
|
|
38
39
|
| AgentOutput
|
|
@@ -57,7 +58,8 @@ export type ToolOutputSchemas =
|
|
|
57
58
|
| WebSearchOutput
|
|
58
59
|
| AskUserQuestionOutput
|
|
59
60
|
| ConfigOutput
|
|
60
|
-
| EnterWorktreeOutput
|
|
61
|
+
| EnterWorktreeOutput
|
|
62
|
+
| ExitWorktreeOutput;
|
|
61
63
|
export type AgentOutput =
|
|
62
64
|
| {
|
|
63
65
|
agentId: string;
|
|
@@ -264,6 +266,10 @@ export interface AgentInput {
|
|
|
264
266
|
* The type of specialized agent to use for this task
|
|
265
267
|
*/
|
|
266
268
|
subagent_type?: string;
|
|
269
|
+
/**
|
|
270
|
+
* Optional model override for this agent. Takes precedence over the agent definition's model frontmatter. If omitted, uses the agent definition's model, or inherits from the parent.
|
|
271
|
+
*/
|
|
272
|
+
model?: "sonnet" | "opus" | "haiku";
|
|
267
273
|
/**
|
|
268
274
|
* Optional agent ID to resume from. If provided, the agent will continue from the previous execution transcript.
|
|
269
275
|
*/
|
|
@@ -2217,6 +2223,16 @@ export interface EnterWorktreeInput {
|
|
|
2217
2223
|
*/
|
|
2218
2224
|
name?: string;
|
|
2219
2225
|
}
|
|
2226
|
+
export interface ExitWorktreeInput {
|
|
2227
|
+
/**
|
|
2228
|
+
* "keep" leaves the worktree and branch on disk; "remove" deletes both.
|
|
2229
|
+
*/
|
|
2230
|
+
action: "keep" | "remove";
|
|
2231
|
+
/**
|
|
2232
|
+
* Required true when action is "remove" and the worktree has uncommitted files or unmerged commits. The tool will refuse and list them otherwise.
|
|
2233
|
+
*/
|
|
2234
|
+
discard_changes?: boolean;
|
|
2235
|
+
}
|
|
2220
2236
|
export interface BashOutput {
|
|
2221
2237
|
/**
|
|
2222
2238
|
* The standard output of the command
|
|
@@ -2799,3 +2815,13 @@ export interface EnterWorktreeOutput {
|
|
|
2799
2815
|
worktreeBranch?: string;
|
|
2800
2816
|
message: string;
|
|
2801
2817
|
}
|
|
2818
|
+
export interface ExitWorktreeOutput {
|
|
2819
|
+
action: "keep" | "remove";
|
|
2820
|
+
originalCwd: string;
|
|
2821
|
+
worktreePath: string;
|
|
2822
|
+
worktreeBranch?: string;
|
|
2823
|
+
tmuxSessionName?: string;
|
|
2824
|
+
discardedFiles?: number;
|
|
2825
|
+
discardedCommits?: number;
|
|
2826
|
+
message: string;
|
|
2827
|
+
}
|
package/sdk.d.ts
CHANGED
|
@@ -619,6 +619,10 @@ export declare type ModelInfo = {
|
|
|
619
619
|
* Whether this model supports fast mode
|
|
620
620
|
*/
|
|
621
621
|
supportsFastMode?: boolean;
|
|
622
|
+
/**
|
|
623
|
+
* Whether this model supports auto mode
|
|
624
|
+
*/
|
|
625
|
+
supportsAutoMode?: boolean;
|
|
622
626
|
};
|
|
623
627
|
|
|
624
628
|
export declare type ModelUsage = {
|
|
@@ -986,6 +990,16 @@ export declare type Options = {
|
|
|
986
990
|
* - Suggestions piggyback on the parent's prompt cache, making them nearly free.
|
|
987
991
|
*/
|
|
988
992
|
promptSuggestions?: boolean;
|
|
993
|
+
/**
|
|
994
|
+
* Enable periodic AI-generated progress summaries for running subagents. When
|
|
995
|
+
* true, the subagent's conversation is forked every ~30s to produce a short
|
|
996
|
+
* present-tense description (e.g. "Analyzing authentication module"), emitted
|
|
997
|
+
* on `task_progress` events via the `summary` field. The fork reuses the
|
|
998
|
+
* subagent's model and prompt cache, so cost is typically minimal.
|
|
999
|
+
*
|
|
1000
|
+
* Applies to both foreground and background subagents. Defaults to false.
|
|
1001
|
+
*/
|
|
1002
|
+
agentProgressSummaries?: boolean;
|
|
989
1003
|
/**
|
|
990
1004
|
* Session ID to resume. Loads the conversation history from the specified session.
|
|
991
1005
|
*/
|
|
@@ -1613,6 +1627,7 @@ declare type SDKControlInitializeRequest = {
|
|
|
1613
1627
|
appendSystemPrompt?: string;
|
|
1614
1628
|
agents?: Record<string, coreTypes.AgentDefinition>;
|
|
1615
1629
|
promptSuggestions?: boolean;
|
|
1630
|
+
agentProgressSummaries?: boolean;
|
|
1616
1631
|
};
|
|
1617
1632
|
|
|
1618
1633
|
/**
|
|
@@ -1701,7 +1716,7 @@ declare type SDKControlRequest = {
|
|
|
1701
1716
|
request: SDKControlRequestInner;
|
|
1702
1717
|
};
|
|
1703
1718
|
|
|
1704
|
-
declare type SDKControlRequestInner = SDKControlInterruptRequest | SDKControlPermissionRequest | SDKControlInitializeRequest | SDKControlSetPermissionModeRequest | SDKControlSetModelRequest | SDKControlSetMaxThinkingTokensRequest | SDKControlMcpStatusRequest | SDKHookCallbackRequest | SDKControlMcpMessageRequest | SDKControlRewindFilesRequest | SDKControlMcpSetServersRequest | SDKControlMcpReconnectRequest | SDKControlMcpToggleRequest | SDKControlMcpAuthenticateRequest | SDKControlMcpClearAuthRequest | SDKControlMcpOAuthCallbackUrlRequest | SDKControlRemoteControlRequest | SDKControlSetProactiveRequest | SDKControlStopTaskRequest | SDKControlApplyFlagSettingsRequest | SDKControlGetSettingsRequest | SDKControlElicitationRequest;
|
|
1719
|
+
declare type SDKControlRequestInner = SDKControlInterruptRequest | SDKControlPermissionRequest | SDKControlInitializeRequest | SDKControlSetPermissionModeRequest | SDKControlSetModelRequest | SDKControlSetMaxThinkingTokensRequest | SDKControlMcpStatusRequest | SDKHookCallbackRequest | SDKControlMcpMessageRequest | SDKControlRewindFilesRequest | SDKControlMcpSetServersRequest | SDKControlMcpReconnectRequest | SDKControlMcpToggleRequest | SDKControlEndSessionRequest | SDKControlMcpAuthenticateRequest | SDKControlMcpClearAuthRequest | SDKControlMcpOAuthCallbackUrlRequest | SDKControlRemoteControlRequest | SDKControlSetProactiveRequest | SDKControlStopTaskRequest | SDKControlApplyFlagSettingsRequest | SDKControlGetSettingsRequest | SDKControlElicitationRequest;
|
|
1705
1720
|
|
|
1706
1721
|
declare type SDKControlResponse = {
|
|
1707
1722
|
type: 'control_response';
|
|
@@ -2156,6 +2171,7 @@ export declare type SDKTaskProgressMessage = {
|
|
|
2156
2171
|
duration_ms: number;
|
|
2157
2172
|
};
|
|
2158
2173
|
last_tool_name?: string;
|
|
2174
|
+
summary?: string;
|
|
2159
2175
|
uuid: UUID;
|
|
2160
2176
|
session_id: string;
|
|
2161
2177
|
};
|
|
@@ -2268,6 +2284,10 @@ export declare interface Settings {
|
|
|
2268
2284
|
* Path to a script that refreshes AWS authentication
|
|
2269
2285
|
*/
|
|
2270
2286
|
awsAuthRefresh?: string;
|
|
2287
|
+
/**
|
|
2288
|
+
* Command to refresh GCP authentication (e.g., gcloud auth application-default login)
|
|
2289
|
+
*/
|
|
2290
|
+
gcpAuthRefresh?: string;
|
|
2271
2291
|
/**
|
|
2272
2292
|
* Custom file suggestion configuration for \@ mentions
|
|
2273
2293
|
*/
|
|
@@ -2334,6 +2354,10 @@ export declare interface Settings {
|
|
|
2334
2354
|
* Disable the ability to bypass permission prompts
|
|
2335
2355
|
*/
|
|
2336
2356
|
disableBypassPermissionsMode?: 'disable';
|
|
2357
|
+
/**
|
|
2358
|
+
* Disable auto mode
|
|
2359
|
+
*/
|
|
2360
|
+
disableAutoMode?: 'disable';
|
|
2337
2361
|
/**
|
|
2338
2362
|
* Additional directories to include in the permission scope
|
|
2339
2363
|
*/
|
|
@@ -2348,6 +2372,12 @@ export declare interface Settings {
|
|
|
2348
2372
|
* Allowlist of models that users can select. Accepts family aliases ("opus" allows any opus version), version prefixes ("opus-4-5" allows only that version), and full model IDs. If undefined, all models are available. If empty array, only the default model is available. Typically set in managed settings by enterprise administrators.
|
|
2349
2373
|
*/
|
|
2350
2374
|
availableModels?: string[];
|
|
2375
|
+
/**
|
|
2376
|
+
* Override mapping from Anthropic model ID (e.g. "claude-opus-4-6") to provider-specific model ID (e.g. a Bedrock inference profile ARN). Typically set in managed settings by enterprise administrators.
|
|
2377
|
+
*/
|
|
2378
|
+
modelOverrides?: {
|
|
2379
|
+
[k: string]: string;
|
|
2380
|
+
};
|
|
2351
2381
|
/**
|
|
2352
2382
|
* Whether to automatically approve all MCP servers in the project
|
|
2353
2383
|
*/
|
|
@@ -2944,6 +2974,10 @@ export declare interface Settings {
|
|
|
2944
2974
|
* When false, thinking is disabled. When absent or true, thinking is enabled automatically for supported models.
|
|
2945
2975
|
*/
|
|
2946
2976
|
alwaysThinkingEnabled?: boolean;
|
|
2977
|
+
/**
|
|
2978
|
+
* Persisted effort level for supported models.
|
|
2979
|
+
*/
|
|
2980
|
+
effortLevel?: 'low' | 'medium' | 'high';
|
|
2947
2981
|
/**
|
|
2948
2982
|
* When true, fast mode is enabled. When absent or false, fast mode is off.
|
|
2949
2983
|
*/
|