@anthropic-ai/claude-agent-sdk 0.3.162 → 0.3.165

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.162",
3
- "commit": "9c0de1e1ecc1b4636e146d2df5dc663afd3c810c",
4
- "buildDate": "2026-06-03T07:10:21Z",
2
+ "version": "2.1.165",
3
+ "commit": "7864e1998704fa976b7d630f9ff25815c3f8bf6e",
4
+ "buildDate": "2026-06-05T04:39:48Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "2d407dd2a63243ac900f64331589b9fcd29a2159a73289070af685f4085a17d2",
9
- "size": 218602272
8
+ "checksum": "19ed536dd0e94dade3f8c49c3c6ddeff22b06f5d5c86b30f1c88eeb9a04f45e5",
9
+ "size": 219526944
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "53f2749bf24e5a80b23b017d0877f61c9894a3c06222141515b37a94c6051d41",
14
- "size": 221116432
13
+ "checksum": "3cb50cb3c9a065bd2d88250ceb3f2647ce16f89f384dede1f7de2676fa526af0",
14
+ "size": 222041104
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "eca2a603dfebc3426a8469cbe797f9df95245738bc1c20ec842fc8f80af4010d",
19
- "size": 243906184
18
+ "checksum": "ff2e060827f9f0214a77133206c4539a6477ec1f4fddb492b02255a0679642fd",
19
+ "size": 244823688
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "947a49b0de8688f6a74a6e753c24771ff3ddd17b2a6dae85f36304ec514e61d1",
24
- "size": 244000464
23
+ "checksum": "d34b0caadd25eb82d8e08ca103b648291b4defef53193f572847a736e2aaf4d8",
24
+ "size": 244917968
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "fb86f490f854dd36846771c38b80de7cbcc6804bca838a581eed2792cc58c445",
29
- "size": 236760920
28
+ "checksum": "80767e93b1347a3b2d4d6d7cf1a3d5514b3a909349633af13be427a4847a6937",
29
+ "size": 237678424
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "be80745855476f1f1b283e739b721a38952accaad4609d69736cde38095fdb78",
34
- "size": 238394416
33
+ "checksum": "fbebd785f8ab23ebba08cbef6acd4d73cf1af64ec42b93e6efb793ba964e1aef",
34
+ "size": 239311920
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "ac4e1319f6ac0c9e04336d0ae5845acc5dd317bf9e6f26ca47e63df06d91f8bc",
39
- "size": 239551648
38
+ "checksum": "be566d336bafb26fcfdcc342c6d07a31e697c9428f7aaa3d79f2b24fc3c164c4",
39
+ "size": 240445600
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "3e8c5c55b8c6d1348842e78d17d2eb41d5b30a8aaaae05a6f906360911a6936b",
44
- "size": 235516576
43
+ "checksum": "3b78a4cb3b5e4dba26d00a9d2a3b1286ded68d8dc04249ff0187cb5756731575",
44
+ "size": 236410528
45
45
  }
46
46
  }
47
47
  }
