@anthropic-ai/claude-code 2.1.18 → 2.1.19

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 +2257 -2216
  2. package/package.json +1 -1
  3. package/sdk-tools.d.ts +12 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-code",
3
- "version": "2.1.18",
3
+ "version": "2.1.19",
4
4
  "bin": {
5
5
  "claude": "cli.js"
6
6
  },
package/sdk-tools.d.ts CHANGED
@@ -18,7 +18,7 @@ export type ToolInputSchemas =
18
18
  | FileWriteInput
19
19
  | GlobInput
20
20
  | GrepInput
21
- | KillShellInput
21
+ | TaskStopInput
22
22
  | ListMcpResourcesInput
23
23
  | McpInput
24
24
  | NotebookEditInput
@@ -58,6 +58,10 @@ 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
+ * Tools to grant this agent. User will be prompted to approve if not already allowed. Example: ["Bash(git commit*)", "Read"]
63
+ */
64
+ allowed_tools?: string[];
61
65
  /**
62
66
  * Name for the spawned agent
63
67
  */
@@ -270,11 +274,15 @@ export interface GrepInput {
270
274
  */
271
275
  multiline?: boolean;
272
276
  }
273
- export interface KillShellInput {
277
+ export interface TaskStopInput {
278
+ /**
279
+ * The ID of the background task to stop
280
+ */
281
+ task_id?: string;
274
282
  /**
275
- * The ID of the background shell to kill
283
+ * Deprecated: use task_id instead
276
284
  */
277
- shell_id: string;
285
+ shell_id?: string;
278
286
  }
279
287
  export interface ListMcpResourcesInput {
280
288
  /**