@anthropic-ai/claude-code 2.1.209 → 2.1.211

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 +55 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-code",
3
- "version": "2.1.209",
3
+ "version": "2.1.211",
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.209",
25
- "@anthropic-ai/claude-code-darwin-x64": "2.1.209",
26
- "@anthropic-ai/claude-code-linux-x64": "2.1.209",
27
- "@anthropic-ai/claude-code-linux-arm64": "2.1.209",
28
- "@anthropic-ai/claude-code-linux-x64-musl": "2.1.209",
29
- "@anthropic-ai/claude-code-linux-arm64-musl": "2.1.209",
30
- "@anthropic-ai/claude-code-win32-x64": "2.1.209",
31
- "@anthropic-ai/claude-code-win32-arm64": "2.1.209"
24
+ "@anthropic-ai/claude-code-darwin-arm64": "2.1.211",
25
+ "@anthropic-ai/claude-code-darwin-x64": "2.1.211",
26
+ "@anthropic-ai/claude-code-linux-x64": "2.1.211",
27
+ "@anthropic-ai/claude-code-linux-arm64": "2.1.211",
28
+ "@anthropic-ai/claude-code-linux-x64-musl": "2.1.211",
29
+ "@anthropic-ai/claude-code-linux-arm64-musl": "2.1.211",
30
+ "@anthropic-ai/claude-code-win32-x64": "2.1.211",
31
+ "@anthropic-ai/claude-code-win32-arm64": "2.1.211"
32
32
  },
33
33
  "files": [
34
34
  "bin/claude.exe",
package/sdk-tools.d.ts CHANGED
@@ -20,6 +20,7 @@ export type ToolInputSchemas =
20
20
  | GrepInput
21
21
  | TaskStopInput
22
22
  | ListMcpResourcesInput
23
+ | RefreshMcpToolsInput
23
24
  | McpInput
24
25
  | NotebookEditInput
25
26
  | ReadMcpResourceDirInput
@@ -61,6 +62,7 @@ export type ToolOutputSchemas =
61
62
  | GrepOutput
62
63
  | TaskStopOutput
63
64
  | ListMcpResourcesOutput
65
+ | RefreshMcpToolsOutput
64
66
  | McpOutput
65
67
  | NotebookEditOutput
66
68
  | ReadMcpResourceDirOutput
@@ -341,6 +343,32 @@ export type ListMcpResourcesOutput = {
341
343
  */
342
344
  server: string;
343
345
  }[];
346
+ export type RefreshMcpToolsOutput = {
347
+ /**
348
+ * Server name
349
+ */
350
+ server: string;
351
+ /**
352
+ * refreshed: tool list re-queried and applied. error: the re-query failed and the previous tool set was kept. not_connected: the server has no live connection to query (this tool never dials).
353
+ */
354
+ status: "refreshed" | "error" | "not_connected";
355
+ /**
356
+ * Number of tools now available from this server
357
+ */
358
+ toolCount?: number;
359
+ /**
360
+ * Tool names this refresh added
361
+ */
362
+ added?: string[];
363
+ /**
364
+ * Tool names this refresh removed
365
+ */
366
+ removed?: string[];
367
+ /**
368
+ * Why the refresh failed or the server was unavailable
369
+ */
370
+ error?: string;
371
+ }[];
344
372
  /**
345
373
  * MCP tool execution result
346
374
  */
@@ -375,8 +403,10 @@ export type ArtifactOutput =
375
403
  title: string;
376
404
  url: string;
377
405
  updatedAt?: string;
406
+ rel?: "mine" | "shared";
378
407
  }[];
379
408
  truncated?: boolean;
409
+ scope?: "shared" | "all";
380
410
  };
381
411
  export type ProjectsOutput =
382
412
  | {
@@ -675,6 +705,12 @@ export interface ListMcpResourcesInput {
675
705
  */
676
706
  server?: string;
677
707
  }
708
+ export interface RefreshMcpToolsInput {
709
+ /**
710
+ * Optional server name: refresh only this server. Omit to refresh all connected servers.
711
+ */
712
+ server?: string;
713
+ }
678
714
  export interface McpInput {
679
715
  [k: string]: unknown;
680
716
  }
@@ -2609,11 +2645,11 @@ export interface MonitorInput {
2609
2645
  }
2610
2646
  export interface ArtifactInput {
2611
2647
  /**
2612
- * Omit (or 'publish') to publish file_path. 'list' enumerates the user's published artifacts; only `limit` may accompany it.
2648
+ * Omit (or 'publish') to publish file_path. 'list' enumerates artifacts — the user's own by default, see `scope`; only `limit` and `scope` may accompany it.
2613
2649
  */
2614
2650
  action?: "publish" | "list";
2615
2651
  /**
2616
- * Path to an .html or .md file to render. Required to publish (the default action). Use a short, distinctive basename — it is the fallback title if the HTML has no <title>.
2652
+ * Path to an .html or .md file to render. Required to publish (the default action). Use a short, distinctive basename — it is the last-resort title when the HTML has no <title> and no `title` parameter is given.
2617
2653
  */
2618
2654
  file_path?: string;
2619
2655
  /**
@@ -2624,6 +2660,14 @@ export interface ArtifactInput {
2624
2660
  * list only: maximum artifacts to return (default 25).
2625
2661
  */
2626
2662
  limit?: number;
2663
+ /**
2664
+ * list only: 'mine' (default) lists artifacts the user owns — the only ones the update flow can target; 'shared' lists artifacts other people shared with the user (read-only); 'all' lists both. Rows are labeled (mine)/(shared) whenever scope is not 'mine'.
2665
+ */
2666
+ scope?: "mine" | "shared" | "all";
2667
+ /**
2668
+ * Title for the artifact — the name shown in the browser tab and gallery. Prefer a <title> tag in the HTML itself; this parameter fills in only when the file lacks one and never overrides the tag. HTML publishes only — Markdown pages keep their filename identity. Content always comes from file_path — there is no inline content parameter.
2669
+ */
2670
+ title?: string;
2627
2671
  /**
2628
2672
  * One-sentence subtitle shown on the gallery card. Say what the page is or does.
2629
2673
  */
@@ -2697,6 +2741,14 @@ export interface BashOutput {
2697
2741
  * True if the user manually backgrounded the command with Ctrl+B
2698
2742
  */
2699
2743
  backgroundedByUser?: boolean;
2744
+ /**
2745
+ * Set when the command hit its timeout and was auto-backgrounded; the timeout value in ms
2746
+ */
2747
+ timedOutAfterMs?: number;
2748
+ /**
2749
+ * Model-facing note that the session cwd was not changed by a backgrounded command containing a directory-change builtin (cd/pushd/popd/chdir)
2750
+ */
2751
+ backgroundCwdHint?: string;
2700
2752
  /**
2701
2753
  * Flag to indicate if sandbox mode was overridden
2702
2754
  */
@@ -2913,6 +2965,7 @@ export interface GrepOutput {
2913
2965
  numLines?: number;
2914
2966
  numMatches?: number;
2915
2967
  totalFiles?: number;
2968
+ totalLines?: number;
2916
2969
  appliedLimit?: number;
2917
2970
  appliedOffset?: number;
2918
2971
  }