@codemem/mcp 0.32.0 → 0.32.1

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/stdio.js CHANGED
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import { t as e } from "./server-Djvf0Yik.js";
3
3
  import { MemoryStore as t, resolveDbPath as n } from "@codemem/core";
4
- import { dirname as r, join as i } from "node:path";
5
- import { existsSync as a } from "node:fs";
6
- import { spawn as o } from "node:child_process";
4
+ import { spawn as r } from "node:child_process";
5
+ import { existsSync as i } from "node:fs";
6
+ import { dirname as a, join as o } from "node:path";
7
7
  import { StdioServerTransport as s } from "@modelcontextprotocol/sdk/server/stdio.js";
8
8
  //#region src/stdio.ts
9
9
  var c = process.env.CODEMEM_VIEWER_HOST ?? "127.0.0.1", l = process.env.CODEMEM_VIEWER_PORT ?? "38888";
10
10
  function u() {
11
- let e = [], t = r(import.meta.dirname ?? ".");
12
- e.push(i(t, "..", "cli", "dist", "index.js")), e.push(i(t, "..", ".bin", "codemem")), e.push(i(t, "..", "..", ".bin", "codemem"));
13
- for (let t of e) if (a(t)) return t;
11
+ let e = [], t = a(import.meta.dirname ?? ".");
12
+ e.push(o(t, "..", "cli", "dist", "index.js")), e.push(o(t, "..", ".bin", "codemem")), e.push(o(t, "..", "..", ".bin", "codemem"));
13
+ for (let t of e) if (i(t)) return t;
14
14
  return "codemem";
15
15
  }
16
16
  async function d() {
@@ -25,13 +25,13 @@ async function f() {
25
25
  if (process.env.CODEMEM_VIEWER === "0" || process.env.CODEMEM_VIEWER_AUTO === "0" || await d()) return;
26
26
  let e = u();
27
27
  if (e) try {
28
- let t = e.endsWith(".js"), n = t ? process.execPath : e, r = t ? [
28
+ let t = e.endsWith(".js"), n = t ? process.execPath : e, i = t ? [
29
29
  e,
30
30
  "serve",
31
31
  "start"
32
32
  ] : ["serve", "start"];
33
- c !== "127.0.0.1" && r.push("--host", c), l !== "38888" && r.push("--port", l);
34
- let i = o(n, r, {
33
+ c !== "127.0.0.1" && i.push("--host", c), l !== "38888" && i.push("--port", l);
34
+ let a = r(n, i, {
35
35
  detached: !0,
36
36
  stdio: "ignore",
37
37
  env: {
@@ -39,7 +39,7 @@ async function f() {
39
39
  CODEMEM_PLUGIN_IGNORE: "1"
40
40
  }
41
41
  });
42
- i.on("error", () => {}), i.unref();
42
+ a.on("error", () => {}), a.unref();
43
43
  for (let e = 0; e < 5; e++) if (await new Promise((e) => setTimeout(e, 1e3)), await d()) return;
44
44
  } catch {}
45
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemem/mcp",
3
- "version": "0.32.0",
3
+ "version": "0.32.1",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {
@@ -30,7 +30,7 @@
30
30
  "@modelcontextprotocol/sdk": "^1.29.0",
31
31
  "express": "^5.2.1",
32
32
  "zod": "^4.4.2",
33
- "@codemem/core": "^0.32.0"
33
+ "@codemem/core": "^0.32.1"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/express": "^5.0.6",