@whalent/agent-core 0.3.76 → 0.3.83

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": "@whalent/agent-core",
3
- "version": "0.3.76",
3
+ "version": "0.3.83",
4
4
  "description": "Core runtime for Whalent Agent",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -9,16 +9,20 @@
9
9
  },
10
10
  "files": [
11
11
  "dist/index.cjs",
12
+ "scripts/preinstall-check.cjs",
12
13
  "package.json",
13
14
  "README.md"
14
15
  ],
16
+ "scripts": {
17
+ "preinstall": "node scripts/preinstall-check.cjs"
18
+ },
15
19
  "license": "UNLICENSED",
16
20
  "dependencies": {
17
21
  "@anthropic-ai/claude-agent-sdk": "^0.2.138",
18
- "better-sqlite3": "^11.10.0",
22
+ "better-sqlite3": "^12.10.0",
19
23
  "node-pty": "^1.1.0"
20
24
  },
21
25
  "engines": {
22
- "node": ">=18.0.0"
26
+ "node": ">=20.0.0"
23
27
  }
24
28
  }
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+
4
+ const major = Number.parseInt(process.versions.node.split('.')[0] || '0', 10);
5
+
6
+ if (major < 20) {
7
+ console.error(`
8
+ [whalent-agent] Unsupported Node.js ${process.version}.
9
+
10
+ Whalent Agent requires Node.js 20 or newer because it depends on native
11
+ PTY/SQLite modules.
12
+
13
+ Recommended fix:
14
+ nvm install 20
15
+ nvm use 20
16
+ npm install -g @whalent/agent@latest --prefer-online --registry=https://registry.npmjs.org
17
+ `);
18
+ process.exit(1);
19
+ }