@vzn/vx 0.0.93 → 0.0.94
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/cli/why.ts +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vzn/vx",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.94",
|
|
4
4
|
"description": "A fast, correct task runner and build cache for JavaScript monorepos.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"node": ">=18"
|
|
18
18
|
},
|
|
19
19
|
"optionalDependencies": {
|
|
20
|
-
"@vzn/vx-linux-x64": "0.0.
|
|
21
|
-
"@vzn/vx-linux-arm64": "0.0.
|
|
22
|
-
"@vzn/vx-darwin-x64": "0.0.
|
|
23
|
-
"@vzn/vx-darwin-arm64": "0.0.
|
|
20
|
+
"@vzn/vx-linux-x64": "0.0.94",
|
|
21
|
+
"@vzn/vx-linux-arm64": "0.0.94",
|
|
22
|
+
"@vzn/vx-darwin-x64": "0.0.94",
|
|
23
|
+
"@vzn/vx-darwin-arm64": "0.0.94"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@anthropic-ai/sandbox-runtime": "^0.0.76"
|
package/src/cli/why.ts
CHANGED
|
@@ -109,7 +109,11 @@ function suggest(query: string, ids: readonly string[]): string {
|
|
|
109
109
|
}
|
|
110
110
|
hits = nearMatches(query, byTask.keys()).flatMap((t) => byTask.get(t) ?? [])
|
|
111
111
|
}
|
|
112
|
-
|
|
112
|
+
if (hits.length > 0) return ` — did you mean ${hits.slice(0, 3).join(', ')}?`
|
|
113
|
+
// No near name: say where to look, or that there is nothing yet.
|
|
114
|
+
return ids.length === 0
|
|
115
|
+
? `; nothing has run here yet (vx run ${query}, then vx why)`
|
|
116
|
+
: '; `vx last --list` shows what has run'
|
|
113
117
|
}
|
|
114
118
|
|
|
115
119
|
/**
|