@anthropic-ai/claude-agent-sdk 0.1.70 → 0.1.72
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 +1601 -1439
- package/entrypoints/agentSdkTypes.d.ts +8 -6
- package/package.json +2 -2
- package/sdk.mjs +23663 -12174
|
@@ -645,8 +645,8 @@ export interface SDKSession {
|
|
|
645
645
|
readonly sessionId: string;
|
|
646
646
|
/** Send a message to the agent */
|
|
647
647
|
send(message: string | SDKUserMessage): Promise<void>;
|
|
648
|
-
/**
|
|
649
|
-
|
|
648
|
+
/** Stream messages from the agent */
|
|
649
|
+
stream(): AsyncGenerator<SDKMessage, void>;
|
|
650
650
|
/** Close the session */
|
|
651
651
|
close(): void;
|
|
652
652
|
/** Async disposal support (calls close if not already closed) */
|
|
@@ -734,8 +734,9 @@ export type Options = {
|
|
|
734
734
|
*/
|
|
735
735
|
agents?: Record<string, AgentDefinition>;
|
|
736
736
|
/**
|
|
737
|
-
* List of tool names that are allowed
|
|
738
|
-
* will
|
|
737
|
+
* List of tool names that are auto-allowed without prompting for permission.
|
|
738
|
+
* These tools will execute automatically without asking the user for approval.
|
|
739
|
+
* To restrict which tools are available, use the `tools` option instead.
|
|
739
740
|
*/
|
|
740
741
|
allowedTools?: string[];
|
|
741
742
|
/**
|
|
@@ -753,8 +754,9 @@ export type Options = {
|
|
|
753
754
|
*/
|
|
754
755
|
cwd?: string;
|
|
755
756
|
/**
|
|
756
|
-
* List of tool names that are disallowed. These tools will
|
|
757
|
-
* even if they would
|
|
757
|
+
* List of tool names that are disallowed. These tools will be removed
|
|
758
|
+
* from the model's context and cannot be used, even if they would
|
|
759
|
+
* otherwise be allowed.
|
|
758
760
|
*/
|
|
759
761
|
disallowedTools?: string[];
|
|
760
762
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anthropic-ai/claude-agent-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.72",
|
|
4
4
|
"main": "sdk.mjs",
|
|
5
5
|
"types": "sdk.d.ts",
|
|
6
6
|
"engines": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"zod": "^3.24.1"
|
|
28
|
+
"zod": "^3.24.1 || ^4.0.0"
|
|
29
29
|
},
|
|
30
30
|
"optionalDependencies": {
|
|
31
31
|
"@img/sharp-darwin-arm64": "^0.33.5",
|