CJXIAO0718/dsh-plugin-session-share ↗★ 2

dsh-plugin-session-share

会话导出为单文件脱敏HTML分享页工具 适合需要将DSH聊天记录安全脱敏并导出为离线HTML网页分享给他人的用户。

包名
dsh-plugin-session-share
兼容性
待验证
版本
0.1.0
许可证
MIT
最近更新
2026年10月25日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:CJXIAO0718/dsh-plugin-session-share

配置项

插件条目里的 config(lib/index.js 读取):

键取值默认说明
themeauto | light | darkauto分享页初始主题,右上角按钮可切换
redacttrue | falsetrue脱敏总开关;false = 关闭脱敏(原样输出,慎用)
- insert:
    - id: session-share-html
      name: 'file:///C:/.../dsh-plugin-session-share/lib/index.js'
      config:
        theme: light
        redact: true

离线 CLI 用 --no-redact 关闭脱敏,用 --title 覆盖标题。

另外暴露:路由 GET /api/session.shareHtml(支持 &pick=m12,m13、&download=1)、路由 GET /api/session.shareIndex(挑选浮层的条目列表)、命令 /share、工具 share_conversation_html(写文件到会话 cwd 下的 .dsh-share/)。