"""
html_distiller — technology-agnostic HTML distillation for the RL agent.
Converts an HTML response body into a compact, structured dict that the agent
and the embedding index can work with. Raw HTML is never returned as-is —
it is expensive (200 KB+) and mostly noise (CSS classes, JS bundles, nav chrome).
What is extracted (in priority order):
1. Embedded JSON data blobs — server-injected structured data that is the
*actual payload* for SSR pages:
•