@anthropic-ai/claude-agent-sdk 0.3.172 → 0.3.174

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.172",
3
- "commit": "1b719ca2781a2dccc4a769b66bc35b4a60509ad7",
4
- "buildDate": "2026-06-10T16:38:17Z",
2
+ "version": "2.1.174",
3
+ "commit": "0ba24f002c46720e08542a8049b6212f45e18e4e",
4
+ "buildDate": "2026-06-11T17:23:50Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "3c31f345575bf6f261c7e19981f6491bb93eeb0ffb499e95033610a7184831ce",
9
- "size": 223390752
8
+ "checksum": "20c5380b4423be9963c510f5464cc1f443235a9b4423179f9c01f28021b81bad",
9
+ "size": 224051232
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "c507f98750c5230e4247f7eadff38e4db04c006904f85379e31c5d5e82e1c384",
14
- "size": 225892528
13
+ "checksum": "af2940ac236bf1bb64d174defe392d5a5cc835b1d18f351f71a68cb049755dfb",
14
+ "size": 226553008
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "4ef0d735bd4180c3bffc381f6dc38df979229a8637d294be751c6043d93d12e1",
19
- "size": 248624776
18
+ "checksum": "397896495a6cb90376e00797f1520af959b4ac1b9dddf7af9127b8cec1010071",
19
+ "size": 249280136
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "c0915dd1691d569aeebc7978b12e029718323685ec0dd4b5c6a453108d6be1f7",
24
- "size": 248743632
23
+ "checksum": "08a7c90925cc622003a94b813ae0fc544c08776f6d890532f6212e15962899a8",
24
+ "size": 249398992
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "6b10aad4270348175206bd2475f82ef3c56007dfb55d7b90f1950dfa8fb9eb40",
29
- "size": 241479512
28
+ "checksum": "cc79bd7e438060d1d9da958da93338eebb217739af1bacd95a90aa49b136049e",
29
+ "size": 242134872
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "58f2c60711f95e51d86d1af5b915cbdd0458710f1830b7c26d59b78f1ad1f861",
34
- "size": 243153968
33
+ "checksum": "3b55c7d951e47b6b2ae205d1d69a541707782ce2430253eaca8a7d2d94795ada",
34
+ "size": 243809328
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "07132ca4bbef551c92c1ae6ca0220a5e523092c9fa9cf402f65f428450687455",
39
- "size": 244181152
38
+ "checksum": "6e18f7a62a5046606d84c875e2dcc01aa90950e002acf8d5994e2f214c1ab861",
39
+ "size": 244818080
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "1e3e165c03de2af83c1e3516b73890b56e9785a2382338adcc28f41918bf4d2f",
44
- "size": 240146080
43
+ "checksum": "553728c4d7f361e096c5e196816d95253775115c66ab7dbc57daad10a9ba8ec1",
44
+ "size": 240783008
45
45
  }
46
46
  }
47
47
  }
package/manifest.zst.json CHANGED
@@ -1,55 +1,55 @@
1
1
  {
2
- "version": "2.1.172",
3
- "commit": "1b719ca2781a2dccc4a769b66bc35b4a60509ad7",
4
- "buildDate": "2026-06-10T16:40:02Z",
2
+ "version": "2.1.174",
3
+ "commit": "0ba24f002c46720e08542a8049b6212f45e18e4e",
4
+ "buildDate": "2026-06-11T17:25:37Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "759bbc3536d1a718cac24dfdd08a368bc63b64f64d199e64b354d101a4542050",
9
- "size": 45892652,
8
+ "checksum": "cf2a5fa7f2111c80d4306dbe55a81b6296c967d56ebe987fe9fc28abe1457099",
9
+ "size": 45988316,
10
10
  "bundle": {
11
- "checksum": "8ed897263049f1dc5d7eff8b70bd2a08cdd459a07e11702a9a51fa68e4b44130",
12
- "size": 45888336
11
+ "checksum": "7aa7f4d9d147934ea755dfe9591e58db604d4699c8b2d779d2a8af10badb597c",
12
+ "size": 45993325
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "f8207869e2d8969e4df23d59a0ba619c9b782ba647622e5567ddd9daf3c68996",
18
- "size": 47796942,
17
+ "checksum": "5dc84db098b5858be28be09ad9146f8917eec6331c2a18bb90ebdf4c7869c6c0",
18
+ "size": 47925373,
19
19
  "bundle": {
20
- "checksum": "f63edc2de24311b5baad57225f354a62622b611e3ccb009c9a4928ab1973be4b",
21
- "size": 47794444
20
+ "checksum": "39542a5e332a7635d6b2e4388196cb492db87164516fa75b4c6630106178c4e4",
21
+ "size": 47928336
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "bfb5b7972cd5b6e8409e3f1dd259f2bb56ccbd3faa78420c030d9c1bd2c589b2",
27
- "size": 53537540
26
+ "checksum": "3d8fb5ab8ec4dc54b6f73a10c22ceb3a28837ac8ea769957049cb90f0f7f379f",
27
+ "size": 53661793
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "cccc4486cb1c536918c1f54ff8509524633380f741253b00e29ce0db67fc1003",
32
- "size": 54221669
31
+ "checksum": "3126d26e876cf06eedaf49fcfc1f7563ef72dfb574f9225fde69eaf654102ae3",
32
+ "size": 54260654
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "e3e80acadc3d75733ebfdd196e3fa8d6d189ec938a28b6cb361a99a1b49beec5",
37
- "size": 52160799
36
+ "checksum": "ee57f7fddff13fa5e7ed6535e4a0c8df2c6da96108472aa513bf0a6b363b27e2",
37
+ "size": 52295030
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "f88dba6370ab59cf918806dfae856e52c53595fca27072b78ee2a5757219dae3",
42
- "size": 52864871
41
+ "checksum": "1b01a47b687b75e372017ecf178eba73ee13669abcc3a38ff27853fe40105bd4",
42
+ "size": 52975981
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "94297aa5ba27fcc918e5401b6894b9690a6671c35224f8eafb6915de4271d7ec",
47
- "size": 54883060
46
+ "checksum": "e49a833441784526128a25a9d92883369f18f51a8b9dacb9bae37b43b022852a",
47
+ "size": 55009286
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "e10be49737ca3feab22bd88ecfb017f32eb06978e8237daebbce8f84f79a2eb3",
52
- "size": 53155326
51
+ "checksum": "48ac0f2bbd89cb15f55509237fba2f0499f14767dd941c8b648e2abbbbe7426f",
52
+ "size": 53272471
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.172",
3
+ "version": "0.3.174",
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.172",
65
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.172",
66
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.172",
67
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.172",
68
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.172",
69
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.172",
70
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.172",
71
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.172"
64
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.174",
65
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.174",
66
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.174",
67
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.174",
68
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.174",
69
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.174",
70
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.174",
71
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.174"
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.172"
89
+ "claudeCodeVersion": "2.1.174"
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
  */
@@ -5938,6 +5945,10 @@ export declare interface Settings {
5938
5945
  * Auto-scroll the conversation view to bottom (fullscreen mode only)
5939
5946
  */
5940
5947
  autoScrollEnabled?: boolean;
5948
+ /**
5949
+ * Ramp mouse-wheel scroll speed during fast scrolls (fullscreen mode only)
5950
+ */
5951
+ wheelScrollAccelerationEnabled?: boolean;
5941
5952
  /**
5942
5953
  * Snapshot files before edits so /rewind can restore them
5943
5954
  */