claude-mem-lite 2.80.0 → 2.80.1

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.80.0",
13
+ "version": "2.80.1",
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.80.0",
3
+ "version": "2.80.1",
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/install.mjs CHANGED
@@ -1517,10 +1517,20 @@ function hasMemHooksConfigured(settings) {
1517
1517
  * node "/home/sds/.claude-mem-lite/hook.mjs" session-start
1518
1518
  * bash "/home/sds/.claude-mem-lite/scripts/post-tool-use.sh"
1519
1519
  * node "/home/sds/.claude-mem-lite/scripts/pre-tool-recall.js"
1520
- * We pick the first quoted absolute path; if there is no quoted token we fall
1521
- * back to the first whitespace-delimited absolute-looking token after the
1522
- * interpreter. ${CLAUDE_PLUGIN_ROOT}-templated commands are ignored those
1523
- * are plugin-owned hooks resolved by Claude Code at runtime, not by us.
1520
+ *
1521
+ * Scan order (v2.80+): walk EVERY quoted token via matchAll, prefer ones that
1522
+ * look like a hook path (absolute + ends in a known hook-runtime extension).
1523
+ * If no quoted token qualifies, fall back to the first path-shaped token from
1524
+ * a whitespace-split of the command. If both miss, skip the entry entirely —
1525
+ * deliberate bias toward **under-reporting over false-flagging**: a wrapper
1526
+ * like `bash -c "inline" "/real/path.sh"` should report the real path, not
1527
+ * the inline string. ${CLAUDE_PLUGIN_ROOT}-templated commands are ignored —
1528
+ * those are plugin-owned hooks resolved by Claude Code at runtime, not by us.
1529
+ *
1530
+ * Extension list (HOOK_PATH_EXTS) is hardcoded for the runtimes this plugin
1531
+ * actually registers (node/bash). Extend if Claude Code ever supports new
1532
+ * hook runtimes (e.g. python/.py). Currently safe because isMemHook() filters
1533
+ * to claude-mem-lite-owned hooks only — foreign runtimes can't reach here.
1524
1534
  */
1525
1535
  const HOOK_PATH_EXTS = ['.mjs', '.js', '.cjs', '.sh'];
1526
1536
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-mem-lite",
3
- "version": "2.80.0",
3
+ "version": "2.80.1",
4
4
  "description": "Lightweight persistent memory system for Claude Code",
5
5
  "type": "module",
6
6
  "packageManager": "npm@10.9.2",
package/scripts/setup.sh CHANGED
@@ -85,7 +85,7 @@ mark_deps_broken() {
85
85
  # Embed reason + repair command so hook.mjs renders a complete error without
86
86
  # having to re-derive them. Delegate JSON serialization to node so embedded
87
87
  # quotes / shell metachars in $ROOT or $reason can't produce an invalid file
88
- # (bash `printf '"..%s.."'` cannot escape arbitrary strings safely; v2.79 fix).
88
+ # (bash `printf '"..%s.."'` cannot escape arbitrary strings safely; v2.79.1 fix).
89
89
  MARK_REASON="$reason" MARK_ROOT="$ROOT" MARK_FLAG="$DEPS_FLAG" node -e '
90
90
  const fs = require("fs");
91
91
  const reason = process.env.MARK_REASON || "unknown";