Files
oh-my-claudecode/scripts/lib
BellmanandClaude Sonnet 4.6 b2afd08c5d fix(hooks): dedup plugin hooks, remove ~/.claude/hooks installer path (#793)
- Add scripts/post-tool-use-failure.mjs with static ESM imports (from template)
- Add scripts/code-simplifier.mjs with static ESM imports (from template)
- Add scripts/lib/atomic-write.mjs (mirrors templates/hooks/lib/atomic-write.mjs)
- Add PostToolUseFailure hook entry to hooks/hooks.json
- Add code-simplifier as third Stop hook entry in hooks/hooks.json
- Remove getHookScripts() calls that wrote scripts to ~/.claude/hooks/
- Remove getHooksSettingsConfig() call that wrote hook entries to settings.json
- Add migration: clean up legacy /.claude/hooks/ entries from settings.json
- Mark getHooksSettingsConfig() and getHookScripts() as @deprecated in hooks.ts

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-20 22:21:10 +09:00
..