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

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-worker.js CHANGED
@@ -434,18 +434,20 @@ conn.on("error", function(err) {
434
434
  });
435
435
 
436
436
  conn.on("close", function() {
437
- console.log("[sdk-worker] Socket closed, shutting down");
437
+ try { require("fs").writeSync(2, "[sdk-worker] EXIT REASON: socket closed\n"); } catch (e) {}
438
438
  cleanup();
439
439
  process.exit(0);
440
440
  });
441
441
 
442
442
  // Handle process signals
443
443
  process.on("SIGTERM", function() {
444
+ try { require("fs").writeSync(2, "[sdk-worker] EXIT REASON: SIGTERM\n"); } catch (e) {}
444
445
  cleanup();
445
446
  process.exit(0);
446
447
  });
447
448
 
448
449
  process.on("SIGINT", function() {
450
+ try { require("fs").writeSync(2, "[sdk-worker] EXIT REASON: SIGINT\n"); } catch (e) {}
449
451
  cleanup();
450
452
  process.exit(0);
451
453
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clay-server",
3
- "version": "2.20.1-beta.15",
3
+ "version": "2.20.1-beta.16",
4
4
  "description": "Web UI for Claude Code. Any device. Push notifications.",
5
5
  "bin": {
6
6
  "clay-server": "./bin/cli.js",