@kage-core/kage-graph-mcp 1.0.0 → 1.1.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/README.md +304 -0
- package/dist/cli.js +783 -0
- package/dist/daemon.js +282 -0
- package/dist/index.js +677 -21
- package/dist/kernel.js +4493 -0
- package/dist/registry/index.js +373 -0
- package/package.json +26 -8
- package/viewer/app.js +1727 -0
- package/viewer/index.html +161 -0
- package/viewer/styles.css +628 -0
- package/index.ts +0 -254
- package/tsconfig.json +0 -14
|
@@ -0,0 +1,161 @@
|
|
|
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>Kage Memory Terminal</title>
|
|
7
|
+
<link rel="stylesheet" href="./styles.css?v=5">
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<header class="app-header">
|
|
11
|
+
<div class="brand-block">
|
|
12
|
+
<span class="eyebrow">kage://repo-memory</span>
|
|
13
|
+
<h1>Memory Terminal</h1>
|
|
14
|
+
<p id="graphSummary">Load memory, code, and metrics graphs to inspect what agents know and why.</p>
|
|
15
|
+
</div>
|
|
16
|
+
<div id="statusStrip" class="status-strip" aria-label="Graph health"></div>
|
|
17
|
+
<div id="autoLoadStatus" class="autoload-status">auto-load: waiting</div>
|
|
18
|
+
<label class="file-picker">
|
|
19
|
+
<span>Manual JSON</span>
|
|
20
|
+
<input id="graphFile" type="file" accept=".json,application/json" multiple>
|
|
21
|
+
</label>
|
|
22
|
+
</header>
|
|
23
|
+
|
|
24
|
+
<main class="layout">
|
|
25
|
+
<section class="graph-panel" aria-label="Graph rendering">
|
|
26
|
+
<div class="graph-toolbar">
|
|
27
|
+
<div>
|
|
28
|
+
<h2>Graph Console</h2>
|
|
29
|
+
<p id="graphSubhead">Combined repo memory and source graph.</p>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="graph-actions" aria-label="Graph view controls">
|
|
32
|
+
<span class="interaction-hint">drag canvas / wheel zoom / click node</span>
|
|
33
|
+
<button id="zoomOut" type="button">-</button>
|
|
34
|
+
<button id="fitView" type="button">Fit</button>
|
|
35
|
+
<button id="zoomIn" type="button">+</button>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="graph-canvas-wrap">
|
|
39
|
+
<canvas id="graphCanvas" aria-label="Interactive Kage memory and code graph"></canvas>
|
|
40
|
+
<div id="graphTooltip" class="graph-tooltip" role="status"></div>
|
|
41
|
+
</div>
|
|
42
|
+
<svg id="graphSvg" class="fallback-graph" viewBox="0 0 1000 660" role="img" aria-labelledby="graphTitle graphDescription">
|
|
43
|
+
<title id="graphTitle">Kage local memory and code graph terminal view</title>
|
|
44
|
+
<desc id="graphDescription">Entities and relationships from loaded Kage memory and code graph JSON files.</desc>
|
|
45
|
+
<defs>
|
|
46
|
+
<marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
|
|
47
|
+
<path d="M 0 0 L 10 5 L 0 10 z"></path>
|
|
48
|
+
</marker>
|
|
49
|
+
</defs>
|
|
50
|
+
<g id="edgeLayer"></g>
|
|
51
|
+
<g id="nodeLayer"></g>
|
|
52
|
+
</svg>
|
|
53
|
+
<div id="emptyState" class="empty-state">
|
|
54
|
+
<strong>No graph loaded</strong>
|
|
55
|
+
<span>Choose Kage graph JSON files or open with graph, code, and metrics URL params.</span>
|
|
56
|
+
</div>
|
|
57
|
+
</section>
|
|
58
|
+
|
|
59
|
+
<aside class="control-panel" aria-label="Graph controls">
|
|
60
|
+
<div class="panel-heading compact">
|
|
61
|
+
<h2>Workspace</h2>
|
|
62
|
+
<span id="workspaceMode">Combined</span>
|
|
63
|
+
</div>
|
|
64
|
+
<div id="metricsSummary" class="metrics-grid"></div>
|
|
65
|
+
<label>
|
|
66
|
+
<span>Search</span>
|
|
67
|
+
<input id="searchInput" type="search" placeholder="Entity, edge, type, tag, path...">
|
|
68
|
+
</label>
|
|
69
|
+
<label>
|
|
70
|
+
<span>View</span>
|
|
71
|
+
<select id="viewMode">
|
|
72
|
+
<option value="combined">Combined</option>
|
|
73
|
+
<option value="memory">Memory</option>
|
|
74
|
+
<option value="code">Code</option>
|
|
75
|
+
</select>
|
|
76
|
+
</label>
|
|
77
|
+
<label>
|
|
78
|
+
<span>Node Type</span>
|
|
79
|
+
<select id="typeFilter">
|
|
80
|
+
<option value="">All types</option>
|
|
81
|
+
</select>
|
|
82
|
+
</label>
|
|
83
|
+
<label>
|
|
84
|
+
<span>Relation</span>
|
|
85
|
+
<select id="relationFilter">
|
|
86
|
+
<option value="">All relations</option>
|
|
87
|
+
</select>
|
|
88
|
+
</label>
|
|
89
|
+
<label>
|
|
90
|
+
<span>Scope</span>
|
|
91
|
+
<select id="scopeFilter">
|
|
92
|
+
<option value="signal">High signal</option>
|
|
93
|
+
<option value="focus">Focus selection</option>
|
|
94
|
+
<option value="all">Everything</option>
|
|
95
|
+
</select>
|
|
96
|
+
</label>
|
|
97
|
+
<label>
|
|
98
|
+
<span>Max Nodes</span>
|
|
99
|
+
<select id="maxNodes">
|
|
100
|
+
<option value="60">60</option>
|
|
101
|
+
<option value="90" selected>90</option>
|
|
102
|
+
<option value="140">140</option>
|
|
103
|
+
<option value="9999">All</option>
|
|
104
|
+
</select>
|
|
105
|
+
</label>
|
|
106
|
+
<label class="toggle-control">
|
|
107
|
+
<input id="showDependencies" type="checkbox">
|
|
108
|
+
<span>Show dependency noise</span>
|
|
109
|
+
</label>
|
|
110
|
+
<button id="resetView" type="button">Reset</button>
|
|
111
|
+
<div class="legend" aria-label="Legend">
|
|
112
|
+
<span><i class="dot memory-dot"></i>memory packet</span>
|
|
113
|
+
<span><i class="dot code-dot"></i>code artifact</span>
|
|
114
|
+
<span><i class="line sample-line"></i>relation</span>
|
|
115
|
+
</div>
|
|
116
|
+
</aside>
|
|
117
|
+
|
|
118
|
+
<aside class="details-panel" aria-label="Selection details">
|
|
119
|
+
<div class="panel-heading compact">
|
|
120
|
+
<h2>Inspector</h2>
|
|
121
|
+
<span id="selectionStatus">No selection</span>
|
|
122
|
+
</div>
|
|
123
|
+
<div id="selectionDetails" class="details-empty">Select an entity or edge.</div>
|
|
124
|
+
</aside>
|
|
125
|
+
|
|
126
|
+
<section class="review-panel" aria-label="Review queue">
|
|
127
|
+
<div class="panel-heading">
|
|
128
|
+
<h2>Review Queue</h2>
|
|
129
|
+
<span id="reviewCount">0</span>
|
|
130
|
+
</div>
|
|
131
|
+
<div id="reviewList" class="review-list"></div>
|
|
132
|
+
</section>
|
|
133
|
+
|
|
134
|
+
<section class="proof-panel" aria-label="Quality and benchmark">
|
|
135
|
+
<div class="panel-heading">
|
|
136
|
+
<h2>Proof</h2>
|
|
137
|
+
<span id="proofStatus">metrics</span>
|
|
138
|
+
</div>
|
|
139
|
+
<div id="proofList" class="proof-list"></div>
|
|
140
|
+
</section>
|
|
141
|
+
|
|
142
|
+
<section class="table-panel entities-panel" aria-label="Nodes">
|
|
143
|
+
<div class="panel-heading">
|
|
144
|
+
<h2>Nodes</h2>
|
|
145
|
+
<span id="entityCount">0</span>
|
|
146
|
+
</div>
|
|
147
|
+
<div id="entityList" class="list"></div>
|
|
148
|
+
</section>
|
|
149
|
+
|
|
150
|
+
<section class="table-panel edges-panel" aria-label="Relations">
|
|
151
|
+
<div class="panel-heading">
|
|
152
|
+
<h2>Relations</h2>
|
|
153
|
+
<span id="edgeCount">0</span>
|
|
154
|
+
</div>
|
|
155
|
+
<div id="edgeList" class="list"></div>
|
|
156
|
+
</section>
|
|
157
|
+
</main>
|
|
158
|
+
|
|
159
|
+
<script src="./app.js?v=5"></script>
|
|
160
|
+
</body>
|
|
161
|
+
</html>
|