@cryptiklemur/lattice 1.45.3 → 1.46.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/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 but production serves from server via client/dist/.
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
 
@@ -53,7 +53,7 @@ export default defineConfig({
53
53
  open: true,
54
54
  proxy: {
55
55
  "/ws": {
56
- target: "ws://localhost:7654",
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:7654",
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.45.3",
3
+ "version": "1.46.1",
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>",
@@ -4,7 +4,7 @@
4
4
  "version": "0.0.1",
5
5
  "type": "module",
6
6
  "scripts": {
7
- "dev": "bun --watch src/index.ts daemon",
7
+ "dev": "LATTICE_PORT=17654 bun --watch src/index.ts daemon",
8
8
  "start": "bun src/index.ts"
9
9
  },
10
10
  "dependencies": {
@@ -67,6 +67,7 @@ async function downloadBinaryUpdate(): Promise<{ success: boolean; message: stri
67
67
  return { success: false, message: "Update downloaded but needs sudo to install. Run: sudo cp " + tmpPath + " " + execPath };
68
68
  }
69
69
  } else {
70
+ try { unlinkSync(execPath); } catch {}
70
71
  copyFileSync(tmpPath, execPath);
71
72
  chmodSync(execPath, 0o755);
72
73
  unlinkSync(tmpPath);
@@ -420,6 +420,7 @@ async function runUpdate(): Promise<void> {
420
420
  execSync("sudo chmod +x " + JSON.stringify(process.execPath), { stdio: "inherit" });
421
421
  } else {
422
422
  var { copyFileSync: cpSync, unlinkSync: rmSync } = await import("node:fs");
423
+ try { rmSync(process.execPath); } catch {}
423
424
  cpSync(tmpPath, process.execPath);
424
425
  chmodSync(process.execPath, 0o755);
425
426
  rmSync(tmpPath);