From 58e9dcc0fce005d4a786a620c8b052bdc5bc334d Mon Sep 17 00:00:00 2001 From: Alex Newman Date: Mon, 20 Oct 2025 17:59:43 -0400 Subject: [PATCH] fix: Update hook commands and reduce timeout values for improved performance --- plugin/hooks/hooks.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/plugin/hooks/hooks.json b/plugin/hooks/hooks.json index 48860b98..f9855b72 100644 --- a/plugin/hooks/hooks.json +++ b/plugin/hooks/hooks.json @@ -6,8 +6,8 @@ "hooks": [ { "type": "command", - "command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/context-hook.js", - "timeout": 180000 + "command": "[ ! -d \"${CLAUDE_PLUGIN_ROOT}/scripts/node_modules\" ] && cd \"${CLAUDE_PLUGIN_ROOT}/scripts\" && npm install || node ${CLAUDE_PLUGIN_ROOT}/scripts/context-hook.js", + "timeout": 120 } ] } @@ -17,8 +17,8 @@ "hooks": [ { "type": "command", - "command": "[ ! -d \"${CLAUDE_PLUGIN_ROOT}/scripts/node_modules\" ] && echo \"Installing better-sqlite3\" && cd \"${CLAUDE_PLUGIN_ROOT}/scripts\" && npm install || node ${CLAUDE_PLUGIN_ROOT}/scripts/new-hook.js", - "timeout": 60000 + "command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/new-hook.js", + "timeout": 120 } ] } @@ -30,7 +30,7 @@ { "type": "command", "command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/save-hook.js", - "timeout": 180000 + "timeout": 120 } ] } @@ -41,7 +41,7 @@ { "type": "command", "command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/summary-hook.js", - "timeout": 60000 + "timeout": 120 } ] } @@ -52,7 +52,7 @@ { "type": "command", "command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/cleanup-hook.js", - "timeout": 60000 + "timeout": 120 } ] }