@anthropic-ai/claude-agent-sdk 0.2.140 → 0.3.142
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.mjs +104 -76
- package/browser-sdk.js +23 -23
- package/manifest.json +19 -19
- package/manifest.zst.json +23 -23
- package/package.json +11 -11
- package/sdk-tools.d.ts +119 -1
- package/sdk.d.ts +77 -138
- package/sdk.mjs +58 -58
package/manifest.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-05-
|
|
2
|
+
"version": "2.1.142",
|
|
3
|
+
"commit": "880324aad10dc75b18dbac2782d9dfee7cbb1578",
|
|
4
|
+
"buildDate": "2026-05-14T16:45:24Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "772021afa051160b97e04d379738df84d4cacd311e8c199a325fb013b3eaa448",
|
|
9
|
+
"size": 207126432
|
|
10
10
|
},
|
|
11
11
|
"darwin-x64": {
|
|
12
12
|
"binary": "claude",
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "d00bc6fb38d0837ce811cc862a3b6822795b33dbce8361703b1e5e903bd240fd",
|
|
14
|
+
"size": 209640592
|
|
15
15
|
},
|
|
16
16
|
"linux-arm64": {
|
|
17
17
|
"binary": "claude",
|
|
18
|
-
"checksum": "
|
|
19
|
-
"size":
|
|
18
|
+
"checksum": "767b13fc28763ca9d663b00f90e501f134b356f1b72dcf0eea59b7e3bed86411",
|
|
19
|
+
"size": 232502920
|
|
20
20
|
},
|
|
21
21
|
"linux-x64": {
|
|
22
22
|
"binary": "claude",
|
|
23
|
-
"checksum": "
|
|
24
|
-
"size":
|
|
23
|
+
"checksum": "1249a1dadfe2d48f320bd4e1b657a1a0d82435da76deb11ce509822407cf24ec",
|
|
24
|
+
"size": 232625872
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64-musl": {
|
|
27
27
|
"binary": "claude",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "43834a6c50954deb6ddb1b49937d15ccae71fbdb3d370e26a461e12c50c122ba",
|
|
29
|
+
"size": 225357656
|
|
30
30
|
},
|
|
31
31
|
"linux-x64-musl": {
|
|
32
32
|
"binary": "claude",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "c645dc32d250a54bb8399630f0ffa88b4ee44ba8e6461e33ed95b2f64f836ea9",
|
|
34
|
+
"size": 227019824
|
|
35
35
|
},
|
|
36
36
|
"win32-x64": {
|
|
37
37
|
"binary": "claude.exe",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "0778b1c607ee3282ba8ea3f0c684edb05f597454cc0d21386a84576b5434b1c7",
|
|
39
|
+
"size": 228456096
|
|
40
40
|
},
|
|
41
41
|
"win32-arm64": {
|
|
42
42
|
"binary": "claude.exe",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
43
|
+
"checksum": "95a966b0729f9f7c28c68df3d63e7f5ac6ac72abab209392800e9a40292f3bfc",
|
|
44
|
+
"size": 224420000
|
|
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-05-
|
|
2
|
+
"version": "2.1.142",
|
|
3
|
+
"commit": "880324aad10dc75b18dbac2782d9dfee7cbb1578",
|
|
4
|
+
"buildDate": "2026-05-14T16:52:01Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude.zst",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "0f691f77c8f4d1e7a13813c10d8de3f611c486a24fb8a2f33470b785064f8718",
|
|
9
|
+
"size": 42921902,
|
|
10
10
|
"bundle": {
|
|
11
|
-
"checksum": "
|
|
12
|
-
"size":
|
|
11
|
+
"checksum": "9e0823cd0d41df7bfa8d3f0864f3c8bb52cc4787aa495c0088afbcc8c7261058",
|
|
12
|
+
"size": 42924662
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"darwin-x64": {
|
|
16
16
|
"binary": "claude.zst",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "958d1a9d396a23819ef413c94510619499b3ab04cc4968a6cea7c334999272ea",
|
|
18
|
+
"size": 44836769,
|
|
19
19
|
"bundle": {
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "f3dd24e6cc318032c795fe12c4f259de64a70b58409c187cc231e39f65453595",
|
|
21
|
+
"size": 44841630
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"linux-arm64": {
|
|
25
25
|
"binary": "claude.zst",
|
|
26
|
-
"checksum": "
|
|
27
|
-
"size":
|
|
26
|
+
"checksum": "75c7af4adb9bbd7b48b407d005cdad790a6ecb00e7e6b6de6c2b0c4acafcf81f",
|
|
27
|
+
"size": 50714165
|
|
28
28
|
},
|
|
29
29
|
"linux-x64": {
|
|
30
30
|
"binary": "claude.zst",
|
|
31
|
-
"checksum": "
|
|
32
|
-
"size":
|
|
31
|
+
"checksum": "7a9f89138613c26b815054bf009a086ed76f1c8c8265484090072d900f10d278",
|
|
32
|
+
"size": 51328541
|
|
33
33
|
},
|
|
34
34
|
"linux-arm64-musl": {
|
|
35
35
|
"binary": "claude.zst",
|
|
36
|
-
"checksum": "
|
|
37
|
-
"size":
|
|
36
|
+
"checksum": "76acedae2ff83dc06e5dc38066bd0fa42ca76c18a9aabb8e63742c01a07f5dfd",
|
|
37
|
+
"size": 49338045
|
|
38
38
|
},
|
|
39
39
|
"linux-x64-musl": {
|
|
40
40
|
"binary": "claude.zst",
|
|
41
|
-
"checksum": "
|
|
42
|
-
"size":
|
|
41
|
+
"checksum": "e6425d37a4cc099cfd1b1b13298c0f2067302decfd8542d0c12c5eb5df435ac6",
|
|
42
|
+
"size": 50052852
|
|
43
43
|
},
|
|
44
44
|
"win32-x64": {
|
|
45
45
|
"binary": "claude.exe.zst",
|
|
46
|
-
"checksum": "
|
|
47
|
-
"size":
|
|
46
|
+
"checksum": "1183b899719c41f41f3f57fb8580e50845ee645c1878e29744138b8e459d897e",
|
|
47
|
+
"size": 52050022
|
|
48
48
|
},
|
|
49
49
|
"win32-arm64": {
|
|
50
50
|
"binary": "claude.exe.zst",
|
|
51
|
-
"checksum": "
|
|
52
|
-
"size":
|
|
51
|
+
"checksum": "ca544b53e4fb45d12bd30f214de6ee85859ec9f89c7e14942bdcfb4a1db576f4",
|
|
52
|
+
"size": 50320973
|
|
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
|
+
"version": "0.3.142",
|
|
4
4
|
"main": "sdk.mjs",
|
|
5
5
|
"types": "sdk.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -48,21 +48,21 @@
|
|
|
48
48
|
"code-generation"
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@anthropic-ai/sdk": "^0.
|
|
51
|
+
"@anthropic-ai/sdk": "^0.93.0",
|
|
52
52
|
"@modelcontextprotocol/sdk": "^1.29.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"zod": "^4.0.0"
|
|
56
56
|
},
|
|
57
57
|
"optionalDependencies": {
|
|
58
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.
|
|
59
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.
|
|
60
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.
|
|
61
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.
|
|
62
|
-
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.
|
|
63
|
-
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.
|
|
64
|
-
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.
|
|
65
|
-
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.
|
|
58
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.142",
|
|
59
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.142",
|
|
60
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.142",
|
|
61
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.142",
|
|
62
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.142",
|
|
63
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.142",
|
|
64
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.142",
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.142"
|
|
66
66
|
},
|
|
67
67
|
"files": [
|
|
68
68
|
"sdk.mjs",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"manifest.json",
|
|
79
79
|
"manifest.zst.json"
|
|
80
80
|
],
|
|
81
|
-
"claudeCodeVersion": "2.1.
|
|
81
|
+
"claudeCodeVersion": "2.1.142"
|
|
82
82
|
}
|
package/sdk-tools.d.ts
CHANGED
|
@@ -27,6 +27,10 @@ export type ToolInputSchemas =
|
|
|
27
27
|
| WebFetchInput
|
|
28
28
|
| WebSearchInput
|
|
29
29
|
| AskUserQuestionInput
|
|
30
|
+
| TaskCreateInput
|
|
31
|
+
| TaskGetInput
|
|
32
|
+
| TaskUpdateInput
|
|
33
|
+
| TaskListInput
|
|
30
34
|
| EnterWorktreeInput
|
|
31
35
|
| ExitWorktreeInput
|
|
32
36
|
| ToolOutputSchemas;
|
|
@@ -49,7 +53,11 @@ export type ToolOutputSchemas =
|
|
|
49
53
|
| WebSearchOutput
|
|
50
54
|
| AskUserQuestionOutput
|
|
51
55
|
| EnterWorktreeOutput
|
|
52
|
-
| ExitWorktreeOutput
|
|
56
|
+
| ExitWorktreeOutput
|
|
57
|
+
| TaskCreateOutput
|
|
58
|
+
| TaskGetOutput
|
|
59
|
+
| TaskUpdateOutput
|
|
60
|
+
| TaskListOutput;
|
|
53
61
|
export type AgentOutput =
|
|
54
62
|
| {
|
|
55
63
|
agentId: string;
|
|
@@ -467,6 +475,10 @@ export interface GrepInput {
|
|
|
467
475
|
* Case insensitive search (rg -i)
|
|
468
476
|
*/
|
|
469
477
|
"-i"?: boolean;
|
|
478
|
+
/**
|
|
479
|
+
* Print only the matched (non-empty) parts of each matching line, one match per output line (rg -o / --only-matching). Requires output_mode: "content", ignored otherwise. Defaults to false.
|
|
480
|
+
*/
|
|
481
|
+
"-o"?: boolean;
|
|
470
482
|
/**
|
|
471
483
|
* File type to search (rg --type). Common types: js, py, rust, go, java, etc. More efficient than include for standard file types.
|
|
472
484
|
*/
|
|
@@ -2146,6 +2158,73 @@ export interface AskUserQuestionInput {
|
|
|
2146
2158
|
source?: string;
|
|
2147
2159
|
};
|
|
2148
2160
|
}
|
|
2161
|
+
export interface TaskCreateInput {
|
|
2162
|
+
/**
|
|
2163
|
+
* A brief title for the task
|
|
2164
|
+
*/
|
|
2165
|
+
subject: string;
|
|
2166
|
+
/**
|
|
2167
|
+
* What needs to be done
|
|
2168
|
+
*/
|
|
2169
|
+
description: string;
|
|
2170
|
+
/**
|
|
2171
|
+
* Present continuous form shown in spinner when in_progress (e.g., "Running tests")
|
|
2172
|
+
*/
|
|
2173
|
+
activeForm?: string;
|
|
2174
|
+
/**
|
|
2175
|
+
* Arbitrary metadata to attach to the task
|
|
2176
|
+
*/
|
|
2177
|
+
metadata?: {
|
|
2178
|
+
[k: string]: unknown;
|
|
2179
|
+
};
|
|
2180
|
+
}
|
|
2181
|
+
export interface TaskGetInput {
|
|
2182
|
+
/**
|
|
2183
|
+
* The ID of the task to retrieve
|
|
2184
|
+
*/
|
|
2185
|
+
taskId: string;
|
|
2186
|
+
}
|
|
2187
|
+
export interface TaskUpdateInput {
|
|
2188
|
+
/**
|
|
2189
|
+
* The ID of the task to update
|
|
2190
|
+
*/
|
|
2191
|
+
taskId: string;
|
|
2192
|
+
/**
|
|
2193
|
+
* New subject for the task
|
|
2194
|
+
*/
|
|
2195
|
+
subject?: string;
|
|
2196
|
+
/**
|
|
2197
|
+
* New description for the task
|
|
2198
|
+
*/
|
|
2199
|
+
description?: string;
|
|
2200
|
+
/**
|
|
2201
|
+
* Present continuous form shown in spinner when in_progress (e.g., "Running tests")
|
|
2202
|
+
*/
|
|
2203
|
+
activeForm?: string;
|
|
2204
|
+
/**
|
|
2205
|
+
* New status for the task
|
|
2206
|
+
*/
|
|
2207
|
+
status?: ("pending" | "in_progress" | "completed") | "deleted";
|
|
2208
|
+
/**
|
|
2209
|
+
* Task IDs that this task blocks
|
|
2210
|
+
*/
|
|
2211
|
+
addBlocks?: string[];
|
|
2212
|
+
/**
|
|
2213
|
+
* Task IDs that block this task
|
|
2214
|
+
*/
|
|
2215
|
+
addBlockedBy?: string[];
|
|
2216
|
+
/**
|
|
2217
|
+
* New owner for the task
|
|
2218
|
+
*/
|
|
2219
|
+
owner?: string;
|
|
2220
|
+
/**
|
|
2221
|
+
* Metadata keys to merge into the task. Set a key to null to delete it.
|
|
2222
|
+
*/
|
|
2223
|
+
metadata?: {
|
|
2224
|
+
[k: string]: unknown;
|
|
2225
|
+
};
|
|
2226
|
+
}
|
|
2227
|
+
export interface TaskListInput {}
|
|
2149
2228
|
export interface EnterWorktreeInput {
|
|
2150
2229
|
/**
|
|
2151
2230
|
* Optional name for a new worktree. Each "/"-separated segment may contain only letters, digits, dots, underscores, and dashes; max 64 chars total. A random name is generated if not provided. Mutually exclusive with `path`.
|
|
@@ -2533,6 +2612,10 @@ export interface WebSearchOutput {
|
|
|
2533
2612
|
* Time taken to complete the search operation
|
|
2534
2613
|
*/
|
|
2535
2614
|
durationSeconds: number;
|
|
2615
|
+
/**
|
|
2616
|
+
* Number of web searches performed
|
|
2617
|
+
*/
|
|
2618
|
+
searchCount?: number;
|
|
2536
2619
|
}
|
|
2537
2620
|
export interface AskUserQuestionOutput {
|
|
2538
2621
|
/**
|
|
@@ -2728,3 +2811,38 @@ export interface ExitWorktreeOutput {
|
|
|
2728
2811
|
discardedCommits?: number;
|
|
2729
2812
|
message: string;
|
|
2730
2813
|
}
|
|
2814
|
+
export interface TaskCreateOutput {
|
|
2815
|
+
task: {
|
|
2816
|
+
id: string;
|
|
2817
|
+
subject: string;
|
|
2818
|
+
};
|
|
2819
|
+
}
|
|
2820
|
+
export interface TaskGetOutput {
|
|
2821
|
+
task: {
|
|
2822
|
+
id: string;
|
|
2823
|
+
subject: string;
|
|
2824
|
+
description: string;
|
|
2825
|
+
status: "pending" | "in_progress" | "completed";
|
|
2826
|
+
blocks: string[];
|
|
2827
|
+
blockedBy: string[];
|
|
2828
|
+
} | null;
|
|
2829
|
+
}
|
|
2830
|
+
export interface TaskUpdateOutput {
|
|
2831
|
+
success: boolean;
|
|
2832
|
+
taskId: string;
|
|
2833
|
+
updatedFields: string[];
|
|
2834
|
+
error?: string;
|
|
2835
|
+
statusChange?: {
|
|
2836
|
+
from: string;
|
|
2837
|
+
to: string;
|
|
2838
|
+
};
|
|
2839
|
+
}
|
|
2840
|
+
export interface TaskListOutput {
|
|
2841
|
+
tasks: {
|
|
2842
|
+
id: string;
|
|
2843
|
+
subject: string;
|
|
2844
|
+
status: "pending" | "in_progress" | "completed";
|
|
2845
|
+
owner?: string;
|
|
2846
|
+
blockedBy: string[];
|
|
2847
|
+
}[];
|
|
2848
|
+
}
|