From 789b37087c01bd00f2cbf3441363776142241b3b Mon Sep 17 00:00:00 2001 From: Joan Xie Date: Wed, 29 Oct 2025 16:59:06 -0700 Subject: [PATCH] revert: restore McpbManifest type to use latest schema Reverted the discriminated union type change. McpbManifest now uses the latest schema as before. Consumers can use versioned schemas directly if they need to validate specific versions. --- src/types.ts | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/types.ts b/src/types.ts index 852d52c..0b6b2a3 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,8 +1,5 @@ import type * as z from "zod"; -import type { McpbManifestSchema as McpbManifestSchema_v0_1 } from "./schemas/0.1.js"; -import type { McpbManifestSchema as McpbManifestSchema_v0_2 } from "./schemas/0.2.js"; -import type { McpbManifestSchema as McpbManifestSchema_v0_3 } from "./schemas/0.3.js"; import type { McpbManifestAuthorSchema, McpbManifestCompatibilitySchema, @@ -10,6 +7,7 @@ import type { McpbManifestPlatformOverrideSchema, McpbManifestPromptSchema, McpbManifestRepositorySchema, + McpbManifestSchema, McpbManifestServerSchema, McpbManifestToolSchema, McpbSignatureInfoSchema, @@ -48,14 +46,7 @@ export type McpbUserConfigurationOption = z.infer< export type McpbUserConfigValues = z.infer; -/** - * Discriminated union of all supported manifest versions. - * Discriminated by manifest_version or dxt_version field. - */ -export type McpbManifest = - | z.infer - | z.infer - | z.infer; +export type McpbManifest = z.infer; /** * Information about a MCPB package signature