@sovr/engine 3.1.0 → 3.2.0
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 +17 -3
- package/dist/index.mjs +17 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -258,7 +258,7 @@ var RISK_SCORES = {
|
|
|
258
258
|
high: 70,
|
|
259
259
|
critical: 95
|
|
260
260
|
};
|
|
261
|
-
var ENGINE_VERSION = "3.
|
|
261
|
+
var ENGINE_VERSION = "3.2.0";
|
|
262
262
|
var ENGINE_VERSION_CHECK_URL = "https://api.sovr.inc/api/sovr/v1/version/check";
|
|
263
263
|
var ENGINE_TIER_LIMITS = {
|
|
264
264
|
free: { evaluationsPerMonth: 50, irreversibleAllowsPerMonth: 0 },
|
|
@@ -330,10 +330,24 @@ var PolicyEngine = class {
|
|
|
330
330
|
Run: npm install @sovr/engine@latest
|
|
331
331
|
`
|
|
332
332
|
);
|
|
333
|
-
|
|
333
|
+
console.error(
|
|
334
|
+
`
|
|
335
|
+
\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557
|
|
336
|
+
\u2551 SOVR ENGINE VERSION UPGRADE REQUIRED \u2551
|
|
337
|
+
\u2560\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2563
|
|
338
|
+
\u2551 Current: @sovr/engine@${ENGINE_VERSION.padEnd(39)}\u2551
|
|
339
|
+
\u2551 Required: @sovr/engine@${(data.minVersion || "latest").toString().padEnd(38)}\u2551
|
|
340
|
+
\u2551 Run: npm install @sovr/engine@latest \u2551
|
|
341
|
+
\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D
|
|
342
|
+
`
|
|
343
|
+
);
|
|
344
|
+
process.exit(1);
|
|
334
345
|
}
|
|
335
346
|
}
|
|
336
|
-
} catch {
|
|
347
|
+
} catch (e) {
|
|
348
|
+
if (e?.message?.includes("UPGRADE") || e?.message?.includes("DEPRECATED")) {
|
|
349
|
+
process.exit(1);
|
|
350
|
+
}
|
|
337
351
|
}
|
|
338
352
|
}
|
|
339
353
|
/** Set the current tier (e.g., after API key verification) */
|
package/dist/index.mjs
CHANGED
|
@@ -232,7 +232,7 @@ var RISK_SCORES = {
|
|
|
232
232
|
high: 70,
|
|
233
233
|
critical: 95
|
|
234
234
|
};
|
|
235
|
-
var ENGINE_VERSION = "3.
|
|
235
|
+
var ENGINE_VERSION = "3.2.0";
|
|
236
236
|
var ENGINE_VERSION_CHECK_URL = "https://api.sovr.inc/api/sovr/v1/version/check";
|
|
237
237
|
var ENGINE_TIER_LIMITS = {
|
|
238
238
|
free: { evaluationsPerMonth: 50, irreversibleAllowsPerMonth: 0 },
|
|
@@ -304,10 +304,24 @@ var PolicyEngine = class {
|
|
|
304
304
|
Run: npm install @sovr/engine@latest
|
|
305
305
|
`
|
|
306
306
|
);
|
|
307
|
-
|
|
307
|
+
console.error(
|
|
308
|
+
`
|
|
309
|
+
\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557
|
|
310
|
+
\u2551 SOVR ENGINE VERSION UPGRADE REQUIRED \u2551
|
|
311
|
+
\u2560\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2563
|
|
312
|
+
\u2551 Current: @sovr/engine@${ENGINE_VERSION.padEnd(39)}\u2551
|
|
313
|
+
\u2551 Required: @sovr/engine@${(data.minVersion || "latest").toString().padEnd(38)}\u2551
|
|
314
|
+
\u2551 Run: npm install @sovr/engine@latest \u2551
|
|
315
|
+
\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D
|
|
316
|
+
`
|
|
317
|
+
);
|
|
318
|
+
process.exit(1);
|
|
308
319
|
}
|
|
309
320
|
}
|
|
310
|
-
} catch {
|
|
321
|
+
} catch (e) {
|
|
322
|
+
if (e?.message?.includes("UPGRADE") || e?.message?.includes("DEPRECATED")) {
|
|
323
|
+
process.exit(1);
|
|
324
|
+
}
|
|
311
325
|
}
|
|
312
326
|
}
|
|
313
327
|
/** Set the current tier (e.g., after API key verification) */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sovr/engine",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Unified Policy Engine for SOVR — the single decision plane for all proxy channels",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/node": "^20.0.0",
|
|
41
41
|
"tsup": "^8.0.0",
|
|
42
|
-
"typescript": "^5.
|
|
42
|
+
"typescript": "^5.9.3",
|
|
43
43
|
"vitest": "^1.0.0"
|
|
44
44
|
}
|
|
45
45
|
}
|