layermap 0.1.27 → 0.1.29
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 +3 -1
- package/analyzers/project-map-go-worker.mjs +1 -0
- package/analyzers/project-map-java/java-map.jar +0 -0
- package/analyzers/project-map-java-worker.mjs +1 -0
- package/analyzers/project-map-python-worker.mjs +1 -0
- package/analyzers/project-map-worker.mjs +428 -192
- package/dist/cli.mjs +424 -379
- package/package.json +1 -1
- package/pi/layermap.mjs +15 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "layermap",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.29",
|
|
4
4
|
"mcpName": "io.github.coffeecoproject/layermap",
|
|
5
5
|
"description": "A layered map of a codebase for coding agents: directories, modules and call chains across TypeScript, JavaScript, Go, Python and Java.",
|
|
6
6
|
"license": "Apache-2.0",
|
package/pi/layermap.mjs
CHANGED
|
@@ -18,7 +18,20 @@ import { createHash } from "node:crypto";
|
|
|
18
18
|
import { readFile, stat } from "node:fs/promises";
|
|
19
19
|
import os from "node:os";
|
|
20
20
|
import path from "node:path";
|
|
21
|
-
var CODE_EXTENSIONS = [
|
|
21
|
+
var CODE_EXTENSIONS = [
|
|
22
|
+
"ts",
|
|
23
|
+
"tsx",
|
|
24
|
+
"mts",
|
|
25
|
+
"cts",
|
|
26
|
+
"js",
|
|
27
|
+
"jsx",
|
|
28
|
+
"mjs",
|
|
29
|
+
"cjs",
|
|
30
|
+
"go",
|
|
31
|
+
"py",
|
|
32
|
+
"java",
|
|
33
|
+
"wxml"
|
|
34
|
+
];
|
|
22
35
|
var CODE_FILE = new RegExp(`\\.(?:${CODE_EXTENSIONS.join("|")})$`, "u");
|
|
23
36
|
var CODE_GLOBS = CODE_EXTENSIONS.map((extension) => `*.${extension}`);
|
|
24
37
|
var git = (cwd, args) => new Promise(
|
|
@@ -255,7 +268,7 @@ function layermap(pi) {
|
|
|
255
268
|
if (server && !server.dead) return server;
|
|
256
269
|
starting ??= (async () => {
|
|
257
270
|
const next = new MapServer(cwd);
|
|
258
|
-
const tools = await next.start("0.1.
|
|
271
|
+
const tools = await next.start("0.1.29");
|
|
259
272
|
for (const tool of tools) {
|
|
260
273
|
if (registered.has(tool.name)) continue;
|
|
261
274
|
registered.add(tool.name);
|