ltcai 3.0.1 → 3.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 (123) hide show
  1. package/README.md +54 -21
  2. package/docs/CHANGELOG.md +90 -0
  3. package/docs/V3_2_AUDIT.md +82 -0
  4. package/docs/V3_FRONTEND.md +20 -17
  5. package/docs/architecture.md +6 -0
  6. package/latticeai/__init__.py +1 -1
  7. package/latticeai/api/agent_registry.py +103 -0
  8. package/latticeai/api/auth.py +4 -1
  9. package/latticeai/api/hooks.py +113 -0
  10. package/latticeai/api/marketplace.py +13 -0
  11. package/latticeai/api/memory.py +109 -0
  12. package/latticeai/api/search.py +4 -0
  13. package/latticeai/core/agent_registry.py +234 -0
  14. package/latticeai/core/config.py +2 -0
  15. package/latticeai/core/embedding_providers.py +123 -0
  16. package/latticeai/core/hooks.py +284 -0
  17. package/latticeai/core/marketplace.py +87 -2
  18. package/latticeai/core/multi_agent.py +1 -1
  19. package/latticeai/core/workspace_os.py +1 -1
  20. package/latticeai/server_app.py +63 -6
  21. package/latticeai/services/memory_service.py +324 -0
  22. package/package.json +9 -4
  23. package/scripts/build_v3_assets.mjs +164 -0
  24. package/scripts/capture/README.md +28 -0
  25. package/scripts/capture/capture_enterprise.js +8 -0
  26. package/scripts/capture/capture_graph.js +8 -0
  27. package/scripts/capture/capture_onboarding.js +8 -0
  28. package/scripts/capture/capture_page.js +43 -0
  29. package/scripts/capture/capture_release_media.js +125 -0
  30. package/scripts/capture/capture_skills.js +8 -0
  31. package/scripts/capture/capture_workspace.js +8 -0
  32. package/scripts/generate_diagrams.py +513 -0
  33. package/scripts/lint_v3.mjs +33 -0
  34. package/scripts/release-0.3.1.sh +105 -0
  35. package/scripts/take_screenshots.js +69 -0
  36. package/scripts/validate_release_artifacts.py +167 -0
  37. package/static/account.html +9 -9
  38. package/static/activity.html +4 -4
  39. package/static/admin.html +8 -8
  40. package/static/agents.html +4 -4
  41. package/static/chat.html +9 -9
  42. package/static/css/tokens.5a595671.css +260 -0
  43. package/static/css/tokens.css +1 -1
  44. package/static/graph.html +9 -9
  45. package/static/plugins.html +4 -4
  46. package/static/sw.js +3 -1
  47. package/static/v3/asset-manifest.json +55 -0
  48. package/static/v3/css/lattice.base.e4cdd05d.css +128 -0
  49. package/static/v3/css/lattice.components.011e988b.css +447 -0
  50. package/static/v3/css/lattice.components.css +2 -2
  51. package/static/v3/css/lattice.shell.4920f42d.css +407 -0
  52. package/static/v3/css/lattice.tokens.c597ff81.css +132 -0
  53. package/static/v3/css/lattice.views.3ee19d4e.css +277 -0
  54. package/static/v3/index.html +38 -9
  55. package/static/v3/js/app.a5adc0f3.js +26 -0
  56. package/static/v3/js/core/api.603b978f.js +408 -0
  57. package/static/v3/js/core/api.js +132 -51
  58. package/static/v3/js/core/components.4c83e0a9.js +222 -0
  59. package/static/v3/js/core/components.js +9 -2
  60. package/static/v3/js/core/dom.a2773eb0.js +148 -0
  61. package/static/v3/js/core/router.584570f2.js +37 -0
  62. package/static/v3/js/core/routes.07ad6696.js +89 -0
  63. package/static/v3/js/core/routes.js +17 -1
  64. package/static/v3/js/core/shell.ea0b9ae5.js +363 -0
  65. package/static/v3/js/core/store.34ebd5e6.js +113 -0
  66. package/static/v3/js/views/admin-audit.660a1fb1.js +185 -0
  67. package/static/v3/js/views/admin-audit.js +1 -1
  68. package/static/v3/js/views/admin-permissions.a7ae5f09.js +177 -0
  69. package/static/v3/js/views/admin-permissions.js +4 -5
  70. package/static/v3/js/views/admin-policies.3658fd86.js +102 -0
  71. package/static/v3/js/views/admin-policies.js +4 -5
  72. package/static/v3/js/views/admin-private-vpc.7d342d36.js +135 -0
  73. package/static/v3/js/views/admin-private-vpc.js +2 -5
  74. package/static/v3/js/views/admin-security.07c66b72.js +180 -0
  75. package/static/v3/js/views/admin-security.js +4 -5
  76. package/static/v3/js/views/admin-users.03bac88c.js +168 -0
  77. package/static/v3/js/views/admin-users.js +6 -6
  78. package/static/v3/js/views/agents.c373d48c.js +293 -0
  79. package/static/v3/js/views/agents.js +101 -2
  80. package/static/v3/js/views/chat.718144ce.js +449 -0
  81. package/static/v3/js/views/chat.js +2 -3
  82. package/static/v3/js/views/files.4935197e.js +186 -0
  83. package/static/v3/js/views/files.js +27 -21
  84. package/static/v3/js/views/home.cdde3b32.js +119 -0
  85. package/static/v3/js/views/hooks.f3edebca.js +99 -0
  86. package/static/v3/js/views/hooks.js +99 -0
  87. package/static/v3/js/views/hybrid-search.b22b97e0.js +195 -0
  88. package/static/v3/js/views/hybrid-search.js +1 -1
  89. package/static/v3/js/views/knowledge-graph.a14ea7e7.js +237 -0
  90. package/static/v3/js/views/knowledge-graph.js +2 -3
  91. package/static/v3/js/views/marketplace.ab0583d4.js +141 -0
  92. package/static/v3/js/views/marketplace.js +141 -0
  93. package/static/v3/js/views/mcp.99b5c6a7.js +114 -0
  94. package/static/v3/js/views/mcp.js +114 -0
  95. package/static/v3/js/views/memory.d2ed7a7c.js +146 -0
  96. package/static/v3/js/views/memory.js +146 -0
  97. package/static/v3/js/views/models.a1ffa147.js +256 -0
  98. package/static/v3/js/views/models.js +17 -8
  99. package/static/v3/js/views/my-computer.1b2ff621.js +237 -0
  100. package/static/v3/js/views/my-computer.js +5 -5
  101. package/static/v3/js/views/pipeline.c522f1ce.js +157 -0
  102. package/static/v3/js/views/pipeline.js +3 -7
  103. package/static/v3/js/views/planning.9ac3e313.js +153 -0
  104. package/static/v3/js/views/planning.js +153 -0
  105. package/static/v3/js/views/settings.4f777210.js +250 -0
  106. package/static/v3/js/views/settings.js +6 -14
  107. package/static/v3/js/views/skills.c6c2f965.js +109 -0
  108. package/static/v3/js/views/skills.js +109 -0
  109. package/static/v3/js/views/tools.e4f11276.js +108 -0
  110. package/static/v3/js/views/tools.js +108 -0
  111. package/static/v3/js/views/workflows.26c57290.js +128 -0
  112. package/static/v3/js/views/workflows.js +128 -0
  113. package/static/workflows.html +4 -4
  114. package/static/workspace.html +5 -5
  115. package/docs/images/tmp_frames/frame_00.png +0 -0
  116. package/docs/images/tmp_frames/frame_01.png +0 -0
  117. package/docs/images/tmp_frames/frame_02.png +0 -0
  118. package/docs/images/tmp_frames/frame_03.png +0 -0
  119. package/docs/images/tmp_frames/hero_00.png +0 -0
  120. package/docs/images/tmp_frames/hero_01.png +0 -0
  121. package/docs/images/tmp_frames/hero_02.png +0 -0
  122. package/docs/images/tmp_frames/hero_03.png +0 -0
  123. package/static/v3/js/core/fixtures.js +0 -171
