@anthropic-ai/claude-agent-sdk 0.3.161 → 0.3.163

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.161",
3
- "commit": "6a550aea7c747b1b0ddd8bb61dbe199c4ad41320",
4
- "buildDate": "2026-06-02T01:55:49Z",
2
+ "version": "2.1.163",
3
+ "commit": "9f38ff86c75e05c94ceee0af5bd0414a1db475f3",
4
+ "buildDate": "2026-06-04T05:55:05Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "5b4dc79eab05f9756c252c71deb339efa4429dffc1967dd8392cf87fcde4867f",
9
- "size": 218040864
8
+ "checksum": "c7582e926e8fe459dbd9743f19ccb75500e3b455c722902d1aa587a74fb1fa7c",
9
+ "size": 219526944
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "6f874fecac8a951f5f1991dc1470bc85a5e24f2588859b89cca0f1b6b5592310",
14
- "size": 220555024
13
+ "checksum": "a409fc60ccd6789f47532791ed23ca048774cfbd0b0a16f9f57dbbf9240fda7c",
14
+ "size": 222041104
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "7dfa0a79a2fc9f332057cdc0302f808cba63df7b75e2ccb5a7c1ab62639804e3",
19
- "size": 243316360
18
+ "checksum": "ca0010a80e3c4749e59c6e8429ec4a4e2ecbaafac36d3535636e04369bbb87c0",
19
+ "size": 244823688
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "1f6a22f387a3bce496b6d869389a35dffb5a69c97d9831833f3bd6dc0e6c6c28",
24
- "size": 243439312
23
+ "checksum": "5dddcb2c091da60cf9b1bef782e6c78a7fada2f2cd3db4f131c9ebc2478fd447",
24
+ "size": 244913872
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "8318d4039c60fbb21a53e81f93e46a3b1dcdb9b07462f6fee72d99c9d2b93f83",
29
- "size": 236171096
28
+ "checksum": "e1d7ce941ef42fd812d9fa28d72e04f745e7c4cfba5b91cb9f46f8a97bfb2adb",
29
+ "size": 237678424
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "f8e09e0b16502c277ca8a296245eb59f421e424763a99fd132551b701a713bcf",
34
- "size": 237833264
33
+ "checksum": "8ac1df465ce3417f517bf4d375876c576d67af41a8795537c9022bdb9af5a600",
34
+ "size": 239307824
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "3b0b64caf3428fac3751bd1903c350870b34f9e7a4390ac7c2fdb3a711656a04",
39
- "size": 239007904
38
+ "checksum": "99943f399d76e89a435b5e19a15814227bc258ba4afc583ec09c67933fdafd83",
39
+ "size": 240440992
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "f4a7d910fc5a8b46afc14c36108c46c8b0deeb8f316c6b7e4ede77868ce70acf",
44
- "size": 234972832
43
+ "checksum": "d83903c8e10a95fd8de48b7c185e30320af5b96122eff49edfae7773bb8d8b08",
44
+ "size": 236405408
45
45
  }
46
46
  }
47
47
  }
