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

@@ -1,7 +0,0 @@
# Forward hook stdin to agent-ui backend (fire-and-forget)
# Usage: powershell -NoProfile -File hooks/forward-hook.ps1 <agent>
param([string]$agent = "ejecutor")
$b = [Console]::In.ReadToEnd()
try {
Invoke-RestMethod -Uri "http://localhost:4101/api/claude-hook?agent=$agent" -Method POST -Body $b -ContentType 'application/json' -TimeoutSec 3 | Out-Null
} catch {}