@anthropic-ai/claude-code 2.1.211 → 2.1.213

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 +199 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-code",
3
- "version": "2.1.211",
3
+ "version": "2.1.213",
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.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"
24
+ "@anthropic-ai/claude-code-darwin-arm64": "2.1.213",
25
+ "@anthropic-ai/claude-code-darwin-x64": "2.1.213",
26
+ "@anthropic-ai/claude-code-linux-x64": "2.1.213",
27
+ "@anthropic-ai/claude-code-linux-arm64": "2.1.213",
28
+ "@anthropic-ai/claude-code-linux-x64-musl": "2.1.213",
29
+ "@anthropic-ai/claude-code-linux-arm64-musl": "2.1.213",
30
+ "@anthropic-ai/claude-code-win32-x64": "2.1.213",
31
+ "@anthropic-ai/claude-code-win32-arm64": "2.1.213"
32
32
  },
33
33
  "files": [
34
34
  "bin/claude.exe",
package/sdk-tools.d.ts CHANGED
@@ -30,6 +30,7 @@ export type ToolInputSchemas =
30
30
  | WebFetchInput
31
31
  | WebSearchInput
32
32
  | AskUserQuestionInput
33
+ | SendFeedbackInput
33
34
  | ClaudeDesignInput
34
35
  | ProjectsInput
35
36
  | EnterPlanModeInput
@@ -46,6 +47,7 @@ export type ToolInputSchemas =
46
47
  | RemoteTriggerInput
47
48
  | ShowOnboardingRolePickerInput
48
49
  | MonitorInput
50
+ | ProposeSkillsInput
49
51
  | ArtifactInput
50
52
  | PushNotificationInput
51
53
  | EnterWorktreeInput
@@ -72,6 +74,7 @@ export type ToolOutputSchemas =
72
74
  | WebFetchOutput
73
75
  | WebSearchOutput
74
76
  | AskUserQuestionOutput
77
+ | SendFeedbackOutput
75
78
  | EnterWorktreeOutput
76
79
  | ExitWorktreeOutput
77
80
  | TaskCreateOutput
@@ -83,6 +86,7 @@ export type ToolOutputSchemas =
83
86
  | ShowOnboardingRolePickerOutput
84
87
  | ScheduleWakeupOutput
85
88
  | MonitorOutput
89
+ | ProposeSkillsOutput
86
90
  | EnterPlanModeOutput
87
91
  | REPLOutput
88
92
  | WorkflowOutput
@@ -102,6 +106,7 @@ export type AgentOutput =
102
106
  citations?: unknown[] | null;
103
107
  }[];
104
108
  resolvedModel?: string;
109
+ modelsUsed?: string[];
105
110
  totalToolUseCount: number;
106
111
  totalDurationMs: number;
107
112
  totalTokens: number;
@@ -150,9 +155,13 @@ export type AgentOutput =
150
155
  */
151
156
  description: string;
152
157
  /**
153
- * Model the spawn resolved (may differ from the requested one)
158
+ * Model in use at the backgrounding transition (a pre-background swap is reflected here)
154
159
  */
155
160
  resolvedModel?: string;
161
+ /**
162
+ * Ordered distinct models used before backgrounding (length > 1 means a mid-run swap)
163
+ */
164
+ modelsUsed?: string[];
156
165
  /**
157
166
  * The prompt for the agent
158
167
  */
@@ -501,7 +510,7 @@ export interface AgentInput {
501
510
  */
502
511
  team_name?: string;
503
512
  /**
504
- * Permission mode for spawned teammate (e.g., "plan" to require plan approval).
513
+ * Deprecated; ignored. Subagents inherit the parent session's permission mode; agent-definition frontmatter may override it.
505
514
  */
506
515
  mode?: "acceptEdits" | "auto" | "bypassPermissions" | "default" | "dontAsk" | "plan";
507
516
  /**
@@ -779,6 +788,10 @@ export interface ReportFindingsInput {
779
788
  * One-sentence statement of the defect
780
789
  */
781
790
  summary: string;
791
+ /**
792
+ * Compressed label for compact UI (≤60 chars): the claim alone, no rationale or consequence clause
793
+ */
794
+ short_summary?: string;
782
795
  /**
783
796
  * Concrete inputs/state → wrong output/crash
784
797
  */
@@ -2408,6 +2421,24 @@ export interface AskUserQuestionInput {
2408
2421
  source?: string;
2409
2422
  };
2410
2423
  }
