refactor: unify hook notification system, remove duplicate broadcasts

- Replace forward-hook.ps1 with notify.ps1 (now accepts optional agent param)
- Remove ejecutor settings.local.json (redundant status hooks, deriveStatus covers it)
- Remove legacy claude-permission system (route, store methods, terminal broadcast)
- Remove redundant deriveStatus + /claude-status POST from claude-hook.ts
  (broadcastClaudeHook → processHookEvent already handles status derivation)
- Clean up HookNotifications.vue permission buttons (dead code)
This commit is contained in:
2026-02-24 11:07:34 -06:00
parent 5bd115e197
commit 2edb3623c8
10 changed files with 23 additions and 333 deletions

View File

@@ -26,7 +26,7 @@
"hooks": [
{
"type": "command",
"command": "powershell -NoProfile -File hooks/forward-hook.ps1 ejecutor",
"command": "powershell -NoProfile -File hooks/notify.ps1 ejecutor",
"timeout": 5000
}
]
@@ -38,7 +38,7 @@
"hooks": [
{
"type": "command",
"command": "powershell -NoProfile -File hooks/forward-hook.ps1 ejecutor",
"command": "powershell -NoProfile -File hooks/notify.ps1 ejecutor",
"timeout": 5000
}
]
@@ -50,7 +50,7 @@
"hooks": [
{
"type": "command",
"command": "powershell -NoProfile -File hooks/forward-hook.ps1 ejecutor",
"command": "powershell -NoProfile -File hooks/notify.ps1 ejecutor",
"timeout": 5000
}
]
@@ -62,7 +62,7 @@
"hooks": [
{
"type": "command",
"command": "powershell -NoProfile -File hooks/forward-hook.ps1 ejecutor",
"command": "powershell -NoProfile -File hooks/notify.ps1 ejecutor",
"timeout": 5000
}
]
@@ -73,7 +73,7 @@
"hooks": [
{
"type": "command",
"command": "powershell -NoProfile -File hooks/forward-hook.ps1 ejecutor",
"command": "powershell -NoProfile -File hooks/notify.ps1 ejecutor",
"timeout": 5000
}
]
@@ -84,7 +84,7 @@
"hooks": [
{
"type": "command",
"command": "powershell -NoProfile -File hooks/forward-hook.ps1 ejecutor",
"command": "powershell -NoProfile -File hooks/notify.ps1 ejecutor",
"timeout": 5000
}
]
@@ -96,7 +96,7 @@
"hooks": [
{
"type": "command",
"command": "powershell -NoProfile -File hooks/forward-hook.ps1 ejecutor",
"command": "powershell -NoProfile -File hooks/notify.ps1 ejecutor",
"timeout": 5000
}
]
@@ -108,7 +108,7 @@
"hooks": [
{
"type": "command",
"command": "powershell -NoProfile -File hooks/forward-hook.ps1 ejecutor",
"command": "powershell -NoProfile -File hooks/notify.ps1 ejecutor",
"timeout": 5000
}
]
@@ -129,7 +129,7 @@
"hooks": [
{
"type": "command",
"command": "powershell -NoProfile -File hooks/forward-hook.ps1 ejecutor",
"command": "powershell -NoProfile -File hooks/notify.ps1 ejecutor",
"timeout": 10000
}
]