@anthropic-ai/claude-agent-sdk 0.1.59 → 0.1.61
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 +1649 -1462
- package/package.json +1 -1
- package/sdk-tools.d.ts +28 -1
- package/sdk.mjs +2 -2
package/package.json
CHANGED
package/sdk-tools.d.ts
CHANGED
|
@@ -26,7 +26,8 @@ export type ToolInputSchemas =
|
|
|
26
26
|
| TodoWriteInput
|
|
27
27
|
| WebFetchInput
|
|
28
28
|
| WebSearchInput
|
|
29
|
-
| AskUserQuestionInput
|
|
29
|
+
| AskUserQuestionInput
|
|
30
|
+
| AgentOutputInput;
|
|
30
31
|
|
|
31
32
|
export interface AgentInput {
|
|
32
33
|
/**
|
|
@@ -49,6 +50,10 @@ export interface AgentInput {
|
|
|
49
50
|
* Optional agent ID to resume from. If provided, the agent will continue from the previous execution transcript.
|
|
50
51
|
*/
|
|
51
52
|
resume?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Set to true to run this agent in the background. Use AgentOutputTool to read the output later.
|
|
55
|
+
*/
|
|
56
|
+
run_in_background?: boolean;
|
|
52
57
|
}
|
|
53
58
|
export interface BashInput {
|
|
54
59
|
/**
|
|
@@ -94,6 +99,14 @@ export interface BashOutputInput {
|
|
|
94
99
|
filter?: string;
|
|
95
100
|
}
|
|
96
101
|
export interface ExitPlanModeInput {
|
|
102
|
+
/**
|
|
103
|
+
* Whether to launch a swarm to implement the plan
|
|
104
|
+
*/
|
|
105
|
+
launchSwarm?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Number of teammates to spawn in the swarm
|
|
108
|
+
*/
|
|
109
|
+
teammateCount?: number;
|
|
97
110
|
[k: string]: unknown;
|
|
98
111
|
}
|
|
99
112
|
export interface FileEditInput {
|
|
@@ -1476,3 +1489,17 @@ export interface AskUserQuestionInput {
|
|
|
1476
1489
|
[k: string]: string;
|
|
1477
1490
|
};
|
|
1478
1491
|
}
|
|
1492
|
+
export interface AgentOutputInput {
|
|
1493
|
+
/**
|
|
1494
|
+
* The agent ID to retrieve results for
|
|
1495
|
+
*/
|
|
1496
|
+
agentId: string;
|
|
1497
|
+
/**
|
|
1498
|
+
* Whether to block until results are ready
|
|
1499
|
+
*/
|
|
1500
|
+
block?: boolean;
|
|
1501
|
+
/**
|
|
1502
|
+
* Maximum time to wait in seconds
|
|
1503
|
+
*/
|
|
1504
|
+
wait_up_to?: number;
|
|
1505
|
+
}
|
package/sdk.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// (c) Anthropic PBC. All rights reserved. Use is subject to the Legal Agreements outlined here: https://code.claude.com/docs/en/legal-and-compliance.
|
|
3
3
|
|
|
4
|
-
// Version: 0.1.
|
|
4
|
+
// Version: 0.1.61
|
|
5
5
|
|
|
6
6
|
// Want to see the unminified source? We're hiring!
|
|
7
7
|
// https://job-boards.greenhouse.io/anthropic/jobs/4816199008
|
|
@@ -15104,7 +15104,7 @@ function query({
|
|
|
15104
15104
|
const dirname2 = join5(filename, "..");
|
|
15105
15105
|
pathToClaudeCodeExecutable = join5(dirname2, "cli.js");
|
|
15106
15106
|
}
|
|
15107
|
-
process.env.CLAUDE_AGENT_SDK_VERSION = "0.1.
|
|
15107
|
+
process.env.CLAUDE_AGENT_SDK_VERSION = "0.1.61";
|
|
15108
15108
|
const {
|
|
15109
15109
|
abortController = createAbortController(),
|
|
15110
15110
|
additionalDirectories = [],
|