@solongate/proxy 0.81.85 → 0.81.86

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
@@ -6663,17 +6663,15 @@ async function tuiUpdateFlow(onStatus) {
6663
6663
  const state = readState();
6664
6664
  if (latest) writeState({ ...state, lastCheckAt: Date.now(), latestSeen: latest });
6665
6665
  if (!latest || !newerThan(latest, current)) return;
6666
- const attempts = readState().attempts ?? {};
6667
- const canRetry = Date.now() - (attempts[latest] ?? 0) >= ATTEMPT_EVERY_MS;
6668
- if (canRetry) {
6669
- writeState({ ...readState(), attempts: { [latest]: Date.now() } });
6670
- onStatus({ kind: "updating", version: latest });
6671
- if (await runGlobalInstall(latest)) {
6672
- onStatus({ kind: "updated", version: latest });
6673
- return;
6674
- }
6666
+ if (readState().installed === latest) {
6667
+ onStatus({ kind: "updated", version: latest });
6668
+ return;
6669
+ }
6670
+ onStatus({ kind: "updating", version: latest });
6671
+ if (await runGlobalInstall(latest)) {
6672
+ writeState({ ...readState(), installed: latest });
6673
+ onStatus({ kind: "updated", version: latest });
6675
6674
  }
6676
- onStatus({ kind: "manual", version: latest });
6677
6675
  } catch {
6678
6676
  }
6679
6677
  }
@@ -6695,12 +6693,8 @@ function maybeSelfUpdate(notify = (l) => process.stderr.write(l + "\n")) {
6695
6693
  writeState({ ...readState(), attempts: { [latest]: now } });
6696
6694
  if (spawnGlobalInstall(latest)) {
6697
6695
  notify(`${c.dim}\u2191 solongate v${latest} available (running v${current}) \u2014 updating in the background, next run uses it${c.reset}`);
6698
- return;
6699
6696
  }
6700
- } else {
6701
- return;
6702
6697
  }
6703
- notify(`${c.dim}\u2191 solongate v${latest} available (running v${current}) \u2014 update: ${c.reset}${c.cyan}npm i -g ${PKG}@latest${c.reset}`);
6704
6698
  } catch {
6705
6699
  }
6706
6700
  })();
@@ -11072,7 +11066,7 @@ function App() {
11072
11066
  /* @__PURE__ */ jsx8(Text8, { color: theme.dim, children: "account: " }),
11073
11067
  /* @__PURE__ */ jsx8(Text8, { color: locked ? theme.warn : theme.accentBright, bold: true, children: acctLabel2 }),
11074
11068
  locked ? /* @__PURE__ */ jsx8(Text8, { color: theme.dim, children: " \xB7 log in from Settings to unlock the dataroom" }) : accounts.length > 1 ? /* @__PURE__ */ jsx8(Text8, { color: theme.dim, children: ` (${acctIdx + 1}/${accounts.length} \xB7 a switch \xB7 Settings to manage)` }) : /* @__PURE__ */ jsx8(Text8, { color: theme.dim, children: " \xB7 Settings to add another" }),
11075
- update2.kind === "updating" ? /* @__PURE__ */ jsx8(Text8, { color: theme.warn, children: ` \u2191 updating to v${update2.version}\u2026` }) : update2.kind === "updated" ? /* @__PURE__ */ jsx8(Text8, { color: theme.ok, bold: true, children: ` \u2191 v${update2.version} installed \u2014 restart (q, then solongate) to apply` }) : update2.kind === "manual" ? /* @__PURE__ */ jsx8(Text8, { color: theme.warn, children: ` \u2191 v${update2.version} available \u2014 npm i -g @solongate/proxy@latest` }) : null
11069
+ update2.kind === "updating" ? /* @__PURE__ */ jsx8(Text8, { color: theme.warn, children: ` \u2191 updating to v${update2.version}\u2026` }) : update2.kind === "updated" ? /* @__PURE__ */ jsx8(Text8, { color: theme.ok, bold: true, children: ` \u2191 v${update2.version} installed \u2014 restart (q, then solongate) to apply` }) : null
11076
11070
  ] }),
