@vzn/vx 0.0.177 → 0.0.179
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vzn/vx",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.179",
|
|
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.179",
|
|
21
|
+
"@vzn/vx-linux-arm64": "0.0.179",
|
|
22
|
+
"@vzn/vx-darwin-x64": "0.0.179",
|
|
23
|
+
"@vzn/vx-darwin-arm64": "0.0.179"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@anthropic-ai/sandbox-runtime": "^0.0.76"
|
|
@@ -41,7 +41,28 @@ import { nonJsonMessage, nonJsonPaths, type NonJsonValue } from './json-data.js'
|
|
|
41
41
|
|
|
42
42
|
const WORKER_SRC = `
|
|
43
43
|
const nonJsonPaths = ${nonJsonPaths.toString()}
|
|
44
|
+
// The parent's stdout is a verb's JSON or vx mcp's JSON-RPC stream, and a
|
|
45
|
+
// config printing on a repeat load wrote into it: the server's own redirect
|
|
46
|
+
// covers the parent thread only (D-64). This worker only evaluates configs,
|
|
47
|
+
// so every route to fd 1 is stderr's, Bun's own included (item 1069).
|
|
48
|
+
const quiet = (async () => {
|
|
49
|
+
const P = globalThis.process
|
|
50
|
+
const B = globalThis.Bun
|
|
51
|
+
const { Console } = await import('node:console')
|
|
52
|
+
globalThis.console = Object.assign(new Console(P.stderr, P.stderr), {
|
|
53
|
+
write: (...data) => {
|
|
54
|
+
const text = data.join('')
|
|
55
|
+
P.stderr.write(text)
|
|
56
|
+
return text.length
|
|
57
|
+
},
|
|
58
|
+
})
|
|
59
|
+
P.stdout.write = (...args) => P.stderr.write(...args)
|
|
60
|
+
const ownBunWrite = B.write
|
|
61
|
+
B.write = (dest, ...rest) => ownBunWrite(dest === B.stdout ? B.stderr : dest, ...rest)
|
|
62
|
+
B.stdout.writer = (...args) => B.stderr.writer(...args)
|
|
63
|
+
})()
|
|
44
64
|
self.onmessage = async (e) => {
|
|
65
|
+
await quiet
|
|
45
66
|
const { id, path, env } = e.data
|
|
46
67
|
// A Worker starts with the process's STARTUP environment, not the
|
|
47
68
|
// parent's process.env as written since (probed): a config reading an
|
|
@@ -32,6 +32,7 @@ import { existsSync, readFileSync, realpathSync, statSync } from 'node:fs'
|
|
|
32
32
|
import { realpath } from 'node:fs/promises'
|
|
33
33
|
import { builtinModules } from 'node:module'
|
|
34
34
|
import path from 'node:path'
|
|
35
|
+
import { isOutOfFds } from '../util/index.js'
|
|
35
36
|
import type { ProjectMeta } from './workspace.js'
|
|
36
37
|
|
|
37
38
|
const BUILTINS = new Set(builtinModules)
|
|
@@ -472,7 +473,10 @@ export async function configImportOwners(a: ConfigImportOwnersArgs): Promise<Set
|
|
|
472
473
|
visited.add(file)
|
|
473
474
|
try {
|
|
474
475
|
return { file, source: await Bun.file(file).text() }
|
|
475
|
-
} catch {
|
|
476
|
+
} catch (err) {
|
|
477
|
+
// Out of descriptors is this level's width, not the file: read as
|
|
478
|
+
// no edges, it dropped every project the import selects (D-63).
|
|
479
|
+
if (isOutOfFds(err)) throw err
|
|
476
480
|
return null // unreadable: no edges, and not this pass's problem to report
|
|
477
481
|
}
|
|
478
482
|
}),
|