@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-code",
3
- "version": "1.0.91",
3
+ "version": "1.0.93",
4
4
  "main": "sdk.mjs",
5
5
  "types": "sdk.d.ts",
6
6
  "bin": {
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 McpServerConfig = McpStdioServerConfig | McpSSEServerConfig | McpHttpServerConfig;
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>;