@whalent/agent-core 0.3.75 → 0.3.82
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/dist/index.cjs +7 -7
- package/package.json +6 -2
- package/scripts/preinstall-check.cjs +19 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@whalent/agent-core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.82",
|
|
4
4
|
"description": "Core runtime for Whalent Agent",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -9,9 +9,13 @@
|
|
|
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",
|
|
@@ -19,6 +23,6 @@
|
|
|
19
23
|
"node-pty": "^1.1.0"
|
|
20
24
|
},
|
|
21
25
|
"engines": {
|
|
22
|
-
"node": ">=
|
|
26
|
+
"node": ">=20.0.0 <21.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 depends on native PTY/SQLite modules. Please use Node.js 20 LTS;
|
|
11
|
+
newer Node.js releases can force local node-gyp builds that fail on older Linux compilers.
|
|
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
|
+
}
|