@anthropic-ai/claude-agent-sdk 0.2.44 → 0.2.45
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 +2059 -2093
- package/manifest.json +18 -18
- package/manifest.zst.json +18 -18
- package/package.json +2 -2
- package/sdk.d.ts +32 -3
- package/sdk.mjs +14 -14
package/manifest.json
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"buildDate": "2026-02-
|
|
2
|
+
"version": "2.1.45",
|
|
3
|
+
"buildDate": "2026-02-17T17:35:41Z",
|
|
4
4
|
"platforms": {
|
|
5
5
|
"darwin-arm64": {
|
|
6
6
|
"binary": "claude",
|
|
7
|
-
"checksum": "
|
|
8
|
-
"size":
|
|
7
|
+
"checksum": "e65af16b9b732ce01d6423c281f7e6a255b5bb8850780becf999153386e37fd4",
|
|
8
|
+
"size": 182959200
|
|
9
9
|
},
|
|
10
10
|
"darwin-x64": {
|
|
11
11
|
"binary": "claude",
|
|
12
|
-
"checksum": "
|
|
13
|
-
"size":
|
|
12
|
+
"checksum": "d10d02e6bcdae7cc8d51a083cb7e9333e792d36ed73c9496035ef955b394b6b9",
|
|
13
|
+
"size": 188084544
|
|
14
14
|
},
|
|
15
15
|
"linux-arm64": {
|
|
16
16
|
"binary": "claude",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "e678f0e8112e470a92723ad6883ecb1940d1411548f678f21ea4e9cc41057e7f",
|
|
18
|
+
"size": 220122500
|
|
19
19
|
},
|
|
20
20
|
"linux-x64": {
|
|
21
21
|
"binary": "claude",
|
|
22
|
-
"checksum": "
|
|
23
|
-
"size":
|
|
22
|
+
"checksum": "e7e847383c4666994707741e8e56abf84dd2430153620d3ba5ff5a849375e4de",
|
|
23
|
+
"size": 223008769
|
|
24
24
|
},
|
|
25
25
|
"linux-arm64-musl": {
|
|
26
26
|
"binary": "claude",
|
|
27
|
-
"checksum": "
|
|
28
|
-
"size":
|
|
27
|
+
"checksum": "fd8b539306b3de00830a1c966ec80cfd8b62b50f2ea3a31435a9120512cf930c",
|
|
28
|
+
"size": 213289508
|
|
29
29
|
},
|
|
30
30
|
"linux-x64-musl": {
|
|
31
31
|
"binary": "claude",
|
|
32
|
-
"checksum": "
|
|
33
|
-
"size":
|
|
32
|
+
"checksum": "120fe46cc389a60913887f169ce0850ac4c4be1349c54d334176ac9d08c1d91c",
|
|
33
|
+
"size": 215508825
|
|
34
34
|
},
|
|
35
35
|
"win32-x64": {
|
|
36
36
|
"binary": "claude.exe",
|
|
37
|
-
"checksum": "
|
|
38
|
-
"size":
|
|
37
|
+
"checksum": "c1342df95df67f2e95c52abbdd1146d77392465bfd6ae0af15fa534ac7da7fa0",
|
|
38
|
+
"size": 232642720
|
|
39
39
|
},
|
|
40
40
|
"win32-arm64": {
|
|
41
41
|
"binary": "claude.exe",
|
|
42
|
-
"checksum": "
|
|
43
|
-
"size":
|
|
42
|
+
"checksum": "08e8f106f0baa87b6b92451121118b0b7949bdfdb5c6a8fe3704d5742fd62662",
|
|
43
|
+
"size": 224669344
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
}
|
package/manifest.zst.json
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"buildDate": "2026-02-
|
|
2
|
+
"version": "2.1.45",
|
|
3
|
+
"buildDate": "2026-02-17T17:35:42Z",
|
|
4
4
|
"platforms": {
|
|
5
5
|
"darwin-arm64": {
|
|
6
6
|
"binary": "claude.zst",
|
|
7
|
-
"checksum": "
|
|
8
|
-
"size":
|
|
7
|
+
"checksum": "7d0f0d36a4c83d731949daadc21514d36aea28bebd745e769930faa6d126507f",
|
|
8
|
+
"size": 38821020
|
|
9
9
|
},
|
|
10
10
|
"darwin-x64": {
|
|
11
11
|
"binary": "claude.zst",
|
|
12
|
-
"checksum": "
|
|
13
|
-
"size":
|
|
12
|
+
"checksum": "2b3a0cbd9e04c0813af928d041a5abfdafbac34f2c9e2bd9773dece72c7458bb",
|
|
13
|
+
"size": 41004976
|
|
14
14
|
},
|
|
15
15
|
"linux-arm64": {
|
|
16
16
|
"binary": "claude.zst",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "f2c76a92b255d573be21dbae75886967307996ec001f945caf1e44ef65a87717",
|
|
18
|
+
"size": 49380357
|
|
19
19
|
},
|
|
20
20
|
"linux-x64": {
|
|
21
21
|
"binary": "claude.zst",
|
|
22
|
-
"checksum": "
|
|
23
|
-
"size":
|
|
22
|
+
"checksum": "9206e4677c578df48706fc11dd796396a054505cd837a1248ca65fd5e7104769",
|
|
23
|
+
"size": 50085263
|
|
24
24
|
},
|
|
25
25
|
"linux-arm64-musl": {
|
|
26
26
|
"binary": "claude.zst",
|
|
27
|
-
"checksum": "
|
|
28
|
-
"size":
|
|
27
|
+
"checksum": "d81778e211d4d4161a4fb7f2856ee2faeb7819322f35479cc51b0518c65a95f7",
|
|
28
|
+
"size": 47895249
|
|
29
29
|
},
|
|
30
30
|
"linux-x64-musl": {
|
|
31
31
|
"binary": "claude.zst",
|
|
32
|
-
"checksum": "
|
|
33
|
-
"size":
|
|
32
|
+
"checksum": "aa67858b722bb1699e0603ea2de30ff87130414f46c86c874619b315a2e3ed7d",
|
|
33
|
+
"size": 48528460
|
|
34
34
|
},
|
|
35
35
|
"win32-x64": {
|
|
36
36
|
"binary": "claude.exe.zst",
|
|
37
|
-
"checksum": "
|
|
38
|
-
"size":
|
|
37
|
+
"checksum": "288668a551e476d6b4c97aa59562adc23b1895ca31a10dd57041f4d61121c706",
|
|
38
|
+
"size": 52292188
|
|
39
39
|
},
|
|
40
40
|
"win32-arm64": {
|
|
41
41
|
"binary": "claude.exe.zst",
|
|
42
|
-
"checksum": "
|
|
43
|
-
"size":
|
|
42
|
+
"checksum": "cceabed3312316e7981ae045dc9e10ae9d48fd3449c86e4b08c2d786cdb40f5f",
|
|
43
|
+
"size": 49563391
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
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.45",
|
|
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.45"
|
|
41
41
|
}
|
package/sdk.d.ts
CHANGED
|
@@ -142,6 +142,7 @@ declare namespace coreTypes {
|
|
|
142
142
|
export {
|
|
143
143
|
SandboxSettings,
|
|
144
144
|
SandboxNetworkConfig,
|
|
145
|
+
SandboxFilesystemConfig,
|
|
145
146
|
SandboxIgnoreViolations,
|
|
146
147
|
NonNullableUsage,
|
|
147
148
|
HOOK_EVENTS,
|
|
@@ -208,6 +209,7 @@ declare namespace coreTypes {
|
|
|
208
209
|
SDKStatus,
|
|
209
210
|
SDKSystemMessage,
|
|
210
211
|
SDKTaskNotificationMessage,
|
|
212
|
+
SDKTaskStartedMessage,
|
|
211
213
|
SDKToolProgressMessage,
|
|
212
214
|
SDKToolUseSummaryMessage,
|
|
213
215
|
SDKUserMessageReplay,
|
|
@@ -678,7 +680,7 @@ export declare type Options = {
|
|
|
678
680
|
mcpServers?: Record<string, McpServerConfig>;
|
|
679
681
|
/**
|
|
680
682
|
* Claude model to use. Defaults to the CLI default model.
|
|
681
|
-
* Examples: 'claude-sonnet-4-
|
|
683
|
+
* Examples: 'claude-sonnet-4-6', 'claude-opus-4-6'
|
|
682
684
|
*/
|
|
683
685
|
model?: string;
|
|
684
686
|
/**
|
|
@@ -1147,6 +1149,17 @@ export declare type RewindFilesResult = {
|
|
|
1147
1149
|
deletions?: number;
|
|
1148
1150
|
};
|
|
1149
1151
|
|
|
1152
|
+
export declare type SandboxFilesystemConfig = NonNullable<z.infer<typeof SandboxFilesystemConfigSchema>>;
|
|
1153
|
+
|
|
1154
|
+
/**
|
|
1155
|
+
* Filesystem configuration schema for sandbox.
|
|
1156
|
+
*/
|
|
1157
|
+
declare const SandboxFilesystemConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
1158
|
+
allowWrite: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1159
|
+
denyWrite: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1160
|
+
denyRead: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1161
|
+
}, z.core.$strip>>;
|
|
1162
|
+
|
|
1150
1163
|
export declare type SandboxIgnoreViolations = NonNullable<SandboxSettings['ignoreViolations']>;
|
|
1151
1164
|
|
|
1152
1165
|
export declare type SandboxNetworkConfig = NonNullable<z.infer<typeof SandboxNetworkConfigSchema>>;
|
|
@@ -1182,6 +1195,11 @@ declare const SandboxSettingsSchema: z.ZodObject<{
|
|
|
1182
1195
|
httpProxyPort: z.ZodOptional<z.ZodNumber>;
|
|
1183
1196
|
socksProxyPort: z.ZodOptional<z.ZodNumber>;
|
|
1184
1197
|
}, z.core.$strip>>;
|
|
1198
|
+
filesystem: z.ZodOptional<z.ZodObject<{
|
|
1199
|
+
allowWrite: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1200
|
+
denyWrite: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1201
|
+
denyRead: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1202
|
+
}, z.core.$strip>>;
|
|
1185
1203
|
ignoreViolations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
1186
1204
|
enableWeakerNestedSandbox: z.ZodOptional<z.ZodBoolean>;
|
|
1187
1205
|
excludedCommands: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -1473,7 +1491,7 @@ export declare type SdkMcpToolDefinition<Schema extends AnyZodRawShape = AnyZodR
|
|
|
1473
1491
|
handler: (args: InferShape<Schema>, extra: unknown) => Promise<CallToolResult>;
|
|
1474
1492
|
};
|
|
1475
1493
|
|
|
1476
|
-
export declare type SDKMessage = SDKAssistantMessage | SDKUserMessage | SDKUserMessageReplay | SDKResultMessage | SDKSystemMessage | SDKPartialAssistantMessage | SDKCompactBoundaryMessage | SDKStatusMessage | SDKHookStartedMessage | SDKHookProgressMessage | SDKHookResponseMessage | SDKToolProgressMessage | SDKAuthStatusMessage | SDKTaskNotificationMessage | SDKFilesPersistedEvent | SDKToolUseSummaryMessage;
|
|
1494
|
+
export declare type SDKMessage = SDKAssistantMessage | SDKUserMessage | SDKUserMessageReplay | SDKResultMessage | SDKSystemMessage | SDKPartialAssistantMessage | SDKCompactBoundaryMessage | SDKStatusMessage | SDKHookStartedMessage | SDKHookProgressMessage | SDKHookResponseMessage | SDKToolProgressMessage | SDKAuthStatusMessage | SDKTaskNotificationMessage | SDKTaskStartedMessage | SDKFilesPersistedEvent | SDKToolUseSummaryMessage | SDKRateLimitEvent;
|
|
1477
1495
|
|
|
1478
1496
|
export declare type SDKPartialAssistantMessage = {
|
|
1479
1497
|
type: 'stream_event';
|
|
@@ -1667,6 +1685,17 @@ export declare type SDKTaskNotificationMessage = {
|
|
|
1667
1685
|
session_id: string;
|
|
1668
1686
|
};
|
|
1669
1687
|
|
|
1688
|
+
export declare type SDKTaskStartedMessage = {
|
|
1689
|
+
type: 'system';
|
|
1690
|
+
subtype: 'task_started';
|
|
1691
|
+
task_id: string;
|
|
1692
|
+
tool_use_id?: string;
|
|
1693
|
+
description: string;
|
|
1694
|
+
task_type?: string;
|
|
1695
|
+
uuid: UUID;
|
|
1696
|
+
session_id: string;
|
|
1697
|
+
};
|
|
1698
|
+
|
|
1670
1699
|
export declare type SDKToolProgressMessage = {
|
|
1671
1700
|
type: 'tool_progress';
|
|
1672
1701
|
tool_use_id: string;
|
|
@@ -1917,7 +1946,7 @@ export declare function unstable_v2_createSession(_options: SDKSessionOptions):
|
|
|
1917
1946
|
* @example
|
|
1918
1947
|
* ```typescript
|
|
1919
1948
|
* const result = await unstable_v2_prompt("What files are here?", {
|
|
1920
|
-
* model: 'claude-sonnet-4-
|
|
1949
|
+
* model: 'claude-sonnet-4-6'
|
|
1921
1950
|
* })
|
|
1922
1951
|
* ```
|
|
1923
1952
|
*/
|