@vzn/vx 0.0.389 → 0.0.390
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/orchestrator/run.ts +15 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vzn/vx",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.390",
|
|
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.390",
|
|
25
|
+
"@vzn/vx-linux-arm64": "0.0.390",
|
|
26
|
+
"@vzn/vx-darwin-x64": "0.0.390",
|
|
27
|
+
"@vzn/vx-darwin-arm64": "0.0.390"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@anthropic-ai/sandbox-runtime": "^0.0.76"
|
package/src/orchestrator/run.ts
CHANGED
|
@@ -1270,12 +1270,26 @@ async function runOnBus(
|
|
|
1270
1270
|
// for it, and an exit 1 with no word about why is a mystery in a log.
|
|
1271
1271
|
if (keepAlive.children.length > 0 && hold) {
|
|
1272
1272
|
const held = keepAlive.children
|
|
1273
|
+
// A held server that dies on its own is said, as the foreground's
|
|
1274
|
+
// keep-alive says it: `vx watch` sat on "watching" over a dead dev
|
|
1275
|
+
// server. The holder's own stop() is not such a death.
|
|
1276
|
+
let stopping = false
|
|
1277
|
+
keepAlive.nodes.forEach((n, i) => {
|
|
1278
|
+
// One that died during the graph was said then.
|
|
1279
|
+
if (hasEnded(held[i]!)) return
|
|
1280
|
+
void held[i]!.exited.then((code) => {
|
|
1281
|
+
if (!stopping && code !== 0) log.status(`vx: ${n.id} exited with code ${code}`)
|
|
1282
|
+
})
|
|
1283
|
+
})
|
|
1273
1284
|
return {
|
|
1274
1285
|
ok,
|
|
1275
1286
|
outcomes: list,
|
|
1276
1287
|
persistent: {
|
|
1277
1288
|
ids: keepAlive.nodes.map((n) => n.id),
|
|
1278
|
-
stop: (signal) =>
|
|
1289
|
+
stop: (signal) => {
|
|
1290
|
+
stopping = true
|
|
1291
|
+
return terminateChildren(() => held, signal)
|
|
1292
|
+
},
|
|
1279
1293
|
},
|
|
1280
1294
|
}
|
|
1281
1295
|
}
|