dsh-chat-enhancer
其他 活跃维护

dsh-chat-enhancer

Tieboyh/dsh-chat-enhancer

聚焦对话场景内容展示增强,原生支持可缩放全屏 Mermaid 图表渲染,无需跳转即可清晰查看复杂流程图与架构图,优化技术讨论下的内容浏览体验。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
32 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:Tieboyh/dsh-chat-enhancer
git clone https://github.com/Tieboyh/dsh-chat-enhancer.git
git clone git@github.com:Tieboyh/dsh-chat-enhancer.git
README.md main

dsh-chat-enhancer

English | 简体中文

A focused conversation enhancement plugin for DeepSeek Harness Web.

Features

Version 0.2 focuses on Mermaid code blocks in conversations:

  • Renders mermaid, mermaidjs, and mmd fenced blocks as SVG
  • Opens diagrams in a centered preview window instead of browser fullscreen
  • Provides smooth pointer-centered mouse-wheel zooming inside the preview
  • Supports click-and-drag panning, fit-to-window, 100%, and keyboard shortcuts
  • Re-renders when the DSH light or dark theme changes
  • Uses Mermaid securityLevel: strict and falls back to source on render errors

Install

dsh plugin --profile web add dsh-chat-enhancer

Restart DSH Web after installing, upgrading, or removing the plugin.

To install a local checkout for development:

git clone https://github.com/Tieboyh/dsh-chat-enhancer.git
cd dsh-chat-enhancer
npm install
npm run check
npm run build
dsh plugin --profile web add "$PWD"

Usage

Ask the model to return a Mermaid fence:

```mermaid
flowchart LR
  A[开始] --> B[完成]


Use **Open** on a rendered diagram to enter the preview window. Scroll to zoom around the pointer, drag to pan, press `+`/`-` to zoom, press `0` to fit, or press `Esc` to close.