Add webhook notifications from agentd to Ava on agent completion.
Current state:
Target state:
Implementation: 1. Add webhook sending in monitorPiAgent when process exits 2. Parse agent output for summary/cost info 3. HTTP POST with JSON payload 4. Retry logic for transient failures 5. Timeout to avoid blocking
Webhook payload:
{
"run_id": "pi-abc123",
"event": "completed",
"status": "success",
"summary": "Fixed the bug in Foo.hs",
"cost_cents": 42,
"duration_seconds": 120,
"timestamp": "2026-02-03T19:00:00Z"
}
Webhook coverage expanded: send 'started' on spawn, 'failed' on worktree/spawn errors and process exit failure, 'completed' on agent_end, 'error' on extension_error, and 'stopped' on stop. Agentd redeployed to include changes.