Restore missing type exports for mcpb package
- Export McpbManifestAny and Logger types from types.js - Export McpbSignatureInfo and McpbUserConfigValues from shared/common.ts - Add exports to both main and browser entry points - Bump version to 2.0.1 This eliminates the need for manual type inference in consuming code. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
5079fcfe30
commit
d2826644b6
4 changed files with 8 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@anthropic-ai/mcpb",
|
||||
"description": "Tools for building MCP Bundles",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.1",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/index.js",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
// Browser-compatible exports
|
||||
export * from "./schemas/index.js";
|
||||
export * from "./shared/common.js";
|
||||
export * from "./shared/config.js";
|
||||
export * from "./shared/constants.js";
|
||||
export * from "./types.js";
|
||||
|
|
|
|||
|
|
@ -6,5 +6,7 @@ export * from "./node/files.js";
|
|||
export * from "./node/sign.js";
|
||||
export * from "./node/validate.js";
|
||||
export * from "./schemas/index.js";
|
||||
export * from "./shared/common.js";
|
||||
export * from "./shared/config.js";
|
||||
export * from "./shared/constants.js";
|
||||
export * from "./types.js";
|
||||
|
|
|
|||
|
|
@ -13,3 +13,6 @@ export const McpbSignatureInfoSchema = z.strictObject({
|
|||
valid_to: z.string().optional(),
|
||||
fingerprint: z.string().optional(),
|
||||
});
|
||||
|
||||
export type McpbSignatureInfo = z.infer<typeof McpbSignatureInfoSchema>;
|
||||
export type McpbUserConfigValues = z.infer<typeof McpbUserConfigValuesSchema>;
|
||||
|
|
|
|||
Loading…
Reference in a new issue