@solongate/proxy 0.82.84 → 0.82.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
@@ -12156,7 +12156,9 @@ function App() {
12156
12156
  }, []);
12157
12157
  const acctIdx = Math.max(0, accounts.findIndex((a) => a.apiKey === viewKey));
12158
12158
  const cur = accounts[acctIdx];
12159
- const acctLabel2 = cur ? cur.email || cur.user || cur.project || `account \u2026${cur.apiKey.slice(-4)}` : "not logged in";
12159
+ const rawEmail = cur?.email ?? "";
12160
+ const isGuestAccount = rawEmail.endsWith("@anonymous.solongate.invalid");
12161
+ const acctLabel2 = cur ? isGuestAccount ? "Anonymous" : rawEmail || cur.user || cur.project || `account \u2026${cur.apiKey.slice(-4)}` : "not logged in";
12160
12162
  useEffect8(() => {
12161
12163
  if (!cur || cur.email) return;
12162
12164
  let alive = true;
@@ -12191,7 +12193,7 @@ function App() {
12191
12193
  setViewKey(next?.apiKey);
12192
12194
  setViewNonce((n) => n + 1);
12193
12195
  };
12194
- const locked = accounts.length === 0;
12196
+ const locked = accounts.length === 0 || !isAuthenticated();
12195
12197
  const effectiveSection = locked ? SETTINGS_SECTION : section;
12196
12198
  useInput8((input, key) => {
12197
12199
  if (help) {
package/dist/tui/index.js CHANGED
@@ -5349,7 +5349,9 @@ function App() {
5349
5349
  }, []);
5350
5350
  const acctIdx = Math.max(0, accounts.findIndex((a) => a.apiKey === viewKey));
5351
5351
  const cur = accounts[acctIdx];
5352
- const acctLabel2 = cur ? cur.email || cur.user || cur.project || `account \u2026${cur.apiKey.slice(-4)}` : "not logged in";
5352
+ const rawEmail = cur?.email ?? "";
5353
+ const isGuestAccount = rawEmail.endsWith("@anonymous.solongate.invalid");
5354
+ const acctLabel2 = cur ? isGuestAccount ? "Anonymous" : rawEmail || cur.user || cur.project || `account \u2026${cur.apiKey.slice(-4)}` : "not logged in";
5353
5355
  useEffect8(() => {
5354
5356
  if (!cur || cur.email) return;
5355
5357
  let alive = true;
@@ -5384,7 +5386,7 @@ function App() {
5384
5386
  setViewKey(next?.apiKey);
5385
5387
  setViewNonce((n) => n + 1);
5386
5388
  };
5387
- const locked = accounts.length === 0;
5389
+ const locked = accounts.length === 0 || !isAuthenticated();
5388
5390
  const effectiveSection = locked ? SETTINGS_SECTION : section;
5389
5391
  useInput8((input, key) => {
5390
5392
  if (help) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solongate/proxy",
3
- "version": "0.82.84",
3
+ "version": "0.82.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": {