@@ -0,0 +1,148 @@
1
+ /* ============================================================================
2
+ * Lattice AI v3 — DOM helpers
3
+ * A tiny, dependency-free hyperscript. Builds real DOM nodes (no innerHTML for
4
+ * dynamic content → no injection surface). Ergonomic enough to author views.
5
+ * ========================================================================== */
6
+
7
+ /**
8
+ * h("div.card#id", { props }, ...children)
9
+ * - tag selector supports .class (many) and #id
10
+ * - props: class | className, id, on:{event:fn}, dataset:{k:v},
11
+ * style:{k:v} or string, html (trusted innerHTML), attrs (any other)
12
+ * - children: Node | string | number | falsy (skipped) | array (flattened)
13
+ */
14
+ export function h(selector, props, ...children) {
15
+ const { tag, id, classes } = parseSelector(selector);
16
+ const el = document.createElement(tag);
17
+ if (id) el.id = id;
18
+ if (classes.length) el.classList.add(...classes);
19
+
20
+ if (props && (props.nodeType || typeof props === "string" || Array.isArray(props))) {
21
+ children.unshift(props);
22
+ props = null;
23
+ }
24
+
25
+ if (props) {
26
+ for (const [key, val] of Object.entries(props)) {
27
+ if (val == null || val === false) continue;
28
+ if (key === "class" || key === "className") {
29
+ for (const c of String(val).split(/\s+/).filter(Boolean)) el.classList.add(c);
30
+ } else if (key === "on" && typeof val === "object") {
31
+ for (const [ev, fn] of Object.entries(val)) el.addEventListener(ev, fn);
32
+ } else if (key === "dataset" && typeof val === "object") {
33
+ for (const [k, v] of Object.entries(val)) { if (v != null) el.dataset[k] = v; }
34
+ } else if (key === "style" && typeof val === "object") {
35
+ for (const [k, v] of Object.entries(val)) el.style.setProperty(k, v);
36
+ } else if (key === "style") {
37
+ el.setAttribute("style", val);
38
+ } else if (key === "html") {
39
+ el.innerHTML = val;
40
+ } else if (key === "ref" && typeof val === "function") {
41
+ val(el);
42
+ } else if (key in el && key !== "list" && typeof val !== "object") {
43
+ try { el[key] = val; } catch { el.setAttribute(key, val); }
44
+ } else {
45
+ el.setAttribute(key, val === true ? "" : val);
46
+ }
47
+ }
48
+ }
49
+
50
+ appendChildren(el, children);
51
+ return el;
52
+ }
53
+
54
+ function parseSelector(sel) {
55
+ if (typeof sel !== "string") return { tag: "div", id: "", classes: [] };
56
+ const idMatch = sel.match(/#([\w-]+)/);
57
+ const id = idMatch ? idMatch[1] : "";
58
+ const classes = (sel.match(/\.([\w-]+)/g) || []).map((c) => c.slice(1));
59
+ const tag = (sel.match(/^([\w-]+)/) || [, "div"])[1];
60
+ return { tag, id, classes };
61
+ }
62
+
63
+ function appendChildren(el, children) {
64
+ for (const child of children.flat(Infinity)) {
65
+ if (child == null || child === false || child === true) continue;
66
+ el.append(child.nodeType ? child : document.createTextNode(String(child)));
67
+ }
68
+ }
69
+
70
+ /** Fragment of many children. */
71
+ export function frag(...children) {
72
+ const f = document.createDocumentFragment();
73
+ appendChildren(f, children);
74
+ return f;
75
+ }
76
+
77
+ /** Replace the contents of a node. */
78
+ export function render(host, ...children) {
79
+ host.replaceChildren();
80
+ appendChildren(host, children);
81
+ return host;
82
+ }
83
+
84
+ export function clear(host) { host.replaceChildren(); return host; }
85
+
86
+ export function escapeHtml(s) {
87
+ return String(s == null ? "" : s).replace(/[&<>"']/g, (c) =>
88
+ ({ "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }[c]));
89
+ }
90
+
91
+ export const $ = (sel, root = document) => root.querySelector(sel);
92
+ export const $$ = (sel, root = document) => Array.from(root.querySelectorAll(sel));
93
+
94
+ /** Tabler icon element: icon("home") → <i class="ti ti-home"> */
95
+ export function icon(name, extra = "") {
96
+ const i = document.createElement("i");
97
+ i.className = `ti ti-${name}${extra ? " " + extra : ""}`;
98
+ i.setAttribute("aria-hidden", "true");
99
+ i.setAttribute("data-fallback", iconFallback(name));
100
+ return i;
101
+ }
102
+
103
+ function iconFallback(name) {
104
+ const map = {
105
+ home: "H", search: "?", menu: "=", x: "x", refresh: "R",
106
+ "arrow-up": "^", "arrow-up-right": ">", "arrows-join": "H",
107
+ "chart-dots-3": "G", "grid-dots": "V", message: "C", "message-2": "C",
108
+ "message-plus": "+", "message-off": "C", user: "U", users: "U",
109
+ settings: "S", files: "F", cpu: "M", "cpu-off": "M", "player-play": ">",
110
+ "player-stop": "s", "layout-sidebar": "<", "layout-sidebar-right": ">",
111
+ "external-link": "o", trash: "x", sparkles: "*", "alert-triangle": "!",
112
+ "alert-circle": "!", "info-circle": "i", "circle-check": "v",
113
+ "circle-filled": "*", "stack-2": "S", "ruler-2": "R", binary: "B",
114
+ category: "T", abc: "K", "search-off": "?"
115
+ };
116
+ if (map[name]) return map[name];
117
+ return String(name || "?").split("-").map((part) => part[0] || "").join("").slice(0, 2).toUpperCase() || "?";
118
+ }
119
+
120
+ /** Compact relative-time formatter. */
121
+ export function timeAgo(value) {
122
+ if (!value) return "";
123
+ const then = new Date(value).getTime();
124
+ if (Number.isNaN(then)) return String(value);
125
+ const diff = Math.max(0, Date.now() - then);
126
+ const mins = Math.floor(diff / 60000);
127
+ if (mins < 1) return "just now";
128
+ if (mins < 60) return `${mins}m ago`;
129
+ const hrs = Math.floor(mins / 60);
130
+ if (hrs < 24) return `${hrs}h ago`;
131
+ const days = Math.floor(hrs / 24);
132
+ if (days < 30) return `${days}d ago`;
133
+ return new Date(then).toLocaleDateString();
134
+ }
135
+
136
+ /** Format a number with thousands separators / compact suffix. */
137
+ export function fmtNum(n) {
138
+ if (n == null || Number.isNaN(Number(n))) return "—";
139
+ const v = Number(n);
140
+ if (Math.abs(v) >= 1_000_000) return (v / 1_000_000).toFixed(1).replace(/\.0$/, "") + "M";
141
+ if (Math.abs(v) >= 1_000) return (v / 1_000).toFixed(1).replace(/\.0$/, "") + "k";
142
+ return v.toLocaleString();
143
+ }
144
+
145
+ export function debounce(fn, ms = 220) {
146
+ let t;
147
+ return (...args) => { clearTimeout(t); t = setTimeout(() => fn(...args), ms); };
148
+ }
@@ -0,0 +1,37 @@
1
+ /* ============================================================================
2
+ * Lattice AI v3 — Hash router
3
+ * Maps location.hash → { key, params }. Hash routing keeps the SPA shell
4
+ * served by a single static route (/app) with no server-side rewrites.
5
+ * #/home → { key: "home" }
6
+ * #/admin/users → { key: "admin/users" }
7
+ * #/chat?new=1 → { key: "chat", params: { new: "1" } }
8
+ * ========================================================================== */
9
+
10
+ export function createRouter({ onRoute, fallback = "home" }) {
11
+ function parse() {
12
+ let hash = location.hash.replace(/^#\/?/, "");
13
+ let query = "";
14
+ const qi = hash.indexOf("?");
15
+ if (qi >= 0) { query = hash.slice(qi + 1); hash = hash.slice(0, qi); }
16
+ const key = hash.replace(/\/+$/, "") || fallback;
17
+ const params = {};
18
+ if (query) new URLSearchParams(query).forEach((v, k) => { params[k] = v; });
19
+ return { key, params };
20
+ }
21
+
22
+ function handle() { onRoute(parse()); }
23
+
24
+ return {
25
+ start() {
26
+ window.addEventListener("hashchange", handle);
27
+ if (!location.hash) { location.replace("#/" + fallback); }
28
+ else { handle(); }
29
+ },
30
+ current: parse,
31
+ navigate(key, params) {
32
+ const qs = params && Object.keys(params).length ? "?" + new URLSearchParams(params).toString() : "";
33
+ const next = "#/" + String(key).replace(/^#?\/?/, "") + qs;
34
+ if (location.hash === next) handle(); else location.hash = next;
35
+ },
36
+ };
37
+ }
@@ -0,0 +1,89 @@
1
+ /* ============================================================================
2
+ * Lattice AI v3 — Information architecture (single source of truth)
3
+ *
4
+ * One declarative table drives the nav rail, the command palette, the router,
5
+ * breadcrumbs, and lazy view loading. Mode gating (Basic < Advanced < Admin)
6
+ * and the Admin section live here so the whole shell stays consistent.
7
+ * ========================================================================== */
8
+
9
+ export const MODE_RANK = { basic: 0, advanced: 1, admin: 2 };
10
+
11
+ /** Nav groups in display order. */
12
+ export const GROUPS = [
13
+ { id: "workspace", label: "Workspace" },
14
+ { id: "retrieval", label: "Retrieval" },
15
+ { id: "data", label: "Data" },
16
+ { id: "compute", label: "Compute" },
17
+ { id: "platform", label: "Platform" },
18
+ { id: "system", label: "System" },
19
+ { id: "admin", label: "Administration", adminOnly: true },
20
+ ];
21
+
22
+ /**
23
+ * Route table. `minMode` = lowest mode in which the item appears in the rail
24
+ * (deep-links still resolve). `view` = module basename under js/views/.
25
+ */
26
+ export const ROUTES = [
27
+ // Workspace
28
+ { key: "home", label: "Home", icon: "layout-dashboard", group: "workspace", minMode: "basic", view: "home", title: "Home", desc: "Your local-first AI workspace at a glance." },
29
+ { key: "chat", label: "Chat", icon: "message-2", group: "workspace", minMode: "basic", view: "chat", title: "Chat", desc: "Grounded conversation over your indexed workspace." },
30
+
31
+ // Retrieval (the product identity)
32
+ { key: "knowledge-graph", label: "Knowledge Graph", icon: "chart-dots-3", group: "retrieval", minMode: "basic", view: "knowledge-graph", title: "Knowledge Graph", desc: "Entities and relations extracted from your workspace." },
33
+ { key: "hybrid-search", label: "Hybrid Search", icon: "arrows-join", group: "retrieval", minMode: "basic", view: "hybrid-search", title: "Hybrid Search", desc: "Graph structure fused with vector similarity." },
34
+ { key: "memory", label: "Memory", icon: "brain", group: "retrieval", minMode: "basic", view: "memory", title: "Memory", desc: "Long-term workspace, project, agent, and conversation memory." },
35
+
36
+ // Data
37
+ { key: "files", label: "Files", icon: "folders", group: "data", minMode: "basic", view: "files", title: "Files", desc: "Connected sources and indexed documents." },
38
+ { key: "pipeline", label: "Pipeline", icon: "git-branch", group: "data", minMode: "advanced", view: "pipeline", title: "Pipeline", desc: "Ingest, embed, and graph-build flows." },
39
+
40
+ // Compute
41
+ { key: "agents", label: "Agents", icon: "robot", group: "compute", minMode: "advanced", view: "agents", title: "Agents", desc: "Multi-agent roles, runs, and handoffs." },
42
+ { key: "workflows", label: "Workflows", icon: "sitemap", group: "compute", minMode: "advanced", view: "workflows", title: "Workflow Agents", desc: "Trigger → agent chain → tools → memory → result." },
43
+ { key: "planning", label: "Planning", icon: "target-arrow", group: "compute", minMode: "advanced", view: "planning", title: "Autonomous Planning", desc: "Goal → plan → execute → review → replan." },
44
+ { key: "models", label: "Models", icon: "cpu", group: "compute", minMode: "basic", view: "models", title: "Models", desc: "Local MLX models and embeddings." },
45
+ { key: "my-computer", label: "My Computer", icon: "device-desktop-analytics", group: "compute", minMode: "advanced", view: "my-computer", title: "My Computer", desc: "Local hardware, memory, and runtime." },
46
+
47
+ // Platform (the agent ecosystem)
48
+ { key: "marketplace", label: "Marketplace", icon: "building-store", group: "platform", minMode: "advanced", view: "marketplace", title: "Marketplace", desc: "Agent templates, agents, plugins, and skills." },
49
+ { key: "skills", label: "Skills", icon: "puzzle", group: "platform", minMode: "advanced", view: "skills", title: "Skills", desc: "Install, enable, and manage skills." },
50
+ { key: "hooks", label: "Hooks", icon: "webhook", group: "platform", minMode: "advanced", view: "hooks", title: "Hooks", desc: "Lifecycle hooks across runs, tools, and workflows." },
51
+ { key: "tools", label: "Tools", icon: "tools", group: "platform", minMode: "advanced", view: "tools", title: "Tool Registry", desc: "Local, workspace, and MCP tools with governance." },
52
+ { key: "mcp", label: "MCP", icon: "plug-connected", group: "platform", minMode: "advanced", view: "mcp", title: "MCP Manager", desc: "Connected MCP servers, available tools, and health." },
53
+
54
+ // System
55
+ { key: "settings", label: "Settings", icon: "settings", group: "system", minMode: "basic", view: "settings", title: "Settings", desc: "Appearance, workspace, and integrations." },
56
+
57
+ // Admin
58
+ { key: "admin/users", label: "Users", icon: "users", group: "admin", minMode: "admin", view: "admin-users", title: "Users", desc: "Workspace members and access.", admin: true },
59
+ { key: "admin/permissions", label: "Permissions", icon: "key", group: "admin", minMode: "admin", view: "admin-permissions", title: "Permissions", desc: "Roles and capability mapping.", admin: true },
60
+ { key: "admin/audit", label: "Audit Logs", icon: "report-search", group: "admin", minMode: "admin", view: "admin-audit", title: "Audit Logs", desc: "Activity and access trail.", admin: true },
61
+ { key: "admin/security", label: "Security", icon: "shield-check", group: "admin", minMode: "admin", view: "admin-security", title: "Security", desc: "Sensitive-data signals and DLP.", admin: true },
62
+ { key: "admin/policies", label: "Policies", icon: "file-certificate", group: "admin", minMode: "admin", view: "admin-policies", title: "Policies", desc: "Governance and enforcement.", admin: true },
63
+ { key: "admin/private-vpc", label: "Private VPC", icon: "cloud-lock", group: "admin", minMode: "admin", view: "admin-private-vpc", title: "Private VPC", desc: "Network isolation and peering.", admin: true },
64
+ ];
65
+
66
+ export const ROUTE_BY_KEY = Object.fromEntries(ROUTES.map((r) => [r.key, r]));
67
+
68
+ /** Routes visible in the rail for a given mode. */
69
+ export function visibleRoutes(mode) {
70
+ const rank = MODE_RANK[mode] ?? 0;
71
+ return ROUTES.filter((r) => {
72
+ if (r.admin) return mode === "admin";
73
+ return (MODE_RANK[r.minMode] ?? 0) <= rank;
74
+ });
75
+ }
76
+
77
+ /** Lazy-load a view module by basename. Cached. */
78
+ const cache = new Map();
79
+ function assetUrl(key, fallback) {
80
+ const manifest = window.__LT_ASSET_MANIFEST__;
81
+ return (manifest && manifest.assets && manifest.assets[key]) || fallback;
82
+ }
83
+
84
+ export async function loadView(view) {
85
+ if (cache.has(view)) return cache.get(view);
86
+ const mod = await import(assetUrl(`static/v3/js/views/${view}.js`, `../views/${view}.js`));
87
+ cache.set(view, mod);
88
+ return mod;
89
+ }
@@ -14,6 +14,7 @@ export const GROUPS = [
14
14
  { id: "retrieval", label: "Retrieval" },
15
15
  { id: "data", label: "Data" },
16
16
  { id: "compute", label: "Compute" },
17
+ { id: "platform", label: "Platform" },
17
18
  { id: "system", label: "System" },
18
19
  { id: "admin", label: "Administration", adminOnly: true },
19
20
  ];
@@ -30,6 +31,7 @@ export const ROUTES = [
30
31
  // Retrieval (the product identity)
31
32
  { key: "knowledge-graph", label: "Knowledge Graph", icon: "chart-dots-3", group: "retrieval", minMode: "basic", view: "knowledge-graph", title: "Knowledge Graph", desc: "Entities and relations extracted from your workspace." },
32
33
  { key: "hybrid-search", label: "Hybrid Search", icon: "arrows-join", group: "retrieval", minMode: "basic", view: "hybrid-search", title: "Hybrid Search", desc: "Graph structure fused with vector similarity." },
34
+ { key: "memory", label: "Memory", icon: "brain", group: "retrieval", minMode: "basic", view: "memory", title: "Memory", desc: "Long-term workspace, project, agent, and conversation memory." },
33
35
 
34
36
  // Data
35
37
  { key: "files", label: "Files", icon: "folders", group: "data", minMode: "basic", view: "files", title: "Files", desc: "Connected sources and indexed documents." },
@@ -37,9 +39,18 @@ export const ROUTES = [
37
39
 
38
40
  // Compute
39
41
  { key: "agents", label: "Agents", icon: "robot", group: "compute", minMode: "advanced", view: "agents", title: "Agents", desc: "Multi-agent roles, runs, and handoffs." },
42
+ { key: "workflows", label: "Workflows", icon: "sitemap", group: "compute", minMode: "advanced", view: "workflows", title: "Workflow Agents", desc: "Trigger → agent chain → tools → memory → result." },
43
+ { key: "planning", label: "Planning", icon: "target-arrow", group: "compute", minMode: "advanced", view: "planning", title: "Autonomous Planning", desc: "Goal → plan → execute → review → replan." },
40
44
  { key: "models", label: "Models", icon: "cpu", group: "compute", minMode: "basic", view: "models", title: "Models", desc: "Local MLX models and embeddings." },
41
45
  { key: "my-computer", label: "My Computer", icon: "device-desktop-analytics", group: "compute", minMode: "advanced", view: "my-computer", title: "My Computer", desc: "Local hardware, memory, and runtime." },
42
46
 
47
+ // Platform (the agent ecosystem)
48
+ { key: "marketplace", label: "Marketplace", icon: "building-store", group: "platform", minMode: "advanced", view: "marketplace", title: "Marketplace", desc: "Agent templates, agents, plugins, and skills." },
49
+ { key: "skills", label: "Skills", icon: "puzzle", group: "platform", minMode: "advanced", view: "skills", title: "Skills", desc: "Install, enable, and manage skills." },
50
+ { key: "hooks", label: "Hooks", icon: "webhook", group: "platform", minMode: "advanced", view: "hooks", title: "Hooks", desc: "Lifecycle hooks across runs, tools, and workflows." },
51
+ { key: "tools", label: "Tools", icon: "tools", group: "platform", minMode: "advanced", view: "tools", title: "Tool Registry", desc: "Local, workspace, and MCP tools with governance." },
52
+ { key: "mcp", label: "MCP", icon: "plug-connected", group: "platform", minMode: "advanced", view: "mcp", title: "MCP Manager", desc: "Connected MCP servers, available tools, and health." },
53
+
43
54
  // System
44
55
  { key: "settings", label: "Settings", icon: "settings", group: "system", minMode: "basic", view: "settings", title: "Settings", desc: "Appearance, workspace, and integrations." },
45
56
 
@@ -65,9 +76,14 @@ export function visibleRoutes(mode) {
65
76
 
66
77
  /** Lazy-load a view module by basename. Cached. */
67
78
  const cache = new Map();
79
+ function assetUrl(key, fallback) {
80
+ const manifest = window.__LT_ASSET_MANIFEST__;
81
+ return (manifest && manifest.assets && manifest.assets[key]) || fallback;
82
+ }
83
+
68
84
  export async function loadView(view) {
69
85
  if (cache.has(view)) return cache.get(view);
70
- const mod = await import(`../views/${view}.js`);
86
+ const mod = await import(assetUrl(`static/v3/js/views/${view}.js`, `../views/${view}.js`));
71
87
  cache.set(view, mod);
72
88
  return mod;
73
89
  }