@dikshanty94/webnav 0.2.0 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dikshanty94/webnav",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "A navigation memory for AI agents — zero-LLM web-navigation CLI that recalls cheap, reliable routes instead of re-exploring.",
5
5
  "mcpName": "io.github.lucyfuur94/webnav",
6
6
  "license": "Apache-2.0",
@@ -29,7 +29,8 @@
29
29
  },
30
30
  "files": [
31
31
  "dist",
32
- "bin"
32
+ "bin",
33
+ "scripts/check-node.mjs"
33
34
  ],
34
35
  "publishConfig": {
35
36
  "access": "public"
@@ -0,0 +1,13 @@
1
+ const supported = new Set([18, 20, 22]);
2
+ const major = Number.parseInt(process.versions.node.split('.')[0], 10);
3
+
4
+ if (!supported.has(major)) {
5
+ console.error(
6
+ [
7
+ `webnav supports Node 18, 20, and 22. Current Node is ${process.version}.`,
8
+ 'Use an LTS version before installing, for example: nvm use 22',
9
+ 'This avoids native better-sqlite3 build failures on unsupported Node releases.',
10
+ ].join('\n'),
11
+ );
12
+ process.exit(1);
13
+ }