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>
16 lines
245 B
JSON
16 lines
245 B
JSON
{
|
|
"hooks": {
|
|
"PostToolUse": [
|
|
{
|
|
"matcher": "Bash",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/error-capture.sh"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|