@proxysoul/soulforge 2.14.6 → 2.14.7

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
@@ -57928,7 +57928,7 @@ var package_default;
57928
57928
  var init_package = __esm(() => {
57929
57929
  package_default = {
57930
57930
  name: "@proxysoul/soulforge",
57931
- version: "2.14.6",
57931
+ version: "2.14.7",
57932
57932
  description: "Graph-powered code intelligence \u2014 multi-agent coding with codebase-aware AI",
57933
57933
  repository: {
57934
57934
  type: "git",
@@ -83105,18 +83105,23 @@ function getProxyState() {
83105
83105
  };
83106
83106
  }
83107
83107
  function getInstalledProxyVersion() {
83108
+ const vendored = getVendoredPath("cli-proxy-api");
83109
+ const binaryVersion = vendored ? getBinaryVersion(vendored) : null;
83108
83110
  try {
83109
83111
  if (existsSync13(VERSION_FILE)) {
83110
83112
  const v = readFileSync12(VERSION_FILE, "utf-8").trim();
83111
- if (v)
83113
+ if (v) {
83114
+ if (binaryVersion && v !== binaryVersion) {
83115
+ saveInstalledProxyVersion(binaryVersion);
83116
+ return binaryVersion;
83117
+ }
83112
83118
  return v;
83119
+ }
83113
83120
  }
83114
83121
  } catch {}
83115
- const vendored = getVendoredPath("cli-proxy-api");
83116
- if (vendored) {
83117
- const v = getBinaryVersion(vendored);
83118
- if (v)
83119
- return v;
83122
+ if (binaryVersion) {
83123
+ saveInstalledProxyVersion(binaryVersion);
83124
+ return binaryVersion;
83120
83125
  }
83121
83126
  return "";
83122
83127
  }
@@ -83620,7 +83625,7 @@ async function upgradeProxy(onStatus) {
83620
83625
  if (wasRunning) {
83621
83626
  onStatus("Stopping proxy\u2026");
83622
83627
  stopProxy();
83623
- await new Promise((r) => setTimeout(r, 500));
83628
+ await waitForPortFree(3000);
83624
83629
  }
83625
83630
  onStatus(`Downloading CLIProxyAPI v${vinfo.latest}\u2026`);
83626
83631
  try {
@@ -480082,14 +480087,11 @@ async function handleProxyStop(_input, ctx) {
480082
480087
  }
480083
480088
  async function handleProxyRestart(_input, ctx) {
480084
480089
  const {
480085
- stopProxy: stopProxy2,
480086
- ensureProxy: ensureProxy2
480090
+ bounceProxy: bounceProxy2
480087
480091
  } = await Promise.resolve().then(() => (init_lifecycle(), exports_lifecycle));
480088
480092
  sysMsg(ctx, "Restarting proxy\u2026");
480089
- stopProxy2();
480090
- await new Promise((r4) => setTimeout(r4, 500));
480091
- const result = await ensureProxy2();
480092
- sysMsg(ctx, result.ok ? "Proxy restarted." : `Failed: ${result.error ?? "unknown"}`);
480093
+ const ok = await bounceProxy2();
480094
+ sysMsg(ctx, ok ? "Proxy restarted." : "Failed to restart proxy.");
480093
480095
  }
480094
480096
  function register11(map2) {
480095
480097
  map2.set("/proxy", handleProxyStatus);
@@ -49520,7 +49520,7 @@ var package_default;
49520
49520
  var init_package = __esm(() => {
49521
49521
  package_default = {
49522
49522
  name: "@proxysoul/soulforge",
49523
- version: "2.14.6",
49523
+ version: "2.14.7",
49524
49524
  description: "Graph-powered code intelligence \u2014 multi-agent coding with codebase-aware AI",
49525
49525
  repository: {
49526
49526
  type: "git",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proxysoul/soulforge",
3
- "version": "2.14.6",
3
+ "version": "2.14.7",
4
4
  "description": "Graph-powered code intelligence — multi-agent coding with codebase-aware AI",
5
5
  "repository": {
6
6
  "type": "git",