feat(writer): 扩展多平台文档接入、转换与编辑能力 - #1329
Merged
Merged
Conversation
* refactor(writer): route document IO through providers * enhance auto-heading-number (#51) * enhance auto-number * fix outline not applied to section draft * fix IR route with given outline * fix Markdown drafting * minor fix * fix IR cross sorts * fix * feat(writer): add outline instruction and subtask models * feat(writer): complete outline instructions and subtasks * feat(writer): add Notion document integration (#52) * feat(writer): add Notion document integration * test(writer): merge and simplify Notion writer tests --------- Co-authored-by: 陈思羽 <chensiyu2@60359784m.domain.sensetime.com> * feat(writer): parallelize writing subtasks * fix(writer): preserve anchors for HTML images * feat(writer): support wechat official account * refine wechat default image placeholder * refine wechat match * abstract image downloads to base provider * fix(writer): satisfy lint and documentation checks --------- Co-authored-by: Mustafa974 <920998500@qq.com> Co-authored-by: Chen Siyu <109125168+Blink0214@users.noreply.github.com> Co-authored-by: 陈思羽 <chensiyu2@60359784m.domain.sensetime.com> Co-authored-by: Letong Han <41274989+Mustafa974@users.noreply.github.com>
* refactor(writer): route document IO through providers * enhance auto-heading-number (#51) * enhance auto-number * fix outline not applied to section draft * fix IR route with given outline * fix Markdown drafting * minor fix * fix IR cross sorts * fix * feat(writer): add outline instruction and subtask models * feat(writer): complete outline instructions and subtasks * feat(writer): add Notion document integration (#52) * feat(writer): add Notion document integration * test(writer): merge and simplify Notion writer tests --------- Co-authored-by: 陈思羽 <chensiyu2@60359784m.domain.sensetime.com> * feat(writer): parallelize writing subtasks * feat(writer): add GitHub repository and wiki provider * fix(writer): preserve GitHub media references * test(writer): focus GitHub media coverage * fix(writer): preserve GitHub media on write-back * fix(writer): validate GitHub media write-back * test(writer): streamline GitHub integration coverage * feat(writer): support creating GitHub Wiki pages * feat(writer): support creating GitHub Wiki pages * fix(writer): preserve anchors for HTML images * fix(writer): preserve markdown code fences * refactor(writer): preserve canonical GitHub document state * fix(writer): adapt unsupported GitHub code fences * fix(writer): preserve imported markdown image URLs * fix(writer): retain GitHub media preview aliases * test(writer): consolidate GitHub integration coverage * test(writer): focus GitHub tests on core flows * refactor(writer): resolve provider create targets internally * fix(writer): reuse GitHub Wiki checkout for reads * fix(writer): select Wiki read sessions by target type * fix(writer): avoid fetching Wiki blobs for writes * fix(writer): commit partial Wiki checkouts without blobs --------- Co-authored-by: Mustafa974 <920998500@qq.com> Co-authored-by: Gxyrious <83438334+Gxyrious@users.noreply.github.com> Co-authored-by: Chen Siyu <109125168+Blink0214@users.noreply.github.com> Co-authored-by: 陈思羽 <chensiyu2@60359784m.domain.sensetime.com> Co-authored-by: Anonymous <anonymous@users.noreply.github.com> Co-authored-by: Letong Han <41274989+Mustafa974@users.noreply.github.com>
Move WriterDocument editability normalization into LazyLLM so host workflows can delegate without duplicating document logic. Define and enforce explicit provider capability declarations, require an adapter for document creation, and guard WeChat patch-by-replace with remote revision validation.
Co-authored-by: Anonymous <anonymous@users.noreply.github.com>
* feat(writer): add Markdown-to-LaTeX conversion * fix(writer): route LaTeX copy through Pandoc conversion * fix(writer): constrain LaTeX table widths --------- Co-authored-by: 陈思羽 <chensiyu2@60359784m.domain.sensetime.com>
* feat(obsidian): add Vault filesystem and Writer provider * feat(writer): preserve Obsidian syntax and media assets * refactor(writer): preserve provider write results * test(obsidian): remove obsolete display path assertion * fix(obsidian): keep absolute paths out of locator parsing * refactor(obsidian): align media handling with writer resources * feat(obsidian): preserve provider write results * feat(obsidian): preserve local write-back metadata * fix(obsidian): enforce Vault root for generic filesystem operations * fix(obsidian): preserve image references and markdown whitespace
* fix(writer): preserve editor content after GitHub writes * fix(github): fetch Wiki pages and resources on demand --------- Co-authored-by: Anonymous <anonymous@users.noreply.github.com>
* fix(writer): cache GitHub images and download with 8 workers * fix(writer): profile resources concurrently with up to 8 workers --------- Co-authored-by: Anonymous <anonymous@users.noreply.github.com>
# Conflicts: # tests/basic_tests/Tools/test_writer_stream_tools.py
) * fix(writer): preserve provider structure and batch document updates Preserve Feishu and Notion table captions, bindings, equations, and image references across document conversion and writes. Batch compatible updates and reuse persisted write results to avoid redundant document reads. * refactor writer cloud document integrations --------- Co-authored-by: 陈思羽 <chensiyu2@60359784m.domain.sensetime.com>
* fix(writer): restore scoped Markdown deletion and precise fragment prompts * fix(writer): clarify Markdown revision targeting and minimal deletion * fix(writer): preserve source punctuation forms in replacements --------- Co-authored-by: Anonymous <anonymous@users.noreply.github.com>
Mustafa974
requested a deployment
to
protected
September 18, 2026 07:12 — with
GitHub Actions
Waiting
This branch is waiting to be deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
扩展 Writer 的文档来源和写回能力,接入 GitHub 仓库与 Wiki、Obsidian、微信公众号草稿及 Google Drive 只读文档,并统一平台能力声明、内容转换与写回流程。完善 Markdown 范围编辑、表格结构和图片处理,让跨平台文档修改保留原有结构,并支持通用格式导出。
核心改动
1. 扩展文档平台接入
2. 统一平台能力与转换、写回流程
3. 完善文档编辑与结构保留
4. 增加 Markdown 到 LaTeX 转换
5. 配套修正