@anthropic-ai/claude-code 2.1.19 → 2.1.21

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 +2727 -2531
  2. package/package.json +1 -1
  3. package/sdk-tools.d.ts +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-code",
3
- "version": "2.1.19",
3
+ "version": "2.1.21",
4
4
  "bin": {
5
5
  "claude": "cli.js"
6
6
  },
package/sdk-tools.d.ts CHANGED
@@ -58,10 +58,6 @@ 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[];
65
61
  /**
66
62
  * Name for the spawned agent
67
63
  */
@@ -246,9 +242,13 @@ export interface GrepInput {
246
242
  */
247
243
  "-A"?: number;
248
244
  /**
249
- * Number of lines to show before and after each match (rg -C). Requires output_mode: "content", ignored otherwise.
245
+ * Alias for context.
250
246
  */
251
247
  "-C"?: number;
248
+ /**
249
+ * Number of lines to show before and after each match (rg -C). Requires output_mode: "content", ignored otherwise.
250
+ */
251
+ context?: number;
252
252
  /**
253
253
  * Show line numbers in output (rg -n). Requires output_mode: "content", ignored otherwise. Defaults to true.
254
254
  */