Repository navigation
Commit b8a6dde
feat(cache): unhide remote caching config types and CLI help (#1046)
## Motivation
Remote caching is ready to be documented and validated in Vite+, so its
configuration fields (`cache.remote` at the workspace root and per task)
and the `--remote-cache` CLI flag should be visible in the generated
TypeScript types and `vp run --help` output instead of hidden (reverting
the hiding done in #820).
## Changes
- Remove `hide = true` from `--remote-cache` in
`crates/vt/src/cli/mod.rs`.
- Remove `ts(skip)` from `EnabledCacheConfig.remote` and
`UserGlobalCacheConfig::Detailed.remote`, derive `TS`
(`RemoteCacheConfig`) on `UserRemoteCacheConfig` (typing `headers` as `{
[key in string]: string | undefined }`), and regenerate
`crates/vt_graph/run-config.ts`.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Documentation and type-export changes only; remote cache runtime
behavior is unchanged.
>
> **Overview**
> Makes **remote caching** discoverable in user-facing surfaces now that
it is ready to document: the `--remote-cache` flag appears in `vp run
--help`, and generated `run-config.ts` exposes **`RemoteCacheConfig`**
(URL, headers), **`cache.remote`** on the workspace root, and per-task
**`cache.remote`** booleans.
>
> Rust config types drop the prior `ts(skip)` / hidden-CLI guards and
wire **`UserRemoteCacheConfig`** into the TypeScript export pipeline
(including typed `headers`).
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
68fdd4d. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Co-authored-by: Gemini 4 Neon <noreply@google.com>1 parent 3541c0c commit b8a6dde
3 files changed
Lines changed: 53 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
| 78 | + | |
80 | 79 | | |
81 | 80 | | |
82 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
29 | 58 | | |
30 | 59 | | |
31 | 60 | | |
| |||
87 | 116 | | |
88 | 117 | | |
89 | 118 | | |
90 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
91 | 131 | | |
92 | 132 | | |
93 | 133 | | |
| |||
111 | 151 | | |
112 | 152 | | |
113 | 153 | | |
114 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
115 | 159 | | |
116 | 160 | | |
117 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
257 | | - | |
258 | 256 | | |
259 | 257 | | |
260 | 258 | | |
| |||
395 | 393 | | |
396 | 394 | | |
397 | 395 | | |
398 | | - | |
399 | | - | |
400 | 396 | | |
401 | 397 | | |
402 | 398 | | |
| |||
475 | 471 | | |
476 | 472 | | |
477 | 473 | | |
| 474 | + | |
| 475 | + | |
478 | 476 | | |
479 | 477 | | |
480 | 478 | | |
| |||
500 | 498 | | |
501 | 499 | | |
502 | 500 | | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
503 | 505 | | |
504 | 506 | | |
505 | 507 | | |
| |||
0 commit comments