feat(ipc): runner-aware task IPC infra + auto env tracking#430
Draft
wan9chi wants to merge 1 commit into
Draft
Conversation
Establishes the runner ↔ vite IPC channel and the auto env-tracking half of runner-aware caching: - `vite_task_ipc_shared`, `vite_task_server`, `vite_task_client`(+napi): the IPC protocol, Rust transport, and embedded napi client vite loads by absolute path (no-op when absent). - vite reports `getEnv`/`getEnvs`/`disableCache` to the runner; the fingerprint diffs the tracked env value/glob match-set across runs and reports `envs changed` on a miss (wording matches manual env config). - `ignoreInput`/`ignoreOutput` are accepted over IPC but applied as a no-op for now — they land with auto output tracking. - Auto output restoration stays disabled: `output: None` resolves to a disabled glob config (matching prior behavior), so a cache hit replays recorded output without restoring written files. The napi `type-def` emission for the embedded client cdylib is redirected to a discarded sink in its build.rs so it doesn't leak `RunnerClient`/`load` into consumer bindings. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Member
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
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.

PR 1 of 2 — splits #410 into a Graphite stack.
Stack:
mainEstablishes the runner ↔ vite IPC channel and the auto env-tracking half of runner-aware caching:
vite_task_ipc_shared,vite_task_server,vite_task_client(+napi): the IPC protocol, Rust transport, and embedded napi client vite loads by absolute path (no-op when absent).getEnv/getEnvs/disableCacheto the runner; the fingerprint diffs the tracked env value/glob match-set across runs and reportsenvs changedon a miss (wording matches manual env config).ignoreInput/ignoreOutputare accepted over IPC but applied as a no-op here — they land in feat(cache): runner-aware auto output tracking + ignore consumption #431.output: Noneresolves to a disabled glob config (matching prior behavior), so a cache hit replays recorded output without restoring written files.The napi
type-defemission for the embedded client cdylib is redirected to a discarded sink in its build.rs so it doesn't leakRunnerClient/loadinto consumer bindings.🤖 Generated with Claude Code