@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/assistant.mjs +86 -86
- package/bridge.d.ts +3 -2
- package/bridge.mjs +93 -93
- package/browser-sdk.js +26 -26
- package/manifest.json +19 -19
- package/manifest.zst.json +23 -23
- package/package.json +10 -10
- package/sdk-tools.d.ts +17 -1
- package/sdk.d.ts +36 -3
- package/sdk.mjs +51 -51
package/manifest.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-06-
|
|
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": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "eb0730351be2f02b482b1855870f5877489085aac86b0c4c1db4e458d9e40ed9",
|
|
9
|
+
"size": 225124512
|
|
10
10
|
},
|
|
11
11
|
"darwin-x64": {
|
|
12
12
|
"binary": "claude",
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "fcdc6c6679d4e1e3a0a3812f24e8b08ab73156732072c2ca5ee6248bee8313bd",
|
|
14
|
+
"size": 227642800
|
|
15
15
|
},
|
|
16
16
|
"linux-arm64": {
|
|
17
17
|
"binary": "claude",
|
|
18
|
-
"checksum": "
|
|
19
|
-
"size":
|
|
18
|
+
"checksum": "baf3926dc166215772f959e367da9784ff4c75157aaafe4524fdc79ebff984b1",
|
|
19
|
+
"size": 250394248
|
|
20
20
|
},
|
|
21
21
|
"linux-x64": {
|
|
22
22
|
"binary": "claude",
|
|
23
|
-
"checksum": "
|
|
24
|
-
"size":
|
|
23
|
+
"checksum": "ff41753634b20c869ef6a32a20863521b33d4186ac0d6a49379ab48a48395ee7",
|
|
24
|
+
"size": 250480336
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64-musl": {
|
|
27
27
|
"binary": "claude",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "bc756f27912d993d632a5f86be9a0364fc3c1373d146a367e46c8d01d3ca1620",
|
|
29
|
+
"size": 243248984
|
|
30
30
|
},
|
|
31
31
|
"linux-x64-musl": {
|
|
32
32
|
"binary": "claude",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "4884b1512bf2863a85f1717eee58840b05d558568f817be71b1a116a430f4a96",
|
|
34
|
+
"size": 244890672
|
|
35
35
|
},
|
|
36
36
|
"win32-x64": {
|
|
37
37
|
"binary": "claude.exe",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "408ddf27d45fc6b6516843c0513072bc0f474d7bface60ae8bbbc633bef9feb2",
|
|
39
|
+
"size": 245856928
|
|
40
40
|
},
|
|
41
41
|
"win32-arm64": {
|
|
42
42
|
"binary": "claude.exe",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
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.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-06-
|
|
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": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "f1c731cc88d5b5cdcfd9cc2cd51afb38a45bbcf43af461c70d5b026010f8a77e",
|
|
9
|
+
"size": 46204400,
|
|
10
10
|
"bundle": {
|
|
11
|
-
"checksum": "
|
|
12
|
-
"size":
|
|
11
|
+
"checksum": "d02621db6a942e67854ebcf5fa6c2c8bb2343ae65df4bccde873a9fba7bd02b9",
|
|
12
|
+
"size": 46212410
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"darwin-x64": {
|
|
16
16
|
"binary": "claude.zst",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "ab4e4611fb47874a6ce2ae688ab3d880f3d41fb56db9b3a4c232c4909aa4736c",
|
|
18
|
+
"size": 48119421,
|
|
19
19
|
"bundle": {
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "9eb17621405b8d760dc54a82d9a2ad111898d76f1df4f2ac1d9302c92ff98b37",
|
|
21
|
+
"size": 48108659
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"linux-arm64": {
|
|
25
25
|
"binary": "claude.zst",
|
|
26
|
-
"checksum": "
|
|
27
|
-
"size":
|
|
26
|
+
"checksum": "f585026d3322bb08a52adc8bfed4fa8c589b7c6f32aca3d3a48870da6cea1f4c",
|
|
27
|
+
"size": 53850962
|
|
28
28
|
},
|
|
29
29
|
"linux-x64": {
|
|
30
30
|
"binary": "claude.zst",
|
|
31
|
-
"checksum": "
|
|
32
|
-
"size":
|
|
31
|
+
"checksum": "cb3f46365c201f8503d8cc8cb299b7ee4bf122dcf7105dcb94f823fa3dbe2256",
|
|
32
|
+
"size": 54468422
|
|
33
33
|
},
|
|
34
34
|
"linux-arm64-musl": {
|
|
35
35
|
"binary": "claude.zst",
|
|
36
|
-
"checksum": "
|
|
37
|
-
"size":
|
|
36
|
+
"checksum": "b6fab61f525493535002be567f42ead4705fbc7c8c7c1976eeb24d584d6e60ca",
|
|
37
|
+
"size": 52463140
|
|
38
38
|
},
|
|
39
39
|
"linux-x64-musl": {
|
|
40
40
|
"binary": "claude.zst",
|
|
41
|
-
"checksum": "
|
|
42
|
-
"size":
|
|
41
|
+
"checksum": "f3c662a21e8f5e82184a95ff670c098e0b31095b62f712503c02b7668d0aa8bb",
|
|
42
|
+
"size": 53174580
|
|
43
43
|
},
|
|
44
44
|
"win32-x64": {
|
|
45
45
|
"binary": "claude.exe.zst",
|
|
46
|
-
"checksum": "
|
|
47
|
-
"size":
|
|
46
|
+
"checksum": "d70811095a330af0a459965080a631e3ad2901690f20e1e2524d2f2ed48808be",
|
|
47
|
+
"size": 55187366
|
|
48
48
|
},
|
|
49
49
|
"win32-arm64": {
|
|
50
50
|
"binary": "claude.exe.zst",
|
|
51
|
-
"checksum": "
|
|
52
|
-
"size":
|
|
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.
|
|
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.
|
|
65
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.
|
|
66
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.
|
|
67
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.
|
|
68
|
-
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.
|
|
69
|
-
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.
|
|
70
|
-
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.
|
|
71
|
-
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.
|
|
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.
|
|
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,
|
|
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
|
|
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
|
*/
|