# Forward hook stdin to agent-ui backend (fire-and-forget) # Usage: powershell -NoProfile -File hooks/forward-hook.ps1 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 {}