mirror of
https://github.com/alirezarezvani/claude-skills.git
synced 2026-08-28 04:24:58 +00:00
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:
parent
23d4037738
commit
217b199ff8
2 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@
|
|||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "./hooks/error-capture.sh"
|
||||
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/error-capture.sh"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
},
|
||||
"hooks": {
|
||||
"PostToolUse": {
|
||||
"Bash": "hooks/error-capture.sh"
|
||||
"Bash": "${CLAUDE_PLUGIN_ROOT}/hooks/error-capture.sh"
|
||||
}
|
||||
},
|
||||
"agents": [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue