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

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.175",
3
- "commit": "0b9163019454512fd2b2ed8e6bef5470f9259f35",
4
- "buildDate": "2026-06-12T01:33:39Z",
2
+ "version": "2.1.177",
3
+ "commit": "6fae7a072b111776fc95ca221caac31b7439eb25",
4
+ "buildDate": "2026-06-13T00:29:44Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "6b75bf132c866ed409bf913c318ca32011e73ffb12d3cd67ecc37bc4ee9ec65d",
9
- "size": 224216352
8
+ "checksum": "eb0730351be2f02b482b1855870f5877489085aac86b0c4c1db4e458d9e40ed9",
9
+ "size": 225124512
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "3770f2cb42d3f776e62a59aa16230843dc7b8422b36be9b1532e02a6e92e7fa8",
14
- "size": 226734640
13
+ "checksum": "fcdc6c6679d4e1e3a0a3812f24e8b08ab73156732072c2ca5ee6248bee8313bd",
14
+ "size": 227642800
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "360f1f6f43ec26d9bb6e20e487bf44b753d9b8407e89e74bfeeb79707399f435",
19
- "size": 249476744
18
+ "checksum": "baf3926dc166215772f959e367da9784ff4c75157aaafe4524fdc79ebff984b1",
19
+ "size": 250394248
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "4fc72fa6090c9a03f1850e1b1ccb3d6806bf802b67e3cb9dc5f2ced4b7ed5ca1",
24
- "size": 249566928
23
+ "checksum": "ff41753634b20c869ef6a32a20863521b33d4186ac0d6a49379ab48a48395ee7",
24
+ "size": 250480336
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "27234d99851b2e343184466924d8f5c9318d1cfc4156fc4198c99e26c8a8ab86",
29
- "size": 242331480
28
+ "checksum": "bc756f27912d993d632a5f86be9a0364fc3c1373d146a367e46c8d01d3ca1620",
29
+ "size": 243248984
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "f40f977d2555f349e4d94f6efdc7deece3596c2cffa9d1a6a66b14ee30cfca54",
34
- "size": 243977264
33
+ "checksum": "4884b1512bf2863a85f1717eee58840b05d558568f817be71b1a116a430f4a96",
34
+ "size": 244890672
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "c1b5b0ae1b607c1f8623d222c9eb6005a35dd6873aa834910a6fb3e00450e096",
39
- "size": 244979872
38
+ "checksum": "408ddf27d45fc6b6516843c0513072bc0f474d7bface60ae8bbbc633bef9feb2",
39
+ "size": 245856928
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "f01eea49c920e990a7c3d2c1071abbc7e79ab54a099380982c11a6f462ca7c4a",
44
- "size": 240943776
43
+ "checksum": "89652ac1f73ccc3fe039a1d388af81af82608af1cac7a32b5ebc2189b8ae2d62",
44
+ "size": 241821856
45
45
  }
46
46
  }
47
47
  }
package/manifest.zst.json CHANGED
@@ -1,55 +1,55 @@
1
1
  {
2
- "version": "2.1.175",
3
- "commit": "0b9163019454512fd2b2ed8e6bef5470f9259f35",
4
- "buildDate": "2026-06-12T01:35:25Z",
2
+ "version": "2.1.177",
3
+ "commit": "6fae7a072b111776fc95ca221caac31b7439eb25",
4
+ "buildDate": "2026-06-13T00:31:36Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "fab0b985ac7241930d94b44e5fd3cd0d6033d333ca9e04bb9667a5a0b88f67a9",
9
- "size": 46040347,
8
+ "checksum": "f1c731cc88d5b5cdcfd9cc2cd51afb38a45bbcf43af461c70d5b026010f8a77e",
9
+ "size": 46204400,
10
10
  "bundle": {
11
- "checksum": "9b4f036435fc813e1fb0c212849e94078bf5be6f96583fdf6bb586f0e035f18e",
12
- "size": 46046962
11
+ "checksum": "d02621db6a942e67854ebcf5fa6c2c8bb2343ae65df4bccde873a9fba7bd02b9",
12
+ "size": 46212410
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "5259cac269cec81a9259bd654796c0b40798abd7d4790d1a005f196263214ea3",
18
- "size": 47958999,
17
+ "checksum": "ab4e4611fb47874a6ce2ae688ab3d880f3d41fb56db9b3a4c232c4909aa4736c",
18
+ "size": 48119421,
19
19
  "bundle": {
20
- "checksum": "c856c475caa3244c4f38656efb9da6e8814b13eb6aa11d5d903445de09f847df",
21
- "size": 47955680
20
+ "checksum": "9eb17621405b8d760dc54a82d9a2ad111898d76f1df4f2ac1d9302c92ff98b37",
21
+ "size": 48108659
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "fe7afc6b729eee4234f6d9101e228cdb693cd43d7288a05848c75c5fb869af97",
27
- "size": 53684272
26
+ "checksum": "f585026d3322bb08a52adc8bfed4fa8c589b7c6f32aca3d3a48870da6cea1f4c",
27
+ "size": 53850962
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "2a518fa374b289f694eca579bfdd4bfc538b3063400aad2c1aa502128f9f4d6b",
32
- "size": 54304474
31
+ "checksum": "cb3f46365c201f8503d8cc8cb299b7ee4bf122dcf7105dcb94f823fa3dbe2256",
32
+ "size": 54468422
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "053725973f3748d38e201ba46425332bb78ba0d743ff10f449423cdcac662438",
37
- "size": 52311556
36
+ "checksum": "b6fab61f525493535002be567f42ead4705fbc7c8c7c1976eeb24d584d6e60ca",
37
+ "size": 52463140
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "2428018be84d82a3586d25aaf3deeb0cb6ed6ff76bb1ec352f47421133c77341",
42
- "size": 53011819
41
+ "checksum": "f3c662a21e8f5e82184a95ff670c098e0b31095b62f712503c02b7668d0aa8bb",
42
+ "size": 53174580
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "af7b932a0e1fd8d5de4e589377d16ab7ff4a25f438daa22f35f87c47c80d3a8c",
47
- "size": 55041661
46
+ "checksum": "d70811095a330af0a459965080a631e3ad2901690f20e1e2524d2f2ed48808be",
47
+ "size": 55187366
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "8d9202ece8c744092c9d96b77c2215b3b2d76cbdc042c35f3e1997c295e059fd",
52
- "size": 53311293
51
+ "checksum": "0fb3d2b8577149d4972caf02ec48e1a0c2357d8efcc901508c03c089fbc33d7d",
52
+ "size": 53457755
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.175",
3
+ "version": "0.3.177",
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.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"
64
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.177",
65
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.177",
66
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.177",
67
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.177",
68
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.177",
69
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.177",
70
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.177",
71
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.177"
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.175"
89
+ "claudeCodeVersion": "2.1.177"
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
  };
@@ -4960,9 +4964,37 @@ export declare interface Settings {
4960
4964
  hideVimModeIndicator?: boolean;
4961
4965
  };
4962
4966
  /**
4963
- * 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}"
4964
4968
  */
4965
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
+ })[];
4966
4998
  /**
4967
4999
  * Custom per-subagent status line shown in the agent panel; receives row context as JSON on stdin
4968
5000
  */
@@ -5855,6 +5887,7 @@ export declare interface Settings {
5855
5887
  */
5856
5888
  prefersReducedMotion?: boolean;
5857
5889
 
5890
+
5858
5891
  /**
5859
5892
  * Enable auto-memory for this project. When false, Claude will not read from or write to the auto-memory directory.
5860
5893
  */