@anthropic-ai/claude-code 2.1.14 → 2.1.16

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 +2914 -2192
  2. package/package.json +1 -1
  3. package/sdk-tools.d.ts +20 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-code",
3
- "version": "2.1.14",
3
+ "version": "2.1.16",
4
4
  "bin": {
5
5
  "claude": "cli.js"
6
6
  },
package/sdk-tools.d.ts CHANGED
@@ -58,6 +58,18 @@ export interface AgentInput {
58
58
  * Maximum number of agentic turns (API round-trips) before stopping. Used internally for warmup.
59
59
  */
60
60
  max_turns?: number;
61
+ /**
62
+ * Name for the spawned agent
63
+ */
64
+ name?: string;
65
+ /**
66
+ * Team name for spawning. Uses current team context if omitted.
67
+ */
68
+ team_name?: string;
69
+ /**
70
+ * Permission mode for spawned teammate (e.g., "plan" to require plan approval).
71
+ */
72
+ mode?: "acceptEdits" | "bypassPermissions" | "default" | "delegate" | "dontAsk" | "plan";
61
73
  }
62
74
  export interface BashInput {
63
75
  /**
@@ -142,6 +154,14 @@ export interface ExitPlanModeInput {
142
154
  * The remote session title if pushed to remote
143
155
  */
144
156
  remoteSessionTitle?: string;
157
+ /**
158
+ * Whether to launch a swarm to implement the plan
159
+ */
160
+ launchSwarm?: boolean;
161
+ /**
162
+ * Number of teammates to spawn in the swarm
163
+ */
164
+ teammateCount?: number;
145
165
  [k: string]: unknown;
146
166
  }
147
167
  export interface FileEditInput {