claude-mem-lite 2.33.2 → 2.33.3

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.33.2",
13
+ "version": "2.33.3",
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.33.2",
3
+ "version": "2.33.3",
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/hook.mjs CHANGED
@@ -109,7 +109,11 @@ if (!event) process.exit(0);
109
109
 
110
110
  // ─── Episode Flush ──────────────────────────────────────────────────────────
111
111
 
112
- function flushEpisode(episode) {
112
+ // hookEventName defaults to 'PostToolUse' since that's the most common caller.
113
+ // Stop / SessionStart callers MUST pass their own event name — CC rejects
114
+ // hook output whose hookEventName doesn't match the triggering event
115
+ // (regression introduced in v2.33.1's structured receipt, fixed in v2.33.3).
116
+ function flushEpisode(episode, hookEventName = 'PostToolUse') {
113
117
  if (!episode || episode.entries.length === 0) return;
114
118
 
115
119
  // Collect Read file paths tracked by post-tool-use.sh
@@ -174,7 +178,7 @@ function flushEpisode(episode) {
174
178
  process.stdout.write(JSON.stringify({
175
179
  suppressOutput: true,
176
180
  hookSpecificOutput: {
177
- hookEventName: 'PostToolUse',
181
+ hookEventName,
178
182
  additionalContext: lines.join('\n'),
179
183
  },
180
184
  }));
@@ -356,7 +360,7 @@ async function handleStop() {
356
360
  try {
357
361
  const episode = readEpisode();
358
362
  if (episode) {
359
- flushEpisode(episode);
363
+ flushEpisode(episode, 'Stop');
360
364
  }
361
365
  } finally {
362
366
  releaseLock();
@@ -509,7 +513,7 @@ async function handleSessionStart() {
509
513
  try {
510
514
  const prevEpisode = readEpisode();
511
515
  if (prevEpisode && prevEpisode.entries && prevEpisode.entries.length > 0) {
512
- flushEpisode(prevEpisode);
516
+ flushEpisode(prevEpisode, 'SessionStart');
513
517
  }
514
518
  } finally {
515
519
  releaseLock();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-mem-lite",
3
- "version": "2.33.2",
3
+ "version": "2.33.3",
4
4
  "description": "Lightweight persistent memory system for Claude Code",
5
5
  "type": "module",
6
6
  "engines": {