@solongate/proxy 0.82.98 → 0.82.99
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/commands/index.js +18 -1
- package/dist/index.js +8 -1
- package/dist/tui/index.js +8 -1
- package/package.json +1 -1
package/dist/commands/index.js
CHANGED
|
@@ -122,6 +122,16 @@ function codexHooksStatus() {
|
|
|
122
122
|
}
|
|
123
123
|
return { registered, trusted, disabled };
|
|
124
124
|
}
|
|
125
|
+
function installedGuardVersion() {
|
|
126
|
+
try {
|
|
127
|
+
const p = globalPaths();
|
|
128
|
+
const s = readFileSync(join(p.hooksDir, "guard.mjs"), "utf-8");
|
|
129
|
+
const m = s.match(/HOOK_VERSION\s*=\s*(\d+)/);
|
|
130
|
+
return m ? parseInt(m[1], 10) : null;
|
|
131
|
+
} catch {
|
|
132
|
+
return null;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
125
135
|
|
|
126
136
|
// src/api-client/client.ts
|
|
127
137
|
var DEFAULT_API_URL = "https://api.solongate.com";
|
|
@@ -1248,7 +1258,14 @@ async function collectChecks() {
|
|
|
1248
1258
|
}
|
|
1249
1259
|
try {
|
|
1250
1260
|
const g = await api.settings.getGuardStatus();
|
|
1251
|
-
|
|
1261
|
+
const here = installedGuardVersion();
|
|
1262
|
+
const latest = g.latest ?? here;
|
|
1263
|
+
const current = here != null && latest != null ? here >= latest : g.up_to_date;
|
|
1264
|
+
checks.push({
|
|
1265
|
+
name: "guard hook",
|
|
1266
|
+
ok: current ? true : "warn",
|
|
1267
|
+
detail: current ? `v${here ?? g.installed} (latest) \xB7 ${g.device_count} device(s)` : `v${here ?? g.installed} \u2192 v${latest} available \xB7 run \`solongate update\` in your terminal`
|
|
1268
|
+
});
|
|
1252
1269
|
} catch {
|
|
1253
1270
|
}
|
|
1254
1271
|
}
|
package/dist/index.js
CHANGED
|
@@ -11335,7 +11335,14 @@ async function collectChecks() {
|
|
|
11335
11335
|
}
|
|
11336
11336
|
try {
|
|
11337
11337
|
const g = await api.settings.getGuardStatus();
|
|
11338
|
-
|
|
11338
|
+
const here = installedGuardVersion();
|
|
11339
|
+
const latest = g.latest ?? here;
|
|
11340
|
+
const current = here != null && latest != null ? here >= latest : g.up_to_date;
|
|
11341
|
+
checks.push({
|
|
11342
|
+
name: "guard hook",
|
|
11343
|
+
ok: current ? true : "warn",
|
|
11344
|
+
detail: current ? `v${here ?? g.installed} (latest) \xB7 ${g.device_count} device(s)` : `v${here ?? g.installed} \u2192 v${latest} available \xB7 run \`solongate update\` in your terminal`
|
|
11345
|
+
});
|
|
11339
11346
|
} catch {
|
|
11340
11347
|
}
|
|
11341
11348
|
}
|
package/dist/tui/index.js
CHANGED
|
@@ -4364,7 +4364,14 @@ async function collectChecks() {
|
|
|
4364
4364
|
}
|
|
4365
4365
|
try {
|
|
4366
4366
|
const g = await api.settings.getGuardStatus();
|
|
4367
|
-
|
|
4367
|
+
const here = installedGuardVersion();
|
|
4368
|
+
const latest = g.latest ?? here;
|
|
4369
|
+
const current = here != null && latest != null ? here >= latest : g.up_to_date;
|
|
4370
|
+
checks.push({
|
|
4371
|
+
name: "guard hook",
|
|
4372
|
+
ok: current ? true : "warn",
|
|
4373
|
+
detail: current ? `v${here ?? g.installed} (latest) \xB7 ${g.device_count} device(s)` : `v${here ?? g.installed} \u2192 v${latest} available \xB7 run \`solongate update\` in your terminal`
|
|
4374
|
+
});
|
|
4368
4375
|
} catch {
|
|
4369
4376
|
}
|
|
4370
4377
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solongate/proxy",
|
|
3
|
-
"version": "0.82.
|
|
3
|
+
"version": "0.82.99",
|
|
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": {
|