fix(self-improving-agent): use CLAUDE_PLUGIN_ROOT for hook paths

Relative paths (./hooks/error-capture.sh) resolve against the project
working directory, not the plugin root. Replaced with
${CLAUDE_PLUGIN_ROOT}/hooks/error-capture.sh in both hooks.json and
settings.json.

Fixes #392

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Reza Rezvani
2026-03-25 09:17:14 +01:00
parent 23d4037738
commit 217b199ff8
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@
"hooks": [
{
"type": "command",
"command": "./hooks/error-capture.sh"
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/error-capture.sh"
}
]
}

View File

@@ -18,7 +18,7 @@
},
"hooks": {
"PostToolUse": {
"Bash": "hooks/error-capture.sh"
"Bash": "${CLAUDE_PLUGIN_ROOT}/hooks/error-capture.sh"
}
},
"agents": [