@anthropic-ai/claude-agent-sdk 0.2.140 → 0.2.141

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.140",
3
- "commit": "89b4b3854fac52fdb8f9970133c4afe00174b6b9",
4
- "buildDate": "2026-05-12T18:36:21Z",
2
+ "version": "2.1.141",
3
+ "commit": "4f4623ddd339e1c1b87d659b7c9eb3b66397e7a3",
4
+ "buildDate": "2026-05-13T21:34:55Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "087ce732fb79658cd3e828cc377291dc56835fc5318cd519123b0880a09149c0",
9
- "size": 206069664
8
+ "checksum": "31ac95bb19a33b1d0cddd3f3ff594bf8bfd2be5051cd2af7867109641cab705e",
9
+ "size": 207076896
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "2616b1e775ec0520228cd99135d07ef99e4b93b4532a03ef019e0a8e81cc7729",
14
- "size": 208583824
13
+ "checksum": "fa9000fdf4a522fcaf30ea283555aca2ba5d0e76cdb8842154b7735b558c7c25",
14
+ "size": 209591056
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "0ec6fc062e99aa95a6edbb5308a563262d27a0772b107d01d4fa61110fb44472",
19
- "size": 231454344
18
+ "checksum": "dc931e24f62afbadc8dc68115278b08493825a3ed1ea753d587077181a6cc63b",
19
+ "size": 232437384
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "807a5d6ca063f5e03e4b7283934036a3122723b28c28e1a6978e98cf2d43d0b5",
24
- "size": 231577296
23
+ "checksum": "832be26e8f15b2ae99e520a22b034fc4bfad1cb5b84de6b706487072c56bb42e",
24
+ "size": 232572624
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "b840a07551c3e1baecff728eb6b9a849483be87bf1fdaed5da22d0b3427a88cf",
29
- "size": 224309080
28
+ "checksum": "e6e6a481c0aab084198b3529c6d96774e14d18da999aba7d22e207952ed8faf0",
29
+ "size": 225292120
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "7db8946293de9ec11d2b02472f715f18ea9a346238d472605b5d9a4dc7bfd3f1",
34
- "size": 225971248
33
+ "checksum": "8af1f6e19d3786cac74dcf369ff58f79df08be429813b29ae076247cc8d1ddae",
34
+ "size": 226966576
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "fcfe90297861b1bcfa581d7db645ec8a71984baed3b1c44d28032650baa2617c",
39
- "size": 227456160
38
+ "checksum": "3ab326c39d195dbe394c173f31126d880a80270f98ade74ef555429e2dadb19f",
39
+ "size": 228410016
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "3f782467ec6e593a5e23522b678cf4268965e4ec6fe904e41729a12d64232c40",
44
- "size": 223420576
43
+ "checksum": "f622af48157bce7a24905fa6121191f5a472800ed9f77fa41c59bd5ecd161285",
44
+ "size": 224374432
45
45
  }
46
46
  }
47
47
  }
package/manifest.zst.json CHANGED
@@ -1,55 +1,55 @@
1
1
  {
2
- "version": "2.1.140",
3
- "commit": "89b4b3854fac52fdb8f9970133c4afe00174b6b9",
4
- "buildDate": "2026-05-12T18:43:34Z",
2
+ "version": "2.1.141",
3
+ "commit": "4f4623ddd339e1c1b87d659b7c9eb3b66397e7a3",
4
+ "buildDate": "2026-05-13T21:41:28Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "d9b6bdb0b8f271b344f19885179bcb0ef13fd66314607fdcfbe83cb85de77eb7",
9
- "size": 42718061,
8
+ "checksum": "ded188fd6b63c8e03d95500760a7414ba6906876c626476b3c1aaf8e7d87f8a0",
9
+ "size": 42914116,
10
10
  "bundle": {
11
- "checksum": "6742fbb491b6cef7feb8aaee8672a52dd9c158d3b3534282351a760f16fa9aa2",
12
- "size": 42722106
11
+ "checksum": "27c366c8a650d90a4a48b624fd89d6a2daee2c2f53a2a1ad11a26eb603557855",
12
+ "size": 42918185
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "91a7324c7163375a93995217ecfb814a49da83f82ef8ef6f0369fef6e0a2dee4",
18
- "size": 44628262,
17
+ "checksum": "5bce9e6dbd397709c12d4ba19424dae4e185dc8b70179cf9f1bef07317d42d3f",
18
+ "size": 44816821,
19
19
  "bundle": {
20
- "checksum": "a6038ac7599463370aaf02a0deb89f1d063faab1c39203522828ea01af2f3952",
21
- "size": 44635470
20
+ "checksum": "1b3be19bdea17a3b20fb214549ca10c064b9269d653d3a5e66aab615c7b078e7",
21
+ "size": 44837419
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "26bd23cebfe608abbb6a564e9bbee8b969805d2fec566640ec986922f4da050f",
27
- "size": 50527860
26
+ "checksum": "7327ee9b0488231f4a7ecfbc0110337877af508b25078e0f7a1561ec72c0f9b1",
27
+ "size": 50723547
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "e704d23a8b015a1156749f763f5eae8449a07fc01089923cf52483a9e811a9cc",
32
- "size": 51130420
31
+ "checksum": "b8be41003357a75527ceffe3f75b936427c5cd5ffb8d6847a29b6f165ba3ca1a",
32
+ "size": 51286205
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "aea9f89cfdfca9268f598106b2cca98045495959552d0732f6dd42c7ac69c173",
37
- "size": 49145878
36
+ "checksum": "899a1f33abb7bea21129aa379bd757956d38bde484bdbba5f0a7efb4e8d0270d",
37
+ "size": 49328098
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "7a330e14ae68b55a69d6480db19027a0fc25bcd315053a82ff04dd369192a8fa",
42
- "size": 49840553
41
+ "checksum": "1fd02e4d619c5266b99c7f97cbad4fb6838f73a4cd717dd173b9ede93d70adcd",
42
+ "size": 50009722
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "196bca09220a94b4e93ab654dd509ff87a02fc1eeedfa51a5dd710a9cb3d25dc",
47
- "size": 51861421
46
+ "checksum": "607ec8680c87ea6251f2785fa574d798851ef7470313eefd45b6b0f877d67d4c",
47
+ "size": 52034683
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "8b9ed012b85c45aa4bef85e1db3eb2ccf60ed3d413eda6d90ac9f136947bcd33",
52
- "size": 50151271
51
+ "checksum": "c970ff7b932bee058f530a10e4dc0a0b8fff53acc49b64bb5b67b03432d299ee",
52
+ "size": 50306178
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.2.140",
3
+ "version": "0.2.141",
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.81.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.2.140",
59
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.2.140",
60
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.2.140",
61
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.2.140",
62
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.2.140",
63
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.2.140",
64
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.2.140",
65
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.2.140"
58
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.2.141",
59
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.2.141",
60
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.2.141",
61
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.2.141",
62
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.2.141",
63
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.2.141",
64
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.2.141",
65
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.2.141"
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.140"
81
+ "claudeCodeVersion": "2.1.141"
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
+ }
package/sdk.d.ts CHANGED
@@ -2496,6 +2496,13 @@ export declare type SDKCompactBoundaryMessage = {
2496
2496
  anchor_uuid: UUID;
2497
2497
  tail_uuid: UUID;
2498
2498
  };
2499
+ /**
2500
+ * Ordered messagesToKeep UUIDs. Supersedes preserved_segment — readers look up each UUID directly and relink uuids[i] to uuids[i-1] (uuids[0] to anchor_uuid) instead of walking the parentUuid chain. Unset when compaction summarizes everything.
2501
+ */
2502
+ preserved_messages?: {
2503
+ anchor_uuid: UUID;
2504
+ uuids: UUID[];
2505
+ };
2499
2506
  };
2500
2507
  uuid: UUID;
2501
2508
  session_id: string;
@@ -4468,6 +4475,8 @@ export declare interface Settings {
4468
4475
  * Local directory containing .claude-plugin/marketplace.json
4469
4476
  */
4470
4477
  path: string;
4478
+ } | {
4479
+ source: 'skills-dir';
4471
4480
  } | {
4472
4481
  source: 'hostPattern';
4473
4482
  /**
@@ -4658,6 +4667,8 @@ export declare interface Settings {
4658
4667
  * Local directory containing .claude-plugin/marketplace.json
4659
4668
  */
4660
4669
  path: string;
4670
+ } | {
4671
+ source: 'skills-dir';
4661
4672
  } | {
4662
4673
  source: 'hostPattern';
4663
4674
  /**
@@ -4838,6 +4849,8 @@ export declare interface Settings {
4838
4849
  * Local directory containing .claude-plugin/marketplace.json
4839
4850
  */
4840
4851
  path: string;
4852
+ } | {
4853
+ source: 'skills-dir';
4841
4854
  } | {
4842
4855
  source: 'hostPattern';
4843
4856
  /**
@@ -5530,6 +5543,10 @@ export declare type SyncHookJSONOutput = {
5530
5543
  stopReason?: string;
5531
5544
  decision?: 'approve' | 'block';
5532
5545
  systemMessage?: string;
5546
+ /**
5547
+ * A terminal escape sequence (e.g. OSC 9 / OSC 777 desktop-notification) for Claude Code to emit on your behalf. Only notification/title OSCs (0, 1, 2, 9, 99, 777) and BEL are permitted; anything else is dropped.
5548
+ */
5549
+ terminalSequence?: string;
5533
5550
  reason?: string;
5534
5551
 
5535
5552