@netrunner714/pegas 1.0.0 → 1.0.1
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/index.js +23 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://github.com/netrunner714/pegas/actions/workflows/ci.yml)
|
|
8
8
|
[](LICENSE)
|
|
9
9
|
[](package.json)
|
|
10
|
-
[](package.json)
|
|
11
11
|
|
|
12
12
|
---
|
|
13
13
|
|
package/dist/index.js
CHANGED
|
@@ -2658,7 +2658,24 @@ function handleLlms(options) {
|
|
|
2658
2658
|
}
|
|
2659
2659
|
|
|
2660
2660
|
// src/index.ts
|
|
2661
|
-
var VERSION = "1.0.
|
|
2661
|
+
var VERSION = "1.0.1";
|
|
2662
|
+
function validateNodeVersion(current = process.versions.node) {
|
|
2663
|
+
if (!current)
|
|
2664
|
+
return true;
|
|
2665
|
+
const major = parseInt(current.split(".")[0], 10);
|
|
2666
|
+
if (isNaN(major))
|
|
2667
|
+
return true;
|
|
2668
|
+
return major >= 24;
|
|
2669
|
+
}
|
|
2670
|
+
function ensureNodeVersion() {
|
|
2671
|
+
const current = process.versions.node;
|
|
2672
|
+
if (!validateNodeVersion(current)) {
|
|
2673
|
+
console.error(`\x1B[31m❌ Error: Pegas requires Node.js >= 24.0.0 (detected v${current || "unknown"}).\x1B[0m`);
|
|
2674
|
+
console.error(`Please upgrade Node.js to version 24 or newer: https://nodejs.org/
|
|
2675
|
+
`);
|
|
2676
|
+
process.exit(1);
|
|
2677
|
+
}
|
|
2678
|
+
}
|
|
2662
2679
|
var HELP_TEXT = `pegas v${VERSION} — Agent-native Caddy gateway for multi-app VPS
|
|
2663
2680
|
|
|
2664
2681
|
USAGE:
|
|
@@ -2732,6 +2749,7 @@ function tryLocalDelegation() {
|
|
|
2732
2749
|
process.exit(result.status ?? (result.signal ? 1 : 0));
|
|
2733
2750
|
}
|
|
2734
2751
|
async function main() {
|
|
2752
|
+
ensureNodeVersion();
|
|
2735
2753
|
tryLocalDelegation();
|
|
2736
2754
|
const rawArgs = process.argv.slice(2);
|
|
2737
2755
|
const doubleDashIdx = rawArgs.indexOf("--");
|
|
@@ -2883,3 +2901,7 @@ main().catch((err) => {
|
|
|
2883
2901
|
console.error("Fatal error:", err);
|
|
2884
2902
|
process.exit(1);
|
|
2885
2903
|
});
|
|
2904
|
+
export {
|
|
2905
|
+
ensureNodeVersion,
|
|
2906
|
+
validateNodeVersion
|
|
2907
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netrunner714/pegas",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Agent-native zero-config L7 reverse proxy orchestrator for Docker",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
"typescript": "^6.0.3"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
|
-
"node": ">=
|
|
48
|
+
"node": ">=24.0.0"
|
|
49
49
|
}
|
|
50
50
|
}
|