Add shared HTTP client with timeout, retry, and rate limiting
Create scripts/backend/http.ts with: - Configurable request timeout via AbortSignal.timeout() - Retry with exponential backoff + jitter on 429/5xx/network errors - Per-host rate limiting with configurable minimum delay - Request logging to stderr with status, duration, and attempt number - Typed responses with HttpError for non-2xx failures Add vitest and 14 unit tests covering all error handling paths. Closes #24 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Parentce4c441
4 files changed+740-3
StackedSplit