Repository navigation
Better organize runtime modules - #841
Merged
Merged
Conversation
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://codex-organize-runtime-modules-void-cloud.voidzero-docs.workers.dev (commit db1a52c)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
Move runtime files with git mv without changing their contents. Keep import and packaging updates in the following commit so small entry files retain a clear rename history.
Update imports, generated-code paths, package exports, build entries and tests for the feature directories while preserving public import names. Share pure email pattern compilation and ordering between the filesystem scanner and runtime email test harness, and retain descriptive role names.
yangshun
force-pushed
the
codex/organize-runtime-modules
branch
from
November 16, 2026 03:47
3e60005 to
db1a52c
Compare
yangshun
marked this pull request as ready for review
November 16, 2026 04:05
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.
Issue
Group the mostly flat runtime helpers into feature directories. The runtime root now contains only directories, with standalone public features using
<feature>/index.ts. Retain descriptive engine, handler, and client/server roles in filenames. Update imports, generated-code paths, build entries, package exports and tests while preserving publicvoid/*import names.Before: 76 direct files and 3 directories under
packages/void/src/runtime/. Filename patterns below summarize related files.After: Feature directories.
I think some files could be better categorized but I didn't want to make that many changes yet, mainly focused on organization of the
runtimedirectory. Feel free to move more files.Keep the email protocol beside its runtime in
email/protocol.ts, and move the cross-feature base64 helper tosrc/shared/base64.ts. Extract email pattern compilation and dispatch ordering intosrc/shared/email-pattern.ts. The file scanner and runtime email test harness share this dependency-free module, removing filesystem discovery from the harness dependency graph.Notes
Validation
vp run check.CI=true vp run test: full 811-file selection, with 17,326 passing tests (35 skipped).