@recallai/desktop-sdk 0.0.0-nightly.20251213T233849-b16ebac26523cc7e475d76c41d85931816baed7a → 0.0.0-nightly.20251215T011631-c9fd5bfe1abad87a8b0684433b9698c4c7bea1df

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/index.js +3 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -74,9 +74,11 @@ const pendingCommands = {};
74
74
  let lastOptions;
75
75
  let remainingAutomaticRestarts = 10;
76
76
  let unexpectedShutdown = false;
77
+ let exiting = false;
77
78
  let logBuffer = [];
78
79
  let logIndex = 0;
79
80
  process.on("exit", () => {
81
+ exiting = true;
80
82
  if (proc && !proc.killed) {
81
83
  proc.kill();
82
84
  proc = null;
@@ -307,7 +309,7 @@ function startProcess() {
307
309
  rlStderr?.close();
308
310
  rlStdout = null;
309
311
  rlStderr = null;
310
- if (code === 0 || signal === 'SIGINT') {
312
+ if (code === 0 || signal === 'SIGINT' || exiting) {
311
313
  return;
312
314
  }
313
315
  logError(`Desktop SDK: Process exited with code ${code}, signal ${signal}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@recallai/desktop-sdk",
3
- "version": "0.0.0-nightly.20251213T233849-b16ebac26523cc7e475d76c41d85931816baed7a",
3
+ "version": "0.0.0-nightly.20251215T011631-c9fd5bfe1abad87a8b0684433b9698c4c7bea1df",
4
4
  "description": "Recall Desktop SDK",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -20,5 +20,5 @@
20
20
  "@types/node": "^24.2.0",
21
21
  "typescript": "^5.3.3"
22
22
  },
23
- "commit_sha": "b16ebac26523cc7e475d76c41d85931816baed7a"
23
+ "commit_sha": "c9fd5bfe1abad87a8b0684433b9698c4c7bea1df"
24
24
  }