-
Notifications
You must be signed in to change notification settings - Fork 150
feat: export versioned zod schemas in mcpb/browser, remove vLatest artifacts #148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
98fc900
WIP
joan-anthropic f3ac79a
update browser exports to incl. vAny schema
joan-anthropic 8616663
revert: undo preprocessing changes to any.ts and types.ts
joan-anthropic 5fb25a2
add McpbManifestAny type
joan-anthropic 2d76201
Export versioned schemas and validation utilities in browser bundle
joan-anthropic c137df5
Remove validate utilities from browser exports
joan-anthropic 05187d7
Remove zod resolution and bump version to 1.2.0
joan-anthropic 2d6dd39
Merge remote-tracking branch 'origin/main' into feat/browser-export-v…
joan-anthropic 3538bd4
Bump version to 1.3.0
joan-anthropic 753f27e
Revert yarn.lock to match main (zod 3.25.67)
joan-anthropic 7f40d5b
rm McpbUserConfigValuesSchema export
joan-anthropic e7d6ea3
Fix type error in buildManifest return type
joan-anthropic d7f76fc
Fix linting issues
joan-anthropic 30a3b8e
Remove vLatest concept and associated files
joan-anthropic efe9e33
Make McpbManifest point to v0.2 for backwards compatibility
joan-anthropic 70c3615
Add LATEST_MANIFEST_VERSION export (hardcoded to 0.3)
joan-anthropic 3fffc30
Use McpbManifestDefault derived from DEFAULT_MANIFEST_VERSION
joan-anthropic 8018a9a
Remove latest schema reference from build script
joan-anthropic 21c9710
Fix lint errors in types.ts and remove any casts
joan-anthropic 3a9ee6e
Export schemas/index instead of specific version
joan-anthropic 07b7743
Fix lint errors: sort imports and rename unused parameter
joan-anthropic e59797f
chore: major version bump
joan-anthropic 08cb52b
remove localization param
joan-anthropic e4f1236
Fix TypeScript error: remove localization argument from buildManifest…
joan-anthropic 5f87ea5
Comment out localization parameter in tests
joan-anthropic 5f6b15b
remove da bad tings
MarshallOfSound File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| // 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"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,17 @@ | ||
| 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"; | ||
| export * as any from "./any.js"; | ||
| export * as latest from "./latest.js"; | ||
| export { | ||
| MANIFEST_VERSION as LATEST_MANIFEST_VERSION, | ||
| McpbManifestSchema, | ||
| } from "./latest.js"; | ||
| export * as vAny from "./any.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; |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| export * as v0_1 from "./0.1.js"; | ||
| export * as v0_2 from "./0.2.js"; | ||
| export * as v0_3 from "./0.3.js"; | ||
| export * as latest from "./latest.js"; |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| import { z } from "zod"; | ||
|
|
||
| export const McpbUserConfigValuesSchema = z.record( | ||
| z.string(), | ||
| z.union([z.string(), z.number(), z.boolean(), z.array(z.string())]), | ||
| ); | ||
|
|
||
| export const McpbSignatureInfoSchema = z.strictObject({ | ||
| status: z.enum(["signed", "unsigned", "self-signed"]), | ||
| publisher: z.string().optional(), | ||
| issuer: z.string().optional(), | ||
| valid_from: z.string().optional(), | ||
| valid_to: z.string().optional(), | ||
| fingerprint: z.string().optional(), | ||
| }); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove localization from
initfor now, this is a v0.3 field