feat(cli): add vp toolchain command - #2111
Conversation
✅ Deploy Preview for viteplus-preview canceled.
|
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.
5cc88c7 to
991f8e5
Compare
vp toolchain inspection commandvp toolchain inspection command
|
✅ Staging deployment successful! Preview: https://viteplus-staging.void.app/ |
Native binary sizes (
|
| Artifact | Format | Base | PR | Change |
|---|---|---|---|---|
vp (Linux x64) |
Binary | 10.52 MiB | 10.65 MiB | +128.00 KiB (+1.19%) |
vp (Linux x64) |
gzip -9 | 4.55 MiB | 4.61 MiB | +55.92 KiB (+1.20%) |
| NAPI (Linux x64) | Binary | 33.68 MiB | 33.80 MiB | +124.00 KiB (+0.36%) |
| NAPI (Linux x64) | gzip -9 | 13.08 MiB | 13.13 MiB | +50.43 KiB (+0.38%) |
vp (macOS ARM64) |
Binary | 7.87 MiB | 7.95 MiB | +80.83 KiB (+1.00%) |
vp (macOS ARM64) |
gzip -9 | 3.97 MiB | 4.02 MiB | +51.72 KiB (+1.27%) |
| NAPI (macOS ARM64) | Binary | 41.00 MiB | 41.11 MiB | +113.03 KiB (+0.27%) |
| NAPI (macOS ARM64) | gzip -9 | 17.31 MiB | 17.35 MiB | +44.75 KiB (+0.25%) |
vp (Windows x64) |
Binary | 8.41 MiB | 8.52 MiB | +115.50 KiB (+1.34%) |
vp (Windows x64) |
gzip -9 | 3.67 MiB | 3.72 MiB | +53.31 KiB (+1.42%) |
| NAPI (Windows x64) | Binary | 27.77 MiB | 27.88 MiB | +111.00 KiB (+0.39%) |
| NAPI (Windows x64) | gzip -9 | 10.89 MiB | 10.94 MiB | +46.94 KiB (+0.42%) |
| 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 | 0 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 | +2 B (+0.00%) |
f63bac6 to
59b6626
Compare
vp toolchain inspection commandvp toolchain command
cef5191 to
d3e4477
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
3b63282 to
bcb67cc
Compare
This comment was marked as resolved.
This comment was marked as resolved.
95b3c52 to
f11b183
Compare
f11b183 to
44313d0
Compare
This comment was marked as resolved.
This comment was marked as resolved.
44313d0 to
a0f2f54
Compare
This comment was marked as resolved.
This comment was marked as resolved.
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
f46be24 to
e8cf7de
Compare
e8cf7de to
1f1a595
Compare
1f1a595 to
0e6798d
Compare
TheAlexLichter
left a comment
There was a problem hiding this comment.
Great start on this! in the future we could also warn if versions do not align for example?
@TheAlexLichter Yes, we can prompt the user whether to upgrade. |
0e6798d to
f689079
Compare
01e1c5d to
1af2327
Compare
1af2327 to
16c5cfc
Compare
Registry bridge build (
|
| Package | Version |
|---|---|
vite-plus |
0.0.0-commit.1af232781967a8d1c2b9667f185c2a333a8d74ab |
@voidzero-dev/vite-plus-core |
0.0.0-commit.1af232781967a8d1c2b9667f185c2a333a8d74ab |
Install the Vite+ CLI built from this commit, then migrate a project:
# macOS / Linux
curl -fsSL https://vite.plus | VP_PR_VERSION=2111 bash# Windows (PowerShell)
$env:VP_PR_VERSION="2111"; irm https://vite.plus/ps1 | iexAfter installing, upgrade the current project's vite-plus to this test build with:
vp migrateOr point your package manager at the bridge registry https://registry-bridge.viteplus.dev/:
| Package manager | Registry config |
|---|---|
| npm / pnpm / Bun | .npmrc: registry=https://registry-bridge.viteplus.dev/ |
| Yarn (v2+) | .yarnrc.yml: npmRegistryServer: "https://registry-bridge.viteplus.dev/" |
Then pin the build (vite aliases to vite-plus-core; pnpm can use a catalog, npm an overrides entry):
{
"devDependencies": {
"vite-plus": "0.0.0-commit.1af232781967a8d1c2b9667f185c2a333a8d74ab",
"vite": "npm:@voidzero-dev/vite-plus-core@0.0.0-commit.1af232781967a8d1c2b9667f185c2a333a8d74ab"
}
}
🐳 Docker preview imageBuilt from this PR's registry bridge build:
# remove any stale local copy from a previous run, then pull fresh
docker rmi ghcr.io/voidzero-dev/vite-plus:pr-2111 2>/dev/null; docker pull ghcr.io/voidzero-dev/vite-plus:pr-2111Quick check: docker run --rm ghcr.io/voidzero-dev/vite-plus:pr-2111 vp --versionSee docs/guide/docker.md for usage. |
Summary
Adds
vp toolchain. The command shows the tools, versions, and relationships in the active Vite+ release. Package managers cannot show bundled or compiled relationships such as Vite -> Rolldown -> Oxc.Vite Task no longer appears as
vite-task@0.0.0. The output shows its native build time and source revision.Output
Run
vp toolchainto show the full tree. Add tool names to select part of the tree. Use--jsonfor JSON output. Use--globalto show the global release.vp whykeeps its package-manager behavior. For readable output, it shows a hint when Vite+ also provides a queried package.An old local Vite+ release rejects the unknown command. The global CLI does not add a compatibility fallback.
The RFC remains Proposed for command and output review.