claude-recall 0.2.18 → 0.2.19

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/README.md CHANGED
@@ -35,7 +35,7 @@ npm install -g claude-recall@latest
35
35
 
36
36
  ### 2. Verify Installation
37
37
  ```bash
38
- claude-recall --version # Should show 0.2.18 or higher
38
+ claude-recall --version # Should show 0.2.19 or higher
39
39
  ```
40
40
 
41
41
  ### 3. Start Using Claude
@@ -260,7 +260,7 @@ async function main() {
260
260
  program
261
261
  .name('claude-recall')
262
262
  .description('Memory-enhanced Claude Code via MCP')
263
- .version('0.2.18')
263
+ .version('0.2.19')
264
264
  .option('--verbose', 'Enable verbose logging')
265
265
  .option('--config <path>', 'Path to custom config file');
266
266
  // MCP command
@@ -233,4 +233,4 @@ socket.on('queue:processed', (message) => {});
233
233
  ```
234
234
 
235
235
  ---
236
- *API Reference v0.2.18 - Last updated: August 2025*
236
+ *API Reference v0.2.19 - Last updated: August 2025*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-recall",
3
- "version": "0.2.18",
3
+ "version": "0.2.19",
4
4
  "description": "Persistent memory for Claude Code with automatic capture via hooks and MCP server",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -8,15 +8,22 @@ const path = require('path');
8
8
  * Only affects project-level CLAUDE.md, not global settings
9
9
  */
10
10
  function updateProjectClaudeMd() {
11
- // Only update CLAUDE.md in the current project directory
12
- const projectDir = process.cwd();
13
- const claudeMdPath = path.join(projectDir, 'CLAUDE.md');
11
+ // When run as postinstall, we're in node_modules/claude-recall
12
+ // Need to find the actual project root
13
+ let projectDir = process.cwd();
14
14
 
15
- // Skip if we're in the claude-recall package directory itself
16
- if (projectDir.includes('node_modules/claude-recall')) {
17
- return;
15
+ // If we're in node_modules, go up to find project root
16
+ if (projectDir.includes('node_modules')) {
17
+ // Find the project root by going up from node_modules
18
+ const parts = projectDir.split(path.sep);
19
+ const nodeModulesIndex = parts.lastIndexOf('node_modules');
20
+ if (nodeModulesIndex > 0) {
21
+ projectDir = parts.slice(0, nodeModulesIndex).join(path.sep);
22
+ }
18
23
  }
19
24
 
25
+ const claudeMdPath = path.join(projectDir, 'CLAUDE.md');
26
+
20
27
  // Minimal instructions for claude-recall
21
28
  const claudeRecallInstructions = `
22
29
  ## Claude Recall Integration