"""legal-chat-service — host-side SSE bridge to ``claude`` CLI. Runs as a pm2-managed process on the host (port 127.0.0.1:8770 by default). The legal-ai FastAPI container proxies chat requests to it via ``host.docker.internal:8770``. Why a separate service: The chat needs real-time streaming + multi-turn session continuation (``claude --resume ``). The container can't run the claude CLI (no binary, no claude.ai credentials). Splitting this out keeps the architectural rule of ``claude_session.py`` intact while enabling the new chat feature for free (no API key). """