@infersec/conduit 1.56.0 → 1.57.0

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/dist/cli.js +7 -6
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -20305,16 +20305,17 @@ class ProcessManager extends EventEmitter {
20305
20305
  if (!this.process) {
20306
20306
  return;
20307
20307
  }
20308
- this.process.kill(signal);
20308
+ const processRef = this.process;
20309
+ processRef.kill(signal);
20309
20310
  return new Promise(resolve => {
20310
- // Force kill after timeout if graceful shutdown fails
20311
+ let exited = false;
20311
20312
  const forceKillTimer = setTimeout(() => {
20312
- if (this.process && !this.process.killed) {
20313
- this.process.kill("SIGKILL");
20313
+ if (!exited) {
20314
+ processRef.kill("SIGKILL");
20314
20315
  }
20315
20316
  }, 5000);
20316
- // Clear timer if process exits gracefully
20317
- this.process?.once("exit", () => {
20317
+ processRef.once("exit", () => {
20318
+ exited = true;
20318
20319
  clearTimeout(forceKillTimer);
20319
20320
  resolve();
20320
20321
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@infersec/conduit",
3
3
  "description": "End user conduit agent for connecting local LLMs to the cloud.",
4
- "version": "1.56.0",
4
+ "version": "1.57.0",
5
5
  "bin": {
6
6
  "infersec-conduit": "./dist/cli.js"
7
7
  },