Remove vLatest concept and associated files
Remove the concept of "vLatest" throughout the codebase to encourage use of McpbManifestAny which supports all manifest versions. Changes include: - Delete src/schemas/latest.ts and src/schemas_loose/latest.ts - Remove vLatest and latest-related exports from schema index files - Remove McpbManifestLatest type, replace McpbManifest to point to McpbManifestAny - Remove LATEST_MANIFEST_VERSION, LATEST_MANIFEST_SCHEMA constants - Update all main export files (index.ts, cli.ts, node.ts) to export from 0.3.js instead of latest.js - Update tests to use v0_3.McpbManifestSchema explicitly - Add @deprecated annotation to McpbManifest directing users to McpbManifestAny This encourages better version compatibility by using the union type that supports all manifest versions rather than assuming a single "latest" version. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
d7f76fc02d
commit
30a3b8e779
1 changed files with 20 additions and 56 deletions
19
src/types.ts
19
src/types.ts
|
|
@ -8,14 +8,13 @@ import type {
|
|||
McpbManifestPlatformOverrideSchema,
|
||||
McpbManifestPromptSchema,
|
||||
McpbManifestRepositorySchema,
|
||||
McpbManifestSchema,
|
||||
McpbManifestServerSchema,
|
||||
McpbManifestToolSchema,
|
||||
McpbSignatureInfoSchema,
|
||||
McpbUserConfigurationOptionSchema,
|
||||
McpbUserConfigValuesSchema,
|
||||
McpServerConfigSchema,
|
||||
} from "./schemas/latest.js";
|
||||
} from "./schemas/0.3.js";
|
||||
|
||||
export type McpServerConfig = z.infer<typeof McpServerConfigSchema>;
|
||||
|
||||
|
|
@ -47,22 +46,16 @@ export type McpbUserConfigurationOption = z.infer<
|
|||
|
||||
export type McpbUserConfigValues = z.infer<typeof McpbUserConfigValuesSchema>;
|
||||
|
||||
/**
|
||||
* McpbManifest type for the latest manifest version only
|
||||
* Use this when you specifically need the latest version.
|
||||
*/
|
||||
export type McpbManifestLatest = z.infer<typeof McpbManifestSchema>;
|
||||
|
||||
/**
|
||||
* Alias for McpbManifestLatest for backwards compatibility.
|
||||
*/
|
||||
export type McpbManifest = McpbManifestLatest;
|
||||
|
||||
/**
|
||||
* McpbManifest type representing the union of all manifest versions
|
||||
*/
|
||||
export type McpbManifestAny = z.infer<typeof McpbManifestSchemaAny>;
|
||||
|
||||
/**
|
||||
* @deprecated Use McpbManifestAny instead to support all manifest versions.
|
||||
*/
|
||||
export type McpbManifest = McpbManifestAny;
|
||||
|
||||
/**
|
||||
* Information about a MCPB package signature
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue