Repository navigation
perf(cli): bundle runtime entries to reduce Windows startup I/O - #1996
Merged
Merged
Conversation
Keep CLI and MCP bundles separate, preserve original module URLs and worker entrypoints, and share CLI output identities across bundled entries. Use a nonempty projection oracle with the documented filter slice grammar. Co-authored-by: Kaoru0822 <[email protected]>
Keep the owning metadata module external and retain identifiable lazy CLI facades for startup and cancellation checks. Co-authored-by: Kaoru0822 <[email protected]>
Co-authored-by: Kaoru0822 <[email protected]>
N0zoM1z0
marked this pull request as ready for review
October 12, 2026 01:11
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
3 tasks done
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.
The Windows dispatcher still loads the CLI module graph file by file. Bundle the CLI, output helpers and MCP doctor separately from MCP, while preserving original module URLs, lazy imports and worker files. Keep release metadata in its shared owning module so CLI, MCP, workers and package updates read the same version. Lazy CLI facades retain their source scope and named exports.
On Windows x64 / Node 24.18, two unprofiled observations per input on the same
89f5e489source gave:Each call used a fresh Node process, shared locked dependencies, two CPUs and BelowNormal priority. Order was counterbalanced; OS caches and host activity were uncontrolled. Separate CPU profiles analyzed with Flameox show module-stat/lstat sample share moving from 70.2% to 54.0%. All self sample weights were checked against raw V8 data; the candidate's inclusive table remains partial at the provider cap.
The package grows by about 1.12 MB compressed because original worker files remain shipped. The JSON/JSONL regression test now uses the documented comma slice and asserts a nonempty projection independently.
Validation at
c992f1f7(maine19879328): build, 18 focused tests, typecheck/lint, docs and normal packaging pass. All 1,392 archive files match source and the fresh Windows installation. Native Windows Evidence views, real JavaScript workers, nonempty filtered JSONL, MCP doctor and default-timeout stdio MCP pass; all 172 tools have valid schemas, text/structured parity and a working following ping. These archive installs reuse existing locked production dependencies. The installed-package verifier also passes, including real npm update through a local release registry, setup/uninstall and cleanup. All 31 exact-head CI checks pass, including the Linux, macOS and Windows package baselines.Refs #1065, #1685.