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

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.174",
3
- "commit": "0ba24f002c46720e08542a8049b6212f45e18e4e",
4
- "buildDate": "2026-06-11T17:23:50Z",
2
+ "version": "2.1.176",
3
+ "commit": "028963fefd91a4684df967015acf3415c6d570ad",
4
+ "buildDate": "2026-06-12T18:58:23Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "20c5380b4423be9963c510f5464cc1f443235a9b4423179f9c01f28021b81bad",
9
- "size": 224051232
8
+ "checksum": "f3f1b0c098510bd5d472b15f5541bb261f5939aeb52e488760bc53fb54c1803d",
9
+ "size": 225108000
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "af2940ac236bf1bb64d174defe392d5a5cc835b1d18f351f71a68cb049755dfb",
14
- "size": 226553008
13
+ "checksum": "68cc0e17ab0b741c87eba77ae097d6da49d335952cdd9ca4c3dc75d9d5496222",
14
+ "size": 227626288
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "397896495a6cb90376e00797f1520af959b4ac1b9dddf7af9127b8cec1010071",
19
- "size": 249280136
18
+ "checksum": "95924cc57a03d9b3b58b262aef7f6c8719653c991c82b6b8690c7a5422690d63",
19
+ "size": 250328712
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "08a7c90925cc622003a94b813ae0fc544c08776f6d890532f6212e15962899a8",
24
- "size": 249398992
23
+ "checksum": "075bc326c19a5484c86f3ea8633cf4bf7e26ed72bf3529bc8b64a00db1c488cc",
24
+ "size": 250463952
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "cc79bd7e438060d1d9da958da93338eebb217739af1bacd95a90aa49b136049e",
29
- "size": 242134872
28
+ "checksum": "d8fb4afae1920159b346957ada008ee05483402d209edba7bb31a90c91234632",
29
+ "size": 243183448
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "3b55c7d951e47b6b2ae205d1d69a541707782ce2430253eaca8a7d2d94795ada",
34
- "size": 243809328
33
+ "checksum": "2c720277b87b0e08ca45fe5e472adce09499d411d0e621c301ff1bb876861332",
34
+ "size": 244874288
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "6e18f7a62a5046606d84c875e2dcc01aa90950e002acf8d5994e2f214c1ab861",
39
- "size": 244818080
38
+ "checksum": "ca7e3e0ff70a3fc028bede332fb2f9b6e35e3f95a92304cd4295d8884a9c4445",
39
+ "size": 245842080
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "553728c4d7f361e096c5e196816d95253775115c66ab7dbc57daad10a9ba8ec1",
44
- "size": 240783008
43
+ "checksum": "0db2df8bec4d83c4685012e780328381c16536ac2f86c967aead0f33db841d82",
44
+ "size": 241806496
45
45
  }
46
46
  }
47
47
  }
