@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.
Files changed (53) hide show
  1. package/.github/workflows/release.yml +4 -4
  2. package/.releaserc.json +2 -1
  3. package/client/src/components/auth/PassphrasePrompt.tsx +70 -70
  4. package/client/src/components/mesh/NodeBadge.tsx +24 -24
  5. package/client/src/components/mesh/PairingDialog.tsx +281 -281
  6. package/client/src/components/panels/FileBrowser.tsx +241 -241
  7. package/client/src/components/panels/StickyNotes.tsx +187 -187
  8. package/client/src/components/project-settings/ProjectMemory.tsx +471 -0
  9. package/client/src/components/project-settings/ProjectSettingsView.tsx +6 -0
  10. package/client/src/components/settings/Appearance.tsx +151 -151
  11. package/client/src/components/settings/MeshStatus.tsx +145 -145
  12. package/client/src/components/settings/SettingsView.tsx +57 -57
  13. package/client/src/components/setup/SetupWizard.tsx +750 -750
  14. package/client/src/components/sidebar/AddProjectModal.tsx +432 -0
  15. package/client/src/components/sidebar/ProjectRail.tsx +8 -4
  16. package/client/src/components/sidebar/SettingsSidebar.tsx +2 -1
  17. package/client/src/components/ui/ErrorBoundary.tsx +56 -56
  18. package/client/src/hooks/useSidebar.ts +16 -0
  19. package/client/src/router.tsx +453 -391
  20. package/client/src/stores/sidebar.ts +28 -0
  21. package/client/vite.config.ts +20 -20
  22. package/package.json +1 -1
  23. package/server/src/daemon.ts +1 -0
  24. package/server/src/handlers/chat.ts +194 -194
  25. package/server/src/handlers/fs.ts +159 -0
  26. package/server/src/handlers/memory.ts +179 -0
  27. package/server/src/handlers/settings.ts +114 -109
  28. package/shared/src/messages.ts +97 -2
  29. package/shared/src/project-settings.ts +1 -1
  30. package/themes/amoled.json +20 -20
  31. package/themes/ayu-light.json +9 -9
  32. package/themes/catppuccin-latte.json +9 -9
  33. package/themes/catppuccin-mocha.json +9 -9
  34. package/themes/clay-light.json +10 -10
  35. package/themes/clay.json +10 -10
  36. package/themes/dracula.json +9 -9
  37. package/themes/everforest-light.json +9 -9
  38. package/themes/everforest.json +9 -9
  39. package/themes/github-light.json +9 -9
  40. package/themes/gruvbox-dark.json +9 -9
  41. package/themes/gruvbox-light.json +9 -9
  42. package/themes/monokai.json +9 -9
  43. package/themes/nord-light.json +9 -9
  44. package/themes/nord.json +9 -9
  45. package/themes/one-dark.json +9 -9
  46. package/themes/one-light.json +9 -9
  47. package/themes/rose-pine-dawn.json +9 -9
  48. package/themes/rose-pine.json +9 -9
  49. package/themes/solarized-dark.json +9 -9
  50. package/themes/solarized-light.json +9 -9
  51. package/themes/tokyo-night-light.json +9 -9
  52. package/themes/tokyo-night.json +9 -9
  53. 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
+ }