From 2658694839b7a20971ea5e7bfc17c9d07984eb0e Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Wed, 30 Sep 2026 01:18:12 +0100 Subject: [PATCH] fix(plugin): quote plugin root in hook commands, add command frontmatter --- commands/restart.md | 5 +++++ hooks/hooks.json | 10 +++++----- plugin/commands/restart.md | 5 +++++ plugin/hooks/hooks.json | 10 +++++----- 4 files changed, 20 insertions(+), 10 deletions(-) diff --git a/commands/restart.md b/commands/restart.md index 5de0806..2413d5a 100644 --- a/commands/restart.md +++ b/commands/restart.md @@ -1,3 +1,8 @@ +--- +description: Restart the Claude Mnemonic worker process +allowed-tools: Bash(curl:*) +--- + # Restart Claude Mnemonic Worker Restart the claude-mnemonic worker process. Use this command when experiencing issues with the memory system. diff --git a/hooks/hooks.json b/hooks/hooks.json index 0addee0..91f0540 100644 --- a/hooks/hooks.json +++ b/hooks/hooks.json @@ -6,7 +6,7 @@ "hooks": [ { "type": "command", - "command": "${CLAUDE_PLUGIN_ROOT}/hooks/session-start", + "command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/session-start\"", "timeout": 30 } ] @@ -17,7 +17,7 @@ "hooks": [ { "type": "command", - "command": "${CLAUDE_PLUGIN_ROOT}/hooks/user-prompt", + "command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/user-prompt\"", "timeout": 10 } ] @@ -29,7 +29,7 @@ "hooks": [ { "type": "command", - "command": "${CLAUDE_PLUGIN_ROOT}/hooks/post-tool-use", + "command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/post-tool-use\"", "timeout": 10 } ] @@ -40,7 +40,7 @@ "hooks": [ { "type": "command", - "command": "${CLAUDE_PLUGIN_ROOT}/hooks/subagent-stop", + "command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/subagent-stop\"", "timeout": 10 } ] @@ -51,7 +51,7 @@ "hooks": [ { "type": "command", - "command": "${CLAUDE_PLUGIN_ROOT}/hooks/stop", + "command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/stop\"", "timeout": 30 } ] diff --git a/plugin/commands/restart.md b/plugin/commands/restart.md index 5de0806..2413d5a 100644 --- a/plugin/commands/restart.md +++ b/plugin/commands/restart.md @@ -1,3 +1,8 @@ +--- +description: Restart the Claude Mnemonic worker process +allowed-tools: Bash(curl:*) +--- + # Restart Claude Mnemonic Worker Restart the claude-mnemonic worker process. Use this command when experiencing issues with the memory system. diff --git a/plugin/hooks/hooks.json b/plugin/hooks/hooks.json index 0addee0..91f0540 100644 --- a/plugin/hooks/hooks.json +++ b/plugin/hooks/hooks.json @@ -6,7 +6,7 @@ "hooks": [ { "type": "command", - "command": "${CLAUDE_PLUGIN_ROOT}/hooks/session-start", + "command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/session-start\"", "timeout": 30 } ] @@ -17,7 +17,7 @@ "hooks": [ { "type": "command", - "command": "${CLAUDE_PLUGIN_ROOT}/hooks/user-prompt", + "command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/user-prompt\"", "timeout": 10 } ] @@ -29,7 +29,7 @@ "hooks": [ { "type": "command", - "command": "${CLAUDE_PLUGIN_ROOT}/hooks/post-tool-use", + "command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/post-tool-use\"", "timeout": 10 } ] @@ -40,7 +40,7 @@ "hooks": [ { "type": "command", - "command": "${CLAUDE_PLUGIN_ROOT}/hooks/subagent-stop", + "command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/subagent-stop\"", "timeout": 10 } ] @@ -51,7 +51,7 @@ "hooks": [ { "type": "command", - "command": "${CLAUDE_PLUGIN_ROOT}/hooks/stop", + "command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/stop\"", "timeout": 30 } ]