@anthropic-ai/claude-code 2.1.139 → 2.1.141

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 (2) hide show
  1. package/package.json +9 -9
  2. package/sdk-tools.d.ts +119 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-code",
3
- "version": "2.1.139",
3
+ "version": "2.1.141",
4
4
  "bin": {
5
5
  "claude": "bin/claude.exe"
6
6
  },
@@ -21,14 +21,14 @@
21
21
  },
22
22
  "dependencies": {},
23
23
  "optionalDependencies": {
24
- "@anthropic-ai/claude-code-darwin-arm64": "2.1.139",
25
- "@anthropic-ai/claude-code-darwin-x64": "2.1.139",
26
- "@anthropic-ai/claude-code-linux-x64": "2.1.139",
27
- "@anthropic-ai/claude-code-linux-arm64": "2.1.139",
28
- "@anthropic-ai/claude-code-linux-x64-musl": "2.1.139",
29
- "@anthropic-ai/claude-code-linux-arm64-musl": "2.1.139",
30
- "@anthropic-ai/claude-code-win32-x64": "2.1.139",
31
- "@anthropic-ai/claude-code-win32-arm64": "2.1.139"
24
+ "@anthropic-ai/claude-code-darwin-arm64": "2.1.141",
25
+ "@anthropic-ai/claude-code-darwin-x64": "2.1.141",
26
+ "@anthropic-ai/claude-code-linux-x64": "2.1.141",
27
+ "@anthropic-ai/claude-code-linux-arm64": "2.1.141",
28
+ "@anthropic-ai/claude-code-linux-x64-musl": "2.1.141",
29
+ "@anthropic-ai/claude-code-linux-arm64-musl": "2.1.141",
30
+ "@anthropic-ai/claude-code-win32-x64": "2.1.141",
31
+ "@anthropic-ai/claude-code-win32-arm64": "2.1.141"
32
32
  },
33
33
  "files": [
34
34
  "bin/claude.exe",
package/sdk-tools.d.ts CHANGED
@@ -27,6 +27,10 @@ export type ToolInputSchemas =
27
27
  | WebFetchInput
28
28
  | WebSearchInput
29
29
  | AskUserQuestionInput
30
+ | TaskCreateInput
31
+ | TaskGetInput
32
+ | TaskUpdateInput
33
+ | TaskListInput
30
34
  | EnterWorktreeInput
31
35
  | ExitWorktreeInput
32
36
  | ToolOutputSchemas;
@@ -49,7 +53,11 @@ export type ToolOutputSchemas =
49
53
  | WebSearchOutput
50
54
  | AskUserQuestionOutput
51
55
  | EnterWorktreeOutput
52
- | ExitWorktreeOutput;
56
+ | ExitWorktreeOutput
57
+ | TaskCreateOutput
58
+ | TaskGetOutput
59
+ | TaskUpdateOutput
60
+ | TaskListOutput;
53
61
  export type AgentOutput =
54
62
  | {
55
63
  agentId: string;
@@ -467,6 +475,10 @@ export interface GrepInput {
467
475
  * Case insensitive search (rg -i)
468
476
  */
469
477
  "-i"?: boolean;
478
+ /**
479
+ * Print only the matched (non-empty) parts of each matching line, one match per output line (rg -o / --only-matching). Requires output_mode: "content", ignored otherwise. Defaults to false.
480
+ */
481
+ "-o"?: boolean;
470
482
  /**
471
483
  * File type to search (rg --type). Common types: js, py, rust, go, java, etc. More efficient than include for standard file types.
472
484
  */
@@ -2146,6 +2158,73 @@ export interface AskUserQuestionInput {
2146
2158
  source?: string;
2147
2159
  };
2148
2160
  }
2161
+ export interface TaskCreateInput {
2162
+ /**
2163
+ * A brief title for the task
2164
+ */
2165
+ subject: string;
2166
+ /**
2167
+ * What needs to be done
2168
+ */
2169
+ description: string;
2170
+ /**
2171
+ * Present continuous form shown in spinner when in_progress (e.g., "Running tests")
2172
+ */
2173
+ activeForm?: string;
2174
+ /**
2175
+ * Arbitrary metadata to attach to the task
2176
+ */
2177
+ metadata?: {
2178
+ [k: string]: unknown;
2179
+ };
2180
+ }
2181
+ export interface TaskGetInput {
2182
+ /**
2183
+ * The ID of the task to retrieve
2184
+ */
2185
+ taskId: string;
2186
+ }
2187
+ export interface TaskUpdateInput {
2188
+ /**
2189
+ * The ID of the task to update
2190
+ */
2191
+ taskId: string;
2192
+ /**
2193
+ * New subject for the task
2194
+ */
2195
+ subject?: string;
2196
+ /**
2197
+ * New description for the task
2198
+ */
2199
+ description?: string;
2200
+ /**
2201
+ * Present continuous form shown in spinner when in_progress (e.g., "Running tests")
2202
+ */
2203
+ activeForm?: string;
2204
+ /**
2205
+ * New status for the task
2206
+ */
2207
+ status?: ("pending" | "in_progress" | "completed") | "deleted";
2208
+ /**
2209
+ * Task IDs that this task blocks
2210
+ */
2211
+ addBlocks?: string[];
2212
+ /**
2213
+ * Task IDs that block this task
2214
+ */
2215
+ addBlockedBy?: string[];
2216
+ /**
2217
+ * New owner for the task
2218
+ */
2219
+ owner?: string;
2220
+ /**
2221
+ * Metadata keys to merge into the task. Set a key to null to delete it.
2222
+ */
2223
+ metadata?: {
2224
+ [k: string]: unknown;
2225
+ };
2226
+ }
2227
+ export interface TaskListInput {}
2149
2228
  export interface EnterWorktreeInput {
2150
2229
  /**
2151
2230
  * Optional name for a new worktree. Each "/"-separated segment may contain only letters, digits, dots, underscores, and dashes; max 64 chars total. A random name is generated if not provided. Mutually exclusive with `path`.
@@ -2533,6 +2612,10 @@ export interface WebSearchOutput {
2533
2612
  * Time taken to complete the search operation
2534
2613
  */
2535
2614
  durationSeconds: number;
2615
+ /**
2616
+ * Number of web searches performed
2617
+ */
2618
+ searchCount?: number;
2536
2619
  }
2537
2620
  export interface AskUserQuestionOutput {
2538
2621
  /**
@@ -2728,3 +2811,38 @@ export interface ExitWorktreeOutput {
2728
2811
  discardedCommits?: number;
2729
2812
  message: string;
2730
2813
  }
2814
+ export interface TaskCreateOutput {
2815
+ task: {
2816
+ id: string;
2817
+ subject: string;
2818
+ };
2819
+ }
2820
+ export interface TaskGetOutput {
2821
+ task: {
2822
+ id: string;
2823
+ subject: string;
2824
+ description: string;
2825
+ status: "pending" | "in_progress" | "completed";
2826
+ blocks: string[];
2827
+ blockedBy: string[];
2828
+ } | null;
2829
+ }
2830
+ export interface TaskUpdateOutput {
2831
+ success: boolean;
2832
+ taskId: string;
2833
+ updatedFields: string[];
2834
+ error?: string;
2835
+ statusChange?: {
2836
+ from: string;
2837
+ to: string;
2838
+ };
2839
+ }
2840
+ export interface TaskListOutput {
2841
+ tasks: {
2842
+ id: string;
2843
+ subject: string;
2844
+ status: "pending" | "in_progress" | "completed";
2845
+ owner?: string;
2846
+ blockedBy: string[];
2847
+ }[];
2848
+ }