@vzn/vx 0.0.178 → 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.178",
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.178",
21
- "@vzn/vx-linux-arm64": "0.0.178",
22
- "@vzn/vx-darwin-x64": "0.0.178",
23
- "@vzn/vx-darwin-arm64": "0.0.178"
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