11077
11071
  /* @__PURE__ */ jsxs8(Box8, { marginTop: 1, flexGrow: 1, children: [
11078
11072
  /* @__PURE__ */ jsx8(Box8, { flexDirection: "column", flexShrink: 0, width: 16, borderStyle: "round", borderColor: focus === "nav" ? theme.accent : "gray", paddingX: 1, children: SECTIONS.map((s, i) => {
@@ -8,9 +8,6 @@ export type UpdateStatus = {
8
8
  } | {
9
9
  kind: 'updated';
10
10
  version: string;
11
- } | {
12
- kind: 'manual';
13
- version: string;
14
11
  };
15
12
  /**
16
13
  * The dataroom's updater (Claude Code-style): check the registry EVERY time the
package/dist/tui/index.js CHANGED
@@ -4138,17 +4138,15 @@ async function tuiUpdateFlow(onStatus) {
4138
4138
  const state = readState2();
4139
4139
  if (latest) writeState2({ ...state, lastCheckAt: Date.now(), latestSeen: latest });
4140
4140
  if (!latest || !newerThan(latest, current)) return;
4141
- const attempts = readState2().attempts ?? {};
4142
- const canRetry = Date.now() - (attempts[latest] ?? 0) >= ATTEMPT_EVERY_MS;
4143
- if (canRetry) {
4144
- writeState2({ ...readState2(), attempts: { [latest]: Date.now() } });
4145
- onStatus({ kind: "updating", version: latest });
4146
- if (await runGlobalInstall(latest)) {
4147
- onStatus({ kind: "updated", version: latest });
4148
- return;
4149
- }
4141
+ if (readState2().installed === latest) {
4142
+ onStatus({ kind: "updated", version: latest });
4143
+ return;
4144
+ }
4145
+ onStatus({ kind: "updating", version: latest });
4146
+ if (await runGlobalInstall(latest)) {
4147
+ writeState2({ ...readState2(), installed: latest });
4148
+ onStatus({ kind: "updated", version: latest });
4150
4149
  }
4151
- onStatus({ kind: "manual", version: latest });
4152
4150
  } catch {
4153
4151
  }
4154
4152
  }
@@ -4292,7 +4290,7 @@ function App() {
4292
4290
  /* @__PURE__ */ jsx8(Text8, { color: theme.dim, children: "account: " }),
4293
4291
  /* @__PURE__ */ jsx8(Text8, { color: locked ? theme.warn : theme.accentBright, bold: true, children: acctLabel2 }),
4294
4292
  locked ? /* @__PURE__ */ jsx8(Text8, { color: theme.dim, children: " \xB7 log in from Settings to unlock the dataroom" }) : accounts.length > 1 ? /* @__PURE__ */ jsx8(Text8, { color: theme.dim, children: ` (${acctIdx + 1}/${accounts.length} \xB7 a switch \xB7 Settings to manage)` }) : /* @__PURE__ */ jsx8(Text8, { color: theme.dim, children: " \xB7 Settings to add another" }),
4295
- update2.kind === "updating" ? /* @__PURE__ */ jsx8(Text8, { color: theme.warn, children: ` \u2191 updating to v${update2.version}\u2026` }) : update2.kind === "updated" ? /* @__PURE__ */ jsx8(Text8, { color: theme.ok, bold: true, children: ` \u2191 v${update2.version} installed \u2014 restart (q, then solongate) to apply` }) : update2.kind === "manual" ? /* @__PURE__ */ jsx8(Text8, { color: theme.warn, children: ` \u2191 v${update2.version} available \u2014 npm i -g @solongate/proxy@latest` }) : null
4293
+ update2.kind === "updating" ? /* @__PURE__ */ jsx8(Text8, { color: theme.warn, children: ` \u2191 updating to v${update2.version}\u2026` }) : update2.kind === "updated" ? /* @__PURE__ */ jsx8(Text8, { color: theme.ok, bold: true, children: ` \u2191 v${update2.version} installed \u2014 restart (q, then solongate) to apply` }) : null
4296
4294
  ] }),
4297
4295
  /* @__PURE__ */ jsxs8(Box8, { marginTop: 1, flexGrow: 1, children: [
4298
4296
  /* @__PURE__ */ jsx8(Box8, { flexDirection: "column", flexShrink: 0, width: 16, borderStyle: "round", borderColor: focus === "nav" ? theme.accent : "gray", paddingX: 1, children: SECTIONS.map((s, i) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solongate/proxy",
3
- "version": "0.81.85",
3
+ "version": "0.81.86",
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": {