@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/manifest.json CHANGED
@@ -1,46 +1,46 @@
1
1
  {
2
- "version": "2.1.71",
3
- "buildDate": "2026-03-06T22:51:07Z",
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": "f3d8129ec7ddaf158c10e193df546421499d69b7f44ec2f0b67c3fe54f601cb9",
8
- "size": 192377712
7
+ "checksum": "5d402f804dde699c3824e93fefc198d81a52947a43e578286ea01cea9c029a73",
8
+ "size": 189851520
9
9
  },
10
10
  "darwin-x64": {
11
11
  "binary": "claude",
12
- "checksum": "a8ff210022860b1567d35fba5822d9be4a74c422962e2e32c39f4116796d57c8",
13
- "size": 198519888
12
+ "checksum": "3b03e15e3e809ada49e5a4125eb36508585b6d5adcd715b23d1ca3bedeb2a4e9",
13
+ "size": 195931776
14
14
  },
15
15
  "linux-arm64": {
16
16
  "binary": "claude",
17
- "checksum": "ae26e4a5654238f0a684d5fd9a6bf592321b06eb88ea834343b275f310e39bea",
18
- "size": 234383757
17
+ "checksum": "7a9d6851c57df4af7ac2800817a81970cf17c388e02d3749610d2fe199c2d0f0",
18
+ "size": 231753229
19
19
  },
20
20
  "linux-x64": {
21
21
  "binary": "claude",
22
- "checksum": "61002e5f5c4190e9a775bd9cf90e57fff3f0379fb2c8edc653ac0942a347babd",
23
- "size": 237119954
22
+ "checksum": "960cd0d71a225f3b946bb49dd5c19624c558077d9cf3da4eb570380b43135b7d",
23
+ "size": 234516204
24
24
  },
25
25
  "linux-arm64-musl": {
26
26
  "binary": "claude",
27
- "checksum": "e2223aa7ad06c216fa681996fa51388c1a8ba90cf0d5ce43f8ebaaa618d2b3b1",
28
- "size": 224919229
27
+ "checksum": "e8fb09d172884ef29148bf8959a0d31d3497ac567ca8f3efc83535a0b77e6d3e",
28
+ "size": 222272317
29
29
  },
30
30
  "linux-x64-musl": {
31
31
  "binary": "claude",
32
- "checksum": "46e941a6f6f354b47644cb132f33a2f55a9fc51fd84ec42fcf0355054aa79974",
33
- "size": 227717442
32
+ "checksum": "60eb9a5a683f103c845917afddd352c92e72bea367cf942c04a959aa56264e5d",
33
+ "size": 225113692
34
34
  },
35
35
  "win32-x64": {
36
36
  "binary": "claude.exe",
37
- "checksum": "743c3a8bfefe20f7d466517c8e5de2ad46bced461e970e48ea0ce980f209a9c3",
38
- "size": 240928416
37
+ "checksum": "8e0312e20fdd4735f309f8cc1d277cd7171823ffb3c4e722e04d741a553f38e0",
38
+ "size": 238328480
39
39
  },
40
40
  "win32-arm64": {
41
41
  "binary": "claude.exe",
42
- "checksum": "75bbe4d3ec469c5440a3cb045924bf90fff4c1792007e77429dbd608b8eabc2f",
43
- "size": 235514016
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.71",
3
- "buildDate": "2026-03-06T22:51:08Z",
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": "8136b9d5166ba659aa7c139b2777f42e10466760721937887868c63e638aa20b",
8
- "size": 40664092
7
+ "checksum": "207d2762e9b55d6386bc95422f7be9873a413d5855f89fed342fb58812f87851",
8
+ "size": 40370522
9
9
  },
10
10
  "darwin-x64": {
11
11
  "binary": "claude.zst",
12
- "checksum": "703cea977e558b12baa2f5a3f0f6f4dad94fc77a69bb3032719ffe6858152cfa",
13
- "size": 43095882
12
+ "checksum": "32b4e987208334516c38f54267e81964a1ca06aeea6b04b02ca272d13ecb5155",
13
+ "size": 42799457
14
14
  },
15
15
  "linux-arm64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "864d742f1cc757ee7ede99e57ec44ba2918c9b191dc58d7fb9b447440a8f19ac",
18
- "size": 52562010
17
+ "checksum": "e3324cae62b5e2b079d0a4219434582e1a00334672f76e15eaa898c0f12ffb95",
18
+ "size": 52289295
19
19
  },
20
20
  "linux-x64": {
21
21
  "binary": "claude.zst",
22
- "checksum": "6797fe1b61bff80a996849deb2fd18159c8dd812e630ab3f447b32baeab0fe08",
23
- "size": 53298616
22
+ "checksum": "d4367d1a03f819d8f886e53f537e28765aefcd6212782d87ca99c07c4e8c316b",
23
+ "size": 53026759
24
24
  },
25
25
  "linux-arm64-musl": {
26
26
  "binary": "claude.zst",
27
- "checksum": "be54f1f66cc5c78571f9e947160b02b36d8e8af5652936c107c7aa2da5671531",
28
- "size": 50480463
27
+ "checksum": "965383f4de337844468245f7658ab8226bbec0747c5c53b5d4091e0571863b24",
28
+ "size": 50287213
29
29
  },
30
30
  "linux-x64-musl": {
31
31
  "binary": "claude.zst",
32
- "checksum": "8b8d95e0383ca31c0d7ad00ca1105f309350cf9e6c8fe5181ce497825a1371b2",
33
- "size": 51286831
32
+ "checksum": "c4da0de9748bd9058399250f7a1759c71232246991588ec572650647eeee2c3b",
33
+ "size": 51008966
34
34
  },
35
35
  "win32-x64": {
36
36
  "binary": "claude.exe.zst",
37
- "checksum": "db2c70e5097a31127a9f6f649a59c22d1b2c82254687ad502f37b9adf9e9c1cd",
38
- "size": 53784053
37
+ "checksum": "9ccf960da33e05bc30244ff1b0f3115fcb4f47e5f329647f9013d9551a306c6a",
38
+ "size": 53513749
39
39
  },
40
40
  "win32-arm64": {
41
41
  "binary": "claude.exe.zst",
42
- "checksum": "2862375e0f3105749e3c6708b7d0d9c86c444976cd40fc9f818cbeb04d58c901",
43
- "size": 51899587
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.71",
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.71"
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
  */