dsh-mindmap
Manifest validDeepSeek Harness Mind Map Plugin: Automatically organizes AI responses into editable Markdown, supports file export and image generation; core logic is built-in, published as a single package.
dsh-mindmap
DeepSeek Harness (DSH) 思维导图插件(host + client + 核心逻辑单包一体)。
功能
- 对话输入框附近新增「🧠 思维导图」按钮,点击后用当前输入内容生成思维导图;输入框为空时自动使用当前会话最近一条 AI 回复
- 在 设置 → 思维导图 中粘贴 AI 回复/文字,一键生成思维导图
- 自动从 AI 回复中提取 Markdown / Mermaid mindmap 大纲
- 生成后可编辑 Markdown 大纲
- 点击 生成图片 将思维导图导出为 PNG
- 支持导出 Markdown / Mermaid / FreeMind .mm / JSON
安装
dsh plugin --profile web add github:tuogusa/dsh-mindmap
更新
# 方式一:CLI 更新(推荐)
dsh plugin --profile web update dsh-mindmap
# 方式二:重新从 GitHub 源安装/更新
dsh plugin --profile web add github:tuogusa/dsh-mindmap
说明:
dsh plugin是 pnpm 的前置转发器,update会按当前依赖声明重新解析该包;通过github:tuogusa/dsh-mindmap安装时,会更新到仓库默认分支的最新提交。
本地开发
npm install
npm test
npm run demo
npm run smoke
npm run test:prompt # 调用 DeepSeek API 测试思维导图 prompt 质量
结构
dsh-mindmap/
lib/
index.js # 主机侧:/api/mindmap/* 路由
client.js # 浏览器侧:设置页 + 对话输入框按钮
src/ # 核心逻辑(已内置,无需外部依赖)
index.js # 核心逻辑统一导出
markdown.js # Markdown 解析/导出
mermaid.js # Mermaid mindmap 解析
extract.js # 从 AI 回复提取大纲
export.js # Mermaid / FreeMind / JSON 导出
svg.js # 树布局与 SVG 渲染
tree.js # 树工具
prompt.js # 固定思维导图生成 prompt
test/ # 核心逻辑单元测试
examples/ # 命令行示例
docs/ # 设计文档
scripts/ # host 冒烟测试 + prompt 质量测试
cordis.patch.yml # bundle 自动挂载 loader 行
API
GET /api/mindmap/healthGET /api/mindmap/prompt→ 固定思维导图生成 promptGET /api/mindmap/context?sessionId=...→ 最近一条 AI 回复POST /api/mindmap/generate{ text }→ 树 + 全部导出 + SVGPOST /api/mindmap/render{ text }→ 树 + SVG(用于编辑后重新生成图片)POST /api/mindmap/export{ text, format }→ 指定格式文件内容
核心逻辑导入
单包内也可直接使用核心逻辑:
import { markdownToTree, treeToSvg } from "dsh-mindmap/core";
License
MIT
Compatibility
Versions
| Latest version | Published | Size |
|---|---|---|
| 0.13.0 | — | — |
| 0.1.0 | — | — |
| 0.2.0 | — | — |
| 0.3.0 | — | — |
| 0.4.1 | — | — |
| 0.5.0 | — | — |
| 0.5.1 | — | — |
| 0.6.0 | — | — |
| 0.7.0 | — | — |
| 0.8.0 | — | — |
| 0.8.1 | — | — |
| 0.8.3 | — | — |
| 0.9.0 | — | — |
| 0.10.0 | — | — |
| 0.10.1 | — | — |
| 0.11.0 | — | — |
| 0.12.0 | — | — |
Comments
Loading…
Similar plugins
by yumiao-dev
DSH 插件:直接在 DeepSeek Harness 对话里编辑任意 AI 消息的正文与思维链(thinking)。保留 AI 的聪明,让 AI 完全符合你的心意。🐛 修复选中删除联动清空问题。| DeepSeek Harness plugin to edit any assistant reply + reasoning/thinking chain. Make the AI output
★ 9
MIT
TypeScript
Sep 24, 2026
dsh plugin --profile web add dsh-chat-thinking-editorby superSizzzz
DeepSeek Harness 插件:给单步思考一个字数预算,连续几步没有可见结论时强制先给结论再继续
★ 0
MIT
JavaScript
Oct 1, 2026
dsh plugin --profile web add dsh-think-budgetby CanglongCl
DeepSeek Harness Web GUI 的网页预览与元素批注插件,让 AI 根据可视化反馈直接修改前端源码。
★ 29
↓ 54/wk
HTML
Sep 5, 2026
dsh plugin --profile web add @canglongcl/dsh-web-reviewby konglong87
dsh 常用内容插件:保存、编辑提示词,点击回填输入框,不自动发送。deepseek harness 插件
★ 2
MIT
JavaScript
Sep 23, 2026
dsh plugin --profile web add dsh-input-listby 2877905731
dsh-think-autoexpand:让 DeepSeek Harness 里的 Think 思考行始终可见,并在流式输出时自动展开,实时查看 Agent 完整推理过程;保留工具卡折叠体验。
★ 6
JavaScript
Sep 1, 2026
dsh plugin --profile web add dsh-think-autoexpandby Asza-other
DeepSeek Harness 插件:模型长时间只思考不出声时,注入提示词让它自己用正文说清在做什么、做到哪了,任务不中断;对话正文左下角浮窗同步显示这段原文。带分钟级图形设置卡,零运行时依赖。
★ 2
MIT
JavaScript
Oct 21, 2026
dsh plugin --profile web add dsh-narrator