Skip to content

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

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

feat(cli): add vp toolchain inspection command#2111
fengmk2 wants to merge 3 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 packages, tools, and compiled engines used by the active Vite+ release. Package managers cannot expose bundled relationships such as Vite -> Rolldown -> Oxc.

Vite Task no longer appears as vite-task@0.0.0. The output shows the native build time and source revision instead.

Output

$ vp toolchain vite vite-task

Vite+ toolchain (local)

vite-plus@0.2.8
|-- depends on @voidzero-dev/vite-plus-core@0.2.8
|   `-- bundles vite@8.2.0
|       `-- uses rolldown@1.2.2
|           |-- compiles oxc@0.142.0
|           `-- compiles oxc-resolver@11.24.2
`-- compiles vite-task (built <build-time>, revision <revision>)

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 for tools provided by Vite+. 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 canceled.

Name Link
🔨 Latest commit bb758a4
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a743f7a7db8e80008123b80

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: bb758a4

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Native binary sizes (bb758a4)

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

Artifact Format Base PR Change
vp (Linux x64) Binary 10.54 MiB 10.63 MiB +96.00 KiB (+0.89%)
vp (Linux x64) gzip -9 4.56 MiB 4.60 MiB +34.67 KiB (+0.74%)
NAPI (Linux x64) Binary 33.57 MiB 33.68 MiB +104.00 KiB (+0.30%)
NAPI (Linux x64) gzip -9 13.03 MiB 13.07 MiB +44.14 KiB (+0.33%)
vp (macOS ARM64) Binary 7.89 MiB 7.95 MiB +64.66 KiB (+0.80%)
vp (macOS ARM64) gzip -9 3.98 MiB 4.01 MiB +35.94 KiB (+0.88%)
NAPI (macOS ARM64) Binary 40.91 MiB 40.98 MiB +80.78 KiB (+0.19%)
NAPI (macOS ARM64) gzip -9 17.26 MiB 17.29 MiB +39.36 KiB (+0.22%)
vp (Windows x64) Binary 8.43 MiB 8.51 MiB +83.00 KiB (+0.96%)
vp (Windows x64) gzip -9 3.67 MiB 3.71 MiB +38.52 KiB (+1.02%)
NAPI (Windows x64) Binary 27.67 MiB 27.76 MiB +86.50 KiB (+0.31%)
NAPI (Windows x64) gzip -9 10.84 MiB 10.88 MiB +38.54 KiB (+0.35%)
Trampoline (Windows x64) Binary 205.00 KiB 205.00 KiB 0 B (0.00%)
Trampoline (Windows x64) gzip -9 99.00 KiB 99.00 KiB -1 B (-0.00%)
Installer (Windows x64) Binary 4.45 MiB 4.45 MiB 0 B (0.00%)
Installer (Windows x64) gzip -9 2.09 MiB 2.09 MiB 0 B (0.00%)

@fengmk2
fengmk2 force-pushed the rfc/toolchain-command branch 2 times, most recently from 11b50ab to 4a7be4b Compare August 6, 2026 07:32
@fengmk2
fengmk2 force-pushed the rfc/toolchain-command branch from 4a7be4b to f63bac6 Compare August 6, 2026 07:34
@fengmk2
fengmk2 force-pushed the rfc/toolchain-command branch from f63bac6 to 59b6626 Compare August 6, 2026 07:49
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