@anthropic-ai/claude-agent-sdk 0.3.173 → 0.3.175

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.173",
3
- "commit": "70451452ee7d691b5164469a507ddac2ff2c7406",
4
- "buildDate": "2026-06-11T01:30:29Z",
2
+ "version": "2.1.175",
3
+ "commit": "0b9163019454512fd2b2ed8e6bef5470f9259f35",
4
+ "buildDate": "2026-06-12T01:33:39Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "235c1bacdcc7f9d8d92368c95a0c66c26fcac98f878f21b10c73af340bc331ab",
9
- "size": 223390752
8
+ "checksum": "6b75bf132c866ed409bf913c318ca32011e73ffb12d3cd67ecc37bc4ee9ec65d",
9
+ "size": 224216352
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "5a35c1de2b13245e9b3bd72c4df4f068adce14f6d417a3f68bf0bb4372271687",
14
- "size": 225909040
13
+ "checksum": "3770f2cb42d3f776e62a59aa16230843dc7b8422b36be9b1532e02a6e92e7fa8",
14
+ "size": 226734640
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "cc593dfc263f707ed222e334ff5c12a9addc24abc206768962f9d063b2fd7ac9",
19
- "size": 248624776
18
+ "checksum": "360f1f6f43ec26d9bb6e20e487bf44b753d9b8407e89e74bfeeb79707399f435",
19
+ "size": 249476744
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "cf7ea194e1748932fa30f180eaa9f56f9a7039dce370302988c2926629b2a219",
24
- "size": 248747728
23
+ "checksum": "4fc72fa6090c9a03f1850e1b1ccb3d6806bf802b67e3cb9dc5f2ced4b7ed5ca1",
24
+ "size": 249566928
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "19a76ac84b8d102fc65c54afed7c4219669b8a83dec7de6c9eb33ea5c805583e",
29
- "size": 241479512
28
+ "checksum": "27234d99851b2e343184466924d8f5c9318d1cfc4156fc4198c99e26c8a8ab86",
29
+ "size": 242331480
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "f21f725e04df01a81cd4f0b6980ff3e6b179467f0b523799479dcb1ae92efa8a",
34
- "size": 243158064
33
+ "checksum": "f40f977d2555f349e4d94f6efdc7deece3596c2cffa9d1a6a66b14ee30cfca54",
34
+ "size": 243977264
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "661ffbdb2d7396956713a158b1e5506fa34ee56b4c468c355b78a4512abb90de",
39
- "size": 244185248
38
+ "checksum": "c1b5b0ae1b607c1f8623d222c9eb6005a35dd6873aa834910a6fb3e00450e096",
39
+ "size": 244979872
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "ba88b3c2b1309318641ac6f7fd527139f03b87be4961d98a227db6ed84dedb17",
44
- "size": 240149664
43
+ "checksum": "f01eea49c920e990a7c3d2c1071abbc7e79ab54a099380982c11a6f462ca7c4a",
44
+ "size": 240943776
45
45
  }
46
46
  }
47
47
  }
