- Final pipeline result becomes the email body (plain text + HTML rendered from Markdown via multipart/alternative) - All intermediate steps (transcript + prior analyses) are attached each as a .md file and a .pdf file - _md_to_pdf(): pure-Python PDF generation via fpdf2 with minimal Markdown rendering (headers, bullets, numbered lists, inline cleanup) - _collect_doc_chain(): walks source_document_id links to gather all ancestor documents oldest-first - Add fpdf2==2.8.3 to requirements.txt Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
120 KiB
120 KiB