feat(hooks): add --hook-output flag reporting removed comments

Emits Claude Code PostToolUse JSON so automated comment removal is
announced in-context instead of appearing as a silent mutation.
--install-hook now writes 'shush --changes-only --hook-output'.

Bump version to 0.6.0.
This commit is contained in:
2026-07-17 12:42:41 -05:00
parent e5536f9cce
commit bb963169dd
9 changed files with 115 additions and 9 deletions
+2 -2
View File
@@ -125,7 +125,7 @@ func SaveSettings(path string, settings *ClaudeSettings) error {
func CreateShushHookEntry() HookEntry {
return HookEntry{
Type: "command",
Command: "shush --changes-only",
Command: "shush --changes-only --hook-output",
Timeout: 5,
}
}
@@ -208,7 +208,7 @@ func AddShushHook(settings *ClaudeSettings) error {
shushHook := map[string]interface{}{
"type": "command",
"command": "shush --changes-only",
"command": "shush --changes-only --hook-output",
"timeout": 5,
}