clay-server 2.20.1-beta.13 → 2.20.1-beta.15

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/lib/sdk-bridge.js CHANGED
@@ -707,14 +707,13 @@ function createSDKBridge(opts) {
707
707
  // Set socket permissions so the target user can connect
708
708
  try { fs.chmodSync(socketPath, 0o777); } catch (e) {}
709
709
 
710
- // Spawn worker process as the target Linux user
711
- var workerEnv = {
710
+ // Spawn worker process as the target Linux user.
711
+ // Inherit full env from daemon, override user-specific vars.
712
+ var workerEnv = Object.assign({}, process.env, {
712
713
  HOME: userInfo.home,
713
714
  USER: linuxUser,
714
- PATH: process.env.PATH || "/usr/local/bin:/usr/bin:/bin",
715
- NODE_PATH: process.env.NODE_PATH || "",
716
- LANG: process.env.LANG || "en_US.UTF-8",
717
- };
715
+ LOGNAME: linuxUser,
716
+ });
718
717
 
719
718
  console.log("[sdk-bridge] Spawning worker: uid=" + userInfo.uid + " gid=" + userInfo.gid + " cwd=" + cwd + " socket=" + socketPath);
720
719
  console.log("[sdk-bridge] Worker script: " + WORKER_SCRIPT);
package/lib/sdk-worker.js CHANGED
@@ -4,6 +4,9 @@
4
4
  //
5
5
  // Usage: node sdk-worker.js <socket-path>
6
6
 
7
+ // Early diagnostic — writes directly to fd 2 to ensure output even if pipes close fast
8
+ try { require("fs").writeSync(2, "[sdk-worker] BOOT pid=" + process.pid + " uid=" + (typeof process.getuid === "function" ? process.getuid() : "?") + " argv=" + process.argv.slice(1).join(" ") + "\n"); } catch (e) {}
9
+
7
10
  var net = require("net");
8
11
  var crypto = require("crypto");
9
12
  var path = require("path");
@@ -403,7 +406,9 @@ function cleanup() {
403
406
  }
404
407
 
405
408
  // --- Connect to daemon socket ---
409
+ try { require("fs").writeSync(2, "[sdk-worker] Connecting to socket: " + socketPath + "\n"); } catch (e) {}
406
410
  conn = net.connect(socketPath, function() {
411
+ try { require("fs").writeSync(2, "[sdk-worker] Connected, sending ready\n"); } catch (e) {}
407
412
  sendToDaemon({ type: "ready" });
408
413
  });
409
414
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clay-server",
3
- "version": "2.20.1-beta.13",
3
+ "version": "2.20.1-beta.15",
4
4
  "description": "Web UI for Claude Code. Any device. Push notifications.",
5
5
  "bin": {
6
6
  "clay-server": "./bin/cli.js",