@anthropic-ai/claude-agent-sdk 0.3.160 → 0.3.161
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 +88 -88
- package/bridge.mjs +67 -67
- package/browser-sdk.js +26 -26
- package/manifest.json +19 -19
- package/manifest.zst.json +23 -23
- package/package.json +10 -10
- package/sdk.d.ts +23 -2
- package/sdk.mjs +43 -43
package/manifest.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-06-
|
|
2
|
+
"version": "2.1.161",
|
|
3
|
+
"commit": "6a550aea7c747b1b0ddd8bb61dbe199c4ad41320",
|
|
4
|
+
"buildDate": "2026-06-02T01:55:49Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "5b4dc79eab05f9756c252c71deb339efa4429dffc1967dd8392cf87fcde4867f",
|
|
9
|
+
"size": 218040864
|
|
10
10
|
},
|
|
11
11
|
"darwin-x64": {
|
|
12
12
|
"binary": "claude",
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "6f874fecac8a951f5f1991dc1470bc85a5e24f2588859b89cca0f1b6b5592310",
|
|
14
|
+
"size": 220555024
|
|
15
15
|
},
|
|
16
16
|
"linux-arm64": {
|
|
17
17
|
"binary": "claude",
|
|
18
|
-
"checksum": "
|
|
19
|
-
"size":
|
|
18
|
+
"checksum": "7dfa0a79a2fc9f332057cdc0302f808cba63df7b75e2ccb5a7c1ab62639804e3",
|
|
19
|
+
"size": 243316360
|
|
20
20
|
},
|
|
21
21
|
"linux-x64": {
|
|
22
22
|
"binary": "claude",
|
|
23
|
-
"checksum": "
|
|
24
|
-
"size":
|
|
23
|
+
"checksum": "1f6a22f387a3bce496b6d869389a35dffb5a69c97d9831833f3bd6dc0e6c6c28",
|
|
24
|
+
"size": 243439312
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64-musl": {
|
|
27
27
|
"binary": "claude",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "8318d4039c60fbb21a53e81f93e46a3b1dcdb9b07462f6fee72d99c9d2b93f83",
|
|
29
|
+
"size": 236171096
|
|
30
30
|
},
|
|
31
31
|
"linux-x64-musl": {
|
|
32
32
|
"binary": "claude",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "f8e09e0b16502c277ca8a296245eb59f421e424763a99fd132551b701a713bcf",
|
|
34
|
+
"size": 237833264
|
|
35
35
|
},
|
|
36
36
|
"win32-x64": {
|
|
37
37
|
"binary": "claude.exe",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "3b0b64caf3428fac3751bd1903c350870b34f9e7a4390ac7c2fdb3a711656a04",
|
|
39
|
+
"size": 239007904
|
|
40
40
|
},
|
|
41
41
|
"win32-arm64": {
|
|
42
42
|
"binary": "claude.exe",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
43
|
+
"checksum": "f4a7d910fc5a8b46afc14c36108c46c8b0deeb8f316c6b7e4ede77868ce70acf",
|
|
44
|
+
"size": 234972832
|
|
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.161",
|
|
3
|
+
"commit": "6a550aea7c747b1b0ddd8bb61dbe199c4ad41320",
|
|
4
|
+
"buildDate": "2026-06-02T02:02:00Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude.zst",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "dbcf5e80cca576a2128e65625b1950f91d2b98bacfa6e939f597c75bd0b5602a",
|
|
9
|
+
"size": 44863384,
|
|
10
10
|
"bundle": {
|
|
11
|
-
"checksum": "
|
|
12
|
-
"size":
|
|
11
|
+
"checksum": "ea3ad78ffc34f6700f489b3dd2a1e2e35c722d489ca54d62b63afcacb8911b5e",
|
|
12
|
+
"size": 44871367
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"darwin-x64": {
|
|
16
16
|
"binary": "claude.zst",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "227bcd6d41ed94d6ad6186fa9075f39aae9675ea480e47d5b09a9ea691a0a0a0",
|
|
18
|
+
"size": 46783803,
|
|
19
19
|
"bundle": {
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "baba937aa2b5f2fee497bbce09bb84f76fd5a076f49aebee32b46e771bbf9b10",
|
|
21
|
+
"size": 46791947
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"linux-arm64": {
|
|
25
25
|
"binary": "claude.zst",
|
|
26
|
-
"checksum": "
|
|
27
|
-
"size":
|
|
26
|
+
"checksum": "d46ca4ec38fe511d55357dedb9a437a6502627844370f0b548a124d6a1b436d0",
|
|
27
|
+
"size": 52578824
|
|
28
28
|
},
|
|
29
29
|
"linux-x64": {
|
|
30
30
|
"binary": "claude.zst",
|
|
31
|
-
"checksum": "
|
|
32
|
-
"size":
|
|
31
|
+
"checksum": "65faa42998853bdff28b48f6857627335eb42dddb14c9b3d40fd769352d8f285",
|
|
32
|
+
"size": 53186973
|
|
33
33
|
},
|
|
34
34
|
"linux-arm64-musl": {
|
|
35
35
|
"binary": "claude.zst",
|
|
36
|
-
"checksum": "
|
|
37
|
-
"size":
|
|
36
|
+
"checksum": "f08efd1c7dcb0af9fcf94c62401307263c8fb17a6ac376b9563b9add74ff0f25",
|
|
37
|
+
"size": 51204872
|
|
38
38
|
},
|
|
39
39
|
"linux-x64-musl": {
|
|
40
40
|
"binary": "claude.zst",
|
|
41
|
-
"checksum": "
|
|
42
|
-
"size":
|
|
41
|
+
"checksum": "277891cd44e6f35050bce322cc99e13753acdc2d5bb41664d6de9ccfaf161239",
|
|
42
|
+
"size": 51901930
|
|
43
43
|
},
|
|
44
44
|
"win32-x64": {
|
|
45
45
|
"binary": "claude.exe.zst",
|
|
46
|
-
"checksum": "
|
|
47
|
-
"size":
|
|
46
|
+
"checksum": "7a53001a2a895dfd019ff275134e2cd4332ad21b3016e997c554775bb5737ab3",
|
|
47
|
+
"size": 53917556
|
|
48
48
|
},
|
|
49
49
|
"win32-arm64": {
|
|
50
50
|
"binary": "claude.exe.zst",
|
|
51
|
-
"checksum": "
|
|
52
|
-
"size":
|
|
51
|
+
"checksum": "47051d39f2d78603437d5cba03ef2885e9448d84160497b3d2890e7ada96a4ad",
|
|
52
|
+
"size": 52194218
|
|
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.161",
|
|
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.161",
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.161",
|
|
66
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.161",
|
|
67
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.161",
|
|
68
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.161",
|
|
69
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.161",
|
|
70
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.161",
|
|
71
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.161"
|
|
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.161"
|
|
90
90
|
}
|
package/sdk.d.ts
CHANGED
|
@@ -294,6 +294,9 @@ declare type ControlErrorResponse = {
|
|
|
294
294
|
subtype: 'error';
|
|
295
295
|
request_id: string;
|
|
296
296
|
error: string;
|
|
297
|
+
/**
|
|
298
|
+
* Permission requests still awaiting a response. Sent on the `initialize` response so a client joining an already-initialized session learns about in-flight prompts.
|
|
299
|
+
*/
|
|
297
300
|
pending_permission_requests?: SDKControlRequest[];
|
|
298
301
|
};
|
|
299
302
|
|
|
@@ -301,6 +304,10 @@ declare type ControlResponse = {
|
|
|
301
304
|
subtype: 'success';
|
|
302
305
|
request_id: string;
|
|
303
306
|
response?: Record<string, unknown>;
|
|
307
|
+
/**
|
|
308
|
+
* Permission requests still awaiting a response. Sent on the `initialize` response so a client joining an already-initialized session learns about in-flight prompts.
|
|
309
|
+
*/
|
|
310
|
+
pending_permission_requests?: SDKControlRequest[];
|
|
304
311
|
};
|
|
305
312
|
|
|
306
313
|
declare namespace coreTypes {
|
|
@@ -385,6 +392,7 @@ declare namespace coreTypes {
|
|
|
385
392
|
SDKAssistantMessageError,
|
|
386
393
|
SDKAssistantMessage,
|
|
387
394
|
SDKAuthStatusMessage,
|
|
395
|
+
SDKCommandsChangedMessage,
|
|
388
396
|
SDKCompactBoundaryMessage,
|
|
389
397
|
SDKDeferredToolUse,
|
|
390
398
|
SDKElicitationCompleteMessage,
|
|
@@ -2631,7 +2639,7 @@ export declare type SDKAssistantMessage = {
|
|
|
2631
2639
|
|
|
2632
2640
|
};
|
|
2633
2641
|
|
|
2634
|
-
export declare type SDKAssistantMessageError = 'authentication_failed' | 'oauth_org_not_allowed' | 'billing_error' | 'rate_limit' | 'invalid_request' | 'model_not_found' | 'server_error' | 'unknown' | 'max_output_tokens';
|
|
2642
|
+
export declare type SDKAssistantMessageError = 'authentication_failed' | 'oauth_org_not_allowed' | 'billing_error' | 'rate_limit' | 'overloaded' | 'invalid_request' | 'model_not_found' | 'server_error' | 'unknown' | 'max_output_tokens';
|
|
2635
2643
|
|
|
2636
2644
|
export declare type SDKAuthStatusMessage = {
|
|
2637
2645
|
type: 'auth_status';
|
|
@@ -2644,6 +2652,17 @@ export declare type SDKAuthStatusMessage = {
|
|
|
2644
2652
|
|
|
2645
2653
|
export declare type SdkBeta = 'context-1m-2025-08-07';
|
|
2646
2654
|
|
|
2655
|
+
/**
|
|
2656
|
+
* Fire-and-forget push of the full slash-command list after a mid-session change (e.g. skills discovered dynamically as the agent works in a subdirectory). Clients should REPLACE their cached command list with this payload: supportedCommands() is captured once at initialize and never reflects mid-session changes, so a client re-fetch would return the stale init list.
|
|
2657
|
+
*/
|
|
2658
|
+
export declare type SDKCommandsChangedMessage = {
|
|
2659
|
+
type: 'system';
|
|
2660
|
+
subtype: 'commands_changed';
|
|
2661
|
+
commands: SlashCommand[];
|
|
2662
|
+
uuid: UUID;
|
|
2663
|
+
session_id: string;
|
|
2664
|
+
};
|
|
2665
|
+
|
|
2647
2666
|
export declare type SDKCompactBoundaryMessage = {
|
|
2648
2667
|
type: 'system';
|
|
2649
2668
|
subtype: 'compact_boundary';
|
|
@@ -3298,7 +3317,7 @@ export declare type SDKMemoryRecallMessage = {
|
|
|
3298
3317
|
session_id: string;
|
|
3299
3318
|
};
|
|
3300
3319
|
|
|
3301
|
-
export declare type SDKMessage = SDKAssistantMessage | SDKUserMessage | SDKUserMessageReplay | SDKResultMessage | SDKSystemMessage | SDKPartialAssistantMessage | SDKCompactBoundaryMessage | SDKStatusMessage | SDKAPIRetryMessage | SDKLocalCommandOutputMessage | SDKHookStartedMessage | SDKHookProgressMessage | SDKHookResponseMessage | SDKPluginInstallMessage | SDKToolProgressMessage | SDKAuthStatusMessage | SDKTaskNotificationMessage | SDKTaskStartedMessage | SDKTaskUpdatedMessage | SDKTaskProgressMessage | SDKThinkingTokensMessage | SDKSessionStateChangedMessage | SDKNotificationMessage | SDKFilesPersistedEvent | SDKToolUseSummaryMessage | SDKMemoryRecallMessage | SDKRateLimitEvent | SDKElicitationCompleteMessage | SDKPermissionDeniedMessage | SDKPromptSuggestionMessage | SDKMirrorErrorMessage;
|
|
3320
|
+
export declare type SDKMessage = SDKAssistantMessage | SDKUserMessage | SDKUserMessageReplay | SDKResultMessage | SDKSystemMessage | SDKPartialAssistantMessage | SDKCompactBoundaryMessage | SDKStatusMessage | SDKAPIRetryMessage | SDKLocalCommandOutputMessage | SDKHookStartedMessage | SDKHookProgressMessage | SDKHookResponseMessage | SDKPluginInstallMessage | SDKToolProgressMessage | SDKAuthStatusMessage | SDKTaskNotificationMessage | SDKTaskStartedMessage | SDKTaskUpdatedMessage | SDKTaskProgressMessage | SDKThinkingTokensMessage | SDKSessionStateChangedMessage | SDKCommandsChangedMessage | SDKNotificationMessage | SDKFilesPersistedEvent | SDKToolUseSummaryMessage | SDKMemoryRecallMessage | SDKRateLimitEvent | SDKElicitationCompleteMessage | SDKPermissionDeniedMessage | SDKPromptSuggestionMessage | SDKMirrorErrorMessage;
|
|
3302
3321
|
|
|
3303
3322
|
/**
|
|
3304
3323
|
* Provenance of a user-role message (peer session, team lead, channel). Absent or `human` means keyboard input from the user.
|
|
@@ -3316,6 +3335,8 @@ export declare type SDKMessageOrigin = {
|
|
|
3316
3335
|
kind: 'task-notification';
|
|
3317
3336
|
} | {
|
|
3318
3337
|
kind: 'coordinator';
|
|
3338
|
+
} | {
|
|
3339
|
+
kind: 'auto-continuation';
|
|
3319
3340
|
};
|
|
3320
3341
|
|
|
3321
3342
|
/**
|