Bundle
dsh-share
Share DSH Q&As or selected conversation groups as PNG or Markdown.
- Source
- hellodigua
- stars
- 23 stars
- License
- MIT
- Updated
- Updated 23 days ago
Readme
# dsh-share 简体中文 | [English](./README.en.md) DSH 对话分享插件,分享单轮或多轮对话,可导出为图片或 Markdown。 和 DeepSeek 网页端一致的多选交互,操作体验完全一致。  生成图片前可调整宽度、字号和过程显示,完成后可下载或复制图片。  ## 功能 - 从右上角进入问答选择模式,默认全选 - 每轮的分享按钮也会进入选择模式,并只预选当前问答 - 问题和回答两侧都有联动勾选框,也可直接点击内容整组选择,支持不连续选择 - 勾选框会在长内容滚动时吸附在页面上,到当前问题或回答末尾再移出 - 可复制图片、下载 PNG 或 Markdown - 保留 Markdown、代码块、表格、图片和工具调用摘要 - 可调整图片宽度和字号,长图支持滚动预览 - 可勾选“不展示过程”,只保留提问和最终回答 性能测试:日常聊天仅保留分享按钮等轻量开销;选择处理和图片生成只在使用分享功能时启动,并针对多轮对话做了优化。 ## 快速安装 使用 DSH CLI 把插件加入 Web Profile,然后重启 `dsh web`: ```sh dsh plugin --profile web add dsh-share ``` ## 其他安装方式 安装指定的 GitHub 版本: ```sh dsh plugin --profile web add github:hellodigua/dsh-share#vX.Y.Z ``` 安装本地源码: ```sh 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 即可安装依赖、运行测试和构建: ```sh corepack pnpm install --frozen-lockfile corepack pnpm typecheck corepack pnpm test corepack pnpm build ``` 也可以用一条命令执行完整检查: ```sh corepack pnpm verify ``` `lib/` 是 DSH 直接加载的交付物,需要和源码一起提交。修改 `src/` 后,请重新构建并确认 `lib/` 已同步更新。 发布前使用 `corepack pnpm release:check` 校验 npm 包边界,GitHub → npm 的自动化约定见 [RELEASING.md](https://github.com/hellodigua/dsh-share/blob/main/RELEASING.md)。 ## 兼容性 兼容 `@deepseek-ai/dsh ^0.1.0-rc.6`。分享入口使用官方 `conversation.chat.assistant-actions` 和 `conversation.session.header.utilities` 插槽,不扫描或修改按钮栏 DOM。多选模式通过 `data-chat-flow-kind` 等稳定的 `data-*` 属性添加选择框,不依赖 CSS Module 生成的类名;DSH 调整对话结构后可能需要同步适配。 ## 已知限制 - 复制图片需要浏览器授予剪贴板权限,权限不足时仍可下载图片。 - 无法读取的远程资源会以透明占位跳过。 - 只能选择页面已经加载的完整问答;需要更早内容时,请先向上滚动加载。 ## License 项目使用 [MIT](LICENSE) 许可证。浏览器 bundle 内联依赖的许可证见 [THIRD_PARTY_LICENSES.md](THIRD_PARTY_LICENSES.md)。 ## 友情链接 已加入 [dshfind.com](https://dshfind.com) DSH 插件超市。
Install
dsh plugin --profile web add github:hellodigua/dsh-share#3f4cbcf2148d0d3cdd86c83b9f3bd48068b1c179
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install dsh-share from the hub
- This package builds from source on install. pnpm will ask you to allow its build script — that is permission to run the package’s code on your machine, outside the agent sandbox. Only allow sources you trust.