CJXIAO0718/dsh-plugin-session-share ↗★ 2
dsh-plugin-session-share
会话导出为单文件脱敏HTML分享页工具 适合需要将DSH聊天记录安全脱敏并导出为离线HTML网页分享给他人的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:CJXIAO0718/dsh-plugin-session-share说明文档
阅读完整 README ↗配置项
插件条目里的 config(lib/index.js 读取):
| 键 | 取值 | 默认 | 说明 |
|---|---|---|---|
theme | auto | light | dark | auto | 分享页初始主题,右上角按钮可切换 |
redact | true | false | true | 脱敏总开关;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/)。