claude-recall 0.8.26 → 0.8.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-recall",
3
- "version": "0.8.26",
3
+ "version": "0.8.27",
4
4
  "description": "Persistent memory for Claude Code with fire-and-forget PubNub architecture, automatic capture, failure learning, and project scoping via MCP server",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -5,6 +5,28 @@ const path = require('path');
5
5
 
6
6
  console.log('\nšŸ“‹ Setting up .claude/ directory structure...\n');
7
7
 
8
+ /**
9
+ * Recursively copy a directory
10
+ */
11
+ function copyDirRecursive(src, dest) {
12
+ if (!fs.existsSync(dest)) {
13
+ fs.mkdirSync(dest, { recursive: true });
14
+ }
15
+
16
+ const entries = fs.readdirSync(src, { withFileTypes: true });
17
+
18
+ for (const entry of entries) {
19
+ const srcPath = path.join(src, entry.name);
20
+ const destPath = path.join(dest, entry.name);
21
+
22
+ if (entry.isDirectory()) {
23
+ copyDirRecursive(srcPath, destPath);
24
+ } else {
25
+ fs.copyFileSync(srcPath, destPath);
26
+ }
27
+ }
28
+ }
29
+
8
30
  /**
9
31
  * Find the project root by traversing up from node_modules/claude-recall/scripts/
10
32
  * This is more reliable than process.cwd() during npm install
@@ -120,22 +142,11 @@ try {
120
142
  console.log(' āš ļø Warning: SKILL.md not found in source');
121
143
  }
122
144
 
123
- // Copy reference files
145
+ // Copy reference files (recursively to include subdirectories like devops/)
124
146
  const sourceReferencesDir = path.join(sourceSkillsDir, 'memory-management', 'references');
125
147
  if (fs.existsSync(sourceReferencesDir)) {
126
- const refFiles = fs.readdirSync(sourceReferencesDir).filter(f => f.endsWith('.md'));
127
- let copiedCount = 0;
128
- refFiles.forEach(file => {
129
- const sourcePath = path.join(sourceReferencesDir, file);
130
- const destPath = path.join(referencesDir, file);
131
- if (!fs.existsSync(destPath) && fs.statSync(sourcePath).isFile()) {
132
- fs.copyFileSync(sourcePath, destPath);
133
- copiedCount++;
134
- }
135
- });
136
- if (copiedCount > 0) {
137
- console.log(` āœ… Created .claude/skills/memory-management/references/ (${copiedCount} file${copiedCount > 1 ? 's' : ''})`);
138
- }
148
+ copyDirRecursive(sourceReferencesDir, referencesDir);
149
+ console.log(' āœ… Created .claude/skills/memory-management/references/ (including subdirectories)');
139
150
  } else {
140
151
  console.log(' āš ļø Warning: references/ directory not found in source');
141
152
  }