@anthropic-ai/claude-code 1.0.91 → 1.0.93
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/cli.js +858 -855
- package/package.json +1 -1
- package/sdk.d.ts +10 -1
- package/sdk.mjs +13838 -648
- package/vendor/claude-code.vsix +0 -0
package/package.json
CHANGED
package/sdk.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Message as APIAssistantMessage, MessageParam as APIUserMessage, Usage } from '@anthropic-ai/sdk/resources';
|
|
2
2
|
import type { UUID } from 'crypto';
|
|
3
|
+
import { type McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
3
4
|
export type NonNullableUsage = {
|
|
4
5
|
[K in keyof Usage]: NonNullable<Usage[K]>;
|
|
5
6
|
};
|
|
@@ -21,7 +22,15 @@ export type McpHttpServerConfig = {
|
|
|
21
22
|
url: string;
|
|
22
23
|
headers?: Record<string, string>;
|
|
23
24
|
};
|
|
24
|
-
export type
|
|
25
|
+
export type McpSdkServerConfig = {
|
|
26
|
+
type: 'sdk';
|
|
27
|
+
name: string;
|
|
28
|
+
};
|
|
29
|
+
export type McpSdkServerConfigWithInstance = McpSdkServerConfig & {
|
|
30
|
+
instance: McpServer;
|
|
31
|
+
};
|
|
32
|
+
export type McpServerConfig = McpStdioServerConfig | McpSSEServerConfig | McpHttpServerConfig | McpSdkServerConfigWithInstance;
|
|
33
|
+
export type McpServerConfigForProcessTransport = McpStdioServerConfig | McpSSEServerConfig | McpHttpServerConfig | McpSdkServerConfig;
|
|
25
34
|
export type PermissionResult = {
|
|
26
35
|
behavior: 'allow';
|
|
27
36
|
updatedInput: Record<string, unknown>;
|