deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:yichangyaoyue/dsh-client-ui-mermaid
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Client-only dsh plugin that
renders Mermaid fenced code blocks (```mermaid) as inline SVG diagrams
in the web UI.
md-code-block elements whose language is
mermaid.dsh.client.platform = "web", so the client-modules
host scan serves lib/client.js as /plugins/@moyiyaoyue/dsh-client-ui-mermaid/client.js
and lists it in window.__DSH_BOOT__.MutationObserver on document.body and
lazily executes the vendored Mermaid engine on first use.The Mermaid v11 engine is vendored into lib/client.js, so diagram
rendering works fully offline — no network request is made. As a defensive
fallback (if the vendored copy ever fails to execute), the plugin tries these
CDN URLs in order:
https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.min.jshttps://unpkg.com/mermaid@11/dist/mermaid.min.jsOverride the fallback before the plugin applies by setting
window.__DSH_MERMAID_SRC__ to a URL string or an array of candidate URLs.
Mermaid runs in the browser with
securityLevel: "strict", so untrusted diagram text cannot inject HTML into the page.
Rebuild the vendored bundle and reinstall it in one step (from the repo root):
powershell -ExecutionPolicy Bypass -File .\rebuild.ps1
Build sources live under build/ (client.template.js, build.js, and the
downloaded mermaid.min.js).
Install from npm:
dsh plugin --profile web add @moyiyaoyue/dsh-client-ui-mermaid
or, for local development, from a checkout on the same drive:
dsh plugin --profile web add "file:../../plugins/dsh-client-ui-mermaid"
Because this is a client-only plugin (it declares no dsh.bundle), it must
also be registered as a loader entry in the profile's cordis.patch.yml:
- insert:
- id: client-ui-mermaid
name: '@moyiyaoyue/dsh-client-ui-mermaid'
Restart dsh web (or the profile) after installing, then refresh the browser.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。