# Unified hook notifier - forwards all hook events to agent-ui server
# Claude Code pipes JSON via stdin with session_id, transcript_path, etc.
# The server routes to the correct agent automatically.
$b = [Console]::In.ReadToEnd()
try {
  Invoke-RestMethod -Uri 'http://localhost:4101/api/claude-hook' -Method POST -Body $b -ContentType 'application/json' -TimeoutSec 3 | Out-Null
} catch {}
