layermap 0.1.39 → 0.1.41

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/launcher.mjs CHANGED
@@ -1,4 +1,5 @@
1
- // Starts one LayerMap version's MCP server in this process. The version is installed once into
1
+ // Runs one LayerMap version in this process: its MCP server, or, for the layermap command of the
2
+ // Claude Code plugin, its command line with the arguments given. The version is installed once into
2
3
  // LayerMap's cache, from where every later start runs without npm or a network. The agent starts
3
4
  // this in the project, which stays the working directory the server maps; npm runs in the cache,
4
5
  // so the project's own npm settings and packages play no part in what gets installed.
@@ -17,6 +18,7 @@ import path from "node:path";
17
18
  import { pathToFileURL } from "node:url";
18
19
 
19
20
  const VERSION = __VERSION__;
21
+ const ARGUMENTS = __ARGUMENTS__;
20
22
 
21
23
  // The same directory as cacheDirectory in src/agent/environment.ts.
22
24
  const env = process.env;
@@ -95,7 +97,7 @@ try {
95
97
  // LayerMap removes a version from its cache once nothing has started it for a week.
96
98
  writeFileSync(path.join(home, "last-used"), "");
97
99
  const entry = path.join(installed, JSON.parse(readFileSync(manifest, "utf8")).bin.layermap);
98
- process.argv = [process.argv[0], entry, "mcp"];
100
+ process.argv = [process.argv[0], entry, ...ARGUMENTS];
99
101
  await import(pathToFileURL(entry).href);
100
102
  } catch (error) {
101
103
  process.stderr.write(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "layermap",
3
- "version": "0.1.39",
3
+ "version": "0.1.41",
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
@@ -293,7 +293,7 @@ function layermap(pi) {
293
293
  if (server && !server.dead) return server;
294
294
  starting ??= (async () => {
295
295
  const next = new MapServer(cwd);
296
- const tools = await next.start("0.1.39");
296
+ const tools = await next.start("0.1.41");
297
297
  for (const tool of tools) {
298
298
  if (registered.has(tool.name)) continue;
299
299
  registered.add(tool.name);