dsh-gov-doc-router: GB/T 9704 Official Document Format Validation and Compliant .docx Export
dsh-gov-doc-router is a workflow plugin for the DSH host side. It registers the tool `gov_doc_check`, which performs text-level format validation and safe auto-correction of official document drafts in compliance with GB/T 9704, and exports a .docx file conforming to the specified page margins, font, line spacing, and page numbering requirements. It does not generate body content or connect to government intranets. Installation: `dsh plugin --profile default add @liuhange/dsh-gov-doc-router`; an optional `outputDir` can be configured. By passing parameters such as `content` and `doc_type` to the model, you can obtain `issues`, `fix_summary`, and a local `download_url`.
Read More