@alex900530/claude-persistent-memory 1.0.6 → 1.0.7

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.
Files changed (2) hide show
  1. package/bin/uninstall.js +8 -8
  2. package/package.json +1 -1
package/bin/uninstall.js CHANGED
@@ -1,7 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
3
  * Uninstall script for claude-persistent-memory
4
- * Removes services, MCP config, and hooks. Does NOT delete .claude-memory/ data.
4
+ * Removes MCP config, hooks, and config file. Does NOT delete .claude-memory/ data.
5
+ * Background services (launchd/systemd) are kept since they are shared across projects.
5
6
  */
6
7
 
7
8
  const fs = require('fs');
@@ -44,9 +45,9 @@ function removeServices() {
44
45
  }
45
46
  }
46
47
 
47
- // ── [2/4] Remove MCP entry ──────────────────────────────────────────────────
48
+ // ── [1/3] Remove MCP entry ──────────────────────────────────────────────────
48
49
  function removeMCP() {
49
- log('[2/4] Cleaning .mcp.json ...');
50
+ log('[1/3] Cleaning .mcp.json ...');
50
51
  try {
51
52
  const data = JSON.parse(fs.readFileSync(MCP_FILE, 'utf8'));
52
53
  if (data.mcpServers && data.mcpServers.memory) {
@@ -64,9 +65,9 @@ function removeMCP() {
64
65
  }
65
66
  }
66
67
 
67
- // ── [3/4] Remove hooks ──────────────────────────────────────────────────────
68
+ // ── [2/3] Remove hooks ──────────────────────────────────────────────────────
68
69
  function removeHooks() {
69
- log('[3/4] Cleaning .claude/settings.json hooks ...');
70
+ log('[2/3] Cleaning .claude/settings.json hooks ...');
70
71
  try {
71
72
  const data = JSON.parse(fs.readFileSync(SETTINGS_FILE, 'utf8'));
72
73
  if (!data.hooks) { log(' No hooks found.'); return; }
@@ -97,9 +98,9 @@ function removeHooks() {
97
98
  }
98
99
  }
99
100
 
100
- // ── [4/4] Remove config ─────────────────────────────────────────────────────
101
+ // ── [3/3] Remove config ─────────────────────────────────────────────────────
101
102
  function removeConfig() {
102
- log('[4/4] Removing config ...');
103
+ log('[3/3] Removing config ...');
103
104
  if (fs.existsSync(CONFIG_FILE)) {
104
105
  fs.unlinkSync(CONFIG_FILE);
105
106
  ok(' Removed .claude-memory.config.js');
@@ -111,7 +112,6 @@ console.log('');
111
112
  log('Uninstalling claude-persistent-memory ...');
112
113
  console.log('');
113
114
 
114
- removeServices();
115
115
  removeMCP();
116
116
  removeHooks();
117
117
  removeConfig();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alex900530/claude-persistent-memory",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Persistent memory system for Claude Code — hybrid BM25 + vector search, LLM-driven structuring, automatic clustering",
5
5
  "main": "lib/memory-db.js",
6
6
  "bin": {