kritya 0.8.63-beta → 0.8.65-beta
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/README.md +1 -1
- package/dist/commands/doctor.js +10 -5
- package/package.json +3 -2
package/README.md
CHANGED
package/dist/commands/doctor.js
CHANGED
|
@@ -61,12 +61,17 @@ function runtimeSection() {
|
|
|
61
61
|
const checks = [];
|
|
62
62
|
const required = pkg.engines?.node;
|
|
63
63
|
const actual = process.versions.node;
|
|
64
|
-
const [major = 0, minor = 0] = actual.split(".").map(Number);
|
|
65
|
-
// engines.node is `>=22.
|
|
66
|
-
// this package ever uses are `>=` and a bare version.
|
|
64
|
+
const [major = 0, minor = 0, patch = 0] = actual.split(".").map(Number);
|
|
65
|
+
// engines.node is `>=22.23.4`. Parsed by hand because the only operators
|
|
66
|
+
// this package ever uses are `>=` and a bare version. The patch number is
|
|
67
|
+
// compared too, not just major.minor: the floor is a security floor (the
|
|
68
|
+
// Brotli decoder fix in CVE-2026-111497 landed in 22.23.4), so a 22.23.x
|
|
69
|
+
// below that patch is exactly the case this check exists to catch.
|
|
67
70
|
const minimum = required?.replace(/^>=\s*/, "");
|
|
68
|
-
const [reqMajor = 0, reqMinor = 0] = (minimum ?? "").split(".").map(Number);
|
|
69
|
-
const tooOld = Boolean(minimum) &&
|
|
71
|
+
const [reqMajor = 0, reqMinor = 0, reqPatch = 0] = (minimum ?? "").split(".").map(Number);
|
|
72
|
+
const tooOld = Boolean(minimum) &&
|
|
73
|
+
(major < reqMajor ||
|
|
74
|
+
(major === reqMajor && (minor < reqMinor || (minor === reqMinor && patch < reqPatch))));
|
|
70
75
|
checks.push(tooOld
|
|
71
76
|
? fail(`node ${actual} — this package requires >=${minimum}`)
|
|
72
77
|
: ok(`node ${actual}${minimum ? ` (requires >=${minimum})` : ""}`));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kritya",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.65-beta",
|
|
4
4
|
"description": "Kritya — Superintelligence at your command line",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"!dist/electron/**"
|
|
25
25
|
],
|
|
26
26
|
"engines": {
|
|
27
|
-
"node": ">=22.
|
|
27
|
+
"node": ">=22.23.4"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "tsc",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"format:check": "prettier --check .",
|
|
38
38
|
"check:audit": "node scripts/check-audit.mjs",
|
|
39
39
|
"check:install-scripts": "node scripts/check-install-scripts.mjs",
|
|
40
|
+
"check:node": "node scripts/check-node.mjs",
|
|
40
41
|
"check:package": "node scripts/check-package.mjs",
|
|
41
42
|
"check:release": "node scripts/check-release.mjs",
|
|
42
43
|
"check:smoke": "node scripts/smoke-install.mjs",
|