hellodigua/dsh-share 预览 preview

hellodigua/dsh-share

DSH 对话分享插件,可分享单轮或多轮对话,并导出为图片或 Markdown 格式,支持将 DSH 问答或选定的对话组导出为 PNG 或 Markdown。

Project Overview项目介绍

hellodigua/dsh-share is a purpose-built plugin for DeepSeek Harness (DSH) that lets users export selected single or multiple conversation turns to shareable PNG images or Markdown files. It follows DSH’s official plugin development conventions and uses official provided extension slots to integrate with the DSH web interface without invasive DOM modifications. The simplest way to install it is via DSH CLI, by running dsh plugin --profile web add dsh-share and then restarting the DSH web process. You can also install a specific tagged version from GitHub or a local source copy for development.

After installation, the plugin adds a new selection mode accessible from the top right of the DSH conversation page, which selects all existing conversation turns by default when you enter. If you click the share button on an individual conversation turn, it will open selection mode and pre-select just that turn for you. The selection interaction matches DeepSeek’s web interface, supporting flexible non-contiguous selection, checkboxes that stick to the viewport when scrolling long content, and multiple adjustment options for the exported output. You can tweak the image width, font size, and choose to hide intermediate steps to only keep the final answer before exporting.

The plugin is developed against the DSH 0.1.5-rc.1 baseline and is compatible with all DSH versions matching the ^0.1.5-rc.1 range requirement. It is released under the permissive MIT open source license, with third party dependency licenses documented separately in the repository. There are a few known limitations: copying images directly requires clipboard permission from your browser, you can only select content that has been loaded in the current page, and unreadable remote assets are replaced with a transparent placeholder.

这是一款专为DeepSeek Harness(DSH)开发的原生对话分享插件,核心功能是支持用户从DSH的对话历史中选择单轮或多轮对话,将选中内容导出为可分享的PNG图片或Markdown格式文件。插件遵循DSH官方开发规范,使用官方提供的标准插槽接入,不对原有DOM做侵入式修改,可通过DSH CLI直接快速安装到Web配置文件。

用户安装插件后,可从对话页面右上角进入问答选择模式,默认全选所有对话内容,也可点击任意单轮对话的分享按钮直接进入选择模式并预选当前轮次。选择操作支持灵活交互,可点击内容整组选中,也支持不连续选择,长内容滚动时勾选框会吸附在页面,整体操作体验和DeepSeek网页端保持一致。

本项目采用MIT许可证开源,开发基线为@deepseek-ai/dsh 0.1.5-rc.1,兼容对应版本及以上的DSH环境。已知限制包括复制图片需要浏览器授予剪贴板权限,页面未加载的历史对话内容无法选择,不可读取的远程资源会用透明占位符跳过。日常使用仅占用少量额外性能开销,图片生成等功能仅在调用分享功能时启动。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 36 stars - an early-stage project星标 36,属于早期项目
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 --profile web add dsh-share

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

READMEREADME

dsh-share

简体中文 | English

DSH 对话分享插件,分享单轮或多轮对话,可导出为图片或 Markdown。

和 DeepSeek 网页端一致的多选交互,操作体验完全一致。

dsh-share 多轮问答选择

生成图片前可调整宽度、字号和过程显示,完成后可下载或复制图片。

dsh-share 生成图片

功能

  • 从右上角进入问答选择模式,默认全选
  • 每轮的分享按钮也会进入选择模式,并只预选当前问答
  • 问题和回答两侧都有联动勾选框,也可直接点击内容整组选择,支持不连续选择
  • 勾选框会在长内容滚动时吸附在页面上,到当前问题或回答末尾再移出
  • 可复制图片、下载 PNG 或 Markdown
  • 保留 Markdown、代码块、表格、图片和工具调用摘要
  • 可调整图片宽度和字号,长图支持滚动预览
  • 可勾选“不展示过程”,只保留提问和最终回答

性能测试:日常聊天仅保留分享按钮等轻量开销;选择处理和图片生成只在使用分享功能时启动,并针对多轮对话做了优化。

快速安装

使用 DSH CLI 把插件加入 Web Profile,然后重启 dsh web:

dsh plugin --profile web add dsh-share

其他安装方式

安装指定的 GitHub 版本:

dsh plugin --profile web add github:hellodigua/dsh-share#vX.Y.Z

安装本地源码:

dsh plugin --profile web add /absolute/path/to/dsh-share

修改源码后,先运行 corepack pnpm build,再使用 dsh plugin --profile web add --force /absolute/path/to/dsh-share 刷新插件。

开发

项目不依赖本机 DSH checkout 即可安装依赖、运行测试和构建:

corepack pnpm install --frozen-lockfile
corepack pnpm typecheck
corepack pnpm test
corepack pnpm build

也可以用一条命令执行完整检查:

corepack pnpm verify

lib/ 是 DSH 直接加载的交付物,需要和源码一起提交。修改 src/ 后,请重新构建并确认 lib/ 已同步更新。

发布前使用 corepack pnpm release:check 校验 npm 包边界,GitHub → npm 的自动化约定见 RELEASING.md。

兼容性

开发基线为 @deepseek-ai/dsh 0.2.0-rc.2,运行时依赖范围为 ^0.1.7-rc.2 || ^0.2.0-rc.2。分享入口使用官方 conversation.chat.assistant-actions 和 conversation.session.header.utilities 插槽,不扫描或修改按钮栏 DOM。多选模式通过 data-chat-flow-kind 等稳定的 data-* 属性添加选择框,不依赖 CSS Module 生成的类名;DSH 调整对话结构后可能需要同步适配。

已知限制

  • 复制图片需要浏览器授予剪贴板权限,权限不足时仍可下载图片。
  • 无法读取的远程资源会以透明占位跳过。
  • 只能选择页面已经加载的完整问答;需要更早内容时,请先向上滚动加载。

License

项目使用 MIT 许可证。浏览器 bundle 内联依赖的许可证见 THIRD_PARTY_LICENSES.md。

友情链接

已加入 dshfind.com DSH 插件超市。

← 上一个 Prev atlas-cloud-skills 下一个 Next dsh-ultramath →