feat: 新增报告协作页,并强化 Deep Research 运行诊断与报告兜底

支持浏览器侧素材快照撰写、拒绝报告读时修复、Mermaid PNG 导出与 Word 导出加固。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
董宏凯andCursor committed 2026-09-03 11:16:50 +08:00
1 parent 65d6b61d5d
commit f109a95535
65 files changed
+10342 -245

No files matched your search

@@ -143,6 +143,7 @@ class MarkdownDocxExportRequest(BaseModel):
title: str | None = Field(default=None, max_length=300)
markdown: str = Field(..., min_length=1, max_length=2_000_000)
embedded_images: dict[str, str] = Field(default_factory=dict)
class DocumentRewriteRequest(BaseModel):
@@ -391,7 +392,12 @@ async def export_markdown_docx(body: MarkdownDocxExportRequest) -> Response:
persist the supplied Markdown.
"""
try:
content = await asyncio.to_thread(build_markdown_docx, body.markdown, body.title)
content = await asyncio.to_thread(
build_markdown_docx,
body.markdown,
body.title,
embedded_images=body.embedded_images or None,
)
except WordExportFontError as exc:
raise HTTPException(status_code=503, detail=str(exc)) from exc
except WordExportError as exc: