@anthropic-ai/claude-agent-sdk 0.2.39 → 0.2.41
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/cli.js +2187 -2179
- package/manifest.json +21 -16
- package/manifest.zst.json +46 -0
- package/package.json +2 -2
- package/sdk.d.ts +15 -1
- package/sdk.mjs +15 -15
- package/vendor/ripgrep/arm64-win32/rg.exe +0 -0
- package/vendor/ripgrep/arm64-win32/ripgrep.node +0 -0
package/manifest.json
CHANGED
|
@@ -1,41 +1,46 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"buildDate": "2026-02-
|
|
2
|
+
"version": "2.1.41",
|
|
3
|
+
"buildDate": "2026-02-13T01:14:01Z",
|
|
4
4
|
"platforms": {
|
|
5
5
|
"darwin-arm64": {
|
|
6
6
|
"binary": "claude",
|
|
7
|
-
"checksum": "
|
|
8
|
-
"size":
|
|
7
|
+
"checksum": "9e23cfde9ae65f656304ccd7513c22e50f73c7ad7c8924441236512dc67c3543",
|
|
8
|
+
"size": 183140528
|
|
9
9
|
},
|
|
10
10
|
"darwin-x64": {
|
|
11
11
|
"binary": "claude",
|
|
12
|
-
"checksum": "
|
|
13
|
-
"size":
|
|
12
|
+
"checksum": "8cae92a6efd136ad27a6f320761df7fa33c617cdc8037de90d513155b512c64f",
|
|
13
|
+
"size": 188199840
|
|
14
14
|
},
|
|
15
15
|
"linux-arm64": {
|
|
16
16
|
"binary": "claude",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "dabc602584e89747d04945764e12b1ba050e58279421d8db4c0b2efc96a1b62a",
|
|
18
|
+
"size": 220293672
|
|
19
19
|
},
|
|
20
20
|
"linux-x64": {
|
|
21
21
|
"binary": "claude",
|
|
22
|
-
"checksum": "
|
|
23
|
-
"size":
|
|
22
|
+
"checksum": "37d223ec9b54020db8570238bd7726b3df78d350c4cad3084f892f4b58f052bc",
|
|
23
|
+
"size": 223133973
|
|
24
24
|
},
|
|
25
25
|
"linux-arm64-musl": {
|
|
26
26
|
"binary": "claude",
|
|
27
|
-
"checksum": "
|
|
28
|
-
"size":
|
|
27
|
+
"checksum": "f8c1f9cd5f45370ba027dcfecab8e83e024b78005f3a36abd6b7ad17eee996ae",
|
|
28
|
+
"size": 213477064
|
|
29
29
|
},
|
|
30
30
|
"linux-x64-musl": {
|
|
31
31
|
"binary": "claude",
|
|
32
|
-
"checksum": "
|
|
33
|
-
"size":
|
|
32
|
+
"checksum": "12dfb2127b4880daf94311cfcfa19cbc6cff244e4adf106fffdbe08b926d2cbc",
|
|
33
|
+
"size": 215629933
|
|
34
34
|
},
|
|
35
35
|
"win32-x64": {
|
|
36
36
|
"binary": "claude.exe",
|
|
37
|
-
"checksum": "
|
|
38
|
-
"size":
|
|
37
|
+
"checksum": "da6982ff2418b4ed1888f209ecfc651d3500e4d324d660fba9fd11da5afe9534",
|
|
38
|
+
"size": 232791200
|
|
39
|
+
},
|
|
40
|
+
"win32-arm64": {
|
|
41
|
+
"binary": "claude.exe",
|
|
42
|
+
"checksum": "a3b09cd35d163bd116c017c71167b476265a345160790227ed0ad7bd357b7925",
|
|
43
|
+
"size": 224869536
|
|
39
44
|
}
|
|
40
45
|
}
|
|
41
46
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2.1.41",
|
|
3
|
+
"buildDate": "2026-02-13T01:14:01Z",
|
|
4
|
+
"platforms": {
|
|
5
|
+
"darwin-arm64": {
|
|
6
|
+
"binary": "claude.zst",
|
|
7
|
+
"checksum": "3034e934e720847f60bbd90b78ea4c9aea34e9d040428cb508c70f1d55332c69",
|
|
8
|
+
"size": 38829678
|
|
9
|
+
},
|
|
10
|
+
"darwin-x64": {
|
|
11
|
+
"binary": "claude.zst",
|
|
12
|
+
"checksum": "4f6ad072cefa5d444009e9c25c6c8b1bfaf20b2320a6cb06fa87720be8755b85",
|
|
13
|
+
"size": 41000833
|
|
14
|
+
},
|
|
15
|
+
"linux-arm64": {
|
|
16
|
+
"binary": "claude.zst",
|
|
17
|
+
"checksum": "39895b469b21aff13b287fba71eca3638fe15739f7641393778f18a52328489f",
|
|
18
|
+
"size": 49384233
|
|
19
|
+
},
|
|
20
|
+
"linux-x64": {
|
|
21
|
+
"binary": "claude.zst",
|
|
22
|
+
"checksum": "d48053b79754a22cf3aba3720539212be4e034793d39cbbc218bbbcaa03981ff",
|
|
23
|
+
"size": 50084581
|
|
24
|
+
},
|
|
25
|
+
"linux-arm64-musl": {
|
|
26
|
+
"binary": "claude.zst",
|
|
27
|
+
"checksum": "66c6be12207ad511e16507accbb0de1394b8e54ae08f676366954382f95788a1",
|
|
28
|
+
"size": 47902768
|
|
29
|
+
},
|
|
30
|
+
"linux-x64-musl": {
|
|
31
|
+
"binary": "claude.zst",
|
|
32
|
+
"checksum": "788b30aa3b115e325beafc1c0e83367ac2003c8af1c2134b6964f6be34d3c35e",
|
|
33
|
+
"size": 48523176
|
|
34
|
+
},
|
|
35
|
+
"win32-x64": {
|
|
36
|
+
"binary": "claude.exe.zst",
|
|
37
|
+
"checksum": "bdb6f1a9d6c1a03a171dd07813aecc41d931211fe68413c2112339ac844b25b0",
|
|
38
|
+
"size": 52302775
|
|
39
|
+
},
|
|
40
|
+
"win32-arm64": {
|
|
41
|
+
"binary": "claude.exe.zst",
|
|
42
|
+
"checksum": "51e72f659e984f401d113b634d1f5674c4deaa3afb499b4394854f67e14480df",
|
|
43
|
+
"size": 49562218
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anthropic-ai/claude-agent-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.41",
|
|
4
4
|
"main": "sdk.mjs",
|
|
5
5
|
"types": "sdk.d.ts",
|
|
6
6
|
"engines": {
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"@img/sharp-linuxmusl-x64": "^0.33.5",
|
|
38
38
|
"@img/sharp-win32-x64": "^0.33.5"
|
|
39
39
|
},
|
|
40
|
-
"claudeCodeVersion": "2.1.
|
|
40
|
+
"claudeCodeVersion": "2.1.41"
|
|
41
41
|
}
|
package/sdk.d.ts
CHANGED
|
@@ -1115,6 +1115,11 @@ export declare interface Query extends AsyncGenerator<SDKMessage, void> {
|
|
|
1115
1115
|
* @param stream - Async iterable of user messages to send
|
|
1116
1116
|
*/
|
|
1117
1117
|
streamInput(stream: AsyncIterable<SDKUserMessage>): Promise<void>;
|
|
1118
|
+
/**
|
|
1119
|
+
* Stop a running task. A task_notification with status 'stopped' will be emitted.
|
|
1120
|
+
* @param taskId - The task ID from task_notification events
|
|
1121
|
+
*/
|
|
1122
|
+
stopTask(taskId: string): Promise<void>;
|
|
1118
1123
|
/**
|
|
1119
1124
|
* Close the query and terminate the underlying process.
|
|
1120
1125
|
* This forcefully ends the query, cleaning up all resources including
|
|
@@ -1252,6 +1257,7 @@ declare type SDKControlInitializeResponse = {
|
|
|
1252
1257
|
* Information about the logged in user's account.
|
|
1253
1258
|
*/
|
|
1254
1259
|
account: coreTypes.AccountInfo;
|
|
1260
|
+
|
|
1255
1261
|
};
|
|
1256
1262
|
|
|
1257
1263
|
/**
|
|
@@ -1323,7 +1329,7 @@ declare type SDKControlRequest = {
|
|
|
1323
1329
|
request: SDKControlRequestInner;
|
|
1324
1330
|
};
|
|
1325
1331
|
|
|
1326
|
-
declare type SDKControlRequestInner = SDKControlInterruptRequest | SDKControlPermissionRequest | SDKControlInitializeRequest | SDKControlSetPermissionModeRequest | SDKControlSetModelRequest | SDKControlSetMaxThinkingTokensRequest | SDKControlMcpStatusRequest | SDKHookCallbackRequest | SDKControlMcpMessageRequest | SDKControlRewindFilesRequest | SDKControlMcpSetServersRequest | SDKControlMcpReconnectRequest | SDKControlMcpToggleRequest;
|
|
1332
|
+
declare type SDKControlRequestInner = SDKControlInterruptRequest | SDKControlPermissionRequest | SDKControlInitializeRequest | SDKControlSetPermissionModeRequest | SDKControlSetModelRequest | SDKControlSetMaxThinkingTokensRequest | SDKControlMcpStatusRequest | SDKHookCallbackRequest | SDKControlMcpMessageRequest | SDKControlRewindFilesRequest | SDKControlMcpSetServersRequest | SDKControlMcpReconnectRequest | SDKControlMcpToggleRequest | SDKControlStopTaskRequest;
|
|
1327
1333
|
|
|
1328
1334
|
declare type SDKControlResponse = {
|
|
1329
1335
|
type: 'control_response';
|
|
@@ -1366,6 +1372,14 @@ declare type SDKControlSetPermissionModeRequest = {
|
|
|
1366
1372
|
mode: coreTypes.PermissionMode;
|
|
1367
1373
|
};
|
|
1368
1374
|
|
|
1375
|
+
/**
|
|
1376
|
+
* Stops a running task.
|
|
1377
|
+
*/
|
|
1378
|
+
declare type SDKControlStopTaskRequest = {
|
|
1379
|
+
subtype: 'stop_task';
|
|
1380
|
+
task_id: string;
|
|
1381
|
+
};
|
|
1382
|
+
|
|
1369
1383
|
export declare type SDKFilesPersistedEvent = {
|
|
1370
1384
|
type: 'system';
|
|
1371
1385
|
subtype: 'files_persisted';
|