@infersec/conduit 1.56.0 → 1.58.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 +11 -8
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -19670,7 +19670,8 @@ object({
19670
19670
  password: RawPasswordForLoginSchema
19671
19671
  });
19672
19672
  object({
19673
- ok: literal(true)
19673
+ ok: literal(true),
19674
+ redirectUrl: string$1()
19674
19675
  })
19675
19676
  .or(object({
19676
19677
  ok: literal(false),
@@ -19696,7 +19697,8 @@ object({
19696
19697
  path: ["newPassword"]
19697
19698
  });
19698
19699
  object({
19699
- ok: literal(true)
19700
+ ok: literal(true),
19701
+ redirectUrl: string$1()
19700
19702
  })
19701
19703
  .or(object({
19702
19704
  ok: literal(false)
@@ -20305,16 +20307,17 @@ class ProcessManager extends EventEmitter {
20305
20307
  if (!this.process) {
20306
20308
  return;
20307
20309
  }
20308
- this.process.kill(signal);
20310
+ const processRef = this.process;
20311
+ processRef.kill(signal);
20309
20312
  return new Promise(resolve => {
20310
- // Force kill after timeout if graceful shutdown fails
20313
+ let exited = false;
20311
20314
  const forceKillTimer = setTimeout(() => {
20312
- if (this.process && !this.process.killed) {
20313
- this.process.kill("SIGKILL");
20315
+ if (!exited) {
20316
+ processRef.kill("SIGKILL");
20314
20317
  }
20315
20318
  }, 5000);
20316
- // Clear timer if process exits gracefully
20317
- this.process?.once("exit", () => {
20319
+ processRef.once("exit", () => {
20320
+ exited = true;
20318
20321
  clearTimeout(forceKillTimer);
20319
20322
  resolve();
20320
20323
  });
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.58.0",
5
5
  "bin": {
6
6
  "infersec-conduit": "./dist/cli.js"
7
7
  },