@cryptiklemur/lattice 1.20.0 → 1.20.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cryptiklemur/lattice",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.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>",
|
package/server/src/daemon.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { verifyPassphrase, generateSessionToken, addSession, isValidSession } fr
|
|
|
13
13
|
import { ensureCerts } from "./tls";
|
|
14
14
|
import type { ClientMessage, MeshMessage } from "@lattice/shared";
|
|
15
15
|
import { log } from "./logger";
|
|
16
|
+
import { detectIdeProjectName } from "./handlers/settings";
|
|
16
17
|
import "./handlers/session";
|
|
17
18
|
import "./handlers/chat";
|
|
18
19
|
import "./handlers/attachment";
|
|
@@ -381,7 +382,7 @@ export async function startDaemon(portOverride?: number | null): Promise<void> {
|
|
|
381
382
|
broadcast({
|
|
382
383
|
type: "projects:list",
|
|
383
384
|
projects: currentConfig.projects.map(function (p: typeof currentConfig.projects[number]) {
|
|
384
|
-
return { slug: p.slug, path: p.path, title: p.title, nodeId: currentIdentity.id, nodeName: currentConfig.name, isRemote: false };
|
|
385
|
+
return { slug: p.slug, path: p.path, title: p.title, nodeId: currentIdentity.id, nodeName: currentConfig.name, isRemote: false, ideProjectName: detectIdeProjectName(p.path) };
|
|
385
386
|
}),
|
|
386
387
|
});
|
|
387
388
|
}, 10000);
|
|
@@ -5,6 +5,9 @@ import type { ClientMessage, EditorDetectMessage } from "@lattice/shared";
|
|
|
5
5
|
import { registerHandler } from "../ws/router";
|
|
6
6
|
import { sendTo } from "../ws/broadcast";
|
|
7
7
|
import { loadConfig } from "../config";
|
|
8
|
+
import { loadOrCreateIdentity } from "../identity";
|
|
9
|
+
import { broadcast } from "../ws/broadcast";
|
|
10
|
+
import { detectIdeProjectName } from "./settings";
|
|
8
11
|
|
|
9
12
|
var binaryNames: Record<string, string[]> = {
|
|
10
13
|
"vscode": ["code"],
|
|
@@ -60,6 +63,13 @@ registerHandler("editor", function (clientId: string, message: ClientMessage) {
|
|
|
60
63
|
if (project) {
|
|
61
64
|
var name = ensureIdeaProject(project.path, project.title);
|
|
62
65
|
sendTo(clientId, { type: "editor:ensure-project_result", projectSlug: ensureMsg.projectSlug, ideProjectName: name });
|
|
66
|
+
var identity = loadOrCreateIdentity();
|
|
67
|
+
broadcast({
|
|
68
|
+
type: "projects:list",
|
|
69
|
+
projects: config.projects.map(function (p: typeof config.projects[number]) {
|
|
70
|
+
return { slug: p.slug, path: p.path, title: p.title, nodeId: identity.id, nodeName: config.name, isRemote: false, ideProjectName: detectIdeProjectName(p.path) };
|
|
71
|
+
}),
|
|
72
|
+
});
|
|
63
73
|
}
|
|
64
74
|
return;
|
|
65
75
|
}
|
|
@@ -11,7 +11,7 @@ import { readGlobalMcpServers, writeGlobalMcpServers, readGlobalSkills, readGlob
|
|
|
11
11
|
import { sendBudgetStatus } from "./chat";
|
|
12
12
|
import { buildNodesMessage } from "./mesh";
|
|
13
13
|
|
|
14
|
-
function detectIdeProjectName(projectPath: string): string | undefined {
|
|
14
|
+
export function detectIdeProjectName(projectPath: string): string | undefined {
|
|
15
15
|
try {
|
|
16
16
|
var ideDir = join(projectPath, ".idea");
|
|
17
17
|
if (!existsSync(ideDir)) return undefined;
|