package/manifest.zst.json CHANGED
@@ -1,55 +1,55 @@
1
1
  {
2
- "version": "2.1.173",
3
- "commit": "70451452ee7d691b5164469a507ddac2ff2c7406",
4
- "buildDate": "2026-06-11T01:32:13Z",
2
+ "version": "2.1.175",
3
+ "commit": "0b9163019454512fd2b2ed8e6bef5470f9259f35",
4
+ "buildDate": "2026-06-12T01:35:25Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "ef364f929a03be751ee13d2269a59debb68fb99cd8813c7461f154eebae956a3",
9
- "size": 45890845,
8
+ "checksum": "fab0b985ac7241930d94b44e5fd3cd0d6033d333ca9e04bb9667a5a0b88f67a9",
9
+ "size": 46040347,
10
10
  "bundle": {
11
- "checksum": "24848ae6ecc523e5c2618321de5e5e225495979a36aa4e0d6b8fdb1db69eafa2",
12
- "size": 45898206
11
+ "checksum": "9b4f036435fc813e1fb0c212849e94078bf5be6f96583fdf6bb586f0e035f18e",
12
+ "size": 46046962
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "d3b6d8126f834caa6d4b80bf684895f780998b0832159f2300389741ab8c6c6a",
18
- "size": 47807739,
17
+ "checksum": "5259cac269cec81a9259bd654796c0b40798abd7d4790d1a005f196263214ea3",
18
+ "size": 47958999,
19
19
  "bundle": {
20
- "checksum": "56ff31ac6b43cadecfeb7cb6613ba7e3a94cfb5d438cecd42497156115590a9e",
21
- "size": 47805930
20
+ "checksum": "c856c475caa3244c4f38656efb9da6e8814b13eb6aa11d5d903445de09f847df",
21
+ "size": 47955680
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "f42ec4e61cfc094a0f581e0a7f81796b106ce1b54a4cb52d131e6444a1764611",
27
- "size": 53541641
26
+ "checksum": "fe7afc6b729eee4234f6d9101e228cdb693cd43d7288a05848c75c5fb869af97",
27
+ "size": 53684272
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "13d2511dd7236f792f46764ccb1324dca1263dd2a18a4810d162f38fe21997ef",
32
- "size": 54143366
31
+ "checksum": "2a518fa374b289f694eca579bfdd4bfc538b3063400aad2c1aa502128f9f4d6b",
32
+ "size": 54304474
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "a8f43fc79b657e090c1a069f4ee416df6c273a9299ddb1b6798ffe9b55d5c1a0",
37
- "size": 52172254
36
+ "checksum": "053725973f3748d38e201ba46425332bb78ba0d743ff10f449423cdcac662438",
37
+ "size": 52311556
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "2724896e00a9b8cf13bd1e8103bd1fd043ce207d77c09bbe78dfc6abf9db0653",
42
- "size": 52869702
41
+ "checksum": "2428018be84d82a3586d25aaf3deeb0cb6ed6ff76bb1ec352f47421133c77341",
42
+ "size": 53011819
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "4a88670830001675d68c83dbec1fc1bbf8c7ac0afab72d5efca7c200a106414d",
47
- "size": 54882540
46
+ "checksum": "af7b932a0e1fd8d5de4e589377d16ab7ff4a25f438daa22f35f87c47c80d3a8c",
47
+ "size": 55041661
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "4bc4224a5a0ef11c0d540dea5e6d017ecc7684de3e44f17abe7a5a333e4a35a1",
52
- "size": 53186785
51
+ "checksum": "8d9202ece8c744092c9d96b77c2215b3b2d76cbdc042c35f3e1997c295e059fd",
52
+ "size": 53311293
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.173",
3
+ "version": "0.3.175",
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.173",
65
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.173",
66
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.173",
67
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.173",
68
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.173",
69
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.173",
70
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.173",
71
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.173"
64
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.175",
65
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.175",
66
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.175",
67
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.175",
68
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.175",
69
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.175",
70
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.175",
71
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.175"
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.173"
89
+ "claudeCodeVersion": "2.1.175"
90
90
  }
package/sdk-tools.d.ts CHANGED
@@ -27,6 +27,7 @@ export type ToolInputSchemas =
27
27
  | WebFetchInput
28
28
  | WebSearchInput
29
29
  | AskUserQuestionInput
30
+ | ProjectsInput
30
31
  | EnterPlanModeInput
31
32
  | TaskCreateInput
32
33
  | TaskGetInput
@@ -81,7 +82,8 @@ export type ToolOutputSchemas =
81
82
  | CronCreateOutput
82
83
  | CronDeleteOutput
83
84
  | CronListOutput
84
- | PushNotificationOutput;
85
+ | PushNotificationOutput
86
+ | ProjectsOutput;
85
87
  export type AgentOutput =
86
88
  | {
87
89
  agentId: string;
@@ -90,6 +92,7 @@ export type AgentOutput =
90
92
  type: "text";
91
93
  text: string;
92
94
  }[];
95
+ resolvedModel?: string;
93
96
  totalToolUseCount: number;
94
97
  totalDurationMs: number;
95
98
  totalTokens: number;
@@ -130,6 +133,10 @@ export type AgentOutput =
130
133
  * The description of the task
131
134
  */
132
135
  description: string;
136
+ /**
137
+ * Model the spawn resolved (may differ from the requested one)
138
+ */
139
+ resolvedModel?: string;
133
140
  /**
134
141
  * The prompt for the agent
135
142
  */
@@ -305,6 +312,64 @@ export type McpOutput =
305
312
  | {
306
313
  [k: string]: unknown;
307
314
  };
315
+ export type ProjectsOutput =
316
+ | {
317
+ method: "project_info";
318
+ notice?: string;
319
+ name: string;
320
+ description: string;
321
+ instructions: string;
322
+ docs: {
323
+ path: string;
324
+ created_at: string | null;
325
+ }[];
326
+ knowledge: {
327
+ knowledge_size: number;
328
+ max_knowledge_size: number;
329
+ search_threshold: number | null;
330
+ rag_active: boolean;
331
+ remaining_budget: number | null;
332
+ };
333
+ }
334
+ | {
335
+ method: "project_read";
336
+ notice?: string;
337
+ path: string;
338
+ content?: string;
339
+ local_file?: string;
340
+ created_at: string | null;
341
+ }
342
+ | {
343
+ method: "project_search";
344
+ notice?: string;
345
+ rag: boolean;
346
+ hits?: {
347
+ name?: string;
348
+ doc_uuid?: string;
349
+ text?: string;
350
+ }[];
351
+ docs?: string[];
352
+ }
353
+ | {
354
+ method: "project_write";
355
+ notice?: string;
356
+ path: string;
357
+ doc_uuid: string;
358
+ replaced: boolean;
359
+ knowledge: {
360
+ knowledge_size: number;
361
+ max_knowledge_size: number;
362
+ search_threshold: number | null;
363
+ rag_active: boolean;
364
+ remaining_budget: number | null;
365
+ };
366
+ }
367
+ | {
368
+ method: "project_delete";
369
+ notice?: string;
370
+ path: string;
371
+ deleted: boolean;
372
+ };
308
373
 
309
374
  export interface AgentInput {
310
375
  /**
@@ -2186,6 +2251,33 @@ export interface AskUserQuestionInput {
2186
2251
  source?: string;
2187
2252
  };
2188
2253
  }
2254
+ export interface ProjectsInput {
2255
+ method: "project_info" | "project_read" | "project_search" | "project_write" | "project_delete";
2256
+ /**
2257
+ * project_read/project_write/project_delete: doc path. project_write: an existing path is replaced in place; a new bare filename (no "/") is namespaced to "claude/<name>".
2258
+ */
2259
+ path?: string;
2260
+ /**
2261
+ * project_write: inline doc text. Mutually exclusive with local_path. Use local_path for anything you have on disk.
2262
+ */
2263
+ content?: string;
2264
+ /**
2265
+ * project_write: a file inside the working directory to upload. The tool reads, encodes, and uploads directly — contents never enter your context. Mutually exclusive with content.
2266
+ */
2267
+ local_path?: string;
2268
+ /**
2269
+ * project_write: bypass the chat-injection budget guard. Set only when the write is genuinely worth degrading chat to retrieval mode for everyone in the project.
2270
+ */
2271
+ force?: boolean;
2272
+ /**
2273
+ * project_search: knowledge-base query
2274
+ */
2275
+ query?: string;
2276
+ /**
2277
+ * project_search: number of hits (default 5)
2278
+ */
2279
+ n?: number;
2280
+ }
2189
2281
  export interface EnterPlanModeInput {}
2190
2282
  export interface TaskCreateInput {
2191
2283
  /**
@@ -3059,6 +3151,7 @@ export interface ArtifactOutput {
3059
3151
  url: string;
3060
3152
  path: string;
3061
3153
  title?: string;
3154
+ version?: string;
3062
3155
  mcpDropped?: string;
3063
3156
  }
3064
3157
  export interface RemoteTriggerOutput {
package/sdk.d.ts CHANGED
@@ -1105,7 +1105,11 @@ export declare type McpServerStatusConfig = McpServerConfigForProcessTransport |
1105
1105
  */
1106
1106
  export declare type McpServerToolPolicy = {
1107
1107
  name: string;
1108
- permission_policy: 'always_allow' | 'always_ask' | 'always_deny';
1108
+ permission_policy?: 'always_allow' | 'always_ask' | 'always_deny';
1109
+ /**
1110
+ * Org admin's per-tool ceiling. Drives the auto-mode isOrgAskCeiling gate so an admin 'ask' cap forces a user prompt even in auto mode.
1111
+ */
1112
+ org_max_permission?: 'allow' | 'ask' | 'blocked';
1109
1113
  };
1110
1114
 
1111
1115
  /**
@@ -3663,6 +3667,7 @@ export declare type SDKMessageOrigin = {
3663
3667
  kind: 'peer';
3664
3668
  from: string;
3665
3669
  name?: string;
3670
+
3666
3671
  } | {
3667
3672
  kind: 'task-notification';
3668
3673
  } | {
@@ -4141,6 +4146,7 @@ export declare type SDKUserMessage = {
4141
4146
  priority?: 'now' | 'next' | 'later';
4142
4147
  origin?: SDKMessageOrigin;
4143
4148
 
4149
+
4144
4150
  /**
4145
4151
  * When false, the message is appended to the transcript without triggering an assistant turn. It will be merged into the next user message that does query.
4146
4152
  */
@@ -4182,6 +4188,7 @@ export declare type SDKUserMessageReplay = {
4182
4188
  priority?: 'now' | 'next' | 'later';
4183
4189
  origin?: SDKMessageOrigin;
4184
4190
 
4191
+
4185
4192
  /**
4186
4193
  * When false, the message is appended to the transcript without triggering an assistant turn. It will be merged into the next user message that does query.
4187
4194
  */
@@ -4461,7 +4468,7 @@ export declare interface Settings {
4461
4468
  /**
4462
4469
  * JSON Schema reference for Claude Code settings
4463
4470
  */
4464
- $schema?: 'https://json.schemastore.org/claude-code-settings.json';
4471
+ $schema?: string;
4465
4472
  /**
4466
4473
  * Path to a script that outputs authentication values
4467
4474
  */
@@ -4591,6 +4598,10 @@ export declare interface Settings {
4591
4598
  * 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.
4592
4599
  */
4593
4600
  availableModels?: string[];
4601
+ /**
4602
+ * When true and availableModels is a non-empty array, the Default model selection is also constrained: if the default model for the user tier is not in availableModels, Default resolves to the first allowed availableModels entry instead. Has no effect when availableModels is unset or an empty array. Typically set in managed settings by enterprise administrators.
4603
+ */
4604
+ enforceAvailableModels?: boolean;
4594
4605
  /**
4595
4606
  * 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.
4596
4607
  */
@@ -5938,6 +5949,10 @@ export declare interface Settings {
5938
5949
  * Auto-scroll the conversation view to bottom (fullscreen mode only)
5939
5950
  */
5940
5951
  autoScrollEnabled?: boolean;
5952
+ /**
5953
+ * Ramp mouse-wheel scroll speed during fast scrolls (fullscreen mode only)
5954
+ */
5955
+ wheelScrollAccelerationEnabled?: boolean;
5941
5956
  /**
5942
5957
  * Snapshot files before edits so /rewind can restore them
5943
5958
  */