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:
Joan Xie 2025-11-04 13:06:58 -08:00
commit d2826644b6
No known key found for this signature in database
4 changed files with 8 additions and 1 deletions

View file

@ -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",

View file

@ -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";

View file

@ -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";

View file

@ -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>;