claude-mem-lite 2.10.1 → 2.10.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.
@@ -10,7 +10,7 @@
10
10
  "plugins": [
11
11
  {
12
12
  "name": "claude-mem-lite",
13
- "version": "2.10.1",
13
+ "version": "2.10.2",
14
14
  "source": "./",
15
15
  "description": "Lightweight persistent memory system for Claude Code — FTS5 search, episode batching, error-triggered recall"
16
16
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-mem-lite",
3
- "version": "2.10.1",
3
+ "version": "2.10.2",
4
4
  "description": "Lightweight persistent memory system for Claude Code — FTS5 search, episode batching, error-triggered recall",
5
5
  "author": {
6
6
  "name": "sdsrss"
package/install.mjs CHANGED
@@ -237,8 +237,9 @@ async function install() {
237
237
  }
238
238
 
239
239
  // 3. Register MCP server (skip if plugin system already handles it)
240
- // Plugin package exposes MCP source at claude-plugin/.mcp.json.
241
- // Claude Code installs that into the cache as root .mcp.json plugin:*:mem.
240
+ // Plugin source keeps MCP manifest at claude-plugin/.mcp.json.
241
+ // Release packaging materializes that as root .mcp.json so Claude Code loads
242
+ // plugin:*:mem from the installed cache.
242
243
  // Global registration via `claude mcp add` creates a DUPLICATE mcp__mem__* server.
243
244
  // Detect plugin mode: installed_plugins.json has our entry → plugin handles MCP.
244
245
  const installedPluginsPath = join(homedir(), '.claude', 'plugins', 'installed_plugins.json');
@@ -272,15 +273,16 @@ async function install() {
272
273
  //
273
274
  // MCP dedup: Claude Code loads .mcp.json from BOTH marketplace root (generic scan)
274
275
  // and cache dir (plugin runtime). Root-level .mcp.json in the marketplace clone
275
- // would duplicate the cache-installed plugin MCP. Keep source manifest under
276
- // claude-plugin/.mcp.json so cache install still gets a root .mcp.json, while
277
- // the marketplace root stays clear. Remove any stale marketplace-root copy here.
276
+ // would duplicate the cache-installed plugin MCP. Keep the source manifest under
277
+ // claude-plugin/.mcp.json and only materialize root .mcp.json in the release
278
+ // package, while the marketplace root stays clear. Remove stale marketplace-root
279
+ // copies here.
278
280
  const pluginDir = join(homedir(), '.claude', 'plugins', 'marketplaces', MARKETPLACE_KEY);
279
281
  const pluginHooksPath = join(pluginDir, 'hooks', 'hooks.json');
280
282
 
281
283
  if (existsSync(pluginDir)) {
282
284
  // Clear root-level .mcp.json if it exists (stale from older git versions).
283
- // Source MCP manifest now lives in claude-plugin/.mcp.json to avoid marketplace-root duplication.
285
+ // Source MCP manifest stays in claude-plugin/.mcp.json; only the release package gets root .mcp.json.
284
286
  const rootMcpPath = join(pluginDir, '.mcp.json');
285
287
  try {
286
288
  if (existsSync(rootMcpPath)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-mem-lite",
3
- "version": "2.10.1",
3
+ "version": "2.10.2",
4
4
  "description": "Lightweight persistent memory system for Claude Code",
5
5
  "type": "module",
6
6
  "engines": {
@@ -18,6 +18,8 @@
18
18
  "test": "vitest run",
19
19
  "test:smoke": "vitest run tests/smoke.test.mjs",
20
20
  "test:coverage": "vitest run --coverage",
21
+ "prepack": "node scripts/sync-package-mcp.mjs write",
22
+ "postpack": "node scripts/sync-package-mcp.mjs cleanup",
21
23
  "benchmark": "node benchmark/benchmark.mjs",
22
24
  "benchmark:gate": "node benchmark/ci-gate.mjs"
23
25
  },
@@ -58,7 +60,7 @@
58
60
  "scripts/launch.mjs",
59
61
  "scripts/setup.sh",
60
62
  "scripts/post-tool-use.sh",
61
- "claude-plugin/.mcp.json",
63
+ ".mcp.json",
62
64
  ".claude-plugin/plugin.json",
63
65
  ".claude-plugin/marketplace.json",
64
66
  "README.md",
package/scripts/setup.sh CHANGED
@@ -90,8 +90,8 @@ fi
90
90
  # Before 2.10: .mcp.json at repo root caused duplicate MCP servers.
91
91
  # - Global mcpServers.mem in ~/.claude.json (from old install.mjs)
92
92
  # - Marketplace root .mcp.json (from old git clone)
93
- # Now: source manifest lives in claude-plugin/.mcp.json so the cache install
94
- # gets a root .mcp.json, while the marketplace root stays clear.
93
+ # Now: source manifest lives in claude-plugin/.mcp.json and release packaging
94
+ # materializes cache root .mcp.json, while the marketplace root stays clear.
95
95
  MCP_MIGRATION="$DATA_DIR/runtime/.mcp-dedup-v2.10"
96
96
  if [[ ! -f "$MCP_MIGRATION" && -n "${CLAUDE_PLUGIN_ROOT:-}" ]]; then
97
97
  CLAUDE_JSON="$HOME/.claude.json" ROOT="$ROOT" node -e '
File without changes