add McpbManifestAny type

This commit is contained in:
Joan Xie 2025-11-01 15:46:37 -07:00
commit 5fb25a253e
No known key found for this signature in database
2 changed files with 11 additions and 7 deletions

View file

@ -99,4 +99,4 @@
"@babel/parser": "7.27.3"
},
"packageManager": "yarn@4.10.3+sha512.c38cafb5c7bb273f3926d04e55e1d8c9dfa7d9c3ea1f36a4868fa028b9e5f72298f0b7f401ad5eb921749eb012eb1c3bb74bf7503df3ee43fd600d14a018266f"
}
}

View file

@ -47,18 +47,22 @@ export type McpbUserConfigurationOption = z.infer<
export type McpbUserConfigValues = z.infer<typeof McpbUserConfigValuesSchema>;
/**
* McpbManifest type that accepts any supported manifest version
* This is the default manifest type that should be used for maximum compatibility.
*/
export type McpbManifest = z.infer<typeof McpbManifestSchemaAny>;
/**
* 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>;;
/**
* Information about a MCPB package signature
*/