@hir4ta/mneme 0.18.1 → 0.18.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mneme",
3
3
  "description": "A plugin that provides long-term memory for Claude Code. It automatically saves context lost during auto-compact, offering features for session restoration, recording technical decisions, and learning developer patterns.",
4
- "version": "0.18.1",
4
+ "version": "0.18.2",
5
5
  "author": {
6
6
  "name": "hir4ta"
7
7
  },
package/dist/server.js CHANGED
@@ -3181,8 +3181,17 @@ function writeDecisionIndexForMonth(mnemeDir2, year, month, index) {
3181
3181
  }
3182
3182
  function rebuildSessionIndexForMonth(mnemeDir2, year, month) {
3183
3183
  const index = buildSessionIndexForMonth(mnemeDir2, year, month);
3184
+ const indexPath = path2.join(
3185
+ mnemeDir2,
3186
+ INDEXES_DIR,
3187
+ "sessions",
3188
+ year,
3189
+ `${month}.json`
3190
+ );
3184
3191
  if (index.items.length > 0) {
3185
3192
  writeSessionIndexForMonth(mnemeDir2, year, month, index);
3193
+ } else if (fs3.existsSync(indexPath)) {
3194
+ fs3.unlinkSync(indexPath);
3186
3195
  }
3187
3196
  return index;
3188
3197
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hir4ta/mneme",
3
- "version": "0.18.1",
3
+ "version": "0.18.2",
4
4
  "description": "Long-term memory plugin for Claude Code - automated session saving, recording technical decisions, and web dashboard",
5
5
  "keywords": [
6
6
  "claude",