@kage-core/kage-graph-mcp 1.1.20 → 1.1.21

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.
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const node_fs_1 = require("node:fs");
4
+ const node_path_1 = require("node:path");
5
+ const node_worker_threads_1 = require("node:worker_threads");
6
+ const kernel_js_1 = require("./kernel.js");
7
+ function writeResult(path, result) {
8
+ (0, node_fs_1.mkdirSync)((0, node_path_1.dirname)(path), { recursive: true });
9
+ (0, node_fs_1.writeFileSync)(path, `${JSON.stringify(result, null, 2)}\n`, "utf8");
10
+ }
11
+ function notifyDone(shared) {
12
+ const done = new Int32Array(shared);
13
+ Atomics.add(done, 0, 1);
14
+ Atomics.notify(done, 0);
15
+ }
16
+ const data = node_worker_threads_1.workerData;
17
+ try {
18
+ const results = data.files.map((file) => (0, kernel_js_1.buildStructuralFileForWorker)(data.projectDir, file, data.knownFiles, data.prior));
19
+ writeResult(data.outputPath, { ok: true, results });
20
+ }
21
+ catch (error) {
22
+ writeResult(data.outputPath, {
23
+ ok: false,
24
+ results: [],
25
+ error: error instanceof Error ? `${error.message}\n${error.stack ?? ""}` : String(error),
26
+ });
27
+ }
28
+ finally {
29
+ notifyDone(data.shared);
30
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kage-core/kage-graph-mcp",
3
- "version": "1.1.20",
3
+ "version": "1.1.21",
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": [