@cryptiklemur/lattice 0.0.0 → 1.2.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/.github/workflows/release.yml +4 -4
- package/.releaserc.json +2 -1
- package/client/src/components/auth/PassphrasePrompt.tsx +70 -70
- package/client/src/components/mesh/NodeBadge.tsx +24 -24
- package/client/src/components/mesh/PairingDialog.tsx +281 -281
- package/client/src/components/panels/FileBrowser.tsx +241 -241
- package/client/src/components/panels/StickyNotes.tsx +187 -187
- package/client/src/components/project-settings/ProjectMemory.tsx +471 -0
- package/client/src/components/project-settings/ProjectSettingsView.tsx +6 -0
- package/client/src/components/settings/Appearance.tsx +151 -151
- package/client/src/components/settings/MeshStatus.tsx +145 -145
- package/client/src/components/settings/SettingsView.tsx +57 -57
- package/client/src/components/setup/SetupWizard.tsx +750 -750
- package/client/src/components/sidebar/AddProjectModal.tsx +432 -0
- package/client/src/components/sidebar/ProjectRail.tsx +8 -4
- package/client/src/components/sidebar/SettingsSidebar.tsx +2 -1
- package/client/src/components/ui/ErrorBoundary.tsx +56 -56
- package/client/src/hooks/useSidebar.ts +16 -0
- package/client/src/router.tsx +453 -391
- package/client/src/stores/sidebar.ts +28 -0
- package/client/vite.config.ts +20 -20
- package/package.json +1 -1
- package/server/src/daemon.ts +1 -0
- package/server/src/handlers/chat.ts +194 -194
- package/server/src/handlers/fs.ts +159 -0
- package/server/src/handlers/memory.ts +179 -0
- package/server/src/handlers/settings.ts +114 -109
- package/shared/src/messages.ts +97 -2
- package/shared/src/project-settings.ts +1 -1
- package/themes/amoled.json +20 -20
- package/themes/ayu-light.json +9 -9
- package/themes/catppuccin-latte.json +9 -9
- package/themes/catppuccin-mocha.json +9 -9
- package/themes/clay-light.json +10 -10
- package/themes/clay.json +10 -10
- package/themes/dracula.json +9 -9
- package/themes/everforest-light.json +9 -9
- package/themes/everforest.json +9 -9
- package/themes/github-light.json +9 -9
- package/themes/gruvbox-dark.json +9 -9
- package/themes/gruvbox-light.json +9 -9
- package/themes/monokai.json +9 -9
- package/themes/nord-light.json +9 -9
- package/themes/nord.json +9 -9
- package/themes/one-dark.json +9 -9
- package/themes/one-light.json +9 -9
- package/themes/rose-pine-dawn.json +9 -9
- package/themes/rose-pine.json +9 -9
- package/themes/solarized-dark.json +9 -9
- package/themes/solarized-light.json +9 -9
- package/themes/tokyo-night-light.json +9 -9
- package/themes/tokyo-night.json +9 -9
- package/.serena/project.yml +0 -138
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { useSidebar } from "../../hooks/useSidebar";
|
|
2
|
-
import { Menu } from "lucide-react";
|
|
3
|
-
import { Appearance } from "./Appearance";
|
|
4
|
-
import { ClaudeSettings } from "./ClaudeSettings";
|
|
5
|
-
import { Environment } from "./Environment";
|
|
6
|
-
import { MeshStatus } from "./MeshStatus";
|
|
7
|
-
import { GlobalMcp } from "./GlobalMcp";
|
|
8
|
-
import { GlobalSkills } from "./GlobalSkills";
|
|
9
|
-
import type { SettingsSection } from "../../stores/sidebar";
|
|
10
|
-
|
|
11
|
-
var SECTION_CONFIG: Record<string, { title: string }> = {
|
|
12
|
-
appearance: { title: "Appearance" },
|
|
13
|
-
claude: { title: "Claude Settings" },
|
|
14
|
-
environment: { title: "Environment" },
|
|
15
|
-
mcp: { title: "MCP Servers" },
|
|
16
|
-
skills: { title: "Skills" },
|
|
17
|
-
nodes: { title: "Mesh Nodes" },
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
function renderSection(section: SettingsSection) {
|
|
21
|
-
if (section === "appearance") return <Appearance />;
|
|
22
|
-
if (section === "claude") return <ClaudeSettings />;
|
|
23
|
-
if (section === "environment") return <Environment />;
|
|
24
|
-
if (section === "mcp") return <GlobalMcp />;
|
|
25
|
-
if (section === "skills") return <GlobalSkills />;
|
|
26
|
-
if (section === "nodes") return <MeshStatus />;
|
|
27
|
-
return null;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export function SettingsView() {
|
|
31
|
-
var { activeView, toggleDrawer } = useSidebar();
|
|
32
|
-
|
|
33
|
-
if (activeView.type !== "settings") {
|
|
34
|
-
return null;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
var section = activeView.section;
|
|
38
|
-
var config = SECTION_CONFIG[section];
|
|
39
|
-
|
|
40
|
-
return (
|
|
41
|
-
<div className="flex-1 overflow-auto px-4 sm:px-8 py-4 sm:py-6 max-w-3xl">
|
|
42
|
-
{config && (
|
|
43
|
-
<div className="mb-6 flex items-center gap-3">
|
|
44
|
-
<button
|
|
45
|
-
className="btn btn-ghost btn-sm btn-square lg:hidden"
|
|
46
|
-
aria-label="Toggle sidebar"
|
|
47
|
-
onClick={toggleDrawer}
|
|
48
|
-
>
|
|
49
|
-
<Menu size={18} />
|
|
50
|
-
</button>
|
|
51
|
-
<h1 className="text-lg font-mono font-bold text-base-content">{config.title}</h1>
|
|
52
|
-
</div>
|
|
53
|
-
)}
|
|
54
|
-
{renderSection(section)}
|
|
55
|
-
</div>
|
|
56
|
-
);
|
|
57
|
-
}
|
|
1
|
+
import { useSidebar } from "../../hooks/useSidebar";
|
|
2
|
+
import { Menu } from "lucide-react";
|
|
3
|
+
import { Appearance } from "./Appearance";
|
|
4
|
+
import { ClaudeSettings } from "./ClaudeSettings";
|
|
5
|
+
import { Environment } from "./Environment";
|
|
6
|
+
import { MeshStatus } from "./MeshStatus";
|
|
7
|
+
import { GlobalMcp } from "./GlobalMcp";
|
|
8
|
+
import { GlobalSkills } from "./GlobalSkills";
|
|
9
|
+
import type { SettingsSection } from "../../stores/sidebar";
|
|
10
|
+
|
|
11
|
+
var SECTION_CONFIG: Record<string, { title: string }> = {
|
|
12
|
+
appearance: { title: "Appearance" },
|
|
13
|
+
claude: { title: "Claude Settings" },
|
|
14
|
+
environment: { title: "Environment" },
|
|
15
|
+
mcp: { title: "MCP Servers" },
|
|
16
|
+
skills: { title: "Skills" },
|
|
17
|
+
nodes: { title: "Mesh Nodes" },
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
function renderSection(section: SettingsSection) {
|
|
21
|
+
if (section === "appearance") return <Appearance />;
|
|
22
|
+
if (section === "claude") return <ClaudeSettings />;
|
|
23
|
+
if (section === "environment") return <Environment />;
|
|
24
|
+
if (section === "mcp") return <GlobalMcp />;
|
|
25
|
+
if (section === "skills") return <GlobalSkills />;
|
|
26
|
+
if (section === "nodes") return <MeshStatus />;
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function SettingsView() {
|
|
31
|
+
var { activeView, toggleDrawer } = useSidebar();
|
|
32
|
+
|
|
33
|
+
if (activeView.type !== "settings") {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
var section = activeView.section;
|
|
38
|
+
var config = SECTION_CONFIG[section];
|
|
39
|
+
|
|
40
|
+
return (
|
|
41
|
+
<div className="flex-1 overflow-auto px-4 sm:px-8 py-4 sm:py-6 max-w-3xl">
|
|
42
|
+
{config && (
|
|
43
|
+
<div className="mb-6 flex items-center gap-3">
|
|
44
|
+
<button
|
|
45
|
+
className="btn btn-ghost btn-sm btn-square lg:hidden"
|
|
46
|
+
aria-label="Toggle sidebar"
|
|
47
|
+
onClick={toggleDrawer}
|
|
48
|
+
>
|
|
49
|
+
<Menu size={18} />
|
|
50
|
+
</button>
|
|
51
|
+
<h1 className="text-lg font-mono font-bold text-base-content">{config.title}</h1>
|
|
52
|
+
</div>
|
|
53
|
+
)}
|
|
54
|
+
{renderSection(section)}
|
|
55
|
+
</div>
|
|
56
|
+
);
|
|
57
|
+
}
|