feat(dev): materialize immutable generations#759
Open
ctgowrie wants to merge 2 commits into
Open
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
7b4c794 to
a202392
Compare
a202392 to
1c9ad44
Compare
1a5e322 to
c0c3030
Compare
Signed-off-by: Casey Gowrie <ctgowrie@gmail.com>
Third-party dependencies inlined into a generation bundle can import `@workflow/*` (e.g. `@ai-sdk/provider-utils` -> `@workflow/serde`). eve vendors those packages, so leaving the import external emits a bare specifier no materialized generation can resolve. Externalize workflow runtime imports only for authored importers and inline them inside bundled node_modules code. Also exclude the channel identity plugin from generation bundles so an immutable artifact structurally cannot read the process-global channel cache, and split the package boundary plugins into their own module. Signed-off-by: Casey Gowrie <ctgowrie@gmail.com>
c0c3030 to
4d02fe3
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Why
Development snapshots still depended on authored files and dependency links in the live workspace. Removing a tool, changing a package, or advancing away from the startup snapshot could leave retained runtime behavior or later Nitro rebuilds pointing at files that no longer existed.
What
Stage boundary
This is Stage 2 stacked on #739. It does not introduce parent-owned workers, request transport, transactional watcher promotion, channel routing changes, Workflow generation selection, or reference-driven pruning.
Validation