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.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/install.mjs +14 -4
- package/package.json +1 -1
- package/scripts/setup.sh +1 -1
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
|
-
*
|
|
1521
|
-
*
|
|
1522
|
-
*
|
|
1523
|
-
*
|
|
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
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";
|