beijingwahw/dsh-conv-export

dsh-conv-export(对话导出)——将当前 DeepSeek Harness 对话导出为 Markdown、PDF 或长 PNG 图片

Project Overview项目介绍

This is a native DeepSeek Harness plugin that lets you export conversation sessions from DSH to multiple common file formats. It adds a dedicated download button to the conversation header, so you can access the export feature with a single click without modifying DSH core code. Supported export formats include Markdown, self-contained HTML, PDF, and long PNG, and it also supports one-click copying of Markdown content to your system clipboard. For users that need to archive multiple old conversations, it can bundle multiple exported Markdown files into a single downloadable ZIP archive.

To install the plugin, you first need to have Node.js version 22 or higher and the pnpm package manager installed on your system. You can run the one-line command dsh plugin add beijingwahw/dsh-conv-export --profile web to install it directly, and no build step is required for pre-bundled releases. After installation, you just need to open any conversation in DSH and click the download icon in the conversation header to start exporting. You can select your desired format, or even pick specific rounds to export if you do not want to include all unnecessary content.

The bulk export ZIP file comes with an offline HTML reader and a machine-readable manifest. The offline reader lets you browse all exported conversations after unzipping, supports full-text search across all sessions, and requires no internet connection or server to run. The manifest includes metadata like session count, total rounds, and time span for all conversations, which can be consumed by external scripts and tools. The plugin is released under the permissive MIT open source license, so you can use it freely for any personal or commercial purpose. If you run into installation issues, troubleshooting steps are listed in the project README.

这是一款专为 DeepSeek Harness 开发的原生插件,用于将当前对话导出为多种可分享、可归档的格式文件,解决了 DSH 没有内置导出功能的问题,让沉淀在对话中的内容可以方便地带出保存。支持导出 Markdown、单文件 HTML、PDF 和长图 PNG,还支持一键复制 Markdown 到剪贴板,以及批量导出多个历史会话打包为 Markdown ZIP。插件在会话头部添加下载按钮,无需对 DSH 核心做任何修改即可使用。

本插件解决了 DSH 没有内置对话导出功能的问题,满足不同场景下多样化的导出需求。比如分享对话给同事用 Markdown,归档留痕用 PDF,插入聊天使用长图,批量导出还自带离线阅读器和可机器读取的索引,每个会话还自带首问预览,解压后即可按时间线浏览全部会话,支持全文搜索,无需联网和服务器即可使用,方便快速定位目标内容。

安装需要 Node.js 22 以上版本和 pnpm 包管理器,可通过 dsh plugin add 命令一键安装到指定 profile。导出产物保留了对话原有的格式,支持选择特定回合导出,也可以中途取消导出任务。如果遇到安装错误,项目 README 中提供了详细的排障步骤,用户可以按照指引解决常见问题,插件遵循 MIT 许可证开源,完全免费使用。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 5 stars - very few users, little community feedback星标只有 5,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin add beijingwahw/dsh-conv-export --profile web

把 beijingwahw/dsh-conv-export 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-conv-export(对话导出)

License: MIT dsh-plugin DeepSeek Harness

English | 中文

把当前 DeepSeek Harness 对话导出为 Markdown、单文件 HTML、PDF(免打印对话框直接下载)或长图 PNG,还可一键复制 Markdown 到剪贴板、批量导出多个历史会话为 Markdown ZIP——会话头部一次点击,零核心改动。

解决的问题

  • 对话会蒸发:长对话里沉淀着决策、代码与排错线索,但 Harness 没有内置方式把它们带走。本插件把渲染出的对话记录变成可携带的产物。
  • 一种格式永远不够:分享给同事要 Markdown;归档留痕要 PDF;贴进聊天要图片。一个菜单三种格式全有。
  • 一份往往也不够,要一批:交接与归档常需要把多个历史会话一次带走。批量导出把它们各自生成一份 Markdown,打包成一个 ZIP。
  • 带走的 ZIP 本身就是档案馆:批量导出的 ZIP 自带一个 index.html 离线阅读器与 manifest.json 机器可读索引——解压后双击即可浏览全部会话、即时全文搜索、逐会话复制 / 下载 Markdown,无需服务器、无需联网。阅读器还是一份智能档案:侧栏按日期把会话排成时间线、每个会话自带首问摘要(不点开即知主题)、顶部统计条一览会话数 / 总轮次 / 时间跨度;manifest 同步携带逐会话 preview 与全局 stats,脚本与外部工具可直接消费档案画像。
  • 导出必须与所见一致:提取在点击时刻对渲染 DOM 执行(含翻页加载的历史),产物就是屏幕上的对话——代码块、表格、强调全部保留。

功能特性

  • 头部导出按钮(下载图标)注册进 conversation.session.header.actions 插槽——可叠加、可安全卸载,打开状态经 aria-pressed 镜像。
  • 下拉菜单五种导出 + 回合选择:
    • Markdown (.md)——客户端下载;助手回复从渲染 HTML 反向序列化(标题、列表、带语言的围栏代码、表格、引用、链接、行内强调)。
    • HTML (.html)——自包含单文件:样式全部内联、图片转为 data URL,双击即读、即席可分享;文本保持可选可检索,内嵌打印样式使「打印 → 存为 PDF」成为可选文本 PDF 的替代路径。
    • PDF(下载)——对话分片光栅后按 A4 比例切页(页界与片界对齐、页数无上限、峰值内存恒为单片量级),下载自包含的多页 PDF。无打印窗、无弹窗:应用标签页永不冻结。
    • 长图 (PNG)——分片光栅(foreignObject 窗口 translateY 位移,片高 = A4 页高 × 2)+ 流式 PNG 编码(片级自适应行过滤 → CompressionStream('deflate') 增量压缩),图片内联为 data URL。PNG 规范无高度上限,理智上限约 176 页 A4(200,000 CSS px);无 CompressionStream 的环境退回旧的单 canvas 截断路径(16000px)。
    • 复制 Markdown——一键写入剪贴板,免去下载-打开-复制的往返;剪贴板不可用(非安全上下文)时给出降级提示。
    • 选择回合导出…——打开回合选择面板:逐回合勾选(角色 + 内容预览,默认全选)、全选/全不选、已选计数实时更新,再挑选导出格式(Markdown / HTML / PDF / 长图),确认后仅导出选中回合(如剔除失败的尝试或跑题的段落)。导出进行中确认按钮显示分片进度,再次点击或「取消」中止。
    • 批量导出会话…——打开会话选择面板:按标题 / 会话 ID 实时筛选、逐个勾选、全选/全不选(作用于当前筛选结果并与已有选择取并集)、已选计数实时更新;确认后所选会话各生成一份 Markdown,打包为单个 ZIP 下载(单次最多 100 个会话,自动去重;读取失败的会话自动跳过,不阻塞其余条目)。打包进行中按钮显示「正在打包…」,再次点击或「取消」中止;打包期间 Esc / 遮罩不关闭面板。
  • 合理的文件名取自会话标题(净化、限长)。
  • 跟随 Harness --dsw-alias-* 设计令牌;菜单文案按文档语言自动切换中/英文。
  • 菜单卫生:Escape 或点击外部关闭;光栅导出进行中菜单项实时显示「done/total」进度,再次点击同一菜单项即可取消;长图光栅失败时给出 toast 提示。选择面板空闲时 Escape 或点击遮罩关闭,导出进行中经取消按钮中止。

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-office-com 下一个 Next codex-to-dsh-pet →