@anthropic-ai/claude-code 2.1.71 → 2.1.73

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-code",
3
- "version": "2.1.71",
3
+ "version": "2.1.73",
4
4
  "bin": {
5
5
  "claude": "cli.js"
6
6
  },
package/sdk-tools.d.ts CHANGED
@@ -33,6 +33,7 @@ export type ToolInputSchemas =
33
33
  | AskUserQuestionInput
34
34
  | ConfigInput
35
35
  | EnterWorktreeInput
36
+ | ExitWorktreeInput
36
37
  | ToolOutputSchemas;
37
38
  export type ToolOutputSchemas =
38
39
  | AgentOutput
@@ -57,7 +58,8 @@ export type ToolOutputSchemas =
57
58
  | WebSearchOutput
58
59
  | AskUserQuestionOutput
59
60
  | ConfigOutput
60
- | EnterWorktreeOutput;
61
+ | EnterWorktreeOutput
62
+ | ExitWorktreeOutput;
61
63
  export type AgentOutput =
62
64
  | {
63
65
  agentId: string;
@@ -264,6 +266,10 @@ export interface AgentInput {
264
266
  * The type of specialized agent to use for this task
265
267
  */
266
268
  subagent_type?: string;
269
+ /**
270
+ * Optional model override for this agent. Takes precedence over the agent definition's model frontmatter. If omitted, uses the agent definition's model, or inherits from the parent.
271
+ */
272
+ model?: "sonnet" | "opus" | "haiku";
267
273
  /**
268
274
  * Optional agent ID to resume from. If provided, the agent will continue from the previous execution transcript.
269
275
  */
@@ -2217,6 +2223,16 @@ export interface EnterWorktreeInput {
2217
2223
  */
2218
2224
  name?: string;
2219
2225
  }
2226
+ export interface ExitWorktreeInput {
2227
+ /**
2228
+ * "keep" leaves the worktree and branch on disk; "remove" deletes both.
2229
+ */
2230
+ action: "keep" | "remove";
2231
+ /**
2232
+ * Required true when action is "remove" and the worktree has uncommitted files or unmerged commits. The tool will refuse and list them otherwise.
2233
+ */
2234
+ discard_changes?: boolean;
2235
+ }
2220
2236
  export interface BashOutput {
2221
2237
  /**
2222
2238
  * The standard output of the command
@@ -2799,3 +2815,13 @@ export interface EnterWorktreeOutput {
2799
2815
  worktreeBranch?: string;
2800
2816
  message: string;
2801
2817
  }
2818
+ export interface ExitWorktreeOutput {
2819
+ action: "keep" | "remove";
2820
+ originalCwd: string;
2821
+ worktreePath: string;
2822
+ worktreeBranch?: string;
2823
+ tmuxSessionName?: string;
2824
+ discardedFiles?: number;
2825
+ discardedCommits?: number;
2826
+ message: string;
2827
+ }
Binary file
package/tree-sitter.wasm DELETED
Binary file