diff --git a/src/browser.ts b/src/browser.ts index d3f0598..36898b3 100644 --- a/src/browser.ts +++ b/src/browser.ts @@ -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"; diff --git a/src/schemas/index.ts b/src/schemas/index.ts index df8ff1e..06ad45c 100644 --- a/src/schemas/index.ts +++ b/src/schemas/index.ts @@ -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; \ No newline at end of file