@kage-core/kage-graph-mcp 1.1.10 → 1.1.12
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 +10 -0
- package/package.json +1 -1
- package/viewer/app.js +20 -4
package/README.md
CHANGED
|
@@ -7,6 +7,16 @@ This package exposes two surfaces:
|
|
|
7
7
|
setup, optional daemon runtime, org/global artifact mode, marketplace packs,
|
|
8
8
|
and validation.
|
|
9
9
|
|
|
10
|
+
## Latest Release
|
|
11
|
+
|
|
12
|
+
`1.1.12` publishes the launch-ready docs pass:
|
|
13
|
+
|
|
14
|
+
- npm README now includes this explicit release note.
|
|
15
|
+
- Root README leads with the animated Kage demo GIF.
|
|
16
|
+
- README links clearly to the website and live viewer.
|
|
17
|
+
- Hosted viewer publishes Kage repo graph, code graph, and metrics from GitHub
|
|
18
|
+
Pages while local repos still use `kage viewer --project .`.
|
|
19
|
+
|
|
10
20
|
## Build
|
|
11
21
|
|
|
12
22
|
```bash
|
package/package.json
CHANGED
package/viewer/app.js
CHANGED
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
if (reviewPath) jobs.push(fetchText(reviewPath).then(function (text) { state.reviewText = text; }).catch(function () { state.reviewText = ""; }));
|
|
234
234
|
if (pendingPath) jobs.push(loadPending(pendingPath).then(function (packets) { state.pendingPackets = packets; }));
|
|
235
235
|
if (!graphPaths.length && !jobs.length) {
|
|
236
|
-
|
|
236
|
+
loadHostedDefault();
|
|
237
237
|
return;
|
|
238
238
|
}
|
|
239
239
|
setAutoLoad("loading project graph", false);
|
|
@@ -258,16 +258,32 @@
|
|
|
258
258
|
});
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
+
function loadHostedDefault() {
|
|
262
|
+
setAutoLoad("loading hosted repo graph", false);
|
|
263
|
+
Promise.all([
|
|
264
|
+
fetchJson("./data/kage/graph.json"),
|
|
265
|
+
fetchJson("./data/kage/code_graph/graph.json"),
|
|
266
|
+
fetchJson("./data/kage/metrics.json").catch(function () { return null; })
|
|
267
|
+
]).then(function (items) {
|
|
268
|
+
var merged = mergeNormalizedGraphs([normalizeGraph(items[0]), normalizeGraph(items[1])]);
|
|
269
|
+
state.metrics = items[2];
|
|
270
|
+
loadNormalizedGraph(merged, "Kage repo graph");
|
|
271
|
+
setAutoLoad("Kage repo graph loaded", true);
|
|
272
|
+
}).catch(function () {
|
|
273
|
+
loadHostedDemo();
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
|
|
261
277
|
function loadHostedDemo() {
|
|
262
|
-
setAutoLoad("loading
|
|
278
|
+
setAutoLoad("loading bundled demo graph", false);
|
|
263
279
|
Promise.all([
|
|
264
280
|
fetchJson("./demo/graph.json"),
|
|
265
281
|
fetchJson("./demo/metrics.json").catch(function () { return null; })
|
|
266
282
|
]).then(function (items) {
|
|
267
283
|
var graph = items[0];
|
|
268
284
|
state.metrics = items[1];
|
|
269
|
-
loadNormalizedGraph(normalizeGraph(graph), "
|
|
270
|
-
setAutoLoad("
|
|
285
|
+
loadNormalizedGraph(normalizeGraph(graph), "bundled demo graph");
|
|
286
|
+
setAutoLoad("bundled demo graph loaded", true);
|
|
271
287
|
}).catch(function () {
|
|
272
288
|
setAutoLoad("manual mode", false);
|
|
273
289
|
});
|