@anthropic-ai/claude-code 2.0.27 → 2.0.28

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.
Files changed (3) hide show
  1. package/cli.js +891 -893
  2. package/package.json +1 -1
  3. package/sdk-tools.d.ts +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-code",
3
- "version": "2.0.27",
3
+ "version": "2.0.28",
4
4
  "main": "sdk.mjs",
5
5
  "types": "sdk.d.ts",
6
6
  "bin": {
package/sdk-tools.d.ts CHANGED
@@ -40,6 +40,14 @@ export interface AgentInput {
40
40
  * The type of specialized agent to use for this task
41
41
  */
42
42
  subagent_type: string;
43
+ /**
44
+ * Optional model to use for this agent. If not specified, inherits from parent. Prefer haiku for quick, straightforward tasks to minimize cost and latency.
45
+ */
46
+ model?: "sonnet" | "opus" | "haiku";
47
+ /**
48
+ * Optional agent ID to resume from. If provided, the agent will continue from the previous execution transcript.
49
+ */
50
+ resume?: string;
43
51
  }
44
52
  export interface BashInput {
45
53
  /**