@solongate/proxy 0.82.57 → 0.82.58

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/dist/index.js CHANGED
@@ -6712,7 +6712,7 @@ __export(self_update_exports, {
6712
6712
  runUpdateCommand: () => runUpdateCommand,
6713
6713
  tuiUpdateFlow: () => tuiUpdateFlow
6714
6714
  });
6715
- import { execFile, spawn } from "child_process";
6715
+ import { execFile, execFileSync as execFileSync3, spawn } from "child_process";
6716
6716
  import { mkdirSync as mkdirSync4, openSync, readFileSync as readFileSync5, writeFileSync as writeFileSync4 } from "fs";
6717
6717
  import { homedir as homedir3 } from "os";
6718
6718
  import { dirname as dirname2, join as join5 } from "path";
@@ -6807,9 +6807,17 @@ async function runUpdateCommand() {
6807
6807
  out2(` \u2713 already up to date`);
6808
6808
  }
6809
6809
  try {
6810
- const { installGlobalQuiet: installGlobalQuiet2, installedGuardVersion: installedGuardVersion2 } = await Promise.resolve().then(() => (init_global_install(), global_install_exports));
6811
- const r = installGlobalQuiet2();
6812
- out2(r.ok ? ` \u2713 guard hooks refreshed (v${installedGuardVersion2() ?? "?"})` : ` guard: ${r.message}`);
6810
+ if (newerThan(latest, cur)) {
6811
+ execFileSync3("solongate", ["repair"], {
6812
+ env: { ...process.env, SOLONGATE_INTERNAL: "1" },
6813
+ stdio: "inherit",
6814
+ shell: process.platform === "win32"
6815
+ });
6816
+ } else {
6817
+ const { installGlobalQuiet: installGlobalQuiet2, installedGuardVersion: installedGuardVersion2 } = await Promise.resolve().then(() => (init_global_install(), global_install_exports));
6818
+ const r = installGlobalQuiet2();
6819
+ out2(r.ok ? ` \u2713 guard hooks refreshed (v${installedGuardVersion2() ?? "?"})` : ` guard: ${r.message}`);
6820
+ }
6813
6821
  } catch {
6814
6822
  }
6815
6823
  return 0;
package/dist/tui/index.js CHANGED
@@ -4064,7 +4064,7 @@ function stopLogsServerDaemon() {
4064
4064
  }
4065
4065
 
4066
4066
  // src/self-update.ts
4067
- import { execFile, spawn as spawn4 } from "child_process";
4067
+ import { execFile, execFileSync as execFileSync2, spawn as spawn4 } from "child_process";
4068
4068
  import { mkdirSync as mkdirSync6, openSync as openSync3, readFileSync as readFileSync6, writeFileSync as writeFileSync7 } from "fs";
4069
4069
  import { homedir as homedir8 } from "os";
4070
4070
  import { dirname as dirname3, join as join8 } from "path";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solongate/proxy",
3
- "version": "0.82.57",
3
+ "version": "0.82.58",
4
4
  "description": "AI tool security proxy: protect any AI tool server with customizable policies, path/command constraints, rate limiting, and audit logging. No code changes required.",
5
5
  "type": "module",
6
6
  "bin": {