Cai-Chengyu/dsh-docx-export ↗★ 0
dsh-docx-export
Export generated text to a real Word document (.docx) from any DSH session: a zero-dependency Host plugin that registers the export_docx tool and converts Markdown into native Word styles, numbering, tables and pictures. 适合需要将对话内容直接排版并导出为标准Word文档的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Cai-Chengyu/dsh-docx-exportREADME
Read the full README ↗Configuration (optional)
Override defaults in the profile's cordis.patch.yml:
- id: docx-export
name: dsh-docx-export
config:
toolName: export_docx # rename on collision
outputDir: "D:/exports" # default output directory ("" = session working directory)
fontFamily: Calibri # Latin body font
eastAsiaFont: 微软雅黑 # East Asian body font
monoFont: Consolas # code font
fontSize: 11 # body size in points
pageSize: a4
toc: false # insert a TOC by default
footer: true # page numbers by default
allowOutsideWorkspace: false # may the tool write outside the session workspace
allowedRoots: [] # extra directories that are allowed
maxContentChars: 400000 # per-export body limit
Write scope (safe by default)
The tool reads and writes only inside the session working directory unless the profile says otherwise. An out-of-scope path is refused with an actionable message; grant specific locations with allowedRoots, or set allowOutsideWorkspace: true. Pictures are embedded only when they live inside the allowed scope.