@laurindustries/mnemos 0.0.0-stage → 0.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 (54) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/LICENSE +21 -0
  3. package/README.md +78 -2
  4. package/docs/README.md +33 -0
  5. package/docs/assets/mnemos-readme.svg +13 -0
  6. package/docs/assets/mnemos-social-preview.png +0 -0
  7. package/docs/branding.md +19 -0
  8. package/docs/cli.md +144 -0
  9. package/docs/development.md +29 -0
  10. package/docs/getting-started.md +127 -0
  11. package/docs/mcp.md +105 -0
  12. package/docs/ontology.md +233 -0
  13. package/docs/operations.md +130 -0
  14. package/docs/refresh.md +79 -0
  15. package/docs/release.md +68 -0
  16. package/docs/relocation.md +22 -0
  17. package/examples/ontology.extended.yaml +64 -0
  18. package/package.json +91 -4
  19. package/scripts/check-docs.mjs +23 -0
  20. package/scripts/cli.mjs +9 -0
  21. package/scripts/mcp.mjs +3 -0
  22. package/scripts/package-smoke-worker.mjs +63 -0
  23. package/scripts/package-smoke.mjs +49 -0
  24. package/scripts/refresh.config.example.json +8 -0
  25. package/scripts/refresh.mjs +10 -0
  26. package/src/api.ts +39 -0
  27. package/src/cli.ts +111 -0
  28. package/src/config.ts +124 -0
  29. package/src/core-bootstrap.mjs +3 -0
  30. package/src/explorer.ts +106 -0
  31. package/src/index.ts +88 -0
  32. package/src/legacy-v5.json +22 -0
  33. package/src/mcp.ts +31 -0
  34. package/src/ontology-editor.ts +115 -0
  35. package/src/ontology.ts +50 -0
  36. package/src/ontology.yaml +60 -0
  37. package/src/opencode-bootstrap.mjs +2 -0
  38. package/src/opencode.ts +28 -0
  39. package/src/paths.ts +8 -0
  40. package/src/refresh/cli.ts +121 -0
  41. package/src/refresh/inventory.ts +259 -0
  42. package/src/refresh/refresh.ts +112 -0
  43. package/src/service-bootstrap.mjs +11 -0
  44. package/src/service-protocol.ts +94 -0
  45. package/src/service.ts +138 -0
  46. package/src/shared-store.ts +125 -0
  47. package/src/store.ts +385 -0
  48. package/src/tool-contract.ts +45 -0
  49. package/src/web/app.js +241 -0
  50. package/src/web/index.html +56 -0
  51. package/src/web/mnemos-icon-32.png +0 -0
  52. package/src/web/mnemos-icon.svg +9 -0
  53. package/src/web/mnemos-logo.svg +10 -0
  54. package/src/web/style.css +57 -0
