openzoo 0.34.2 → 0.34.3

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.
Files changed (2) hide show
  1. package/lib/hosts.js +7 -1
  2. package/package.json +1 -1
package/lib/hosts.js CHANGED
@@ -258,7 +258,13 @@ export function bindBackend443(modelsPath, logPath, log = console.log) {
258
258
  // 443, no cursor-backend.log, nothing to read. Send both streams to the log
259
259
  // the caller already passes, so a crash is on disk.
260
260
  + `mkdir -p "$(dirname '${logPath}')" 2>/dev/null; `
261
- + `nohup ${memEnv} '${node}' '${script}' 443 '${modelsPath}' '${logPath}' >>'${logPath}' 2>&1 & `
261
+ // `nohup VAR=val prog` DOES NOT WORK. nohup execs its first argument as a
262
+ // program; it is not a shell and does not parse leading VAR=val assignments.
263
+ // The old form died instantly with "nohup: OPENZOO_MEMBERSHIP=pro: No such
264
+ // file or directory" — the backend never started, nothing held :443, and
265
+ // before the logging fix above that message went to /dev/null and the
266
+ // failure was invisible. `env` is the program that does understand it.
267
+ + `nohup env ${memEnv} '${node}' '${script}' 443 '${modelsPath}' '${logPath}' >>'${logPath}' 2>&1 & `
262
268
  + 'sleep 1; true',
263
269
  );
264
270
  // Report whether it ACTUALLY came up rather than whether sudo exited 0 —
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openzoo",
3
- "version": "0.34.2",
3
+ "version": "0.34.3",
4
4
  "description": "Local x402-paying proxy + MCP server for openzoo.fun — point any OpenAI-compatible harness (Cursor, Claude Code, aider, SDKs) at localhost and it pays per call from a local burner wallet. Solana and Base rails live; Robinhood experimental.",
5
5
  "license": "MIT",
6
6
  "type": "module",