DeepSeek Harness plugin

dsh-mindmap-tuogusa

DeepSeek Harness 思维导图插件:AI 回答自动整理为可编辑 Markdown,支持导出文件和生成图片;核心逻辑已内置,单包发布。

Jump to install

Source facts

Repository
tuogusa/dsh-mindmap
Latest update
Aug 21, 2026
Category
Tools & Capabilities
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-21

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/tuogusa/dsh-mindmap
Plugin: dsh-mindmap-tuogusa
Author: tuogusa

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer2 files
README.mdSource · read only

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/health
  • GET /api/mindmap/prompt → 固定思维导图生成 prompt
  • GET /api/mindmap/context?sessionId=... → 最近一条 AI 回复
  • POST /api/mindmap/generate { text } → 树 + 全部导出 + SVG
  • POST /api/mindmap/render { text } → 树 + SVG(用于编辑后重新生成图片)
  • POST /api/mindmap/export { text, format } → 指定格式文件内容

核心逻辑导入

单包内也可直接使用核心逻辑:

import { markdownToTree, treeToSvg } from "dsh-mindmap/core";

License

MIT