@anthropic-ai/claude-code 2.1.64 → 2.1.67
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 +1842 -1948
- package/package.json +1 -1
- package/sdk-tools.d.ts +13 -8
package/package.json
CHANGED
package/sdk-tools.d.ts
CHANGED
|
@@ -108,6 +108,11 @@ export type AgentOutput =
|
|
|
108
108
|
* Whether the calling agent has Read/Bash tools to check progress
|
|
109
109
|
*/
|
|
110
110
|
canReadOutputFile?: boolean;
|
|
111
|
+
}
|
|
112
|
+
| {
|
|
113
|
+
status: "sub_agent_entered";
|
|
114
|
+
description: string;
|
|
115
|
+
message: string;
|
|
111
116
|
};
|
|
112
117
|
export type FileReadOutput =
|
|
113
118
|
| {
|
|
@@ -264,6 +269,10 @@ export interface AgentInput {
|
|
|
264
269
|
* The type of specialized agent to use for this task
|
|
265
270
|
*/
|
|
266
271
|
subagent_type: string;
|
|
272
|
+
/**
|
|
273
|
+
* Optional model to use for this agent. If not specified, inherits from parent. Prefer haiku for quick, straightforward tasks to minimize cost and latency.
|
|
274
|
+
*/
|
|
275
|
+
model?: "sonnet" | "opus" | "haiku";
|
|
267
276
|
/**
|
|
268
277
|
* Optional agent ID to resume from. If provided, the agent will continue from the previous execution transcript.
|
|
269
278
|
*/
|
|
@@ -272,6 +281,10 @@ export interface AgentInput {
|
|
|
272
281
|
* Set to true to run this agent in the background. The tool result will include an output_file path - use Read tool or Bash tail to check on output.
|
|
273
282
|
*/
|
|
274
283
|
run_in_background?: boolean;
|
|
284
|
+
/**
|
|
285
|
+
* Maximum number of agentic turns (API round-trips) before stopping. Used internally for warmup.
|
|
286
|
+
*/
|
|
287
|
+
max_turns?: number;
|
|
275
288
|
/**
|
|
276
289
|
* Name for the spawned agent
|
|
277
290
|
*/
|
|
@@ -1918,10 +1931,6 @@ export interface ExitPlanModeOutput {
|
|
|
1918
1931
|
* Unique identifier for the plan approval request
|
|
1919
1932
|
*/
|
|
1920
1933
|
requestId?: string;
|
|
1921
|
-
/**
|
|
1922
|
-
* Whether this plan was generated by an ultraplan remote session
|
|
1923
|
-
*/
|
|
1924
|
-
isUltraplan?: boolean;
|
|
1925
1934
|
}
|
|
1926
1935
|
export interface FileEditOutput {
|
|
1927
1936
|
/**
|
|
@@ -2101,10 +2110,6 @@ export interface ReadMcpResourceOutput {
|
|
|
2101
2110
|
* Text content of the resource
|
|
2102
2111
|
*/
|
|
2103
2112
|
text?: string;
|
|
2104
|
-
/**
|
|
2105
|
-
* Path where binary blob content was saved
|
|
2106
|
-
*/
|
|
2107
|
-
blobSavedTo?: string;
|
|
2108
2113
|
}[];
|
|
2109
2114
|
}
|
|
2110
2115
|
export interface SubscribeMcpResourceOutput {
|