2424
+ export interface SendFeedbackInput {
2425
+ /**
2426
+ * What kind of feedback this is.
2427
+ */
2428
+ type: "bug" | "idea" | "missing_capability";
2429
+ /**
2430
+ * Short, specific one-line summary of the issue.
2431
+ */
2432
+ title: string;
2433
+ /**
2434
+ * Factual, reproducible report: what was attempted, what happened, exact error text if short, repro steps. No speculation, no secrets.
2435
+ */
2436
+ details: string;
2437
+ /**
2438
+ * Optional short tag naming the part of Claude Code this is about (e.g. "hooks config", "/help", "file editing"). Leave blank if unclear.
2439
+ */
2440
+ area?: string;
2441
+ }
2411
2442
  export interface ClaudeDesignInput {
2412
2443
  /**
2413
2444
  * Claude Design action to perform. Call with "list" first to discover the available operations and their argument schemas.
@@ -2643,6 +2674,157 @@ export interface MonitorInput {
2643
2674
  protocols?: string[];
2644
2675
  };
2645
2676
  }
2677
+ export interface ProposeSkillsInput {
2678
+ /**
2679
+ * @minItems 1
2680
+ * @maxItems 3
2681
+ */
2682
+ proposals:
2683
+ | [
2684
+ {
2685
+ /**
2686
+ * kebab-case skill slug
2687
+ */
2688
+ name: string;
2689
+ kind: "new" | "improvement";
2690
+ /**
2691
+ * Existing skill name to amend. Required when kind is 'improvement'; omit for 'new'.
2692
+ */
2693
+ target?: string;
2694
+ /**
2695
+ * one line shown on the card
2696
+ */
2697
+ description: string;
2698
+ /**
2699
+ * memory file paths where this procedure was observed
2700
+ */
2701
+ evidence?: string[];
2702
+ /**
2703
+ * complete SKILL.md draft (frontmatter + Trigger/Steps/Verification body)
2704
+ */
2705
+ skillMd: string;
2706
+ }
2707
+ ]
2708
+ | [
2709
+ {
2710
+ /**
2711
+ * kebab-case skill slug
2712
+ */
2713
+ name: string;
2714
+ kind: "new" | "improvement";
2715
+ /**
2716
+ * Existing skill name to amend. Required when kind is 'improvement'; omit for 'new'.
2717
+ */
2718
+ target?: string;
2719
+ /**
2720
+ * one line shown on the card
2721
+ */
2722
+ description: string;
2723
+ /**
2724
+ * memory file paths where this procedure was observed
2725
+ */
2726
+ evidence?: string[];
2727
+ /**
2728
+ * complete SKILL.md draft (frontmatter + Trigger/Steps/Verification body)
2729
+ */
2730
+ skillMd: string;
2731
+ },
2732
+ {
2733
+ /**
2734
+ * kebab-case skill slug
2735
+ */
2736
+ name: string;
2737
+ kind: "new" | "improvement";
2738
+ /**
2739
+ * Existing skill name to amend. Required when kind is 'improvement'; omit for 'new'.
2740
+ */
2741
+ target?: string;
2742
+ /**
2743
+ * one line shown on the card
2744
+ */
2745
+ description: string;
2746
+ /**
2747
+ * memory file paths where this procedure was observed
2748
+ */
2749
+ evidence?: string[];
2750
+ /**
2751
+ * complete SKILL.md draft (frontmatter + Trigger/Steps/Verification body)
2752
+ */
2753
+ skillMd: string;
2754
+ }
2755
+ ]
2756
+ | [
2757
+ {
2758
+ /**
2759
+ * kebab-case skill slug
2760
+ */
2761
+ name: string;
2762
+ kind: "new" | "improvement";
2763
+ /**
2764
+ * Existing skill name to amend. Required when kind is 'improvement'; omit for 'new'.
2765
+ */
2766
+ target?: string;
2767
+ /**
2768
+ * one line shown on the card
2769
+ */
2770
+ description: string;
2771
+ /**
2772
+ * memory file paths where this procedure was observed
2773
+ */
2774
+ evidence?: string[];
2775
+ /**
2776
+ * complete SKILL.md draft (frontmatter + Trigger/Steps/Verification body)
2777
+ */
2778
+ skillMd: string;
2779
+ },
2780
+ {
2781
+ /**
2782
+ * kebab-case skill slug
2783
+ */
2784
+ name: string;
2785
+ kind: "new" | "improvement";
2786
+ /**
2787
+ * Existing skill name to amend. Required when kind is 'improvement'; omit for 'new'.
2788
+ */
2789
+ target?: string;
2790
+ /**
2791
+ * one line shown on the card
2792
+ */
2793
+ description: string;
2794
+ /**
2795
+ * memory file paths where this procedure was observed
2796
+ */
2797
+ evidence?: string[];
2798
+ /**
2799
+ * complete SKILL.md draft (frontmatter + Trigger/Steps/Verification body)
2800
+ */
2801
+ skillMd: string;
2802
+ },
2803
+ {
2804
+ /**
2805
+ * kebab-case skill slug
2806
+ */
2807
+ name: string;
2808
+ kind: "new" | "improvement";
2809
+ /**
2810
+ * Existing skill name to amend. Required when kind is 'improvement'; omit for 'new'.
2811
+ */
2812
+ target?: string;
2813
+ /**
2814
+ * one line shown on the card
2815
+ */
2816
+ description: string;
2817
+ /**
2818
+ * memory file paths where this procedure was observed
2819
+ */
2820
+ evidence?: string[];
2821
+ /**
2822
+ * complete SKILL.md draft (frontmatter + Trigger/Steps/Verification body)
2823
+ */
2824
+ skillMd: string;
2825
+ }
2826
+ ];
2827
+ }
2646
2828
  export interface ArtifactInput {
2647
2829
  /**
2648
2830
  * 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.
@@ -2681,7 +2863,7 @@ export interface ArtifactInput {
2681
2863
  */
2682
2864
  url?: string;
2683
2865
  /**
2684
- * Overwrite without a conflict check. Use only after a 409 when you have reconciled with the other session's version and intend to replace it. Omit (or false) to send baseVersion so a concurrent write 409s instead of being silently clobbered.
2866
+ * Overwrite without a conflict check. Use only after a 409 when you have reconciled with the other session's version and intend to replace it. The tracked baseVersion is always sent; with force:true the server treats it as informational and overwrites. Omit (or false) so a concurrent write 409s instead of being silently clobbered.
2685
2867
  */
2686
2868
  force?: boolean;
2687
2869
  }
