@anthropic-ai/claude-code 2.1.185 → 2.1.187
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 +39 -17
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.187",
|
|
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.187",
|
|
25
|
+
"@anthropic-ai/claude-code-darwin-x64": "2.1.187",
|
|
26
|
+
"@anthropic-ai/claude-code-linux-x64": "2.1.187",
|
|
27
|
+
"@anthropic-ai/claude-code-linux-arm64": "2.1.187",
|
|
28
|
+
"@anthropic-ai/claude-code-linux-x64-musl": "2.1.187",
|
|
29
|
+
"@anthropic-ai/claude-code-linux-arm64-musl": "2.1.187",
|
|
30
|
+
"@anthropic-ai/claude-code-win32-x64": "2.1.187",
|
|
31
|
+
"@anthropic-ai/claude-code-win32-arm64": "2.1.187"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
"bin/claude.exe",
|
package/sdk-tools.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export type ToolInputSchemas =
|
|
|
22
22
|
| ListMcpResourcesInput
|
|
23
23
|
| McpInput
|
|
24
24
|
| NotebookEditInput
|
|
25
|
+
| ReadMcpResourceDirInput
|
|
25
26
|
| ReadMcpResourceInput
|
|
26
27
|
| TodoWriteInput
|
|
27
28
|
| WebFetchInput
|
|
@@ -60,6 +61,7 @@ export type ToolOutputSchemas =
|
|
|
60
61
|
| ListMcpResourcesOutput
|
|
61
62
|
| McpOutput
|
|
62
63
|
| NotebookEditOutput
|
|
64
|
+
| ReadMcpResourceDirOutput
|
|
63
65
|
| ReadMcpResourceOutput
|
|
64
66
|
| TodoWriteOutput
|
|
65
67
|
| WebFetchOutput
|
|
@@ -665,6 +667,16 @@ export interface NotebookEditInput {
|
|
|
665
667
|
*/
|
|
666
668
|
edit_mode?: "replace" | "insert" | "delete";
|
|
667
669
|
}
|
|
670
|
+
export interface ReadMcpResourceDirInput {
|
|
671
|
+
/**
|
|
672
|
+
* The MCP server name
|
|
673
|
+
*/
|
|
674
|
+
server: string;
|
|
675
|
+
/**
|
|
676
|
+
* The directory resource URI to list
|
|
677
|
+
*/
|
|
678
|
+
uri: string;
|
|
679
|
+
}
|
|
668
680
|
export interface ReadMcpResourceInput {
|
|
669
681
|
/**
|
|
670
682
|
* The MCP server name
|
|
@@ -2515,6 +2527,10 @@ export interface ArtifactInput {
|
|
|
2515
2527
|
* Existing artifact URL to redeploy to. Pass when the user gives you a URL for an artifact not published in this session; omit for new artifacts or same-session redeploys. Must be an artifact the user owns.
|
|
2516
2528
|
*/
|
|
2517
2529
|
url?: string;
|
|
2530
|
+
/**
|
|
2531
|
+
* 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.
|
|
2532
|
+
*/
|
|
2533
|
+
force?: boolean;
|
|
2518
2534
|
}
|
|
2519
2535
|
export interface PushNotificationInput {
|
|
2520
2536
|
/**
|
|
@@ -2838,6 +2854,29 @@ export interface NotebookEditOutput {
|
|
|
2838
2854
|
*/
|
|
2839
2855
|
updated_file: string;
|
|
2840
2856
|
}
|
|
2857
|
+
export interface ReadMcpResourceDirOutput {
|
|
2858
|
+
/**
|
|
2859
|
+
* Direct children of the directory resource. Subdirectories appear with mimeType "inode/directory".
|
|
2860
|
+
*/
|
|
2861
|
+
resources: {
|
|
2862
|
+
/**
|
|
2863
|
+
* Child resource URI
|
|
2864
|
+
*/
|
|
2865
|
+
uri: string;
|
|
2866
|
+
/**
|
|
2867
|
+
* Child resource name
|
|
2868
|
+
*/
|
|
2869
|
+
name: string;
|
|
2870
|
+
/**
|
|
2871
|
+
* Child MIME type
|
|
2872
|
+
*/
|
|
2873
|
+
mimeType?: string;
|
|
2874
|
+
}[];
|
|
2875
|
+
/**
|
|
2876
|
+
* Human-readable error when the server could not list the directory
|
|
2877
|
+
*/
|
|
2878
|
+
error?: string;
|
|
2879
|
+
}
|
|
2841
2880
|
export interface ReadMcpResourceOutput {
|
|
2842
2881
|
contents: {
|
|
2843
2882
|
/**
|
|
@@ -2861,23 +2900,6 @@ export interface ReadMcpResourceOutput {
|
|
|
2861
2900
|
* Human-readable error when the server could not read the resource
|
|
2862
2901
|
*/
|
|
2863
2902
|
error?: string;
|
|
2864
|
-
/**
|
|
2865
|
-
* Direct children when the URI is a directory resource (SEP-2640 resources/directory/read). Subdirectories appear with mimeType "inode/directory".
|
|
2866
|
-
*/
|
|
2867
|
-
resources?: {
|
|
2868
|
-
/**
|
|
2869
|
-
* Child resource URI
|
|
2870
|
-
*/
|
|
2871
|
-
uri: string;
|
|
2872
|
-
/**
|
|
2873
|
-
* Child resource name
|
|
2874
|
-
*/
|
|
2875
|
-
name: string;
|
|
2876
|
-
/**
|
|
2877
|
-
* Child MIME type
|
|
2878
|
-
*/
|
|
2879
|
-
mimeType?: string;
|
|
2880
|
-
}[];
|
|
2881
2903
|
}
|
|
2882
2904
|
export interface TodoWriteOutput {
|
|
2883
2905
|
/**
|