package/manifest.zst.json CHANGED
@@ -1,55 +1,55 @@
1
1
  {
2
- "version": "2.1.174",
3
- "commit": "0ba24f002c46720e08542a8049b6212f45e18e4e",
4
- "buildDate": "2026-06-11T17:25:37Z",
2
+ "version": "2.1.176",
3
+ "commit": "028963fefd91a4684df967015acf3415c6d570ad",
4
+ "buildDate": "2026-06-12T19:00:08Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "cf2a5fa7f2111c80d4306dbe55a81b6296c967d56ebe987fe9fc28abe1457099",
9
- "size": 45988316,
8
+ "checksum": "258ac6f84b94f34f9617e7269156b586e86c6d95535fffd828572eef4db49926",
9
+ "size": 46211910,
10
10
  "bundle": {
11
- "checksum": "7aa7f4d9d147934ea755dfe9591e58db604d4699c8b2d779d2a8af10badb597c",
12
- "size": 45993325
11
+ "checksum": "c26947c5cd4e2205d6790f9a267aeb175bf211a87d6f6d7c451374a69170e249",
12
+ "size": 46215537
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "5dc84db098b5858be28be09ad9146f8917eec6331c2a18bb90ebdf4c7869c6c0",
18
- "size": 47925373,
17
+ "checksum": "c7bfc24195c6db2244265d1c6218c8fe2e964e0e010bdc32e13ceedc18e5bdf3",
18
+ "size": 48128517,
19
19
  "bundle": {
20
- "checksum": "39542a5e332a7635d6b2e4388196cb492db87164516fa75b4c6630106178c4e4",
21
- "size": 47928336
20
+ "checksum": "17565f4c05e6fb2a01bb58b3e160aff25c9fdc13ef954ec44171499eed521f46",
21
+ "size": 48129114
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "3d8fb5ab8ec4dc54b6f73a10c22ceb3a28837ac8ea769957049cb90f0f7f379f",
27
- "size": 53661793
26
+ "checksum": "ab7d0f4bc81f549007a86b80215004ad118d5381a834a3a38afc9bcb416f81f0",
27
+ "size": 53837853
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "3126d26e876cf06eedaf49fcfc1f7563ef72dfb574f9225fde69eaf654102ae3",
32
- "size": 54260654
31
+ "checksum": "4ad68bea00aaa960e1639d1bd8b84e7d51bb74c16049ec235fbb3308af62cba1",
32
+ "size": 54460997
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "ee57f7fddff13fa5e7ed6535e4a0c8df2c6da96108472aa513bf0a6b363b27e2",
37
- "size": 52295030
36
+ "checksum": "45d89e88a5f65635a00b98a1ebecd48b599b348f8e371b8a7cb6d46cbf9d2136",
37
+ "size": 52463417
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "1b01a47b687b75e372017ecf178eba73ee13669abcc3a38ff27853fe40105bd4",
42
- "size": 52975981
41
+ "checksum": "ea1720da9667921d5cbe73f163cf7039710a0bd958e8b89ed5a403df50629159",
42
+ "size": 53169222
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "e49a833441784526128a25a9d92883369f18f51a8b9dacb9bae37b43b022852a",
47
- "size": 55009286
46
+ "checksum": "3615b7ed6ac5f87e57bf19f8161d179c7dc29fa1fabd6fa541aa91a47ec3550b",
47
+ "size": 55211475
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "48ac0f2bbd89cb15f55509237fba2f0499f14767dd941c8b648e2abbbbe7426f",
52
- "size": 53272471
51
+ "checksum": "f1407c7186bc5e64cf35c0b15edfa3aa0b7489c773292eaec9f027fcc2193ad2",
52
+ "size": 53473811
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.174",
3
+ "version": "0.3.176",
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.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"
64
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.176",
65
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.176",
66
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.176",
67
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.176",
68
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.176",
69
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.176",
70
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.176",
71
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.176"
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.174"
89
+ "claudeCodeVersion": "2.1.176"
90
90
  }
package/sdk-tools.d.ts CHANGED
@@ -323,6 +323,17 @@ export type ProjectsOutput =
323
323
  path: string;
324
324
  created_at: string | null;
325
325
  }[];
326
+ files?: {
327
+ path: string;
328
+ file_kind: string;
329
+ created_at: string | null;
330
+ }[];
331
+ sync_sources?: {
332
+ type: string | null;
333
+ config: {
334
+ [k: string]: unknown;
335
+ };
336
+ }[];
326
337
  knowledge: {
327
338
  knowledge_size: number;
328
339
  max_knowledge_size: number;
@@ -335,6 +346,7 @@ export type ProjectsOutput =
335
346
  method: "project_read";
336
347
  notice?: string;
337
348
  path: string;
349
+ file_kind?: string;
338
350
  content?: string;
339
351
  local_file?: string;
340
352
  created_at: string | null;
@@ -385,7 +397,7 @@ export interface AgentInput {
385
397
  */
386
398
  subagent_type?: string;
387
399
  /**
388
- * 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.
400
+ * 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. Ignored for subagent_type: "fork" — forks always inherit the parent model.
389
401
  */
390
402
  model?: "sonnet" | "opus" | "haiku" | "fable";
391
403
  /**
@@ -2874,6 +2886,10 @@ export interface WebFetchOutput {
2874
2886
  * The URL that was fetched
2875
2887
  */
2876
2888
  url: string;
2889
+ artifactRead?: {
2890
+ slug: string;
2891
+ ver: string;
2892
+ };
2877
2893
  }
2878
2894
  export interface WebSearchOutput {
2879
2895
  /**
package/sdk.d.ts CHANGED
@@ -1750,8 +1750,10 @@ export declare type Options = {
1750
1750
  * Delivery semantics:
1751
1751
  * - At most one `prompt_suggestion` per turn; arrives after the `result` message.
1752
1752
  * - Consumers must keep iterating the stream after `result` to receive it.
1753
- * - Suppressed on the first turn, after API errors, in plan mode, and by the
1754
- * `CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION=false` env var.
1753
+ * - Suppressed on the first turn, after API errors, in plan mode, by the
1754
+ * `CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION=false` env var, and when the user
1755
+ * has `promptSuggestionEnabled: false` in settings.json (the env var wins
1756
+ * over the setting).
1755
1757
  * - Suggestions piggyback on the parent's prompt cache, making them nearly free.
1756
1758
  */
1757
1759
  promptSuggestions?: boolean;
@@ -3243,6 +3245,8 @@ export declare type SDKControlInitializeResponse = {
3243
3245
  */
3244
3246
  account: coreTypes.AccountInfo;
3245
3247
 
3248
+
3249
+
3246
3250
  fast_mode_state?: coreTypes.FastModeState;
3247
3251
 
3248
3252
  };
@@ -4598,6 +4602,10 @@ export declare interface Settings {
4598
4602
  * 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.
4599
4603
  */
4600
4604
  availableModels?: string[];
4605
+ /**
4606
+ * 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.
4607
+ */
4608
+ enforceAvailableModels?: boolean;
4601
4609
  /**
4602
4610
  * 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.
4603
4611
  */
@@ -4956,9 +4964,37 @@ export declare interface Settings {
4956
4964
  hideVimModeIndicator?: boolean;
4957
4965
  };
4958
4966
  /**
4959
- * URL template for PR links in the footer badge and inline messages. Placeholders: {host} {owner} {repo} {number} {url}. Example: "https://reviews.example.com/{owner}/{repo}/pull/{number}"
4967
+ * URL template for PR links in the footer link badges and inline messages. The detected git PR is rendered as the first footer-link badge. Placeholders: {host} {owner} {repo} {number} {url}. Example: "https://reviews.example.com/{owner}/{repo}/pull/{number}"
4960
4968
  */
4961
4969
  prUrlTemplate?: string;
4970
+ /**
4971
+ * Extra clickable footer badges that appear when a regex matches turn output (tool results and assistant responses). Read from user, flag, and managed settings only; ignored in project .claude/settings.json and local .claude/settings.local.json. At most 5 badges render; the oldest is displaced by newer matches and /clear removes them. Use to surface IDs printed by project CLIs as session links.
4972
+ */
4973
+ footerLinksRegexes?: ({
4974
+ /**
4975
+ * Config variant. This client understands "regex": matches turn output and builds a URL from named capture groups. Entries with other variants are preserved but skipped at runtime.
4976
+ */
4977
+ type: 'regex';
4978
+ /**
4979
+ * Regex matched against turn output (tool results and assistant text)
4980
+ */
4981
+ pattern: string;
4982
+ /**
4983
+ * Link target. {name} placeholders are filled from named regex capture groups, e.g. (?<id>...) -> {id}. Values are URL-encoded; the origin must be literal in the template. The scheme must be https, http, or a recognized editor or workspace deep-link scheme: vscode, vscode-insiders, cursor, windsurf, zed, jetbrains, idea, slack, linear, notion, figma.
4984
+ */
4985
+ url: string;
4986
+ /**
4987
+ * Badge text. {name} placeholders filled from named capture groups; defaults to the full match.
4988
+ */
4989
+ label?: string;
4990
+ [k: string]: unknown;
4991
+ } | {
4992
+ /**
4993
+ * Config variant discriminator for entries this client does not understand; the entry is preserved as-is and skipped at runtime.
4994
+ */
4995
+ type: string;
4996
+ [k: string]: unknown;
4997
+ })[];
4962
4998
  /**
4963
4999
  * Custom per-subagent status line shown in the agent panel; receives row context as JSON on stdin
4964
5000
  */
@@ -5851,6 +5887,7 @@ export declare interface Settings {
5851
5887
  */
5852
5888
  prefersReducedMotion?: boolean;
5853
5889
 
5890
+
5854
5891
  /**
5855
5892
  * Enable auto-memory for this project. When false, Claude will not read from or write to the auto-memory directory.
5856
5893
  */