@@ -3101,6 +3283,10 @@ export interface ReportFindingsOutput {
3101
3283
  * One-sentence statement of the defect
3102
3284
  */
3103
3285
  summary: string;
3286
+ /**
3287
+ * Compressed label for compact UI (≤60 chars): the claim alone, no rationale or consequence clause
3288
+ */
3289
+ short_summary?: string;
3104
3290
  /**
3105
3291
  * Concrete inputs/state → wrong output/crash
3106
3292
  */
@@ -3393,6 +3579,10 @@ export interface AskUserQuestionOutput {
3393
3579
  */
3394
3580
  afkTimeoutMs?: number;
3395
3581
  }
3582
+ export interface SendFeedbackOutput {
3583
+ success: boolean;
3584
+ message: string;
3585
+ }
3396
3586
  export interface EnterWorktreeOutput {
3397
3587
  worktreePath: string;
3398
3588
  worktreeBranch?: string;
@@ -3488,6 +3678,12 @@ export interface MonitorOutput {
3488
3678
  */
3489
3679
  persistent?: boolean;
3490
3680
  }
3681
+ export interface ProposeSkillsOutput {
3682
+ /**
3683
+ * Number of proposals shown on the review card
3684
+ */
3685
+ proposalCount: number;
3686
+ }
3491
3687
  export interface EnterPlanModeOutput {
3492
3688
  /**
3493
3689
  * Confirmation that plan mode was entered