@vzn/vx 0.0.606 → 0.0.607
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 +5 -5
- package/src/cache/key-fold.ts +4 -0
- package/src/cli/why.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vzn/vx",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.607",
|
|
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.
|
|
25
|
-
"@vzn/vx-linux-arm64": "0.0.
|
|
26
|
-
"@vzn/vx-darwin-x64": "0.0.
|
|
27
|
-
"@vzn/vx-darwin-arm64": "0.0.
|
|
24
|
+
"@vzn/vx-linux-x64": "0.0.607",
|
|
25
|
+
"@vzn/vx-linux-arm64": "0.0.607",
|
|
26
|
+
"@vzn/vx-darwin-x64": "0.0.607",
|
|
27
|
+
"@vzn/vx-darwin-arm64": "0.0.607"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@anthropic-ai/sandbox-runtime": "^0.0.76"
|
package/src/cache/key-fold.ts
CHANGED
|
@@ -153,6 +153,10 @@ export async function foldKey(
|
|
|
153
153
|
h = xxh3(`pkg:${input.projectPackageJsonHash}`, h)
|
|
154
154
|
h = xxh3(`config:${input.taskConfigHash}`, h)
|
|
155
155
|
if (cap) {
|
|
156
|
+
// Recorded so `vx why` can name a key that moved only because vx
|
|
157
|
+
// keys differently now (an upgrade): unrecorded, every task's miss
|
|
158
|
+
// read as "inputs differ" with no input changed (X-142).
|
|
159
|
+
cap.push({ kind: 'format', name: 'cache-version', hash: CACHE_VERSION })
|
|
156
160
|
cap.push({ kind: 'workspace', name: 'fingerprint', hash: input.workspaceFingerprint })
|
|
157
161
|
cap.push({ kind: 'package', name: 'package.json', hash: input.projectPackageJsonHash })
|
|
158
162
|
cap.push({ kind: 'config', name: 'config', hash: input.taskConfigHash })
|
package/src/cli/why.ts
CHANGED
|
@@ -49,6 +49,8 @@ export const WHAT_TO_DO: Readonly<Record<string, string>> = {
|
|
|
49
49
|
"the task's evaluated config changed (its vx.config or a file it imports); `vx show <that task>` prints it as it is now",
|
|
50
50
|
upstream: "a dependency's key moved; `vx why <that task>` says why",
|
|
51
51
|
plugin: "a key plugin's material changed; that plugin decides what it folds",
|
|
52
|
+
format:
|
|
53
|
+
'vx keys tasks differently since an upgrade; every cached task misses once, nothing to fix',
|
|
52
54
|
}
|
|
53
55
|
|
|
54
56
|
export function parseWhyArgs(args: readonly string[]): WhyArgs {
|