package/src/web/app.js ADDED
@@ -0,0 +1,241 @@
1
+ /* global cytoscape */
2
+ "use strict";
3
+ const $ = (id) => document.getElementById(id);
4
+ let snapshot;
5
+ let selectedId;
6
+ let focusId;
7
+ let visible = new Set();
8
+ const nodeById = new Map();
9
+ const graphId = new Map();
10
+ const colors = { Project: "#be9af5", Repo: "#79adf8", Environment: "#5ad4b2", K8sContext: "#f6bc63", AzureSubscription: "#f18fb8" };
11
+ const cy = cytoscape({
12
+ container: $("graph"), elements: [], minZoom: 0.08, maxZoom: 4, wheelSensitivity: 0.25,
13
+ style: [
14
+ { selector: "node", style: {
15
+ "background-color": "data(color)", label: "data(label)", color: "#bdcce1", "font-size": 10,
16
+ "text-valign": "bottom", "text-margin-y": 6, "text-wrap": "ellipsis", "text-max-width": 115,
17
+ width: 23, height: 23, "border-width": 1, "border-color": "#18243a",
18
+ } },
19
+ { selector: "edge", style: {
20
+ width: 1.2, "line-color": "#42536e", "target-arrow-color": "#647c9e", "target-arrow-shape": "triangle",
21
+ "curve-style": "bezier", "arrow-scale": 0.8, label: "data(edge_type)", "font-size": 7,
22
+ color: "#8d9fba", "text-rotation": "autorotate", "text-background-color": "#0c111b",
23
+ "text-background-opacity": 0.8, "text-background-padding": 2,
24
+ } },
25
+ { selector: "node.context", style: { opacity: 0.45 } },
26
+ { selector: "node:selected", style: { "border-width": 4, "border-color": "#ffffff", width: 32, height: 32, color: "#ffffff", "font-size": 12 } },
27
+ { selector: "edge:selected", style: { width: 3, "line-color": "#b0c9ff", "target-arrow-color": "#b0c9ff", color: "#ffffff", "font-size": 11 } },
28
+ { selector: "node.neighbor", style: { "border-width": 3, "border-color": "#c2d5ff" } },
29
+ { selector: "edge.connected", style: { width: 2, "line-color": "#829fc8", "target-arrow-color": "#829fc8" } },
30
+ ],
31
+ });
32
+ function el(tag, text, className) {
33
+ const node = document.createElement(tag);
34
+ if (text !== undefined) node.textContent = text;
35
+ if (className) node.className = className;
36
+ return node;
37
+ }
38
+ function button(text, fn, className) {
39
+ const node = el("button", text, className);
40
+ node.type = "button";
41
+ node.addEventListener("click", fn);
42
+ return node;
43
+ }
44
+ function fields(values) {
45
+ const list = el("dl");
46
+ for (const [key, value] of Object.entries(values)) {
47
+ if (value === null || value === undefined || value === "") continue;
48
+ list.append(el("dt", key), el("dd", typeof value === "object" ? JSON.stringify(value) : String(value)));
49
+ }
50
+ return list;
51
+ }
52
+ function shortName(node) { return node.name.split("/").filter(Boolean).at(-1) || node.name; }
53
+ function typeMatches(node) {
54
+ return (!$("type").value || node.entity_type === $("type").value)
55
+ && (!$("kind").value || node.kind === $("kind").value)
56
+ && (!$("stage").value || node.stage === $("stage").value);
57
+ }
58
+ function edgeMatches(edge) { return !$("edge").value || edge.edge_type === $("edge").value; }
59
+ function updateStatus() {
60
+ $("status").classList.remove("error");
61
+ const suffix = snapshot.truncated ? " · SNAPSHOT LIMITED to 1,000 entities / 4,000 relationships; some data is omitted" : "";
62
+ $("status").textContent = `${visible.size} shown · ${snapshot.nodes.length} loaded / ${snapshot.totalNodes} total entities · ${cy.edges().length} shown / ${snapshot.totalEdges} total relationships${suffix}`;
63
+ }
64
+ function runLayout() {
65
+ cy.stop(true);
66
+ if (!cy.nodes().length) return;
67
+ // Avoid expensive force simulation for large snapshots. Neither layout uses remote services.
68
+ cy.layout(cy.nodes().length > 350
69
+ ? { name: "grid", fit: true, padding: 45, avoidOverlap: true, nodeDimensionsIncludeLabels: true }
70
+ : { name: "cose", animate: false, fit: true, padding: 45, randomize: true, numIter: 450,
71
+ nodeRepulsion: 120000, idealEdgeLength: 110, gravity: 0.15, nodeDimensionsIncludeLabels: true }).run();
72
+ }
73
+ function renderCatalog(matches) {
74
+ $("catalog-title").textContent = `Entities (${visible.size})`;
75
+ $("entities").replaceChildren();
76
+ for (const node of snapshot.nodes.filter((n) => visible.has(n.id))) {
77
+ const item = button("", () => { selectNode(node.id, true); $("details").focus(); }, "entity");
78
+ item.classList.toggle("selected", node.id === selectedId);
79
+ item.classList.toggle("context", !matches.has(node.id));
80
+ item.append(el("strong", node.name), el("small", [node.entity_type, node.kind, node.stage].filter(Boolean).join(" · ")));
81
+ $("entities").append(item);
82
+ }
83
+ }
84
+ function renderGraph() {
85
+ if (!snapshot) return;
86
+ const query = $("search").value.trim().toLowerCase();
87
+ const matches = new Set(snapshot.nodes.filter((node) => typeMatches(node)
88
+ && (!query || Object.values(node).some((v) => typeof v === "string" && v.toLowerCase().includes(query))))
89
+ .map((node) => node.id));
90
+ visible = new Set(matches);
91
+ if (query && $("context").checked) {
92
+ for (const edge of snapshot.edges.filter(edgeMatches)) {
93
+ if (matches.has(edge.from) && typeMatches(nodeById.get(edge.to))) visible.add(edge.to);
94
+ if (matches.has(edge.to) && typeMatches(nodeById.get(edge.from))) visible.add(edge.from);
95
+ }
96
+ }
97
+ if (focusId) {
98
+ const neighborhood = new Set([focusId]);
99
+ for (const edge of snapshot.edges.filter(edgeMatches)) {
100
+ if (edge.from === focusId) neighborhood.add(edge.to);
101
+ if (edge.to === focusId) neighborhood.add(edge.from);
102
+ }
103
+ visible = new Set([...visible].filter((id) => neighborhood.has(id)));
104
+ }
105
+ const elements = snapshot.nodes.filter((node) => visible.has(node.id)).map((node) => ({
106
+ data: { id: graphId.get(node.id), entityId: node.id, label: shortName(node), color: colors[node.entity_type] || "#8e9eb8" },
107
+ classes: matches.has(node.id) ? "" : "context",
108
+ }));
109
+ snapshot.edges.forEach((edge, index) => {
110
+ if (edgeMatches(edge) && visible.has(edge.from) && visible.has(edge.to)) {
111
+ elements.push({ data: { id: `e${index}`, source: graphId.get(edge.from), target: graphId.get(edge.to), edge_type: edge.edge_type, edgeIndex: index } });
112
+ }
113
+ });
114
+ cy.stop(true);
115
+ cy.elements().remove();
116
+ cy.add(elements);
117
+ renderCatalog(matches);
118
+ $("graph-empty").hidden = visible.size > 0;
119
+ updateStatus();
120
+ runLayout();
121
+ if (selectedId && visible.has(selectedId)) highlight(selectedId);
122
+ }
123
+ function highlight(id) {
124
+ cy.elements().unselect().removeClass("neighbor connected");
125
+ const node = cy.getElementById(graphId.get(id));
126
+ node.select();
127
+ node.connectedEdges().addClass("connected");
128
+ node.neighborhood("node").addClass("neighbor");
129
+ }
130
+ function clearFilters() {
131
+ for (const id of ["search", "type", "kind", "stage", "edge"]) $(id).value = "";
132
+ focusId = undefined;
133
+ }
134
+ function selectNode(id, pan = false) {
135
+ const node = nodeById.get(id);
136
+ if (!node) return;
137
+ selectedId = id;
138
+ if (!visible.has(id)) { clearFilters(); renderGraph(); }
139
+ highlight(id);
140
+ if (pan) { cy.stop(true); cy.animate({ center: { eles: cy.getElementById(graphId.get(id)) }, duration: 200 }); }
141
+ const shownNodes = snapshot.nodes.filter((n) => visible.has(n.id));
142
+ document.querySelectorAll(".entity").forEach((item, index) => {
143
+ const current = shownNodes[index];
144
+ item.classList.toggle("selected", current && current.id === id);
145
+ });
146
+ const details = $("details");
147
+ details.replaceChildren(el("h2", node.name), el("p", [node.entity_type, node.kind, node.stage].filter(Boolean).join(" · ")), fields(node));
148
+ const actions = el("div", undefined, "detail-actions");
149
+ actions.append(button("Focus neighborhood", () => { clearFilters(); focusId = id; renderGraph(); selectNode(id); }));
150
+ if (node.gitlabUrl) {
151
+ try {
152
+ const url = new URL(node.gitlabUrl);
153
+ if (["https:", "http:"].includes(url.protocol)) {
154
+ const link = el("a", "Open GitLab"); link.href = url.href; link.target = "_blank"; link.rel = "noopener noreferrer"; actions.append(link);
155
+ }
156
+ } catch { /* SSH clone URLs remain visible as text. */ }
157
+ }
158
+ details.append(actions);
159
+ for (const [title, incoming] of [["Outgoing", false], ["Incoming", true]]) {
160
+ const edges = snapshot.edges.filter((edge) => incoming ? edge.to === id : edge.from === id);
161
+ details.append(el("h3", `${title} (${edges.length})`));
162
+ if (!edges.length) details.append(el("p", "No relationships in this snapshot."));
163
+ for (const edge of edges) {
164
+ const neighborId = incoming ? edge.from : edge.to;
165
+ const neighbor = nodeById.get(neighborId);
166
+ const item = button("", () => selectNode(neighborId, true), "relation");
167
+ item.append(el("span", incoming ? `← ${edge.edge_type}` : `${edge.edge_type} →`), el("small", neighbor ? neighbor.name : neighborId));
168
+ const row = el("div", undefined, "relation-row");
169
+ const evidence = button("Evidence", () => { selectEdge(snapshot.edges.indexOf(edge)); details.focus(); }, "evidence");
170
+ evidence.setAttribute("aria-label", `Inspect ${edge.edge_type} evidence`);
171
+ row.append(item, evidence);
172
+ details.append(row);
173
+ }
174
+ }
175
+ details.append(el("p", "TARGETS describes intended scope; IN_ENVIRONMENT records an explicitly evidenced association. Neither proves a live deployment. Missing edges can mean unknown or incomplete discovery."));
176
+ }
177
+ function selectEdge(index) {
178
+ const edge = snapshot.edges[index];
179
+ if (!edge) return;
180
+ const details = $("details");
181
+ details.replaceChildren(el("h2", edge.edge_type), el("p", "Directed relationship"));
182
+ details.append(button(`From: ${nodeById.get(edge.from)?.name || edge.from}`, () => selectNode(edge.from, true), "relation"),
183
+ button(`To: ${nodeById.get(edge.to)?.name || edge.to}`, () => selectNode(edge.to, true), "relation"), fields(edge));
184
+ }
185
+ function showSchema() {
186
+ if (!snapshot) return;
187
+ const details = $("details");
188
+ details.replaceChildren(el("h2", `Schema v${snapshot.schema.version}`));
189
+ for (const [name, rel] of Object.entries(snapshot.schema.relationships)) {
190
+ const endpoint = (v) => {
191
+ const types = Array.isArray(v.entity_type) ? v.entity_type.join(" / ") : v.entity_type;
192
+ return types + Object.entries(v).filter(([k]) => k !== "entity_type").map(([k,val]) => ` (${k}=${val})`).join("");
193
+ };
194
+ details.append(el("h3", name), el("p", `${endpoint(rel.from)} → ${endpoint(rel.to)}`), el("p", rel.description), fields(rel.attributes || {}));
195
+ }
196
+ for (const [name, entity] of Object.entries(snapshot.schema.entities)) {
197
+ details.append(el("h3", name), el("p", entity.description), fields(entity.attributes));
198
+ }
199
+ details.append(el("h3", "Shared attributes"), fields(snapshot.schema.shared_attributes));
200
+ }
201
+ function options(id, values) {
202
+ const value = $(id).value;
203
+ $(id).replaceChildren($(id).options[0]);
204
+ for (const item of values) { const opt = el("option", item); opt.value = item; $(id).append(opt); }
205
+ if (values.includes(value)) $(id).value = value;
206
+ }
207
+ async function refresh() {
208
+ $("refresh").disabled = true;
209
+ $("status").textContent = "Reading local graph…";
210
+ try {
211
+ const response = await fetch("api/graph", { cache: "no-store", signal: AbortSignal.timeout(20000) });
212
+ if (!response.ok) throw new Error(await response.text());
213
+ snapshot = await response.json();
214
+ nodeById.clear(); graphId.clear();
215
+ snapshot.nodes.forEach((node, i) => { nodeById.set(node.id, node); graphId.set(node.id, `n${i}`); });
216
+ document.querySelector(".legend").replaceChildren(...Object.keys(snapshot.schema.entities).map(type => { const span = el("span", `● ${type}`); span.style.color = colors[type] || "#8e9eb8"; return span; }));
217
+ options("type", Object.keys(snapshot.schema.entities));
218
+ options("kind", [...new Set(snapshot.nodes.map((n) => n.kind).filter(Boolean))].sort());
219
+ options("stage", [...new Set(snapshot.nodes.map((n) => n.stage).filter(Boolean))].sort());
220
+ options("edge", Object.keys(snapshot.schema.relationships));
221
+ $("database").textContent = snapshot.database;
222
+ if (!nodeById.has(focusId)) focusId = undefined;
223
+ if (selectedId && !nodeById.has(selectedId)) { selectedId = undefined; $("details").replaceChildren(el("p", "The selected entity is no longer present.")); }
224
+ renderGraph();
225
+ if (selectedId) selectNode(selectedId);
226
+ } catch (error) {
227
+ $("status").classList.add("error");
228
+ $("status").textContent = `Cannot refresh: ${error.message}. Run /kg to ensure the shared server is running, then refresh.`;
229
+ } finally { $("refresh").disabled = false; }
230
+ }
231
+ cy.on("tap", "node", (event) => selectNode(event.target.data("entityId")));
232
+ cy.on("tap", "edge", (event) => selectEdge(event.target.data("edgeIndex")));
233
+ $("search").addEventListener("input", renderGraph);
234
+ for (const id of ["type", "kind", "stage", "edge", "context"]) $(id).addEventListener("change", renderGraph);
235
+ $("reset").addEventListener("click", () => { clearFilters(); renderGraph(); });
236
+ $("refresh").addEventListener("click", refresh);
237
+ $("fit").addEventListener("click", () => { cy.stop(true); cy.fit(undefined, 45); });
238
+ $("layout").addEventListener("click", runLayout);
239
+ $("schema").addEventListener("click", showSchema);
240
+ new ResizeObserver(() => cy.resize()).observe($("graph"));
241
+ refresh();
@@ -0,0 +1,56 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>Mnemos · Knowledge Graph</title>
7
+ <link rel="icon" href="mnemos-icon-32.png" type="image/png" sizes="32x32">
8
+ <link rel="icon" href="mnemos-icon.svg" type="image/svg+xml" sizes="any">
9
+ <link rel="stylesheet" href="style.css">
10
+ <script defer src="cytoscape.js"></script>
11
+ <script defer src="app.js"></script>
12
+ </head>
13
+ <body>
14
+ <header>
15
+ <div class="brand">
16
+ <h1><img src="mnemos-logo.svg" width="142" height="35" alt="Mnemos"></h1>
17
+ <span class="brand-caption">Knowledge graph</span>
18
+ <span class="badge">local · read-only</span>
19
+ </div>
20
+ <nav aria-label="Graph actions">
21
+ <button id="refresh">Refresh</button><button id="fit">Fit graph</button>
22
+ <button id="layout">Re-layout</button><button id="schema">Schema</button>
23
+ </nav>
24
+ </header>
25
+ <div id="database" class="database"></div>
26
+ <main>
27
+ <aside class="catalog" aria-label="Entity browser">
28
+ <label for="search">Search entities</label>
29
+ <input id="search" type="search" placeholder="Name, path, GitLab URL…" autocomplete="off">
30
+ <div class="filters">
31
+ <label>Entity<select id="type"><option value="">All entities</option></select></label>
32
+ <label>Repo kind<select id="kind"><option value="">All kinds</option></select></label>
33
+ <label>Stage<select id="stage"><option value="">All stages</option></select></label>
34
+ <label>Relationship<select id="edge"><option value="">All relationships</option></select></label>
35
+ </div>
36
+ <label class="check"><input id="context" type="checkbox" checked> Include search results’ neighbors</label>
37
+ <button id="reset">Clear filters / show all</button>
38
+ <h2 id="catalog-title">Entities</h2>
39
+ <div id="entities" class="entities" aria-labelledby="catalog-title"></div>
40
+ </aside>
41
+ <section class="canvas" aria-label="Interactive directed graph">
42
+ <div id="graph" role="img" aria-label="Knowledge graph. Use the entity list for keyboard navigation."></div>
43
+ <div id="graph-empty" class="empty" hidden>No entities match these filters.</div>
44
+ <div class="legend"><span class="project">● Project</span><span class="repo">● Repo</span><span class="environment">● Environment</span><span class="k8s-context">● K8sContext</span><span class="azure-subscription">● AzureSubscription</span></div>
45
+ <div class="graph-help">Drag to pan · scroll to zoom · click a node or arrow to inspect</div>
46
+ </section>
47
+ <aside id="details" class="details" aria-label="Selection details" tabindex="0">
48
+ <h2>Explore your platform</h2>
49
+ <p>Select an entity to inspect its attributes and follow incoming or outgoing relationships.</p>
50
+ <p>Click an arrow for its evidence. Use the entity list and relationship buttons for keyboard navigation.</p>
51
+ <p>No environments or dependencies are inferred by this explorer.</p>
52
+ </aside>
53
+ </main>
54
+ <footer id="status" role="status" aria-live="polite">Loading graph…</footer>
55
+ </body>
56
+ </html>
Binary file
@@ -0,0 +1,9 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="-12 -7 355 355" role="img" aria-label="MNEMOS app icon">
2
+ <defs><linearGradient id="metal" x2="0.8" y2="1"><stop stop-color="#faf9f5"/><stop offset="1" stop-color="#c6c7c8"/></linearGradient><linearGradient id="dark" x2="1" y2="1"><stop stop-color="#202327"/><stop offset="1" stop-color="#0c0e10"/></linearGradient></defs>
3
+ <path d="M80 20H268L322 74V268L268 322H58L10 274V86Z" fill="url(#dark)" stroke="url(#metal)" stroke-width="15" stroke-linejoin="miter"/>
4
+ <path d="M88 46H192L35 205V100Z" fill="#fff" opacity=".045"/>
5
+ <path d="M211 314L282 244H311L241 314Z" fill="#00cce9"/>
6
+ <g stroke="#f5f4ef" stroke-width="10" fill="none"><path d="M179 175L82 155M179 175L238 84M179 175L264 207M179 175L90 261"/></g>
7
+ <g fill="#101215" stroke="#f5f4ef" stroke-width="11"><circle cx="82" cy="155" r="21"/><circle cx="238" cy="84" r="22"/><circle cx="264" cy="207" r="21"/><circle cx="90" cy="261" r="21"/><circle cx="179" cy="175" r="30"/></g>
8
+ <g fill="#00cce9"><circle cx="82" cy="155" r="9"/><circle cx="238" cy="84" r="9"/><circle cx="264" cy="207" r="9"/><circle cx="90" cy="261" r="9"/><circle cx="179" cy="175" r="16"/></g>
9
+ </svg>
@@ -0,0 +1,10 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1420 350" role="img" aria-label="MNEMOS">
2
+ <defs><linearGradient id="metal" x2="0.8" y2="1"><stop stop-color="#faf9f5"/><stop offset="1" stop-color="#c6c7c8"/></linearGradient><linearGradient id="dark" x2="1" y2="1"><stop stop-color="#202327"/><stop offset="1" stop-color="#0c0e10"/></linearGradient></defs>
3
+ <path d="M80 20H268L322 74V268L268 322H58L10 274V86Z" fill="url(#dark)" stroke="url(#metal)" stroke-width="15" stroke-linejoin="miter"/>
4
+ <path d="M88 46H192L35 205V100Z" fill="#fff" opacity=".045"/>
5
+ <path d="M211 314L282 244H311L241 314Z" fill="#00cce9"/>
6
+ <g stroke="#f5f4ef" stroke-width="10" fill="none"><path d="M179 175L82 155M179 175L238 84M179 175L264 207M179 175L90 261"/></g>
7
+ <g fill="#101215" stroke="#f5f4ef" stroke-width="11"><circle cx="82" cy="155" r="21"/><circle cx="238" cy="84" r="22"/><circle cx="264" cy="207" r="21"/><circle cx="90" cy="261" r="21"/><circle cx="179" cy="175" r="30"/></g>
8
+ <g fill="#00cce9"><circle cx="82" cy="155" r="9"/><circle cx="238" cy="84" r="9"/><circle cx="264" cy="207" r="9"/><circle cx="90" cy="261" r="9"/><circle cx="179" cy="175" r="16"/></g>
9
+ <g fill="#f5f4ef" transform="translate(385 105)"><path d="M0 0H20L80 72L140 0H160V126H135V43L80 108L25 43V126H0Z"/><path d="M184 0H205L298 87V0H323V126H301L209 39V126H184Z"/><path d="M350 0H473V24H375V50H462V74H375V102H473V126H350Z"/><path d="M496 0H516L576 72L636 0H656V126H631V43L576 108L521 43V126H496Z"/><path fill-rule="evenodd" d="M718 0H790Q823 0 823 33V93Q823 126 790 126H718Q680 126 680 93V33Q680 0 718 0ZM718 24Q705 24 705 38V88Q705 102 718 102H785Q798 102 798 88V38Q798 24 785 24Z"/><path d="M967 0H881Q843 0 843 37Q843 74 881 74H929Q944 74 944 88Q944 102 929 102H845V126H930Q969 126 969 88Q969 50 930 50H881Q868 50 868 37Q868 24 881 24H943Z"/><path d="M943 0H997L973 24H919Z" fill="#00cce9"/></g>
10
+ </svg>
@@ -0,0 +1,57 @@
1
+ :root { color-scheme: dark; font: 14px/1.5 system-ui, sans-serif; background: #0c111b; color: #dce5f4; }
2
+ * { box-sizing: border-box; }
3
+ body { margin: 0; height: 100dvh; display: flex; flex-direction: column; }
4
+ header { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid #293247; gap: 12px; }
5
+ .brand, nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
6
+ .brand h1 { margin: 0; }
7
+ .brand img { display: block; width: 142px; height: auto; }
8
+ .brand-caption { color: #a6b8d1; font-size: 12px; font-weight: 600; }
9
+ h2 { font-size: 15px; margin: 20px 0 10px; }
10
+ h3 { font-size: 14px; color: #a4b8db; margin: 18px 0 8px; }
11
+ p { color: #99a9c1; }
12
+ .badge { background: #17372e; color: #8fe1bf; font-size: 11px; padding: 2px 8px; border-radius: 20px; }
13
+ .database { padding: 6px 20px; color: #8c9eb8; font: 11px/1.5 ui-monospace, monospace; overflow-wrap: anywhere; background: #101724; }
14
+ main { flex: 1; min-height: 0; display: grid; grid-template-columns: 280px minmax(0, 1fr) 340px; }
15
+ aside { padding: 16px; overflow: auto; background: #101724; }
16
+ .catalog { border-right: 1px solid #293247; display: flex; flex-direction: column; gap: 10px; }
17
+ .details { border-left: 1px solid #293247; overflow-wrap: anywhere; }
18
+ .details h2 { margin-top: 0; font-size: 19px; }
19
+ label { font-size: 12px; color: #a6b8d1; }
20
+ button, input, select { font: inherit; border: 1px solid #34415b; border-radius: 6px; background: #192338; color: #e2eaf9; padding: 7px 10px; min-width: 0; }
21
+ button { cursor: pointer; }
22
+ button:hover { background: #24334e; border-color: #6a8bd1; }
23
+ button:disabled { opacity: .5; cursor: wait; }
24
+ :focus-visible { outline: 2px solid #8aafff; outline-offset: 2px; }
25
+ input[type=search] { width: 100%; background: #0c111b; }
26
+ .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
27
+ .filters label { display: flex; flex-direction: column; gap: 4px; }
28
+ select { width: 100%; padding: 6px; font-size: 12px; }
29
+ .check { display: flex; align-items: center; gap: 7px; }
30
+ .entities { display: flex; flex-direction: column; gap: 4px; min-height: 80px; }
31
+ .entity { text-align: left; background: transparent; padding: 8px; border-color: transparent; }
32
+ .entity.selected { background: #223253; border-color: #8aafff; }
33
+ .entity strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
34
+ .entity small { color: #8fabc9; font-size: 10px; }
35
+ .entity.context { opacity: .65; }
36
+ .canvas { position: relative; min-height: 250px; overflow: hidden; }
37
+ #graph { width: 100%; height: 100%; }
38
+ .legend { position: absolute; top: 12px; left: 12px; display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; pointer-events: none; background: #0c111bd9; padding: 5px 8px; border-radius: 6px; }
39
+ .project { color: #c3a0ff; }.repo { color: #7db2ff; }.environment { color: #63d8b7; }
40
+ .k8s-context { color: #f6bc63; }.azure-subscription { color: #f18fb8; }
41
+ .graph-help { position: absolute; bottom: 10px; left: 12px; color: #8e9eb8; font-size: 10px; pointer-events: none; }
42
+ .empty { position: absolute; left: 10%; right: 10%; top: 45%; text-align: center; color: #a6b8d1; pointer-events: none; }
43
+ [hidden] { display: none !important; }
44
+ footer { padding: 7px 20px; border-top: 1px solid #293247; color: #9fafc5; font-size: 12px; }
45
+ footer.error { color: #ffabae; }
46
+ dl { margin: 12px 0; }
47
+ dt { font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: #8ca0bc; margin-top: 10px; }
48
+ dd { margin: 2px 0; white-space: pre-wrap; font-size: 12px; }
49
+ .relation { display: block; width: 100%; text-align: left; margin: 5px 0; font-size: 11px; overflow-wrap: anywhere; }
50
+ .relation small { display: block; color: #a4b8db; }
51
+ .relation-row { display: flex; gap: 5px; align-items: center; }
52
+ .relation-row .relation { flex: 1; }
53
+ .evidence { font-size: 10px; padding: 5px; background: transparent; color: #a4b8db; }
54
+ .detail-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
55
+ a { color: #9ec3ff; }
56
+ @media (max-width: 1100px) { main { grid-template-columns: 240px minmax(0, 1fr) 280px; } }
57
+ @media (max-width: 800px) { body { height: auto; min-height: 100dvh; } header { align-items: flex-start; flex-direction: column; } main { grid-template-columns: 1fr; } .catalog { max-height: 360px; border: 0; } .canvas { height: 55dvh; } .details { border: 0; min-height: 200px; } }