SnowLuma v2.4.2 source snapshot
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
Publish MCP to npm / Build, test, and publish MCP (push) Waiting to run
Publish SDK to npm / Build, test, and publish SDK (push) Waiting to run
Sync action catalog to docs / sync (push) Waiting to run
Publish UI to npm / Build and publish UI (push) Waiting to run
Build and Release / preflight (push) Waiting to run
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
Publish MCP to npm / Build, test, and publish MCP (push) Waiting to run
Publish SDK to npm / Build, test, and publish SDK (push) Waiting to run
Sync action catalog to docs / sync (push) Waiting to run
Publish UI to npm / Build and publish UI (push) Waiting to run
Build and Release / preflight (push) Waiting to run
This commit is contained in:
commit
fa9c73363d
1367 files changed
+355735
No files matched your search
@@ -0,0 +1 @@
|
||||
node_modules
|
||||
@@ -0,0 +1,27 @@
|
||||
'use strict';
|
||||
|
||||
const SUPPORTED_NODE_RANGE = '^24.22.1 || >=26.12.1';
|
||||
|
||||
function parseNodeVersion(version) {
|
||||
const match = /^(\d+)\.(\d+)\.(\d+)(?:\+[0-9A-Za-z.-]+)?$/.exec(version);
|
||||
return match ? match.slice(1, 4).map(Number) : null;
|
||||
}
|
||||
|
||||
function isSupportedNodeVersion(version) {
|
||||
const actual = parseNodeVersion(version);
|
||||
if (!actual) return false;
|
||||
|
||||
const [major, minor, patch] = actual;
|
||||
if (major === 24) return minor > 22 || (minor === 22 && patch >= 1);
|
||||
if (major === 26) return minor > 12 || (minor === 12 && patch >= 1);
|
||||
return major > 26;
|
||||
}
|
||||
|
||||
if (require.main === module && !isSupportedNodeVersion(process.versions.node)) {
|
||||
console.error(
|
||||
`error: SnowLuma requires Node.js ${SUPPORTED_NODE_RANGE}; found ${process.versions.node}.`,
|
||||
);
|
||||
process.exitCode = 1;
|
||||
}
|
||||
|
||||
module.exports = { SUPPORTED_NODE_RANGE, isSupportedNodeVersion };
|
||||
@@ -0,0 +1,7 @@
|
||||
node .\check-node-version.cjs
|
||||
if errorlevel 1 (
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
node ./index.mjs
|
||||
pause
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
# Prefer bundled node when present; fall back to $PATH.
|
||||
if [[ -x "./node" ]]; then
|
||||
NODE_BIN="./node"
|
||||
else
|
||||
NODE_BIN="$(command -v node || true)"
|
||||
if [[ -z "$NODE_BIN" ]]; then
|
||||
echo "error: 'node' not found on PATH and no bundled ./node; install Node.js 24.22.1 (24.x) or >=26.12.1." >&2
|
||||
exit 127
|
||||
fi
|
||||
fi
|
||||
|
||||
"$NODE_BIN" ./check-node-version.cjs
|
||||
exec "$NODE_BIN" ./index.mjs "$@"
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"license": "SEE LICENSE IN LICENSE",
|
||||
"name": "@snowluma/runtime",
|
||||
"version": "2.4.2",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"main": "index.mjs",
|
||||
"description": "SnowLuma runtime distribution manifest: ships into dist/ (launcher.bat, package.json, native/*.dll, native/*.node). All native bindings ship as standalone `.node` files in `dist/native/` — loaded via `process.dlopen()` / `createRequire().require()` from inside the bundle. There are intentionally NO runtime npm dependencies; production artifacts are self-contained.",
|
||||
"engines": {
|
||||
"node": "^24.22.1 || >=26.12.1"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user