@cryptiklemur/lattice 1.45.2 → 1.46.0
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/CLAUDE.md +2 -2
- package/client/vite.config.ts +2 -2
- package/package.json +1 -1
- package/scripts/postinstall.js +13 -1
- package/server/package.json +1 -1
package/CLAUDE.md
CHANGED
|
@@ -42,8 +42,8 @@ DO NOT EVER LEAVE PRE-EXISTING ERRORS. FIX THEM.
|
|
|
42
42
|
|
|
43
43
|
## Environment
|
|
44
44
|
- ANTHROPIC_API_KEY is optional — server uses the token from `claude setup-token` if not set.
|
|
45
|
-
- Server binds to 0.0.0.0:7654 (WSL2 compatible).
|
|
46
|
-
- Client dev server runs on :5173
|
|
45
|
+
- Server binds to 0.0.0.0:7654 in production, 0.0.0.0:17654 in dev (WSL2 compatible).
|
|
46
|
+
- Client dev server runs on :5173 and proxies to :17654. Production serves from server via client/dist/.
|
|
47
47
|
- `LATTICE_HOME` — override data directory (default: `~/.lattice`).
|
|
48
48
|
- `LATTICE_PORT` — override server port (default: 7654). Also: `--port=N`.
|
|
49
49
|
|
package/client/vite.config.ts
CHANGED
|
@@ -53,7 +53,7 @@ export default defineConfig({
|
|
|
53
53
|
open: true,
|
|
54
54
|
proxy: {
|
|
55
55
|
"/ws": {
|
|
56
|
-
target: "ws://localhost:
|
|
56
|
+
target: "ws://localhost:" + (process.env.LATTICE_PORT || "17654"),
|
|
57
57
|
ws: true,
|
|
58
58
|
configure: function (proxy) {
|
|
59
59
|
proxy.on("error", function () {});
|
|
@@ -63,7 +63,7 @@ export default defineConfig({
|
|
|
63
63
|
},
|
|
64
64
|
},
|
|
65
65
|
"/api": {
|
|
66
|
-
target: "http://localhost:
|
|
66
|
+
target: "http://localhost:" + (process.env.LATTICE_PORT || "17654"),
|
|
67
67
|
configure: function (proxy) {
|
|
68
68
|
proxy.on("error", function () {});
|
|
69
69
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cryptiklemur/lattice",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.46.0",
|
|
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
|
+
}
|