@kage-core/kage-graph-mcp 1.3.0 → 2.0.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.
- package/dist/cli.js +171 -137
- package/dist/daemon.js +78 -55
- package/dist/index.js +24 -182
- package/dist/kernel.js +1236 -297
- package/dist/structural-worker.js +17 -13
- package/package.json +4 -2
- package/viewer/console.js +783 -0
- package/viewer/index.html +338 -281
- package/viewer/app.js +0 -6782
- package/viewer/data.html +0 -296
- package/viewer/graph.html +0 -296
- package/viewer/intel.html +0 -296
- package/viewer/memory.html +0 -367
- package/viewer/owners.html +0 -296
- package/viewer/review.html +0 -307
- package/viewer/styles.css +0 -2878
|
@@ -14,17 +14,21 @@ function notifyDone(shared) {
|
|
|
14
14
|
Atomics.notify(done, 0);
|
|
15
15
|
}
|
|
16
16
|
const data = node_worker_threads_1.workerData;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
17
|
+
async function run() {
|
|
18
|
+
try {
|
|
19
|
+
await (0, kernel_js_1.ensureTreeSitterLanguages)((0, kernel_js_1.treeSitterLanguagesForPaths)(data.files));
|
|
20
|
+
const results = data.files.map((file) => (0, kernel_js_1.buildStructuralFileForWorker)(data.projectDir, file, data.knownFiles, data.prior));
|
|
21
|
+
writeResult(data.outputPath, { ok: true, results });
|
|
22
|
+
}
|
|
23
|
+
catch (error) {
|
|
24
|
+
writeResult(data.outputPath, {
|
|
25
|
+
ok: false,
|
|
26
|
+
results: [],
|
|
27
|
+
error: error instanceof Error ? `${error.message}\n${error.stack ?? ""}` : String(error),
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
finally {
|
|
31
|
+
notifyDone(data.shared);
|
|
32
|
+
}
|
|
30
33
|
}
|
|
34
|
+
void run();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kage-core/kage-graph-mcp",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Local-first repo memory, code graph, and recall MCP server for coding agents",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -38,7 +38,9 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@modelcontextprotocol/sdk": "^1.10.2",
|
|
40
40
|
"three": "^0.184.0",
|
|
41
|
-
"
|
|
41
|
+
"tree-sitter-wasms": "^0.1.13",
|
|
42
|
+
"typescript": "^5.0.0",
|
|
43
|
+
"web-tree-sitter": "^0.24.7"
|
|
42
44
|
},
|
|
43
45
|
"devDependencies": {
|
|
44
46
|
"@types/node": "^22.0.0"
|