@cryptiklemur/lattice 3.0.0 → 4.0.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/dist/client/assets/{angular-html-p5t-Nfoi.js → angular-html-N8PCEquT.js} +1 -1
- package/dist/client/assets/{angular-ts-QBfIBq6P.js → angular-ts-CJ8RJIPD.js} +1 -1
- package/dist/client/assets/{apl-82bQ_Djp.js → apl-BD6tCLWN.js} +1 -1
- package/dist/client/assets/{astro-DrL747uc.js → astro-CpIIfBs6.js} +1 -1
- package/dist/client/assets/{blade-CeleTiMx.js → blade-D3qgnjiV.js} +1 -1
- package/dist/client/assets/{c-CNa36Eot.js → c-Dr6ADN_t.js} +1 -1
- package/dist/client/assets/{cobol-xtZVZMu8.js → cobol-BIfDE0Hr.js} +1 -1
- package/dist/client/assets/{coffee-DSO0Kia-.js → coffee-DHQ57vfY.js} +1 -1
- package/dist/client/assets/{cpp-CHLZCe_0.js → cpp-CEBY6JOp.js} +1 -1
- package/dist/client/assets/{crystal-BgENvTby.js → crystal-D125CSmP.js} +1 -1
- package/dist/client/assets/{css-B9lcVfk6.js → css-CBmrkYSr.js} +1 -1
- package/dist/client/assets/{dist-2FggGBUL.js → dist-A_mCRD1f.js} +2 -2
- package/dist/client/assets/{edge-DVo0EkaJ.js → edge-Ccsz7cJW.js} +1 -1
- package/dist/client/assets/{elixir-nm5UVwAw.js → elixir-Do6gk14X.js} +1 -1
- package/dist/client/assets/{elm-BItvcLnf.js → elm-Db22zT4C.js} +1 -1
- package/dist/client/assets/{erb-DERt7iSq.js → erb-MXVqAAJD.js} +1 -1
- package/dist/client/assets/{git-rebase-CxzjpgPT.js → git-rebase-B-LLWBOA.js} +1 -1
- package/dist/client/assets/{glimmer-js-lr9NbwzE.js → glimmer-js-eWszRU73.js} +1 -1
- package/dist/client/assets/{glimmer-ts-BojVJXA9.js → glimmer-ts-VQmwGqUp.js} +1 -1
- package/dist/client/assets/{glsl-yZfjFR8v.js → glsl-B8ilOfAl.js} +1 -1
- package/dist/client/assets/{graphql-BdNVNM6U.js → graphql-DnTqxeOc.js} +1 -1
- package/dist/client/assets/{hack-BK90-1Dy.js → hack-XJsHYSQb.js} +1 -1
- package/dist/client/assets/{haml-BTj-Urq0.js → haml-CQ7Vqzwp.js} +1 -1
- package/dist/client/assets/{handlebars-B3ur7BqI.js → handlebars-C4szooBf.js} +1 -1
- package/dist/client/assets/{html-Wh0ZYaRH.js → html-B6EgAiSd.js} +1 -1
- package/dist/client/assets/{html-derivative-DAcr3evG.js → html-derivative-DdinogQX.js} +1 -1
- package/dist/client/assets/{http-B1Kn5xhc.js → http-BSLxCgRq.js} +1 -1
- package/dist/client/assets/{hurl-CYUKLBPr.js → hurl-pOsTwNfp.js} +1 -1
- package/dist/client/assets/{index-Ds62lWgL.js → index-BHQ_8mvl.js} +2 -2
- package/dist/client/assets/{java-XuTLsrgk.js → java-DRQLiiST.js} +1 -1
- package/dist/client/assets/{javascript-C-JTRs5l.js → javascript-DvEK2-47.js} +1 -1
- package/dist/client/assets/{jinja-BcRWtYpE.js → jinja-D2NYJ25y.js} +1 -1
- package/dist/client/assets/{jison-B43nrpXM.js → jison-DDZaLNAp.js} +1 -1
- package/dist/client/assets/{json-BgO-sevu.js → json-TGR0NIWd.js} +1 -1
- package/dist/client/assets/{jsx-CAday3oP.js → jsx-BjUoPYga.js} +1 -1
- package/dist/client/assets/{julia-DaelfbVe.js → julia-C4gjSpFu.js} +1 -1
- package/dist/client/assets/{just-DsDD_MqE.js → just-H351x5u_.js} +1 -1
- package/dist/client/assets/{latex-Bq8f5raz.js → latex-BiTmf6gf.js} +1 -1
- package/dist/client/assets/{liquid-CXUeGhmz.js → liquid-86ufjRy-.js} +1 -1
- package/dist/client/assets/{lua-YvUndMh8.js → lua-BNxR0F_8.js} +1 -1
- package/dist/client/assets/{marko-C6OCdIAH.js → marko-CvRxpRjM.js} +1 -1
- package/dist/client/assets/{mdc-CgTOXEJo.js → mdc-CYbAIy2C.js} +1 -1
- package/dist/client/assets/{nginx-Ba0I9mX9.js → nginx-egdgMq-F.js} +1 -1
- package/dist/client/assets/{nim-D8BfAXx_.js → nim-CXBJVz_w.js} +1 -1
- package/dist/client/assets/{perl-Bi-6llRF.js → perl-XRfMobzg.js} +1 -1
- package/dist/client/assets/{php-F62PhYtk.js → php-Br7a8uil.js} +1 -1
- package/dist/client/assets/{pug-D88Q106N.js → pug-BVbbUVvy.js} +1 -1
- package/dist/client/assets/{qml-DuWlLlTg.js → qml-ByKvrL1j.js} +1 -1
- package/dist/client/assets/{r-PBSd4xLF.js → r-mVoV0Ni6.js} +1 -1
- package/dist/client/assets/{razor-CccHx-M2.js → razor-T5O-9UJL.js} +1 -1
- package/dist/client/assets/{regexp-CBh65lsy.js → regexp-CioRuhuN.js} +1 -1
- package/dist/client/assets/{rst-DyWqmpVk.js → rst-V__uTudD.js} +1 -1
- package/dist/client/assets/{ruby-CqEljnfp.js → ruby-C_PuKPTI.js} +1 -1
- package/dist/client/assets/{sas-RDyijAm6.js → sas-D_DqqQH4.js} +1 -1
- package/dist/client/assets/{scss-BFMtRhMj.js → scss-D-TjzZ4c.js} +1 -1
- package/dist/client/assets/{shellscript-DdKKt1iT.js → shellscript-E5759VHu.js} +1 -1
- package/dist/client/assets/{shellsession-Bn7uljDl.js → shellsession-AESTM-Pv.js} +1 -1
- package/dist/client/assets/{soy-fykMX_Q-.js → soy-QrbrrcDv.js} +1 -1
- package/dist/client/assets/{sql-IJUDieNo.js → sql-0M8VcDHD.js} +1 -1
- package/dist/client/assets/{stata-CUp59tGc.js → stata-CgeIpGtc.js} +1 -1
- package/dist/client/assets/{surrealql-BWJxnhS7.js → surrealql-DBGwnZbw.js} +1 -1
- package/dist/client/assets/{svelte-Bey6A6S-.js → svelte-Cv0PvUc_.js} +1 -1
- package/dist/client/assets/{templ-CAydvaCu.js → templ-B9t7xRE4.js} +1 -1
- package/dist/client/assets/{tex-CgxZNWup.js → tex-DhZZ8dr2.js} +1 -1
- package/dist/client/assets/{ts-tags-QJ8z73ld.js → ts-tags-BFv8sbnd.js} +1 -1
- package/dist/client/assets/{tsx-CZs_kQHC.js → tsx-CXC9KSbY.js} +1 -1
- package/dist/client/assets/{twig-CUkd-jp7.js → twig-CM_OO66r.js} +1 -1
- package/dist/client/assets/{typescript-72gXC1AU.js → typescript-BdgOTaoD.js} +1 -1
- package/dist/client/assets/{vue-DN_el4fL.js → vue-BnQhjnCm.js} +1 -1
- package/dist/client/assets/{vue-html-CqjvpIsk.js → vue-html-CNnGecRI.js} +1 -1
- package/dist/client/assets/{vue-vine-CLjLkwAp.js → vue-vine-DCuMkRhK.js} +1 -1
- package/dist/client/assets/{xml-DZG1936u.js → xml-CbTD7cB8.js} +1 -1
- package/dist/client/assets/{xsl-CU-QUjue.js → xsl-uOqqo7cf.js} +1 -1
- package/dist/client/assets/{yaml-CJJOCB-c.js → yaml-BNrLoH59.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/client/sw.js +1 -1
- package/package.json +4 -1
- package/src/client/components/analytics/AnalyticsView.tsx +1 -1
- package/src/client/components/analytics/charts/NodeFleetOverview.tsx +1 -1
- package/src/client/components/chat/CommandPalette.tsx +1 -1
- package/src/client/components/chat/Message.tsx +1 -1
- package/src/client/components/chat/PromptQuestion.tsx +1 -1
- package/src/client/components/chat/TodoCard.tsx +1 -1
- package/src/client/components/chat/ToolGroup.tsx +1 -1
- package/src/client/components/dashboard/DashboardView.tsx +1 -1
- package/src/client/components/dashboard/ProjectDashboardView.tsx +1 -1
- package/src/client/components/mesh/NodeBadge.tsx +1 -1
- package/src/client/components/mesh/PairingDialog.tsx +1 -1
- package/src/client/components/project-settings/ProjectClaude.tsx +1 -1
- package/src/client/components/project-settings/ProjectEnvironment.tsx +1 -1
- package/src/client/components/project-settings/ProjectGeneral.tsx +1 -1
- package/src/client/components/project-settings/ProjectMcp.tsx +1 -1
- package/src/client/components/project-settings/ProjectMemory.tsx +1 -1
- package/src/client/components/project-settings/ProjectPermissions.tsx +1 -1
- package/src/client/components/project-settings/ProjectPlugins.tsx +1 -1
- package/src/client/components/project-settings/ProjectRules.tsx +1 -1
- package/src/client/components/project-settings/ProjectSettingsView.tsx +1 -1
- package/src/client/components/project-settings/ProjectSkills.tsx +1 -1
- package/src/client/components/settings/Appearance.tsx +1 -1
- package/src/client/components/settings/BudgetSettings.tsx +1 -1
- package/src/client/components/settings/ClaudeSettings.tsx +1 -1
- package/src/client/components/settings/Editor.tsx +1 -1
- package/src/client/components/settings/Environment.tsx +1 -1
- package/src/client/components/settings/GlobalMcp.tsx +2 -2
- package/src/client/components/settings/GlobalPlugins.tsx +1 -1
- package/src/client/components/settings/GlobalRules.tsx +1 -1
- package/src/client/components/settings/GlobalSkills.tsx +1 -1
- package/src/client/components/settings/MeshStatus.tsx +1 -1
- package/src/client/components/settings/SkillMarketplace.tsx +1 -1
- package/src/client/components/settings/mcp-shared.tsx +1 -1
- package/src/client/components/settings/skill-shared.tsx +1 -1
- package/src/client/components/sidebar/AddProjectModal.tsx +1 -1
- package/src/client/components/sidebar/NodeSettingsModal.tsx +1 -1
- package/src/client/components/sidebar/ProjectRail.tsx +1 -1
- package/src/client/components/sidebar/SessionList.tsx +2 -2
- package/src/client/components/sidebar/Sidebar.tsx +1 -1
- package/src/client/components/sidebar/UserIsland.tsx +1 -1
- package/src/client/components/ui/IconPicker.tsx +1 -1
- package/src/client/components/ui/UpdateBanner.tsx +1 -1
- package/src/client/components/workspace/BookmarksView.tsx +1 -1
- package/src/client/components/workspace/FileBrowser.tsx +1 -1
- package/src/client/components/workspace/FileTree.tsx +1 -1
- package/src/client/components/workspace/NoteCard.tsx +1 -1
- package/src/client/components/workspace/NotesView.tsx +1 -1
- package/src/client/components/workspace/ScheduledTasksView.tsx +1 -1
- package/src/client/components/workspace/TaskCard.tsx +1 -1
- package/src/client/components/workspace/TaskEditModal.tsx +1 -1
- package/src/client/components/workspace/TerminalInstance.tsx +1 -1
- package/src/client/hooks/useAnalytics.ts +3 -3
- package/src/client/hooks/useAttachments.ts +1 -1
- package/src/client/hooks/useBookmarks.ts +1 -1
- package/src/client/hooks/useEditorConfig.ts +1 -1
- package/src/client/hooks/useMesh.ts +1 -1
- package/src/client/hooks/useProjectSettings.ts +1 -1
- package/src/client/hooks/useProjects.ts +3 -3
- package/src/client/hooks/useSession.ts +2 -2
- package/src/client/hooks/useSkills.ts +2 -2
- package/src/client/hooks/useSpinnerVerb.ts +1 -1
- package/src/client/hooks/useWebSocket.ts +1 -1
- package/src/client/providers/WebSocketProvider.tsx +1 -1
- package/src/client/stores/analytics.ts +1 -1
- package/src/client/stores/bookmarks.ts +1 -1
- package/src/client/stores/mesh.ts +1 -1
- package/src/client/stores/session.ts +1 -1
- package/src/client/stores/sidebar.ts +1 -1
- package/src/server/analytics/engine.ts +1 -1
- package/src/server/config.ts +2 -2
- package/src/server/daemon.ts +1 -1
- package/src/server/features/ralph-loop.ts +1 -1
- package/src/server/features/scheduler.ts +1 -1
- package/src/server/features/sticky-notes.ts +1 -1
- package/src/server/handlers/analytics.ts +1 -1
- package/src/server/handlers/attachment.ts +2 -2
- package/src/server/handlers/bookmarks.ts +1 -1
- package/src/server/handlers/chat.ts +1 -1
- package/src/server/handlers/editor.ts +1 -1
- package/src/server/handlers/fs.ts +1 -1
- package/src/server/handlers/loop.ts +1 -1
- package/src/server/handlers/memory.ts +1 -1
- package/src/server/handlers/mesh.ts +3 -3
- package/src/server/handlers/notes.ts +1 -1
- package/src/server/handlers/plugins.ts +1 -1
- package/src/server/handlers/project-settings.ts +1 -1
- package/src/server/handlers/scheduler.ts +1 -1
- package/src/server/handlers/session.ts +1 -1
- package/src/server/handlers/settings.ts +4 -4
- package/src/server/handlers/skills.ts +5 -5
- package/src/server/handlers/terminal.ts +1 -1
- package/src/server/handlers/themes.ts +1 -1
- package/src/server/handlers/update.ts +1 -1
- package/src/server/index.ts +13 -10
- package/src/server/mesh/connector.ts +1 -1
- package/src/server/mesh/peers.ts +1 -1
- package/src/server/mesh/proxy.ts +1 -1
- package/src/server/mesh/session-sync.ts +1 -1
- package/src/server/project/bookmarks.ts +1 -1
- package/src/server/project/context-breakdown.ts +1 -1
- package/src/server/project/file-browser.ts +1 -1
- package/src/server/project/registry.ts +1 -1
- package/src/server/project/sdk-bridge.ts +1 -1
- package/src/server/project/session.ts +1 -1
- package/src/server/tui.ts +2 -2
- package/src/server/ws/router.ts +1 -1
- package/tsconfig.json +1 -1
- package/vite.config.ts +1 -1
|
@@ -2,8 +2,8 @@ import { readdirSync, readFileSync, existsSync, lstatSync, realpathSync, statSyn
|
|
|
2
2
|
import { join, sep, dirname } from "node:path";
|
|
3
3
|
import { homedir } from "node:os";
|
|
4
4
|
import { execSync, spawn } from "node:child_process";
|
|
5
|
-
import type { ClientMessage } from "
|
|
6
|
-
import type { SkillInfo } from "
|
|
5
|
+
import type { ClientMessage } from "#shared";
|
|
6
|
+
import type { SkillInfo } from "#shared";
|
|
7
7
|
import { registerHandler } from "../ws/router";
|
|
8
8
|
import { sendTo } from "../ws/broadcast";
|
|
9
9
|
import { loadConfig } from "../config";
|
|
@@ -292,7 +292,7 @@ registerHandler("skills", function (clientId: string, message: ClientMessage) {
|
|
|
292
292
|
sendTo(clientId, {
|
|
293
293
|
type: "settings:data",
|
|
294
294
|
config: globalConfig,
|
|
295
|
-
mcpServers: readGlobalMcpServers() as Record<string, import("
|
|
295
|
+
mcpServers: readGlobalMcpServers() as Record<string, import("#shared").McpServerConfig>,
|
|
296
296
|
globalSkills: readGlobalSkills(),
|
|
297
297
|
});
|
|
298
298
|
}
|
|
@@ -333,7 +333,7 @@ registerHandler("skills", function (clientId: string, message: ClientMessage) {
|
|
|
333
333
|
sendTo(clientId, {
|
|
334
334
|
type: "settings:data",
|
|
335
335
|
config: delConfig,
|
|
336
|
-
mcpServers: readGlobalMcpServers() as Record<string, import("
|
|
336
|
+
mcpServers: readGlobalMcpServers() as Record<string, import("#shared").McpServerConfig>,
|
|
337
337
|
globalSkills: readGlobalSkills(),
|
|
338
338
|
});
|
|
339
339
|
} catch (err) {
|
|
@@ -366,7 +366,7 @@ registerHandler("skills", function (clientId: string, message: ClientMessage) {
|
|
|
366
366
|
sendTo(clientId, {
|
|
367
367
|
type: "settings:data",
|
|
368
368
|
config: updConfig,
|
|
369
|
-
mcpServers: readGlobalMcpServers() as Record<string, import("
|
|
369
|
+
mcpServers: readGlobalMcpServers() as Record<string, import("#shared").McpServerConfig>,
|
|
370
370
|
globalSkills: readGlobalSkills(),
|
|
371
371
|
});
|
|
372
372
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ClientMessage, TerminalCreateMessage, TerminalInputMessage, TerminalResizeMessage } from "
|
|
1
|
+
import type { ClientMessage, TerminalCreateMessage, TerminalInputMessage, TerminalResizeMessage } from "#shared";
|
|
2
2
|
import { registerHandler } from "../ws/router";
|
|
3
3
|
import { sendTo } from "../ws/broadcast";
|
|
4
4
|
import { createTerminal, destroyTerminal, writeToTerminal, resizeTerminal } from "../project/terminal";
|
|
@@ -4,7 +4,7 @@ import type {
|
|
|
4
4
|
ClientMessage,
|
|
5
5
|
ThemeSaveMessage,
|
|
6
6
|
ThemeDeleteMessage,
|
|
7
|
-
} from "
|
|
7
|
+
} from "#shared";
|
|
8
8
|
import { registerHandler } from "../ws/router";
|
|
9
9
|
import { sendTo, broadcast } from "../ws/broadcast";
|
|
10
10
|
import { getLatticeHome } from "../config";
|
|
@@ -2,7 +2,7 @@ import { chmodSync, writeFileSync, accessSync, copyFileSync, unlinkSync, constan
|
|
|
2
2
|
import { tmpdir } from "node:os";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import { execSync, spawn } from "node:child_process";
|
|
5
|
-
import type { ClientMessage } from "
|
|
5
|
+
import type { ClientMessage } from "#shared";
|
|
6
6
|
import { registerHandler } from "../ws/router";
|
|
7
7
|
import { sendTo, broadcast } from "../ws/broadcast";
|
|
8
8
|
import { checkForUpdate, getPackageName, getGitHubRepo, getInstallMode } from "../update-checker";
|
package/src/server/index.ts
CHANGED
|
@@ -6,7 +6,6 @@ import { existsSync, readFileSync, writeFileSync, unlinkSync, openSync } from "n
|
|
|
6
6
|
import { join, dirname } from "node:path";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
8
|
import { spawn, execSync } from "node:child_process";
|
|
9
|
-
import { DAEMON_PID_FILE } from "@lattice/shared";
|
|
10
9
|
import { getLatticeHome, loadConfig } from "./config";
|
|
11
10
|
|
|
12
11
|
var __filename_local = fileURLToPath(import.meta.url);
|
|
@@ -36,12 +35,17 @@ for (var i = 0; i < args.length; i++) {
|
|
|
36
35
|
}
|
|
37
36
|
}
|
|
38
37
|
|
|
39
|
-
function
|
|
40
|
-
return
|
|
38
|
+
function getEffectivePort(): number {
|
|
39
|
+
return portOverride ?? loadConfig().port;
|
|
41
40
|
}
|
|
42
41
|
|
|
43
|
-
function
|
|
44
|
-
var
|
|
42
|
+
function getPidPath(port?: number): string {
|
|
43
|
+
var p = port ?? getEffectivePort();
|
|
44
|
+
return join(getLatticeHome(), "daemon-" + p + ".pid");
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function readPid(port?: number): number | null {
|
|
48
|
+
var pidPath = getPidPath(port);
|
|
45
49
|
if (!existsSync(pidPath)) {
|
|
46
50
|
return null;
|
|
47
51
|
}
|
|
@@ -54,17 +58,16 @@ function readPid(): number | null {
|
|
|
54
58
|
}
|
|
55
59
|
}
|
|
56
60
|
|
|
57
|
-
function writePid(pid: number): void {
|
|
58
|
-
writeFileSync(getPidPath(), String(pid), "utf-8");
|
|
61
|
+
function writePid(pid: number, port?: number): void {
|
|
62
|
+
writeFileSync(getPidPath(port), String(pid), "utf-8");
|
|
59
63
|
}
|
|
60
64
|
|
|
61
|
-
function removePid(): void {
|
|
62
|
-
var pidPath = getPidPath();
|
|
65
|
+
function removePid(port?: number): void {
|
|
66
|
+
var pidPath = getPidPath(port);
|
|
63
67
|
if (existsSync(pidPath)) {
|
|
64
68
|
try {
|
|
65
69
|
unlinkSync(pidPath);
|
|
66
70
|
} catch {
|
|
67
|
-
// ignore
|
|
68
71
|
}
|
|
69
72
|
}
|
|
70
73
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MeshMessage, MeshHelloMessage, MeshSessionSyncMessage, MeshSessionRequestMessage } from "
|
|
1
|
+
import type { MeshMessage, MeshHelloMessage, MeshSessionSyncMessage, MeshSessionRequestMessage } from "#shared";
|
|
2
2
|
import * as peersModule from "./peers";
|
|
3
3
|
import { loadPeers } from "./peers";
|
|
4
4
|
import { loadOrCreateIdentity } from "../identity";
|
package/src/server/mesh/peers.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { existsSync, readFileSync, writeFileSync } from "node:fs";
|
|
2
2
|
import { join } from "node:path";
|
|
3
|
-
import type { PeerInfo } from "
|
|
3
|
+
import type { PeerInfo } from "#shared";
|
|
4
4
|
import { getLatticeHome } from "../config";
|
|
5
5
|
|
|
6
6
|
function getPeersPath(): string {
|
package/src/server/mesh/proxy.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { randomUUID } from "node:crypto";
|
|
2
|
-
import type { ClientMessage, MeshProxyRequestMessage, MeshProxyResponseMessage, ServerMessage } from "
|
|
2
|
+
import type { ClientMessage, MeshProxyRequestMessage, MeshProxyResponseMessage, ServerMessage } from "#shared";
|
|
3
3
|
import { getPeerConnection } from "./connector";
|
|
4
4
|
import { sendTo, broadcast, registerVirtualClient, removeVirtualClient } from "../ws/broadcast";
|
|
5
5
|
import { routeMessage } from "../ws/router";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync, mkdirSync, readFileSync, appendFileSync, statSync } from "node:fs";
|
|
2
2
|
import { join } from "node:path";
|
|
3
3
|
import { homedir } from "node:os";
|
|
4
|
-
import type { MeshSessionSyncMessage, MeshSessionRequestMessage } from "
|
|
4
|
+
import type { MeshSessionSyncMessage, MeshSessionRequestMessage } from "#shared";
|
|
5
5
|
import { getConnectedPeerIds, getPeerConnection } from "./connector";
|
|
6
6
|
import { getLatticeHome } from "../config";
|
|
7
7
|
|
|
@@ -2,7 +2,7 @@ import { existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "
|
|
|
2
2
|
import { join } from "node:path";
|
|
3
3
|
import { randomBytes } from "node:crypto";
|
|
4
4
|
import { getLatticeHome } from "../config";
|
|
5
|
-
import type { MessageBookmark } from "
|
|
5
|
+
import type { MessageBookmark } from "#shared";
|
|
6
6
|
|
|
7
7
|
var bookmarksFile = "";
|
|
8
8
|
var bookmarks: MessageBookmark[] = [];
|
|
@@ -2,7 +2,7 @@ import { encodingForModel } from "js-tiktoken";
|
|
|
2
2
|
import { existsSync, readFileSync, readdirSync, openSync, readSync, fstatSync, closeSync } from "node:fs";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import { homedir } from "node:os";
|
|
5
|
-
import type { ContextBreakdownSegment } from "
|
|
5
|
+
import type { ContextBreakdownSegment } from "#shared";
|
|
6
6
|
import { guessContextWindow } from "./session";
|
|
7
7
|
import { loadConfig } from "../config";
|
|
8
8
|
import { getInstalledPluginCount, getPluginSkillRuleTokenEstimate } from "../handlers/plugins";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync } from "node:fs";
|
|
2
2
|
import { basename } from "node:path";
|
|
3
3
|
import { loadConfig, saveConfig } from "../config";
|
|
4
|
-
import type { ProjectSummary } from "
|
|
4
|
+
import type { ProjectSummary } from "#shared";
|
|
5
5
|
|
|
6
6
|
export function listProjects(nodeId: string): ProjectSummary[] {
|
|
7
7
|
var config = loadConfig();
|
|
@@ -3,7 +3,7 @@ import { query } from "@anthropic-ai/claude-agent-sdk";
|
|
|
3
3
|
import type { SDKMessage, SDKPartialAssistantMessage, SDKResultMessage, SDKUserMessage } from "@anthropic-ai/claude-agent-sdk";
|
|
4
4
|
import type { CanUseTool, PermissionMode, PermissionResult, PermissionUpdate } from "@anthropic-ai/claude-agent-sdk";
|
|
5
5
|
type MessageParam = SDKUserMessage["message"];
|
|
6
|
-
import type { Attachment } from "
|
|
6
|
+
import type { Attachment } from "#shared";
|
|
7
7
|
import { existsSync, readFileSync, writeFileSync, mkdirSync } from "node:fs";
|
|
8
8
|
import { join, resolve } from "node:path";
|
|
9
9
|
import { homedir } from "node:os";
|
|
@@ -10,7 +10,7 @@ import * as fsPromises from "node:fs/promises";
|
|
|
10
10
|
import { join } from "node:path";
|
|
11
11
|
import { randomUUID } from "node:crypto";
|
|
12
12
|
import { homedir } from "node:os";
|
|
13
|
-
import type { HistoryMessage, SessionPreview, SessionSummary } from "
|
|
13
|
+
import type { HistoryMessage, SessionPreview, SessionSummary } from "#shared";
|
|
14
14
|
import { loadConfig } from "../config";
|
|
15
15
|
import { log } from "../logger";
|
|
16
16
|
|
package/src/server/tui.ts
CHANGED
|
@@ -2,8 +2,8 @@ import * as p from "@clack/prompts";
|
|
|
2
2
|
import { existsSync } from "node:fs";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import { getLatticeHome, loadConfig, saveConfig } from "./config";
|
|
5
|
-
import type { LatticeConfig } from "
|
|
6
|
-
import { DEFAULT_PORT } from "
|
|
5
|
+
import type { LatticeConfig } from "#shared";
|
|
6
|
+
import { DEFAULT_PORT } from "#shared";
|
|
7
7
|
|
|
8
8
|
var BANNER = `
|
|
9
9
|
\x1b[36m██╗\x1b[0m \x1b[36m█████╗\x1b[0m \x1b[36m████████╗████████╗██╗\x1b[0m \x1b[36m██████╗\x1b[0m \x1b[36m███████╗\x1b[0m
|
package/src/server/ws/router.ts
CHANGED
package/tsconfig.json
CHANGED