Skip to content

feat(cli): add vp toolchain inspection command - #2111

Draft
fengmk2 wants to merge 2 commits into
mainfrom
rfc/toolchain-command
Draft

feat(cli): add vp toolchain inspection command#2111
fengmk2 wants to merge 2 commits into
mainfrom
rfc/toolchain-command

Conversation

@fengmk2

@fengmk2 fengmk2 commented Jul 9, 2026

Copy link
Copy Markdown
Member

Summary

Adds vp toolchain to show the exact packages, tools, and compiled engines used by the active Vite+ release. This covers versions that package managers cannot inspect, such as the Vite, Rolldown, and Oxc chain bundled into Vite+.

Output

$ vp toolchain vite

Vite+ toolchain (local)

vite-plus@0.2.7
`-- depends on @voidzero-dev/vite-plus-core@0.2.7
    `-- bundles vite@8.2.0
        `-- uses rolldown@1.2.2
            |-- compiles oxc@0.142.0
            `-- compiles oxc-resolver@11.24.2

Run vp toolchain for the full tree, pass tool names to filter it, use --json for structured output, or use --global to inspect the global release.

vp why keeps its package-manager behavior and prints a hint when a queried package is also part of the Vite+ toolchain. The command uses local-first routing; an old local Vite+ version rejects the unknown command without a compatibility fallback.

The RFC remains Proposed while the command and output are reviewed.

@netlify

netlify Bot commented Jul 9, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview ready!

Name Link
🔨 Latest commit 11b50ab
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a71e005c2e62c0008e42200
😎 Deploy Preview https://deploy-preview-2111--viteplus-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

fengmk2 added a commit that referenced this pull request Jul 10, 2026
The size gate compared the PR head against the current tip of the base
branch. A branch that forked before a native-input change landed on main
failed the hash comparison and got a six-platform rebuild plus a size
report whose deltas came from commits already on main. #2111 hit this:
an RFC-only PR received the size report for the #2104 dependency
upgrade.

The gate now resolves the merge base and both compares and builds
against it. The build runs only when the PR itself changes a native
input, and the report covers only the PR's own delta. PRs that edit this
workflow file still trigger a run.

The run on this PR exercised the new path end to end: base built at the
merge base, head at the PR, and the size report shows 0 B raw delta on
every artifact.
@fengmk2 fengmk2 self-assigned this Aug 4, 2026
@fengmk2
fengmk2 force-pushed the rfc/toolchain-command branch from 5cc88c7 to 991f8e5 Compare August 4, 2026 08:35
@fengmk2 fengmk2 changed the title docs(rfc): propose vp toolchain inspection command feat(cli): add vp toolchain inspection command Aug 4, 2026
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

✅ Staging deployment successful!

Preview: https://viteplus-staging.void.app/
Commit: 11b50ab

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Native binary sizes (11b50ab)

Final release artifacts built by the canonical build-upstream and build-windows-cli actions.

Artifact Format Base PR Change
vp (Linux x64) Binary 10.52 MiB 10.61 MiB +88.00 KiB (+0.82%)
vp (Linux x64) gzip -9 4.55 MiB 4.58 MiB +34.37 KiB (+0.74%)
NAPI (Linux x64) Binary 33.66 MiB 33.75 MiB +92.00 KiB (+0.27%)
NAPI (Linux x64) gzip -9 13.05 MiB 13.08 MiB +38.09 KiB (+0.29%)
vp (macOS ARM64) Binary 7.84 MiB 7.91 MiB +64.63 KiB (+0.80%)
vp (macOS ARM64) gzip -9 3.96 MiB 3.99 MiB +36.54 KiB (+0.90%)
NAPI (macOS ARM64) Binary 40.95 MiB 41.02 MiB +64.66 KiB (+0.15%)
NAPI (macOS ARM64) gzip -9 17.26 MiB 17.30 MiB +41.76 KiB (+0.24%)
vp (Windows x64) Binary 8.43 MiB 8.51 MiB +79.50 KiB (+0.92%)
vp (Windows x64) gzip -9 3.67 MiB 3.70 MiB +35.13 KiB (+0.93%)
NAPI (Windows x64) Binary 27.81 MiB 27.89 MiB +83.50 KiB (+0.29%)
NAPI (Windows x64) gzip -9 10.88 MiB 10.92 MiB +38.63 KiB (+0.35%)
Trampoline (Windows x64) Binary 203.00 KiB 203.00 KiB 0 B (0.00%)
Trampoline (Windows x64) gzip -9 97.91 KiB 97.91 KiB -1 B (-0.00%)
Installer (Windows x64) Binary 4.46 MiB 4.46 MiB 0 B (0.00%)
Installer (Windows x64) gzip -9 2.09 MiB 2.09 MiB -1 B (-0.00%)

@fengmk2
fengmk2 force-pushed the rfc/toolchain-command branch from 8f58e3f to 11b50ab Compare August 4, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant