@vzn/vx 0.0.459 → 0.0.461

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.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. package/src/cli/why.ts +11 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vzn/vx",
3
- "version": "0.0.459",
3
+ "version": "0.0.461",
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.459",
25
- "@vzn/vx-linux-arm64": "0.0.459",
26
- "@vzn/vx-darwin-x64": "0.0.459",
27
- "@vzn/vx-darwin-arm64": "0.0.459"
24
+ "@vzn/vx-linux-x64": "0.0.461",
25
+ "@vzn/vx-linux-arm64": "0.0.461",
26
+ "@vzn/vx-darwin-x64": "0.0.461",
27
+ "@vzn/vx-darwin-arm64": "0.0.461"
28
28
  },
29
29
  "dependencies": {
30
30
  "@anthropic-ai/sandbox-runtime": "^0.0.76"
package/src/cli/why.ts CHANGED
@@ -235,7 +235,17 @@ export async function whyCmd(args: readonly string[]): Promise<number> {
235
235
  } else {
236
236
  const p = why.previousRun
237
237
  lines.push(` previous ${fmtWhen(p.startedAt)} · ${p.status} · key ${p.hash}`)
238
- lines.push(` verdict ${why.note}`)
238
+ // The key moved and the diff says by what: the verdict names it, so
239
+ // an env-only change reads as one line, not "inputs differ" above a
240
+ // table to scan.
241
+ const moved = diff.entries.map((e) => `${e.kind} ${printable(e.name)}`)
242
+ lines.push(
243
+ ` verdict ${
244
+ why.hashChanged === true && moved.length > 0
245
+ ? `cache key changed: ${moved.slice(0, 3).join(', ')}${moved.length > 3 ? ` and ${moved.length - 3} more` : ''}`
246
+ : why.note
247
+ }`,
248
+ )
239
249
  }
240
250
 
241
251
  if (diff.entries.length > 0) {