/** * `fetch` of the worker process — used by the scheduled jobs that read legal-ai's * internal-machine routes at `http://127.0.0.1:8001`. `ctx.http.fetch` is host-mediated * and Paperclip's SSRF guard rejects loopback/private targets ("All resolved IPs for * 127.0.0.1 are in private/reserved ranges"), which is why `stale-case-reminder` and * `weekly-feedback-analysis` failed (legal-ai #1117). `LegalApi` already uses this fetch. * * Kept in its own module (no TypeScript parameter properties) so `node --test` can * load it in strip-only mode. */ export function fetchLegalApi( url: string, init?: RequestInit, ): Promise { return fetch(url, init); }