@vzn/vx 0.0.559 → 0.0.561

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vzn/vx",
3
- "version": "0.0.559",
3
+ "version": "0.0.561",
4
4
  "description": "The fastest task runner and build cache for JavaScript monorepos.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -21,10 +21,10 @@
21
21
  "node": ">=18"
22
22
  },
23
23
  "optionalDependencies": {
24
- "@vzn/vx-linux-x64": "0.0.559",
25
- "@vzn/vx-linux-arm64": "0.0.559",
26
- "@vzn/vx-darwin-x64": "0.0.559",
27
- "@vzn/vx-darwin-arm64": "0.0.559"
24
+ "@vzn/vx-linux-x64": "0.0.561",
25
+ "@vzn/vx-linux-arm64": "0.0.561",
26
+ "@vzn/vx-darwin-x64": "0.0.561",
27
+ "@vzn/vx-darwin-arm64": "0.0.561"
28
28
  },
29
29
  "dependencies": {
30
30
  "@anthropic-ai/sandbox-runtime": "^0.0.76"
package/src/cli/watch.ts CHANGED
@@ -198,6 +198,11 @@ export async function watchCmd(args: readonly string[]): Promise<number> {
198
198
  return 0
199
199
  }
200
200
  if (refusedToStart) return 1
201
+ // `--affected`'s diff is the tree at start; judged again, it held every
202
+ // later edit out of the scope it picked. A cycle is an edit, and the
203
+ // cache keys decide what in the scope it re-runs.
204
+ delete opts.affected
205
+ delete opts.selectedOutright
201
206
 
202
207
  const load: CliLoadOptions = {
203
208
  ...(opts.cacheDir !== undefined ? { cacheDir: opts.cacheDir } : {}),
@@ -167,10 +167,10 @@ export interface VxPlugin {
167
167
  /**
168
168
  * Contribute a cache layer. Returns a CacheLayer wrapping (or replacing)
169
169
  * the local Cache, or undefined to decline. Consulted ONCE per prepareRun.
170
- * Precedence: first non-undefined plugin cache wins, in declaration
171
- * order, ahead of core's own `.vx/cache` handle at the tail. A layer
172
- * that WRAPS the local handle subsumes that tail, so it is not written
173
- * twice.
170
+ * Every contributed layer is kept and chained in declaration order,
171
+ * ahead of core's own `.vx/cache` handle at the tail: a lookup walks
172
+ * them until one hits, a save reaches each. A layer that WRAPS the local
173
+ * handle subsumes that tail, so it is not written twice.
174
174
  */
175
175
  cache?(ctx: CacheContext): CacheLayer | undefined | Promise<CacheLayer | undefined>
176
176