-
Notifications
You must be signed in to change notification settings - Fork 682
Add @rushstack/heft-zod-schema-plugin and pilot it on rush-lib's experiments.json #5788
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
Draft
Copilot
wants to merge
9
commits into
main
Choose a base branch
from
copilot/replace-json-schema-with-zod
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
b7da035
feat(heft-zod-schema-plugin): new plugin to generate *.schema.json fr…
Copilot a500f8f
feat(rush-lib): pilot heft-zod-schema-plugin with experiments.zod.ts
Copilot 1b4df78
fix: correct package name in heft-zod-schema-plugin LICENSE header
Copilot 1003aae
(chore) rush update for new @rushstack/rush-schemas package
Copilot 0183306
address code-review feedback: harmonize schema descriptions with TSDo…
Copilot 60d69b0
address review feedback: cleanup, alphabetical deps, drop unused IRep…
Copilot 08e3937
add @rushstack/rush-schemas as a rush-sdk dependency so the IExperime…
Copilot 88fc2b6
feat(rush-lib): validate experiments/cobuild/repo-state via zod schem…
Copilot 429889d
refactor(rush-schemas): derive IExperimentsJson from experimentsSchem…
Copilot 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
10 changes: 10 additions & 0 deletions
10
common/changes/@microsoft/rush-lib/zod-schema-pilot_2026-04-19.json
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,10 @@ | ||
| { | ||
| "changes": [ | ||
| { | ||
| "packageName": "@microsoft/rush-lib", | ||
| "comment": "Move the IExperimentsJson interface declaration to the new @rushstack/rush-schemas package. rush-lib re-exports the interface so existing imports remain stable.", | ||
| "type": "none" | ||
| } | ||
| ], | ||
| "packageName": "@microsoft/rush-lib" | ||
| } |
10 changes: 10 additions & 0 deletions
10
common/changes/@rushstack/heft-zod-schema-plugin/zod-schema-plugin_2026-04-19.json
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,10 @@ | ||
| { | ||
| "changes": [ | ||
| { | ||
| "packageName": "@rushstack/heft-zod-schema-plugin", | ||
| "comment": "Initial release. A Heft task plugin that converts zod validators into *.schema.json build outputs using zod 4's built-in z.toJSONSchema(). Includes a withSchemaMeta() helper for attaching $schema/title/description/x-tsdoc-release-tag metadata to a zod schema.", | ||
| "type": "minor" | ||
| } | ||
| ], | ||
| "packageName": "@rushstack/heft-zod-schema-plugin" | ||
| } |
10 changes: 10 additions & 0 deletions
10
common/changes/@rushstack/rush-schemas/rush-schemas-init_2026-04-19.json
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,10 @@ | ||
| { | ||
| "changes": [ | ||
| { | ||
| "packageName": "@rushstack/rush-schemas", | ||
| "comment": "Initial release. Pilots a dedicated home for zod-authored Rush configuration schemas (experiments, cobuild, repo-state, build-cache) that emits both runtime validators and *.schema.json artifacts.", | ||
| "type": "none" | ||
| } | ||
| ], | ||
| "packageName": "@rushstack/rush-schemas" | ||
| } |
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
55 changes: 45 additions & 10 deletions
55
common/config/subspaces/build-tests-subspace/pnpm-lock.yaml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| // DO NOT MODIFY THIS FILE MANUALLY BUT DO COMMIT IT. It is generated and used by Rush. | ||
| { | ||
| "pnpmShrinkwrapHash": "1266218fdf9ed4d67e625f96e8c1cc4bae29dc68", | ||
| "pnpmShrinkwrapHash": "560bb998f1afda8ac0aa2d2087111c88f23bc845", | ||
| "preferredVersionsHash": "550b4cee0bef4e97db6c6aad726df5149d20e7d9", | ||
| "packageJsonInjectedDependenciesHash": "9c068bf4931bd84aa82934f391073bf027e52b69" | ||
| "packageJsonInjectedDependenciesHash": "3f7b5f1960e61c2a3d039187d38b51c9211f6b17" | ||
| } |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| // DO NOT MODIFY THIS FILE MANUALLY BUT DO COMMIT IT. It is generated and used by Rush. | ||
| { | ||
| "pnpmShrinkwrapHash": "b649b4390090c37d5feb374b0c04bf100edc8047", | ||
| "pnpmShrinkwrapHash": "a2c8f7f19f774ed72d75aa83c6639ac8e034c8ba", | ||
| "preferredVersionsHash": "029c99bd6e65c5e1f25e2848340509811ff9753c" | ||
| } |
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
Oops, something went wrong.
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.
@copilot - can we upgrade
@modelcontextprotocol/sdkto pull in v4 ofzodin the project that currently needs v3?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.
Latest
@modelcontextprotocol/sdk(1.25+/1.29) does supportzod ^3.25 || ^4.0, so in principle yes. I tried the upgrade locally and it surfaces two unrelated breaks that need real source changes inrush-mcp-server:apps/rush-mcp-server/src/tools/base.tool.tsusesz.objectOutputType<...>— that's a zod-3 internal type that was removed in zod 4; theBaseToolgeneric plumbing needs to be re-expressed.transport.d.tsthat references the DOMHeadersInitglobal, which doesn't resolve under the current@types/node/libsettings.Neither is conceptually hard, but both are out-of-scope for this PR (which is the schemas package pivot) and want their own validation. Reverted the speculative upgrade in this branch and left a follow-up task in the PR description so the zod-3 alternative version stays scoped to
rush-mcp-serverfor now.