package/manifest.zst.json CHANGED
@@ -1,55 +1,55 @@
1
1
  {
2
- "version": "2.1.161",
3
- "commit": "6a550aea7c747b1b0ddd8bb61dbe199c4ad41320",
4
- "buildDate": "2026-06-02T02:02:00Z",
2
+ "version": "2.1.163",
3
+ "commit": "9f38ff86c75e05c94ceee0af5bd0414a1db475f3",
4
+ "buildDate": "2026-06-04T05:56:48Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "dbcf5e80cca576a2128e65625b1950f91d2b98bacfa6e939f597c75bd0b5602a",
9
- "size": 44863384,
8
+ "checksum": "93af7c96c7995d79e98586f59b014258b2408c9335882d3e25acea81bb8c2cd2",
9
+ "size": 45149640,
10
10
  "bundle": {
11
- "checksum": "ea3ad78ffc34f6700f489b3dd2a1e2e35c722d489ca54d62b63afcacb8911b5e",
12
- "size": 44871367
11
+ "checksum": "0c37dca9ae70a477182ec8c321fa935384c05a47e0b80fc5d28f82104653ffb1",
12
+ "size": 45145341
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "227bcd6d41ed94d6ad6186fa9075f39aae9675ea480e47d5b09a9ea691a0a0a0",
18
- "size": 46783803,
17
+ "checksum": "01a3b52436f38ffee1b9aceb42c116e617181e54ba695b8d3ef11903f6d80f70",
18
+ "size": 47040142,
19
19
  "bundle": {
20
- "checksum": "baba937aa2b5f2fee497bbce09bb84f76fd5a076f49aebee32b46e771bbf9b10",
21
- "size": 46791947
20
+ "checksum": "09e84b59e76a1575f376b607aeb98adcf9553a312cacf7223cc25adc5d33e985",
21
+ "size": 47043608
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "d46ca4ec38fe511d55357dedb9a437a6502627844370f0b548a124d6a1b436d0",
27
- "size": 52578824
26
+ "checksum": "9632c5260f78479e00190fac7f7877ab4ac649d68ddbbd596da2775e61669e10",
27
+ "size": 52819087
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "65faa42998853bdff28b48f6857627335eb42dddb14c9b3d40fd769352d8f285",
32
- "size": 53186973
31
+ "checksum": "1ed76dea245599a132bd2894bef96e810d2a969d261d9a6d43b0bd5566162cae",
32
+ "size": 53433603
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "f08efd1c7dcb0af9fcf94c62401307263c8fb17a6ac376b9563b9add74ff0f25",
37
- "size": 51204872
36
+ "checksum": "0d3b2cf2e5e837fc35ecdafb9a4fab97954b409b951e00ca91c5419f13f86dad",
37
+ "size": 51453599
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "277891cd44e6f35050bce322cc99e13753acdc2d5bb41664d6de9ccfaf161239",
42
- "size": 51901930
41
+ "checksum": "a7fe4d9e3d87419eac7af8ebff5f4080d9a725763f7e2bc830a7639243f1f1de",
42
+ "size": 52171611
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "7a53001a2a895dfd019ff275134e2cd4332ad21b3016e997c554775bb5737ab3",
47
- "size": 53917556
46
+ "checksum": "1e033a7a2adaaaa1cc6d954e183a192fdd0779abbb346f3b2ac36461ec16723e",
47
+ "size": 54179611
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "47051d39f2d78603437d5cba03ef2885e9448d84160497b3d2890e7ada96a4ad",
52
- "size": 52194218
51
+ "checksum": "a723c2fb77474adc59f8939435e02065416ffa5f0bbb94f47aabc7969ca9b720",
52
+ "size": 52448455
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.161",
3
+ "version": "0.3.163",
4
4
  "main": "sdk.mjs",
5
5
  "types": "sdk.d.ts",
6
6
  "exports": {
@@ -61,14 +61,14 @@
61
61
  "zod": "^4.0.0"
62
62
  },
63
63
  "optionalDependencies": {
64
- "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.161",
65
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.161",
66
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.161",
67
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.161",
68
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.161",
69
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.161",
70
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.161",
71
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.161"
64
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.163",
65
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.163",
66
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.163",
67
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.163",
68
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.163",
69
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.163",
70
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.163",
71
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.163"
72
72
  },
73
73
  "files": [
74
74
  "sdk.mjs",
@@ -86,5 +86,5 @@
86
86
  "manifest.json",
87
87
  "manifest.zst.json"
88
88
  ],
89
- "claudeCodeVersion": "2.1.161"
89
+ "claudeCodeVersion": "2.1.163"
90
90
  }
package/sdk.d.ts CHANGED
@@ -443,9 +443,11 @@ declare namespace coreTypes {
443
443
  SlashCommand,
444
444
  StopFailureHookInput,
445
445
  StopHookInput,
446
+ StopHookSpecificOutput,
446
447
  SubagentStartHookInput,
447
448
  SubagentStartHookSpecificOutput,
448
449
  SubagentStopHookInput,
450
+ SubagentStopHookSpecificOutput,
449
451
  SyncHookJSONOutput,
450
452
  TaskCompletedHookInput,
451
453
  TaskCreatedHookInput,
@@ -1000,7 +1002,7 @@ export declare type McpClaudeAIProxyServerConfig = {
1000
1002
  url: string;
1001
1003
  id: string;
1002
1004
  /**
1003
- * Per-server tool-call timeout in milliseconds. Overrides the MCP_TOOL_TIMEOUT environment variable for this server. Hard wall-clock limit per call; progress notifications do not extend it. Floored at 1000ms.
1005
+ * Per-server tool-call timeout in milliseconds. Overrides the MCP_TOOL_TIMEOUT environment variable for this server. Hard wall-clock limit per call; progress notifications do not extend it. Values below 1000ms are ignored (falls through to MCP_TOOL_TIMEOUT or the default).
1004
1006
  */
1005
1007
  timeout?: number;
1006
1008
  };
@@ -1011,7 +1013,7 @@ export declare type McpHttpServerConfig = {
1011
1013
  headers?: Record<string, string>;
1012
1014
  tools?: McpServerToolPolicy[];
1013
1015
  /**
1014
- * Per-server tool-call timeout in milliseconds. Overrides the MCP_TOOL_TIMEOUT environment variable for this server. Hard wall-clock limit per call; progress notifications do not extend it. Floored at 1000ms.
1016
+ * Per-server tool-call timeout in milliseconds. Overrides the MCP_TOOL_TIMEOUT environment variable for this server. Hard wall-clock limit per call; progress notifications do not extend it. Values below 1000ms are ignored (falls through to MCP_TOOL_TIMEOUT or the default).
1015
1017
  */
1016
1018
  timeout?: number;
1017
1019
  /**
@@ -1121,7 +1123,7 @@ export declare type McpSSEServerConfig = {
1121
1123
  headers?: Record<string, string>;
1122
1124
  tools?: McpServerToolPolicy[];
1123
1125
  /**
1124
- * Per-server tool-call timeout in milliseconds. Overrides the MCP_TOOL_TIMEOUT environment variable for this server. Hard wall-clock limit per call; progress notifications do not extend it. Floored at 1000ms.
1126
+ * Per-server tool-call timeout in milliseconds. Overrides the MCP_TOOL_TIMEOUT environment variable for this server. Hard wall-clock limit per call; progress notifications do not extend it. Values below 1000ms are ignored (falls through to MCP_TOOL_TIMEOUT or the default).
1125
1127
  */
1126
1128
  timeout?: number;
1127
1129
  /**
@@ -1137,7 +1139,7 @@ export declare type McpStdioServerConfig = {
1137
1139
  args?: string[];
1138
1140
  env?: Record<string, string>;
1139
1141
  /**
1140
- * Per-server tool-call timeout in milliseconds. Overrides the MCP_TOOL_TIMEOUT environment variable for this server. Hard wall-clock limit per call; progress notifications do not extend it. Floored at 1000ms.
1142
+ * Per-server tool-call timeout in milliseconds. Overrides the MCP_TOOL_TIMEOUT environment variable for this server. Hard wall-clock limit per call; progress notifications do not extend it. Values below 1000ms are ignored (falls through to MCP_TOOL_TIMEOUT or the default).
1141
1143
  */
1142
1144
  timeout?: number;
1143
1145
  /**
@@ -1258,6 +1260,16 @@ export declare type OnElicitation = (request: ElicitationRequest, options: {
1258
1260
  signal: AbortSignal;
1259
1261
  }) => Promise<ElicitationResult>;
1260
1262
 
1263
+ /**
1264
+ * Callback for handling `request_user_dialog` control requests.
1265
+ * Called when the CLI asks the host to render a blocking dialog.
1266
+ * If not provided, dialogs are answered as cancelled and the CLI applies
1267
+ * each dialog's default behavior.
1268
+ */
1269
+ export declare type OnUserDialog = (request: UserDialogRequest, options: {
1270
+ signal: AbortSignal;
1271
+ }) => Promise<UserDialogResult>;
1272
+
1261
1273
  /**
1262
1274
  * Options for the query function.
1263
1275
  * Contains callbacks and other non-serializable fields.
@@ -1367,6 +1379,9 @@ export declare type Options = {
1367
1379
  * - `string[]` - Array of specific tool names (e.g., `['Bash', 'Read', 'Edit']`)
1368
1380
  * - `[]` (empty array) - Disable all built-in tools
1369
1381
  * - `{ type: 'preset'; preset: 'claude_code' }` - Use all default Claude Code tools
1382
+ *
1383
+ * Note: native builds may provide search via Bash `find`/`grep` instead of the
1384
+ * dedicated Grep/Glob tools. List Grep/Glob here or in `allowedTools` to get them.
1370
1385
  */
1371
1386
  tools?: string[] | {
1372
1387
  type: 'preset';
@@ -1480,6 +1495,16 @@ export declare type Options = {
1480
1495
  * ```
1481
1496
  */
1482
1497
  onElicitation?: OnElicitation;
1498
+ /**
1499
+ * Callback for handling `request_user_dialog` control requests — blocking
1500
+ * dialogs the CLI asks the host to render. Each `dialogKind` defines its
1501
+ * own payload and result shape.
1502
+ *
1503
+ * If not provided — or when the host answers `{behavior: 'cancelled'}`,
1504
+ * which is the required answer for an unrecognized `dialogKind` — the CLI
1505
+ * applies the dialog's default behavior.
1506
+ */
1507
+ onUserDialog?: OnUserDialog;
1483
1508
  /**
1484
1509
  * When false, disables session persistence to disk. Sessions will not be
1485
1510
  * saved to ~/.claude/projects/ and cannot be resumed later. Useful for
@@ -2292,6 +2317,12 @@ export declare interface Query extends AsyncGenerator<SDKMessage, void> {
2292
2317
  * @returns The refreshed session components after plugin reload
2293
2318
  */
2294
2319
  reloadPlugins(): Promise<SDKControlReloadPluginsResponse>;
2320
+ /**
2321
+ * Reload skills from disk and return the refreshed skill list.
2322
+ *
2323
+ * @returns The refreshed skill commands after reload
2324
+ */
2325
+ reloadSkills(): Promise<SDKControlReloadSkillsResponse>;
2295
2326
  /**
2296
2327
  * Get information about the authenticated account.
2297
2328
  *
@@ -2935,6 +2966,7 @@ export declare type SDKControlInitializeResponse = {
2935
2966
  account: coreTypes.AccountInfo;
2936
2967
 
2937
2968
  fast_mode_state?: coreTypes.FastModeState;
2969
+
2938
2970
  };
2939
2971
 
2940
2972
  /**
@@ -3070,6 +3102,20 @@ export declare type SDKControlReloadPluginsResponse = {
3070
3102
  error_count: number;
3071
3103
  };
3072
3104
 
3105
+ /**
3106
+ * Reloads skills from disk and returns the refreshed skill list.
3107
+ */
3108
+ declare type SDKControlReloadSkillsRequest = {
3109
+ subtype: 'reload_skills';
3110
+ };
3111
+
3112
+ /**
3113
+ * Refreshed skill commands after reload.
3114
+ */
3115
+ export declare type SDKControlReloadSkillsResponse = {
3116
+ skills: coreTypes.SlashCommand[];
3117
+ };
3118
+
3073
3119
  /**
3074
3120
  * Sets the user-facing title for the current session.
3075
3121
  */
@@ -3084,7 +3130,7 @@ export declare type SDKControlRequest = {
3084
3130
  request: SDKControlRequestInner;
3085
3131
  };
3086
3132
 
3087
- declare type SDKControlRequestInner = SDKControlInterruptRequest | SDKControlPermissionRequest | SDKControlInitializeRequest | SDKControlSetPermissionModeRequest | SDKControlSetModelRequest | SDKControlSetMaxThinkingTokensRequest | SDKControlRenameSessionRequest | SDKControlSetColorRequest | SDKControlMcpStatusRequest | SDKControlGetContextUsageRequest | SDKControlGetSessionCostRequest | SDKControlGetBinaryVersionRequest | SDKControlMcpCallRequest | SDKControlFileSuggestionsRequest | SDKHookCallbackRequest | SDKControlMcpMessageRequest | SDKControlRewindFilesRequest | SDKControlCancelAsyncMessageRequest | SDKControlReadFileRequest | SDKControlSeedReadStateRequest | SDKControlMcpSetServersRequest | SDKControlReloadPluginsRequest | SDKControlMcpReconnectRequest | SDKControlMcpToggleRequest | SDKControlChannelEnableRequest | SDKControlEndSessionRequest | SDKControlMcpAuthenticateRequest | SDKControlMcpClearAuthRequest | SDKControlMcpOAuthCallbackUrlRequest | SDKControlClaudeAuthenticateRequest | SDKControlClaudeOAuthCallbackRequest | SDKControlClaudeOAuthWaitForCompletionRequest | SDKControlRemoteControlRequest | SDKControlGenerateSessionTitleRequest | SDKControlSideQuestionRequest | SDKControlUltrareviewLaunchRequest | SDKControlStageFileRequest | SDKControlMessageRatedRequest | SDKControlOAuthTokenRefreshRequest | SDKControlHostAuthTokenRefreshRequest | SDKControlStopTaskRequest | SDKControlBackgroundTasksRequest | SDKControlApplyFlagSettingsRequest | SDKControlGetSettingsRequest | SDKControlElicitationRequest | SDKControlRequestUserDialogRequest | SDKControlSubmitFeedbackRequest;
3133
+ declare type SDKControlRequestInner = SDKControlInterruptRequest | SDKControlPermissionRequest | SDKControlInitializeRequest | SDKControlSetPermissionModeRequest | SDKControlSetModelRequest | SDKControlSetMaxThinkingTokensRequest | SDKControlRenameSessionRequest | SDKControlSetColorRequest | SDKControlMcpStatusRequest | SDKControlGetContextUsageRequest | SDKControlGetSessionCostRequest | SDKControlGetBinaryVersionRequest | SDKControlMcpCallRequest | SDKControlFileSuggestionsRequest | SDKHookCallbackRequest | SDKControlMcpMessageRequest | SDKControlRewindFilesRequest | SDKControlCancelAsyncMessageRequest | SDKControlReadFileRequest | SDKControlSeedReadStateRequest | SDKControlMcpSetServersRequest | SDKControlReloadPluginsRequest | SDKControlReloadSkillsRequest | SDKControlMcpReconnectRequest | SDKControlMcpToggleRequest | SDKControlChannelEnableRequest | SDKControlEndSessionRequest | SDKControlMcpAuthenticateRequest | SDKControlMcpClearAuthRequest | SDKControlMcpOAuthCallbackUrlRequest | SDKControlClaudeAuthenticateRequest | SDKControlClaudeOAuthCallbackRequest | SDKControlClaudeOAuthWaitForCompletionRequest | SDKControlRemoteControlRequest | SDKControlGenerateSessionTitleRequest | SDKControlSideQuestionRequest | SDKControlUltrareviewLaunchRequest | SDKControlStageFileRequest | SDKControlMessageRatedRequest | SDKControlOAuthTokenRefreshRequest | SDKControlHostAuthTokenRefreshRequest | SDKControlStopTaskRequest | SDKControlBackgroundTasksRequest | SDKControlApplyFlagSettingsRequest | SDKControlGetSettingsRequest | SDKControlElicitationRequest | SDKControlRequestUserDialogRequest | SDKControlSubmitFeedbackRequest;
3088
3134
 
3089
3135
  /**
3090
3136
  * 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.
@@ -3092,7 +3138,7 @@ declare type SDKControlRequestInner = SDKControlInterruptRequest | SDKControlPer
3092
3138
  declare type SDKControlRequestUserDialogRequest = {
3093
3139
  subtype: 'request_user_dialog';
3094
3140
  /**
3095
- * Identifier for the dialog the host should render. Open string union — known kinds include "it2_setup", "computer_use_approval", and "refusal_fallback_prompt"; new kinds may be added without bumping the protocol.
3141
+ * Identifier for the dialog the host should render. Open string union — new kinds may be added without bumping the protocol; hosts must answer unrecognized kinds with {behavior: "cancelled"}.
3096
3142
  */
3097
3143
  dialog_kind: string;
3098
3144
  /**
@@ -3506,6 +3552,9 @@ export declare type SDKResultSuccess = {
3506
3552
  duration_ms: number;
3507
3553
  duration_api_ms: number;
3508
3554
  ttft_ms?: number;
3555
+ time_to_request_ms?: number;
3556
+ time_to_request_from_spawn_ms?: number;
3557
+ warm_spare_claimed?: boolean;
3509
3558
  is_error: boolean;
3510
3559
  api_error_status?: number | null;
3511
3560
  num_turns: number;
@@ -5176,9 +5225,10 @@ export declare interface Settings {
5176
5225
  */
5177
5226
  pluginSuggestionMarketplaces?: string[];
5178
5227
  /**
5179
- * Force a specific login method: "claudeai" for Claude Pro/Max, "console" for Console billing
5228
+ * Force a specific login method: "claudeai" for Claude Pro/Max, "console" for Console billing, "gateway" for the Cloud gateway OIDC device flow
5180
5229
  */
5181
- forceLoginMethod?: 'claudeai' | 'console';
5230
+ forceLoginMethod?: 'claudeai' | 'console' | 'gateway';
5231
+
5182
5232
  /**
5183
5233
  * Controls whether the SDK parent tier (Options.managedSettings / --managed-settings) layers under this admin tier. "first-wins" (default): parent is dropped — admin tiers are the only policy source. "merge": parent's restrictive-only-filtered settings union under the admin winner. Has no effect when no admin tier exists (parent applies as the sole policy tier, still filtered restrictive-only).
5184
5234
  */
@@ -5416,6 +5466,14 @@ export declare interface Settings {
5416
5466
  * Minimum version to stay on - prevents downgrades when switching to stable channel
5417
5467
  */
5418
5468
  minimumVersion?: string;
5469
+ /**
5470
+ * Minimum Claude Code version required to start. If the running version is older, Claude Code exits at startup with instructions to update. Only enforced from managed (policy) settings.
5471
+ */
5472
+ requiredMinimumVersion?: string;
5473
+ /**
5474
+ * Maximum Claude Code version allowed to start. If the running version is newer, Claude Code exits at startup with instructions to install an approved version. Only enforced from managed (policy) settings.
5475
+ */
5476
+ requiredMaximumVersion?: string;
5419
5477
  /**
5420
5478
  * Custom directory for plan files, relative to project root. If not set, defaults to ~/.claude/plans/
5421
5479
  */
@@ -5763,6 +5821,14 @@ export declare type StopHookInput = BaseHookInput & {
5763
5821
 
5764
5822
  };
5765
5823
 
5824
+ /**
5825
+ * Hook-specific output for the Stop event. additionalContext is non-error feedback delivered to the model; the conversation continues so the model can act on it.
5826
+ */
5827
+ export declare type StopHookSpecificOutput = {
5828
+ hookEventName: 'Stop';
5829
+ additionalContext?: string;
5830
+ };
5831
+
5766
5832
  export declare type SubagentStartHookInput = BaseHookInput & {
5767
5833
  hook_event_name: 'SubagentStart';
5768
5834
  agent_id: string;
@@ -5796,6 +5862,14 @@ export declare type SubagentStopHookInput = BaseHookInput & {
5796
5862
 
5797
5863
  };
5798
5864
 
5865
+ /**
5866
+ * Hook-specific output for the SubagentStop event. additionalContext is non-error feedback delivered to the subagent; the subagent continues so it can act on it.
5867
+ */
5868
+ export declare type SubagentStopHookSpecificOutput = {
5869
+ hookEventName: 'SubagentStop';
5870
+ additionalContext?: string;
5871
+ };
5872
+
5799
5873
  export declare type SyncHookJSONOutput = {
5800
5874
  continue?: boolean;
5801
5875
  suppressOutput?: boolean;
@@ -5809,7 +5883,7 @@ export declare type SyncHookJSONOutput = {
5809
5883
  reason?: string;
5810
5884
 
5811
5885
 
5812
- hookSpecificOutput?: PreToolUseHookSpecificOutput | UserPromptSubmitHookSpecificOutput | UserPromptExpansionHookSpecificOutput | SessionStartHookSpecificOutput | SetupHookSpecificOutput | SubagentStartHookSpecificOutput | PostToolUseHookSpecificOutput | PostToolUseFailureHookSpecificOutput | PostToolBatchHookSpecificOutput | PermissionDeniedHookSpecificOutput | NotificationHookSpecificOutput | PermissionRequestHookSpecificOutput | ElicitationHookSpecificOutput | ElicitationResultHookSpecificOutput | CwdChangedHookSpecificOutput | FileChangedHookSpecificOutput | WorktreeCreateHookSpecificOutput | MessageDisplayHookSpecificOutput;
5886
+ hookSpecificOutput?: PreToolUseHookSpecificOutput | UserPromptSubmitHookSpecificOutput | UserPromptExpansionHookSpecificOutput | SessionStartHookSpecificOutput | SetupHookSpecificOutput | SubagentStartHookSpecificOutput | PostToolUseHookSpecificOutput | PostToolUseFailureHookSpecificOutput | PostToolBatchHookSpecificOutput | StopHookSpecificOutput | SubagentStopHookSpecificOutput | PermissionDeniedHookSpecificOutput | NotificationHookSpecificOutput | PermissionRequestHookSpecificOutput | ElicitationHookSpecificOutput | ElicitationResultHookSpecificOutput | CwdChangedHookSpecificOutput | FileChangedHookSpecificOutput | WorktreeCreateHookSpecificOutput | MessageDisplayHookSpecificOutput;
5813
5887
  };
5814
5888
 
5815
5889
  /**
@@ -5951,6 +6025,39 @@ export declare interface Transport {
5951
6025
  [Symbol.dispose]?(): void;
5952
6026
  }
5953
6027
 
6028
+ /**
6029
+ * A `request_user_dialog` control request from the CLI, asking the SDK
6030
+ * consumer to render a blocking dialog and return the user's choice.
6031
+ * Each `dialogKind` defines its own payload and result shape; the protocol
6032
+ * transports both opaquely.
6033
+ */
6034
+ export declare type UserDialogRequest = {
6035
+ /**
6036
+ * Identifier for the dialog the host should render. Open string union —
6037
+ * new kinds may be added without a protocol bump, so hosts must answer
6038
+ * unrecognized kinds with `{behavior: 'cancelled'}`.
6039
+ */
6040
+ dialogKind: string;
6041
+ /** Dialog-specific data for the host renderer; shape is defined per dialogKind. */
6042
+ payload: Record<string, unknown>;
6043
+ /**
6044
+ * Present when the dialog is tied to a specific tool invocation. Same
6045
+ * value as the `toolUseID` passed to `canUseTool`.
6046
+ */
6047
+ toolUseID?: string;
6048
+ };
6049
+
6050
+ /**
6051
+ * The host's answer to a {@link UserDialogRequest}. On `cancelled`, the CLI
6052
+ * applies the dialog's default behavior.
6053
+ */
6054
+ export declare type UserDialogResult = {
6055
+ behavior: 'completed';
6056
+ result: unknown;
6057
+ } | {
6058
+ behavior: 'cancelled';
6059
+ };
6060
+
5954
6061
  export declare type UserPromptExpansionHookInput = BaseHookInput & {
5955
6062
  hook_event_name: 'UserPromptExpansion';
5956
6063
  expansion_type: 'slash_command' | 'mcp_prompt';