vibetree 1.3.0 → 1.3.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/bin/vibetree.js +11 -4
- package/client/package.json +1 -1
- package/package.json +4 -1
- package/server/package.json +1 -1
package/bin/vibetree.js
CHANGED
|
@@ -10,12 +10,19 @@ const argv = yargs(hideBin(process.argv)).argv;
|
|
|
10
10
|
|
|
11
11
|
async function verifyNativeModules(pkgRoot) {
|
|
12
12
|
try {
|
|
13
|
-
require
|
|
14
|
-
require
|
|
13
|
+
const ptyPath = require.resolve('node-pty', { paths: [path.join(pkgRoot, 'node_modules'), pkgRoot] });
|
|
14
|
+
const sqlitePath = require.resolve('better-sqlite3', { paths: [path.join(pkgRoot, 'node_modules'), pkgRoot] });
|
|
15
|
+
require(ptyPath);
|
|
16
|
+
require(sqlitePath);
|
|
15
17
|
} catch (e) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
const isMismatch = e.code === 'ERR_DLOPEN_FAILED' || (e.message && e.message.includes('Node.js version'));
|
|
19
|
+
const isMissing = e.code === 'MODULE_NOT_FOUND';
|
|
20
|
+
|
|
21
|
+
if (isMismatch || isMissing) {
|
|
22
|
+
console.log('\x1b[33m%s\x1b[0m', isMissing ? 'Native modules missing. Installing/Building...' : 'Binary mismatch detected. Rebuilding native modules for your Node.js version...');
|
|
18
23
|
spawnSync('npm', ['rebuild', 'node-pty', 'better-sqlite3'], { cwd: pkgRoot, stdio: 'inherit', shell: true });
|
|
24
|
+
} else {
|
|
25
|
+
console.error('Error verifying native modules:', e.message);
|
|
19
26
|
}
|
|
20
27
|
}
|
|
21
28
|
}
|
package/client/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibetree",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Local task management with Git worktrees and AI integration",
|
|
5
5
|
"main": "bin/vibetree.js",
|
|
6
6
|
"bin": {
|
|
@@ -40,6 +40,9 @@
|
|
|
40
40
|
"uuid": "^13.0.0",
|
|
41
41
|
"ws": "^8.19.0",
|
|
42
42
|
"typescript": "^5.3.3",
|
|
43
|
+
"@trpc/server": "^11.10.0",
|
|
44
|
+
"better-sqlite3": "^12.6.2",
|
|
45
|
+
"zod": "^4.3.6",
|
|
43
46
|
"@types/cors": "^2.8.19",
|
|
44
47
|
"@types/express": "^5.0.6",
|
|
45
48
|
"@types/node": "^20.11.20",
|