@vheins/local-memory-mcp 0.6.1 → 0.6.2

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.
@@ -8,7 +8,7 @@
8
8
  <link rel="preconnect" href="https://fonts.googleapis.com">
9
9
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
10
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
11
- <script type="module" crossorigin src="/assets/index-Df97JpLg.js"></script>
11
+ <script type="module" crossorigin src="/assets/index-D7VqgJ-Q.js"></script>
12
12
  <link rel="stylesheet" crossorigin href="/assets/index-Bd7v94SO.css">
13
13
  </head>
14
14
  <body>
@@ -6,7 +6,7 @@ import {
6
6
  TOOL_DEFINITIONS,
7
7
  listResources,
8
8
  logger
9
- } from "../chunk-EQTLHCFK.js";
9
+ } from "../chunk-W3VX7ZD3.js";
10
10
 
11
11
  // src/dashboard/server.ts
12
12
  import express from "express";
@@ -189,7 +189,7 @@ function sleep(ms) {
189
189
  }
190
190
 
191
191
  // src/dashboard/lib/context.ts
192
- var db = new SQLiteStore();
192
+ var db = await SQLiteStore.create();
193
193
  var mcpClient = new MCPClient();
194
194
  var startTime = Date.now();
195
195
 
@@ -253,7 +253,8 @@ var pkg = { version: "0.0.0" };
253
253
  try {
254
254
  const pkgPath = path2.join(__dirname2, "../../../package.json");
255
255
  if (fs.existsSync(pkgPath)) {
256
- pkg = JSON.parse(fs.readFileSync(pkgPath, "utf8"));
256
+ const data = JSON.parse(fs.readFileSync(pkgPath, "utf8"));
257
+ if (data.version) pkg.version = data.version;
257
258
  }
258
259
  } catch {
259
260
  }
@@ -783,7 +784,8 @@ var pkg2 = { version: "0.0.0" };
783
784
  try {
784
785
  const pkgPath = path3.join(__dirname3, "../../package.json");
785
786
  if (fs2.existsSync(pkgPath)) {
786
- pkg2 = JSON.parse(fs2.readFileSync(pkgPath, "utf8"));
787
+ const data = JSON.parse(fs2.readFileSync(pkgPath, "utf8"));
788
+ if (data.version) pkg2.version = data.version;
787
789
  }
788
790
  } catch {
789
791
  }
@@ -42,7 +42,7 @@ import {
42
42
  setLogLevel,
43
43
  updateSessionFromInitialize,
44
44
  updateSessionRoots
45
- } from "../chunk-EQTLHCFK.js";
45
+ } from "../chunk-W3VX7ZD3.js";
46
46
 
47
47
  // src/mcp/server.ts
48
48
  import readline from "readline";
@@ -1843,9 +1843,10 @@ var RealVectorStore = class {
1843
1843
 
1844
1844
  // src/mcp/server.ts
1845
1845
  import fs2 from "fs";
1846
+ process.env.MCP_SERVER = "true";
1846
1847
  if (process.argv.includes("doctor")) {
1847
1848
  process.stderr.write("\n\u{1F3E5} MCP Local Memory - System Diagnosis\n\n");
1848
- const db2 = new SQLiteStore();
1849
+ const db2 = await SQLiteStore.create();
1849
1850
  const dbPath = db2.getDbPath();
1850
1851
  process.stderr.write(`\u{1F4C2} Database Path: ${dbPath}
1851
1852
  `);
@@ -1871,7 +1872,7 @@ if (process.argv.includes("doctor")) {
1871
1872
  process.stderr.write("\n\u2728 Diagnosis complete.\n\n");
1872
1873
  process.exit(0);
1873
1874
  }
1874
- var db = new SQLiteStore();
1875
+ var db = await SQLiteStore.create();
1875
1876
  var vectors = new RealVectorStore(db);
1876
1877
  vectors.initialize().catch((err) => {
1877
1878
  logger.warn("[Server] Initial vector model loading failed. Will retry on first use.", { error: String(err) });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vheins/local-memory-mcp",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "MCP Local Memory Service for coding copilot agents",
5
5
  "mcpName": "io.github.vheins/local-memory-mcp",
6
6
  "type": "module",
@@ -44,20 +44,19 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@xenova/transformers": "^2.17.2",
47
- "better-sqlite3": "^12.6.2",
48
47
  "chart.js": "^4.5.1",
49
48
  "dompurify": "^3.3.3",
50
49
  "express": "^5.2.1",
51
50
  "gray-matter": "^4.0.3",
52
51
  "marked": "^18.0.0",
53
52
  "qs": "^6.15.0",
53
+ "sql.js": "^1.14.1",
54
54
  "zod": "^4.3.5"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@eslint/js": "^10.0.1",
58
58
  "@fast-check/vitest": "^0.3.0",
59
59
  "@sveltejs/vite-plugin-svelte": "^7.0.0",
60
- "@types/better-sqlite3": "^7.6.13",
61
60
  "@types/dompurify": "^3.0.5",
62
61
  "@types/express": "^5.0.6",
63
62
  "@types/marked": "^5.0.2",