From 00ef56b08b96eb446f5dc5795209f44c3b91a079 Mon Sep 17 00:00:00 2001 From: xsl Date: Sun, 30 Aug 2026 23:17:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(report):=20=E9=94=99=E8=AF=AF=20hint=20?= =?UTF-8?q?=E5=8E=BB=E9=99=A4=E3=80=8C=E4=BB=BB=E5=8A=A1=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E3=80=8D=E6=8C=87=E5=90=91=20+=20PDF=20=E5=85=83=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=20AI=20=E7=94=9F=E6=88=90=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - errors.py:IDEMPOTENCY_CONFLICT / TASK_STATE_INVALID 的 hint 改为「首页报告」口径(App 无任务中心页,经 hint 透出会误导) - report.html.j2:head 增加 author/description/generator meta(WeasyPrint 落入 PDF 属性,AI 生成内容标识 CR-05) - test_report_export.py:+2 单测(模板 meta 渲染 + PDF 产物 Info 字典解压断言,不新增依赖) 多 agent 评审 R3/R4 产物;单测 576 passed --- packages/report/pdf/templates/report.html.j2 | 5 ++ packages/shared/errors.py | 4 +- tests/unit/test_report_export.py | 58 ++++++++++++++++++++ 3 files changed, 65 insertions(+), 2 deletions(-) diff --git a/packages/report/pdf/templates/report.html.j2 b/packages/report/pdf/templates/report.html.j2 index b9a1b56..c0b2366 100644 --- a/packages/report/pdf/templates/report.html.j2 +++ b/packages/report/pdf/templates/report.html.j2 @@ -3,6 +3,11 @@ {{ meta.brand }} · {{ meta.title }} + + + +