@vzn/vx 0.0.335 → 0.0.336

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/README.md CHANGED
@@ -205,6 +205,8 @@ machine.
205
205
  | [`@vzn/vx-mcp`](packages/vx-mcp) | `vx mcp`: a read-only MCP server for AI coding agents |
206
206
  | [`@vzn/vx-schedule-history`](packages/vx-schedule-history) | Schedule by the critical path learned from past runs |
207
207
 
208
+ Only `@vzn/vx` is on npm today; the plugins' first publish is pending.
209
+
208
210
  Write your own: [plugin guide](https://vznjs.github.io/vx/guides/plugins/) ·
209
211
  [architecture](packages/vx/docs/architecture.md).
210
212
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vzn/vx",
3
- "version": "0.0.335",
3
+ "version": "0.0.336",
4
4
  "description": "A fast, correct 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.335",
25
- "@vzn/vx-linux-arm64": "0.0.335",
26
- "@vzn/vx-darwin-x64": "0.0.335",
27
- "@vzn/vx-darwin-arm64": "0.0.335"
24
+ "@vzn/vx-linux-x64": "0.0.336",
25
+ "@vzn/vx-linux-arm64": "0.0.336",
26
+ "@vzn/vx-darwin-x64": "0.0.336",
27
+ "@vzn/vx-darwin-arm64": "0.0.336"
28
28
  },
29
29
  "dependencies": {
30
30
  "@anthropic-ai/sandbox-runtime": "^0.0.76"
@@ -25,8 +25,8 @@ export interface KeepAlive {
25
25
  /**
26
26
  * A persistent task the user REQUESTED (or one surfaced for display) is the
27
27
  * run's whole purpose — it is left running and blocked on at the very end,
28
- * after the summary. So is every persistent task a kept one depends on,
29
- * directly or through groups: `vx run dev --filter app` stopped the api#dev
28
+ * after the summary. So is every persistent task a requested group stands
29
+ * for, and every one a kept one depends on, directly or through groups: `vx run dev --filter app` stopped the api#dev
30
30
  * its app#dev was started against (C-46). A one-shot's persistent deps are
31
31
  * not kept on its account; it has finished with them. Only in the real CLI
32
32
  * foreground: a custom logger or `handleSignals: false` (watch mode,
@@ -38,11 +38,15 @@ export function selectKeepAlive(
38
38
  foreground: boolean,
39
39
  ): KeepAlive {
40
40
  const out: KeepAlive = { nodes: [], children: [] }
41
- if (!foreground) return out
42
- const stack = [...registry.keys()].filter((id) => {
43
- const n = nodes.get(id)
44
- return n !== undefined && (n.requested || n.surfaced === true)
45
- })
41
+ if (!foreground || registry.size === 0) return out
42
+ // A requested GROUP is a requested server's stand-in: `vx run app#dev`
43
+ // over `dev: { dependsOn: ['^dev'] }` started every server and exited 0
44
+ // at the end of the graph, stopping them all (C-52).
45
+ const stack: string[] = []
46
+ for (const [id, n] of nodes) {
47
+ if (!n.requested && n.surfaced !== true) continue
48
+ if (registry.has(id) || isGroupTask(n)) stack.push(id)
49
+ }
46
50
  const reached = new Set<string>()
47
51
  while (stack.length > 0) {
48
52
  const id = stack.pop()!