package/manifest.zst.json CHANGED
@@ -1,55 +1,55 @@
1
1
  {
2
- "version": "2.1.162",
3
- "commit": "9c0de1e1ecc1b4636e146d2df5dc663afd3c810c",
4
- "buildDate": "2026-06-03T07:12:09Z",
2
+ "version": "2.1.165",
3
+ "commit": "7864e1998704fa976b7d630f9ff25815c3f8bf6e",
4
+ "buildDate": "2026-06-05T04:41:30Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "8e053bf397765cd1dd50fd8e68ef40f9a42a62a589008eab8b42590e00f8df80",
9
- "size": 44978781,
8
+ "checksum": "1be17448d25a54d02ef8e9ab8faab79afbae04b81ecacf38064e19ce8d3f6d38",
9
+ "size": 45151391,
10
10
  "bundle": {
11
- "checksum": "695847eb827c9257c2d403590424e78f83330822e1ebc3b16b96968e5a1100fa",
12
- "size": 44976743
11
+ "checksum": "e1c72dc159a88da14841f989922ece6bfc07d1b6483fb7c9ad55e9fc687742f5",
12
+ "size": 45150458
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "b48f6331e003f761d6b658c12e13a1435714452e6f3c3f5c630cd1cbbe5adaf3",
18
- "size": 46876164,
17
+ "checksum": "da60c3d542083ebecae5723dde558db6bcaf1bec1a064d1db9cd80444d549daa",
18
+ "size": 47050958,
19
19
  "bundle": {
20
- "checksum": "17c0b3ee43e0c4dd28759e073d4f1b592cdd24a5918543ce255544e3d5970194",
21
- "size": 46885327
20
+ "checksum": "802bd171cbbb902ed9c8b30c9e92373324cc048f9d943a48e74598662f53a06c",
21
+ "size": 47049825
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "601fe3241200ecdae03c8a6de235d34a2bb88984ac75794d621bee7497304c1d",
27
- "size": 52651979
26
+ "checksum": "0efe66c77ee39887bb830cd25d195fb656856eb437797bbc4a23856543a027d1",
27
+ "size": 52824667
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "8af5e2f052793a18cc3448e308f018ad08183ddc580d2478a131ad0e323267d0",
32
- "size": 53260193
31
+ "checksum": "e030e477d228035f8be360580029bff2089b89e135654e161ee98e73d71bd022",
32
+ "size": 53454125
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "eceb861978c15812379a4a595f0c0d77b25b2e629612e80253be872becc4db16",
37
- "size": 51283192
36
+ "checksum": "9abf0b192cf8a2eaea5942103593bd1ef8bbfe25fdbcba4e34aed770b2fd7149",
37
+ "size": 51474674
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "8ca6fa22c2245ac45b596e07215e391165622a671d7bfc995cb65dd208df0226",
42
- "size": 51981254
41
+ "checksum": "6555406c6b6e020e6c072d3dfc28befecd934a52dcc636c5ce5cff1c8ddcd550",
42
+ "size": 52161069
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "116068b7058d90423025411faa206d0a6c89155e1f9b07288052f882d3da00a9",
47
- "size": 53982456
46
+ "checksum": "1d66ff551ea439708f863aed9acc41ddda05a4b1a768c1fc5544a40b1d6d20da",
47
+ "size": 54169359
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "7c1c8b3d5a330a9e12b2f3ca4e2c3e0f308e7ccf0d5401dce1b1c09cc4ac941c",
52
- "size": 52271058
51
+ "checksum": "9997a7fb173e01adaf4c0a6ccad7d4bcdc77947635583004329bc542d99beed0",
52
+ "size": 52445094
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.162",
3
+ "version": "0.3.165",
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.162",
65
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.162",
66
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.162",
67
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.162",
68
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.162",
69
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.162",
70
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.162",
71
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.162"
64
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.165",
65
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.165",
66
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.165",
67
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.165",
68
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.165",
69
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.165",
70
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.165",
71
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.165"
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.162"
89
+ "claudeCodeVersion": "2.1.165"
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,
@@ -2315,6 +2317,12 @@ export declare interface Query extends AsyncGenerator<SDKMessage, void> {
2315
2317
  * @returns The refreshed session components after plugin reload
2316
2318
  */
2317
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>;
2318
2326
  /**
2319
2327
  * Get information about the authenticated account.
2320
2328
  *
@@ -3094,6 +3102,20 @@ export declare type SDKControlReloadPluginsResponse = {
3094
3102
  error_count: number;
3095
3103
  };
3096
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
+
3097
3119
  /**
3098
3120
  * Sets the user-facing title for the current session.
3099
3121
  */
@@ -3108,7 +3130,7 @@ export declare type SDKControlRequest = {
3108
3130
  request: SDKControlRequestInner;
3109
3131
  };
3110
3132
 
3111
- 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;
3112
3134
 
3113
3135
  /**
3114
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.
@@ -3532,6 +3554,7 @@ export declare type SDKResultSuccess = {
3532
3554
  ttft_ms?: number;
3533
3555
  time_to_request_ms?: number;
3534
3556
  time_to_request_from_spawn_ms?: number;
3557
+ warm_spare_claimed?: boolean;
3535
3558
  is_error: boolean;
3536
3559
  api_error_status?: number | null;
3537
3560
  num_turns: number;
@@ -5443,6 +5466,14 @@ export declare interface Settings {
5443
5466
  * Minimum version to stay on - prevents downgrades when switching to stable channel
5444
5467
  */
5445
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;
5446
5477
  /**
5447
5478
  * Custom directory for plan files, relative to project root. If not set, defaults to ~/.claude/plans/
5448
5479
  */
@@ -5790,6 +5821,14 @@ export declare type StopHookInput = BaseHookInput & {
5790
5821
 
5791
5822
  };
5792
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
+
5793
5832
  export declare type SubagentStartHookInput = BaseHookInput & {
5794
5833
  hook_event_name: 'SubagentStart';
5795
5834
  agent_id: string;
@@ -5823,6 +5862,14 @@ export declare type SubagentStopHookInput = BaseHookInput & {
5823
5862
 
5824
5863
  };
5825
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
+
5826
5873
  export declare type SyncHookJSONOutput = {
5827
5874
  continue?: boolean;
5828
5875
  suppressOutput?: boolean;
@@ -5836,7 +5883,7 @@ export declare type SyncHookJSONOutput = {
5836
5883
  reason?: string;
5837
5884
 
5838
5885
 
5839
- 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;
5840
5887
  };
5841
5888
 
5842
5889
  /**