update browser exports to incl. vAny schema

This commit is contained in:
Joan Xie 2025-11-01 15:27:38 -07:00
commit f3ac79afda
No known key found for this signature in database
2 changed files with 15 additions and 2 deletions

View file

@ -1,5 +1,5 @@
// Browser-compatible exports
export * from "./schemas/latest.js";
export * from "./schemas/index.js";
export * from "./shared/config.js";
export * from "./shared/constants.js";
export * from "./types.js";

View file

@ -1,3 +1,7 @@
import { McpbManifestSchema as ManifestSchemaV0_1 } from "./0.1.js";
import { McpbManifestSchema as ManifestSchemaV0_2 } from "./0.2.js";
import { McpbManifestSchema as ManifestSchemaV0_3 } from "./0.3.js";
export * as v0_1 from "./0.1.js";
export * as v0_2 from "./0.2.js";
export * as v0_3 from "./0.3.js";
@ -5,5 +9,14 @@ export * as vAny from "./any.js";
export * as vLatest from "./latest.js";
export {
MANIFEST_VERSION as LATEST_MANIFEST_VERSION,
McpbManifestSchema,
McpbManifestSchema as LatestMcpbManifestSchema,
} from "./latest.js";
/**
* Map of manifest versions to their strict schemas
*/
export const VERSIONED_MANIFEST_SCHEMAS = {
"0.1": ManifestSchemaV0_1,
"0.2": ManifestSchemaV0_2,
"0.3": ManifestSchemaV0_3,
} as const;