@anthropic-ai/claude-code 2.1.197 → 2.1.199
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.
- package/README.md +1 -1
- package/package.json +10 -10
- package/sdk-tools.d.ts +46 -19
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Claude Code
|
|
2
2
|
|
|
3
|
-
 [![npm]](https://www.npmjs.com/package/@anthropic-ai/claude-code)
|
|
4
4
|
|
|
5
5
|
[npm]: https://img.shields.io/npm/v/@anthropic-ai/claude-code.svg?style=flat-square
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anthropic-ai/claude-code",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.199",
|
|
4
4
|
"bin": {
|
|
5
5
|
"claude": "bin/claude.exe"
|
|
6
6
|
},
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"prepare": "node -e \"if (!process.env.AUTHORIZED) { console.error('ERROR: Direct publishing is not allowed.\\nPlease see the release workflow documentation to publish this package.'); process.exit(1); }\""
|
|
10
10
|
},
|
|
11
11
|
"engines": {
|
|
12
|
-
"node": ">=
|
|
12
|
+
"node": ">=22.0.0"
|
|
13
13
|
},
|
|
14
14
|
"type": "module",
|
|
15
15
|
"author": "Anthropic <support@anthropic.com>",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {},
|
|
23
23
|
"optionalDependencies": {
|
|
24
|
-
"@anthropic-ai/claude-code-darwin-arm64": "2.1.
|
|
25
|
-
"@anthropic-ai/claude-code-darwin-x64": "2.1.
|
|
26
|
-
"@anthropic-ai/claude-code-linux-x64": "2.1.
|
|
27
|
-
"@anthropic-ai/claude-code-linux-arm64": "2.1.
|
|
28
|
-
"@anthropic-ai/claude-code-linux-x64-musl": "2.1.
|
|
29
|
-
"@anthropic-ai/claude-code-linux-arm64-musl": "2.1.
|
|
30
|
-
"@anthropic-ai/claude-code-win32-x64": "2.1.
|
|
31
|
-
"@anthropic-ai/claude-code-win32-arm64": "2.1.
|
|
24
|
+
"@anthropic-ai/claude-code-darwin-arm64": "2.1.199",
|
|
25
|
+
"@anthropic-ai/claude-code-darwin-x64": "2.1.199",
|
|
26
|
+
"@anthropic-ai/claude-code-linux-x64": "2.1.199",
|
|
27
|
+
"@anthropic-ai/claude-code-linux-arm64": "2.1.199",
|
|
28
|
+
"@anthropic-ai/claude-code-linux-x64-musl": "2.1.199",
|
|
29
|
+
"@anthropic-ai/claude-code-linux-arm64-musl": "2.1.199",
|
|
30
|
+
"@anthropic-ai/claude-code-win32-x64": "2.1.199",
|
|
31
|
+
"@anthropic-ai/claude-code-win32-arm64": "2.1.199"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
"bin/claude.exe",
|
package/sdk-tools.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export type ToolInputSchemas =
|
|
|
29
29
|
| WebFetchInput
|
|
30
30
|
| WebSearchInput
|
|
31
31
|
| AskUserQuestionInput
|
|
32
|
+
| ClaudeDesignInput
|
|
32
33
|
| ProjectsInput
|
|
33
34
|
| EnterPlanModeInput
|
|
34
35
|
| TaskCreateInput
|
|
@@ -87,6 +88,7 @@ export type ToolOutputSchemas =
|
|
|
87
88
|
| CronDeleteOutput
|
|
88
89
|
| CronListOutput
|
|
89
90
|
| PushNotificationOutput
|
|
91
|
+
| ClaudeDesignOutput
|
|
90
92
|
| ProjectsOutput;
|
|
91
93
|
export type AgentOutput =
|
|
92
94
|
| {
|
|
@@ -304,6 +306,10 @@ export type FileReadOutput =
|
|
|
304
306
|
*/
|
|
305
307
|
filePath: string;
|
|
306
308
|
};
|
|
309
|
+
/**
|
|
310
|
+
* Set when the dedup matched a startup-seeded entry (CLAUDE.md / nested memory) rather than a prior Read tool_result
|
|
311
|
+
*/
|
|
312
|
+
source?: "seeded";
|
|
307
313
|
};
|
|
308
314
|
export type ListMcpResourcesOutput = {
|
|
309
315
|
/**
|
|
@@ -364,9 +370,6 @@ export type ProjectsOutput =
|
|
|
364
370
|
knowledge: {
|
|
365
371
|
knowledge_size: number;
|
|
366
372
|
max_knowledge_size: number;
|
|
367
|
-
search_threshold: number | null;
|
|
368
|
-
rag_active: boolean;
|
|
369
|
-
remaining_budget: number | null;
|
|
370
373
|
};
|
|
371
374
|
}
|
|
372
375
|
| {
|
|
@@ -395,13 +398,6 @@ export type ProjectsOutput =
|
|
|
395
398
|
path: string;
|
|
396
399
|
doc_uuid: string;
|
|
397
400
|
replaced: boolean;
|
|
398
|
-
knowledge: {
|
|
399
|
-
knowledge_size: number;
|
|
400
|
-
max_knowledge_size: number;
|
|
401
|
-
search_threshold: number | null;
|
|
402
|
-
rag_active: boolean;
|
|
403
|
-
remaining_budget: number | null;
|
|
404
|
-
};
|
|
405
401
|
}
|
|
406
402
|
| {
|
|
407
403
|
method: "project_delete";
|
|
@@ -428,7 +424,7 @@ export interface AgentInput {
|
|
|
428
424
|
*/
|
|
429
425
|
model?: "sonnet" | "opus" | "haiku" | "fable";
|
|
430
426
|
/**
|
|
431
|
-
*
|
|
427
|
+
* Agents run in the background by default; you will be notified when one completes. Set to false to run this agent synchronously when you need its result before continuing.
|
|
432
428
|
*/
|
|
433
429
|
run_in_background?: boolean;
|
|
434
430
|
/**
|
|
@@ -630,7 +626,7 @@ export interface GrepInput {
|
|
|
630
626
|
}
|
|
631
627
|
export interface TaskStopInput {
|
|
632
628
|
/**
|
|
633
|
-
* The ID of the background task to stop
|
|
629
|
+
* The ID of the background task to stop. Agent-team teammates and named background agents are also accepted by agent ID or name.
|
|
634
630
|
*/
|
|
635
631
|
task_id?: string;
|
|
636
632
|
/**
|
|
@@ -716,6 +712,10 @@ export interface ReportFindingsInput {
|
|
|
716
712
|
* Concrete inputs/state → wrong output/crash
|
|
717
713
|
*/
|
|
718
714
|
failure_scenario: string;
|
|
715
|
+
/**
|
|
716
|
+
* Short kebab-case slug of the finding type, e.g. "correctness", "simplification", "efficiency", "test-coverage"
|
|
717
|
+
*/
|
|
718
|
+
category?: string;
|
|
719
719
|
/**
|
|
720
720
|
* Set when a verify pass ran; absent on inline-only reviews
|
|
721
721
|
*/
|
|
@@ -2337,6 +2337,18 @@ export interface AskUserQuestionInput {
|
|
|
2337
2337
|
source?: string;
|
|
2338
2338
|
};
|
|
2339
2339
|
}
|
|
2340
|
+
export interface ClaudeDesignInput {
|
|
2341
|
+
/**
|
|
2342
|
+
* Claude Design action to perform. Call with "list" first to discover the available operations and their argument schemas.
|
|
2343
|
+
*/
|
|
2344
|
+
operation: string;
|
|
2345
|
+
/**
|
|
2346
|
+
* Action input object (server-validated). Pass {} for operations that take no input.
|
|
2347
|
+
*/
|
|
2348
|
+
arguments: {
|
|
2349
|
+
[k: string]: unknown;
|
|
2350
|
+
};
|
|
2351
|
+
}
|
|
2340
2352
|
export interface ProjectsInput {
|
|
2341
2353
|
method: "project_info" | "project_read" | "project_search" | "project_write" | "project_delete";
|
|
2342
2354
|
/**
|
|
@@ -2351,10 +2363,6 @@ export interface ProjectsInput {
|
|
|
2351
2363
|
* project_write: a file inside the working directory to upload. The tool reads, encodes, and uploads directly — contents never enter your context. Mutually exclusive with content.
|
|
2352
2364
|
*/
|
|
2353
2365
|
local_path?: string;
|
|
2354
|
-
/**
|
|
2355
|
-
* project_write: bypass the chat-injection budget guard. Set only when the write is genuinely worth degrading chat to retrieval mode for everyone in the project.
|
|
2356
|
-
*/
|
|
2357
|
-
force?: boolean;
|
|
2358
2366
|
/**
|
|
2359
2367
|
* project_search: knowledge-base query
|
|
2360
2368
|
*/
|
|
@@ -2992,6 +3000,10 @@ export interface ReportFindingsOutput {
|
|
|
2992
3000
|
* Concrete inputs/state → wrong output/crash
|
|
2993
3001
|
*/
|
|
2994
3002
|
failure_scenario: string;
|
|
3003
|
+
/**
|
|
3004
|
+
* Short kebab-case slug of the finding type, e.g. "correctness", "simplification", "efficiency", "test-coverage"
|
|
3005
|
+
*/
|
|
3006
|
+
category?: string;
|
|
2995
3007
|
/**
|
|
2996
3008
|
* Set when a verify pass ran; absent on inline-only reviews
|
|
2997
3009
|
*/
|
|
@@ -3271,6 +3283,10 @@ export interface AskUserQuestionOutput {
|
|
|
3271
3283
|
notes?: string;
|
|
3272
3284
|
};
|
|
3273
3285
|
};
|
|
3286
|
+
/**
|
|
3287
|
+
* Set when the dialog auto-resolved after this many milliseconds of idle (user away from keyboard). Absent on every human-resolved path.
|
|
3288
|
+
*/
|
|
3289
|
+
afkTimeoutMs?: number;
|
|
3274
3290
|
}
|
|
3275
3291
|
export interface EnterWorktreeOutput {
|
|
3276
3292
|
worktreePath: string;
|
|
@@ -3327,7 +3343,13 @@ export interface ArtifactOutput {
|
|
|
3327
3343
|
path: string;
|
|
3328
3344
|
title?: string;
|
|
3329
3345
|
version?: string;
|
|
3330
|
-
|
|
3346
|
+
capabilities?: unknown;
|
|
3347
|
+
stored?: {
|
|
3348
|
+
contract: string;
|
|
3349
|
+
capabilities?: {
|
|
3350
|
+
[k: string]: unknown;
|
|
3351
|
+
};
|
|
3352
|
+
};
|
|
3331
3353
|
}
|
|
3332
3354
|
export interface RemoteTriggerOutput {
|
|
3333
3355
|
status: number;
|
|
@@ -3474,10 +3496,15 @@ export interface PushNotificationOutput {
|
|
|
3474
3496
|
pushSent?: boolean;
|
|
3475
3497
|
localSent?: boolean;
|
|
3476
3498
|
disabledReason?: "config_off" | "user_present" | "no_transport";
|
|
3477
|
-
idleSec?: number;
|
|
3478
|
-
hasFocus?: boolean;
|
|
3479
3499
|
/**
|
|
3480
3500
|
* ISO timestamp captured at tool execution on the emitting process. Optional — resumed sessions replay pre-sentAt outputs verbatim.
|
|
3481
3501
|
*/
|
|
3482
3502
|
sentAt?: string;
|
|
3483
3503
|
}
|
|
3504
|
+
export interface ClaudeDesignOutput {
|
|
3505
|
+
operation: string;
|
|
3506
|
+
content: {
|
|
3507
|
+
[k: string]: unknown;
|
|
3508
|
+
}[];
|
|
3509
|
+
isError?: boolean;
|
|
3510
|
+
}
|