claude-mem-lite 2.33.4 → 2.33.5

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.4",
13
+ "version": "2.33.5",
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.4",
3
+ "version": "2.33.5",
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,14 +109,14 @@ if (!event) process.exit(0);
109
109
 
110
110
  // ─── Episode Flush ──────────────────────────────────────────────────────────
111
111
 
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
- // v2.33.4: CC's Stop-event schema does NOT accept hookSpecificOutput at all
117
- // only PreToolUse / UserPromptSubmit / PostToolUse / SessionStart carry
118
- // additionalContext. On Stop we flush the episode to DB but skip the JSON
119
- // receipt entirely; emitting it triggers "Invalid input" schema rejection.
112
+ // hookEventName serves two roles: it is written into the emitted receipt JSON
113
+ // AND it gates emission via RECEIPT_EVENTS. Callers MUST pass their triggering
114
+ // event name so both work Stop falls outside the allowlist, so its receipt
115
+ // is skipped entirely (CC's Stop schema rejects hookSpecificOutput at the root,
116
+ // not just on event-name mismatch). The episode still flushes to DB and
117
+ // spawns llm-episode background enrichment; only the stdout receipt is gated.
118
+ // Regression chain: v2.33.1 introduced the receipt; v2.33.3 misdiagnosed the
119
+ // Stop rejection as event-name mismatch; v2.33.4 is the root-cause fix.
120
120
  const RECEIPT_EVENTS = new Set(['PostToolUse', 'SessionStart', 'UserPromptSubmit']);
121
121
  function flushEpisode(episode, hookEventName = 'PostToolUse') {
122
122
  if (!episode || episode.entries.length === 0) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-mem-lite",
3
- "version": "2.33.4",
3
+ "version": "2.33.5",
4
4
  "description": "Lightweight persistent memory system for Claude Code",
5
5
  "type": "module",
6
6
  "engines": {