@anthropic-ai/claude-code 2.1.173 → 2.1.174
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/package.json +9 -9
- package/sdk-tools.d.ts +94 -1
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.174",
|
|
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.
|
|
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.174",
|
|
25
|
+
"@anthropic-ai/claude-code-darwin-x64": "2.1.174",
|
|
26
|
+
"@anthropic-ai/claude-code-linux-x64": "2.1.174",
|
|
27
|
+
"@anthropic-ai/claude-code-linux-arm64": "2.1.174",
|
|
28
|
+
"@anthropic-ai/claude-code-linux-x64-musl": "2.1.174",
|
|
29
|
+
"@anthropic-ai/claude-code-linux-arm64-musl": "2.1.174",
|
|
30
|
+
"@anthropic-ai/claude-code-win32-x64": "2.1.174",
|
|
31
|
+
"@anthropic-ai/claude-code-win32-arm64": "2.1.174"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
"bin/claude.exe",
|
package/sdk-tools.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export type ToolInputSchemas =
|
|
|
27
27
|
| WebFetchInput
|
|
28
28
|
| WebSearchInput
|
|
29
29
|
| AskUserQuestionInput
|
|
30
|
+
| ProjectsInput
|
|
30
31
|
| EnterPlanModeInput
|
|
31
32
|
| TaskCreateInput
|
|
32
33
|
| TaskGetInput
|
|
@@ -81,7 +82,8 @@ export type ToolOutputSchemas =
|
|
|
81
82
|
| CronCreateOutput
|
|
82
83
|
| CronDeleteOutput
|
|
83
84
|
| CronListOutput
|
|
84
|
-
| PushNotificationOutput
|
|
85
|
+
| PushNotificationOutput
|
|
86
|
+
| ProjectsOutput;
|
|
85
87
|
export type AgentOutput =
|
|
86
88
|
| {
|
|
87
89
|
agentId: string;
|
|
@@ -90,6 +92,7 @@ export type AgentOutput =
|
|
|
90
92
|
type: "text";
|
|
91
93
|
text: string;
|
|
92
94
|
}[];
|
|
95
|
+
resolvedModel?: string;
|
|
93
96
|
totalToolUseCount: number;
|
|
94
97
|
totalDurationMs: number;
|
|
95
98
|
totalTokens: number;
|
|
@@ -130,6 +133,10 @@ export type AgentOutput =
|
|
|
130
133
|
* The description of the task
|
|
131
134
|
*/
|
|
132
135
|
description: string;
|
|
136
|
+
/**
|
|
137
|
+
* Model the spawn resolved (may differ from the requested one)
|
|
138
|
+
*/
|
|
139
|
+
resolvedModel?: string;
|
|
133
140
|
/**
|
|
134
141
|
* The prompt for the agent
|
|
135
142
|
*/
|
|
@@ -305,6 +312,64 @@ export type McpOutput =
|
|
|
305
312
|
| {
|
|
306
313
|
[k: string]: unknown;
|
|
307
314
|
};
|
|
315
|
+
export type ProjectsOutput =
|
|
316
|
+
| {
|
|
317
|
+
method: "project_info";
|
|
318
|
+
notice?: string;
|
|
319
|
+
name: string;
|
|
320
|
+
description: string;
|
|
321
|
+
instructions: string;
|
|
322
|
+
docs: {
|
|
323
|
+
path: string;
|
|
324
|
+
created_at: string | null;
|
|
325
|
+
}[];
|
|
326
|
+
knowledge: {
|
|
327
|
+
knowledge_size: number;
|
|
328
|
+
max_knowledge_size: number;
|
|
329
|
+
search_threshold: number | null;
|
|
330
|
+
rag_active: boolean;
|
|
331
|
+
remaining_budget: number | null;
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
| {
|
|
335
|
+
method: "project_read";
|
|
336
|
+
notice?: string;
|
|
337
|
+
path: string;
|
|
338
|
+
content?: string;
|
|
339
|
+
local_file?: string;
|
|
340
|
+
created_at: string | null;
|
|
341
|
+
}
|
|
342
|
+
| {
|
|
343
|
+
method: "project_search";
|
|
344
|
+
notice?: string;
|
|
345
|
+
rag: boolean;
|
|
346
|
+
hits?: {
|
|
347
|
+
name?: string;
|
|
348
|
+
doc_uuid?: string;
|
|
349
|
+
text?: string;
|
|
350
|
+
}[];
|
|
351
|
+
docs?: string[];
|
|
352
|
+
}
|
|
353
|
+
| {
|
|
354
|
+
method: "project_write";
|
|
355
|
+
notice?: string;
|
|
356
|
+
path: string;
|
|
357
|
+
doc_uuid: string;
|
|
358
|
+
replaced: boolean;
|
|
359
|
+
knowledge: {
|
|
360
|
+
knowledge_size: number;
|
|
361
|
+
max_knowledge_size: number;
|
|
362
|
+
search_threshold: number | null;
|
|
363
|
+
rag_active: boolean;
|
|
364
|
+
remaining_budget: number | null;
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
| {
|
|
368
|
+
method: "project_delete";
|
|
369
|
+
notice?: string;
|
|
370
|
+
path: string;
|
|
371
|
+
deleted: boolean;
|
|
372
|
+
};
|
|
308
373
|
|
|
309
374
|
export interface AgentInput {
|
|
310
375
|
/**
|
|
@@ -2186,6 +2251,33 @@ export interface AskUserQuestionInput {
|
|
|
2186
2251
|
source?: string;
|
|
2187
2252
|
};
|
|
2188
2253
|
}
|
|
2254
|
+
export interface ProjectsInput {
|
|
2255
|
+
method: "project_info" | "project_read" | "project_search" | "project_write" | "project_delete";
|
|
2256
|
+
/**
|
|
2257
|
+
* project_read/project_write/project_delete: doc path. project_write: an existing path is replaced in place; a new bare filename (no "/") is namespaced to "claude/<name>".
|
|
2258
|
+
*/
|
|
2259
|
+
path?: string;
|
|
2260
|
+
/**
|
|
2261
|
+
* project_write: inline doc text. Mutually exclusive with local_path. Use local_path for anything you have on disk.
|
|
2262
|
+
*/
|
|
2263
|
+
content?: string;
|
|
2264
|
+
/**
|
|
2265
|
+
* 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.
|
|
2266
|
+
*/
|
|
2267
|
+
local_path?: string;
|
|
2268
|
+
/**
|
|
2269
|
+
* 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.
|
|
2270
|
+
*/
|
|
2271
|
+
force?: boolean;
|
|
2272
|
+
/**
|
|
2273
|
+
* project_search: knowledge-base query
|
|
2274
|
+
*/
|
|
2275
|
+
query?: string;
|
|
2276
|
+
/**
|
|
2277
|
+
* project_search: number of hits (default 5)
|
|
2278
|
+
*/
|
|
2279
|
+
n?: number;
|
|
2280
|
+
}
|
|
2189
2281
|
export interface EnterPlanModeInput {}
|
|
2190
2282
|
export interface TaskCreateInput {
|
|
2191
2283
|
/**
|
|
@@ -3059,6 +3151,7 @@ export interface ArtifactOutput {
|
|
|
3059
3151
|
url: string;
|
|
3060
3152
|
path: string;
|
|
3061
3153
|
title?: string;
|
|
3154
|
+
version?: string;
|
|
3062
3155
|
mcpDropped?: string;
|
|
3063
3156
|
}
|
|
3064
3157
|
export interface RemoteTriggerOutput {
|