From cb2f2a04322033537334eba09571f871e93234eb Mon Sep 17 00:00:00 2001 From: Alex Newman Date: Mon, 20 Oct 2025 18:18:07 -0400 Subject: [PATCH] fix: Update command in SessionStart hook for correct node_modules path and remove package.json --- plugin/hooks/hooks.json | 2 +- plugin/scripts/package.json | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 plugin/scripts/package.json diff --git a/plugin/hooks/hooks.json b/plugin/hooks/hooks.json index f9855b72..88f96c14 100644 --- a/plugin/hooks/hooks.json +++ b/plugin/hooks/hooks.json @@ -6,7 +6,7 @@ "hooks": [ { "type": "command", - "command": "[ ! -d \"${CLAUDE_PLUGIN_ROOT}/scripts/node_modules\" ] && cd \"${CLAUDE_PLUGIN_ROOT}/scripts\" && npm install || node ${CLAUDE_PLUGIN_ROOT}/scripts/context-hook.js", + "command": "[ ! -d \"${CLAUDE_PLUGIN_ROOT}/../node_modules\" ] && cd \"${CLAUDE_PLUGIN_ROOT}/..\" && npm install && node ${CLAUDE_PLUGIN_ROOT}/scripts/context-hook.js || node ${CLAUDE_PLUGIN_ROOT}/scripts/context-hook.js", "timeout": 120 } ] diff --git a/plugin/scripts/package.json b/plugin/scripts/package.json deleted file mode 100644 index 90e2e40f..00000000 --- a/plugin/scripts/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "claude-mem-scripts", - "version": "4.0.5", - "type": "module", - "private": true, - "description": "Bundled hooks and dependencies for claude-mem plugin", - "dependencies": { - "better-sqlite3": "^11.0.0", - "pm2": "^5.3.0" - } -}