@cryptiklemur/lattice 1.45.2 → 1.45.3
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 +1 -1
- package/scripts/postinstall.js +13 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cryptiklemur/lattice",
|
|
3
|
-
"version": "1.45.
|
|
3
|
+
"version": "1.45.3",
|
|
4
4
|
"description": "Multi-machine agentic dashboard for Claude Code. Monitor sessions, manage MCP servers and skills, orchestrate across mesh-networked nodes.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Aaron Scherer <me@aaronscherer.me>",
|
package/scripts/postinstall.js
CHANGED
|
@@ -4,16 +4,28 @@ var path = require("path");
|
|
|
4
4
|
var root = path.join(__dirname, "..");
|
|
5
5
|
var nmDir = path.join(root, "node_modules", "@lattice");
|
|
6
6
|
|
|
7
|
+
// Create workspace symlinks so @lattice/shared etc. resolve correctly
|
|
8
|
+
// This is needed because npm/bun global installs don't set up workspaces
|
|
7
9
|
try { fs.mkdirSync(nmDir, { recursive: true }); } catch {}
|
|
8
10
|
|
|
9
11
|
["shared", "server", "client"].forEach(function (pkg) {
|
|
10
12
|
var target = path.join(nmDir, pkg);
|
|
11
13
|
var source = path.join(root, pkg);
|
|
14
|
+
if (!fs.existsSync(source)) return;
|
|
12
15
|
try {
|
|
13
16
|
fs.lstatSync(target);
|
|
14
17
|
} catch {
|
|
15
18
|
try {
|
|
16
|
-
fs.symlinkSync(source, target, "
|
|
19
|
+
fs.symlinkSync(source, target, "junction");
|
|
17
20
|
} catch {}
|
|
18
21
|
}
|
|
19
22
|
});
|
|
23
|
+
|
|
24
|
+
// Also install server dependencies if node_modules doesn't exist
|
|
25
|
+
var serverNm = path.join(root, "server", "node_modules");
|
|
26
|
+
if (!fs.existsSync(serverNm)) {
|
|
27
|
+
try {
|
|
28
|
+
var { execSync } = require("child_process");
|
|
29
|
+
execSync("bun install --frozen-lockfile", { cwd: root, stdio: "ignore", timeout: 30000 });
|
|
30
|
+
} catch {}
|
|
31
|
+
}
|