feat: integrate vite-task runner-aware tools (auto output + tracked envs)#1774
feat: integrate vite-task runner-aware tools (auto output + tracked envs)#1774wan9chi wants to merge 15 commits into
Conversation
✅ Deploy Preview for viteplus-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
83d8d81 to
6006f44
Compare
2d380bf to
a39a5d3
Compare
f3c2f78 to
0c7099a
Compare
0c7099a to
5285a43
Compare
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
baadc47 to
8f14d85
Compare
|
✅ Staging deployment successful! Preview: https://viteplus-staging.void.app/ |
6c9f8bf to
88a28a4
Compare
52d8389 to
db35a29
Compare
| UserInputEntry::Auto(AutoInput { auto: true }), | ||
| UserInputEntry::Auto(AutoTracking { auto: true }), | ||
| exclude_glob("!node_modules/.vite-temp/**", InputBase::Workspace), | ||
| exclude_glob("!node_modules/.vite-temp/**", InputBase::Package), |
There was a problem hiding this comment.
According to https://discord.com/channels/1475973262193459293/1479410337223802951/1518498738413244446, these two lines which exclude .vite-temp config files could probably be safely removed, since the config files will be ignored automatically.
…nvs) Vite reports its inputs/outputs/envs to the `vp` runner via `@voidzero-dev/vite-task-client`, so `vp build` no longer needs a hand-synthesized cache config. - Bump vite-task git deps to c44d7c33 (runner-aware IPC server/client + embedded napi addon); regenerate run-config.ts for the new task-config types. - Point the vite behind vp build/vp dev to latest vitejs/vite (c13a37b53), which carries the vite-task-client integration. vite lists vite-task-client in devDependencies, so it is bundled into vite's output (and thus into core) the same way as vite's other bundled deps (cac, esbuild, ...) — no extra dependency or build wiring needed. - Work around an upstream vite dts bug (vitejs/vite#21863): `node/index.ts` re-exports `KnownQueryTypeMap` but the type is declared without `export`, which breaks downstream type bundling (`vp build` MISSING_EXPORT). core's build adds the missing `export` when copying vite's type defs. - Remove vp build's synthetic cache config (env: [VITE_*], manual input excludes). All-None EnabledCacheConfig keeps caching enabled with auto input/output inference (output restoration); vp dev stays disabled. - Snap tests: vp-build-auto-output-restoration, vp-build-auto-tracked-env. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Repoints the vite-task git deps to the tip of the split stack (voidzero-dev/vite-task#431, the auto-output-track branch), whose crates tree is identical to the prior pin plus the runner env-change message refinement. Regenerates the two snapshots whose `VITE_*` cache-miss line now renders as "envs changed" (matching manual env config) instead of "tracked env glob 'VITE_*' changed". 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Picks up the cache-miss message refinement that now names the changed env var. Regenerates the two snapshots whose `VITE_*` cache-miss line reads `env 'VITE_MY_VAR' changed` / `env 'VITE_GREETING' changed` instead of the generic `envs changed`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
vite reports its transient bundled-config file under node_modules/.vite-temp to the task runner at runtime (ignoreInput/ ignoreOutput via @voidzero-dev/vite-task-client, vitejs/vite#22453), so the synthetic input excludes for pack/test/check are redundant. Keeps the OXLINT_TSGOLINT_PATH env tracking, results.json, !dist/**, and .vite/task-cache excludes unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Verify `vp run lint` and `vp run fmt` hit the cache on the second run. The lint fixture gitignores node_modules so oxlint does not fingerprint the runner's own node_modules/.vite/task-cache state; the fmt fixture sets an fmt config to avoid the non-deterministic "No config found" stderr-vs-stdout ordering. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
db35a29 to
22f79af
Compare
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Integrates the runner-aware-tools work now available on
vite-task/main: Vite reports its inputs/outputs/envs to thevprunner via@voidzero-dev/vite-task-client, sovp buildno longer needs a hand-synthesized cache config. This enables auto output restoration and auto tracked envs through the runner protocol.Changes
82ec12b2(latestmain): runner-aware IPC server/client + embedded napi addon, tracked env fingerprinting, automatic output tracking/restoration by default, per-schema-version cache directories, and prefix-env executable lookup fixes. Regenerate the napi binding (RunnerClient/loadexports) andrun-config.tsfor the new task-config types (AutoTracking).vp build/vp devto latest vitejs/vite (c13a37b53), which carries the vite-task-client integration. vite lists@voidzero-dev/vite-task-clientin devDependencies, so it is bundled into vite's output, and therefore into@voidzero-dev/vite-plus-core, the same way as vite's other bundled deps (cac, esbuild, ...). No extra runtime dependency or build wiring is needed.vp build's synthetic cache config (env: ["VITE_*"], manual input excludes). The all-NoneEnabledCacheConfigkeeps caching enabled with auto input/output inference; vite'signoreInput/ignoreOutput/getEnv/getEnvsrefine the fingerprint at runtime.vp devstaysdisabled().output: []as the opt-out.vp-build-auto-output-restoration(dist restored on cache hit without a syntheticoutputconfig) andvp-build-auto-tracked-env(aVITE_env change invalidates the cache and names the changed env). Edge cases live in vite-task.Notes
main; this PR now pins latestmain(82ec12b2). Changelog diff for the latest repin: voidzero-dev/vite-task@68fb22e...82ec12b#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4edc462c7c5, v1.1.0), which is compatible with vitec13a37b53's rolldown1.0.3requirement.