dsh-bili-scroll
c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:nvoyo/dsh-drawio
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Let the agent draw real draw.io diagrams. Install this and DeepSeek can write .drawio files
(flowcharts, org charts, ER boxes) straight into your workspace, and you can open them in an actual
draw.io editor inside the Harness sidebar — no copy-paste, no external upload.

dsh plugin --profile web add @sorarisu/dsh-drawio
Or install straight from source:
dsh plugin --profile web add github:Nvoyo/dsh-drawio
Requires DeepSeek Harness 0.2.x and Node.js >= 22.6. Web profile only (the panel is a browser surface).
After installing, restart DSH once so the client bundle loads. You get:
drawio tool for the agent,.drawio file in your workspace.Ask the agent for a flowchart and it writes a file instead of ASCII art:
画一个登录流程图,密码错误就提示重试
The agent calls drawio with action: "create", nodes, and edges. The result is
docs/登录流程.drawio — a real draw.io document you can open, drag boxes in, and save back.
The panel previews any diagram as SVG, and switches to draw.io's own editor on demand.
drawio tool| action | what it does |
|---|---|
create |
build a new diagram from nodes + edges (layout is computed) |
edit |
add / update / remove cells in an existing file |
read |
return its nodes and edges as structured data |
export |
write a standalone SVG beside the diagram |
delete |
remove the file |
list |
find diagrams in the workspace |
{
"action": "create",
"path": "docs/login.drawio",
"title": "登录流程",
"nodes": [
{ "id": "start", "label": "开始", "role": "start", "shape": "ellipse" },
{ "id": "check", "label": "密码正确?", "shape": "diamond" },
{ "id": "ok", "label": "进入首页" },
{ "id": "bad", "label": "提示重试" },
{ "id": "end", "label": "结束", "role": "end", "shape": "ellipse" }
],
"edges": [
{ "from": "start", "to": "check" },
{ "from": "check", "to": "ok", "label": "是" },
{ "from": "check", "to": "bad", "label": "否" },
{ "from": "ok", "to": "end" },
{ "from": "bad", "to": "end" }
]
}
Shapes: rect rounded ellipse circle diamond parallelogram hexagon cylinder
document cloud note actor database text. Palettes: default mono warm.
Be aware of exactly what this plugin touches:
.drawio files only inside registered workspaces. Every path
goes through one policy module; anything outside a workspace, or anything that is not .drawio,
is refused with a reason rather than silently clamped./api/dsh-drawio (config, list, document,
save, preview). They accept loopback sockets only, and mutations additionally require a
same-origin Origin / Sec-Fetch-Site signal, so a page on another site cannot drive your editor.https://embed.diagrams.net in an iframe.
That is draw.io's official embed build. In embed mode it has no storage: the document travels
between your browser and this Host over postMessage, and is never sent to draw.io's servers.
If the origin is unreachable, the panel falls back to the local SVG preview instead of breaking.@deepseek-ai/* package (see Notes below).>=0.2.0-rc.1 <0.3.0-0 (declared in the manifest engines.dsh; built and tested on 0.2.1-rc.5)^22.19.0 || >=24.0.0 (declared in the manifest engines.node)<mxfile> is edited. Other pages are preserved byte-for-byte
but not operated on.model ──drawio tool──┐
├── lib/store.js ── lib/drawio-xml.js (one XML truth)
browser panel ─HTTP──┘ │
lib/drawio-svg.js (preview)
lib/edit.js (surgical edits)
The model never writes XML; the editor never touches the filesystem. Both share one path policy and one document normalizer, which is why an agent-written diagram opens in the editor and a human's drag survives the agent's next edit.
node test/host.test.mjs # tool, routes, path policy (23 checks)
node test/client.test.mjs # registration, render, protocol (11 checks)
node test/e2e.test.mjs # model ↔ panel round trip (7 checks)
No build step, no dependencies. test/ is excluded from the published tarball.
AGPL-3.0 © 2026 Nvoyo — see LICENSE. Not affiliated with DeepSeek or draw.io.
dsh-drawio-canvas — draw.io diagrams for DeepSeek Harness
Copyright (C) 2026 Nvoyo
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
AGPL is a strong copyleft licence: if you run a modified version as a network service, you must offer its source to those users. Using it locally, or forking it on GitHub, needs nothing beyond keeping this notice.
简体中文完整说明见 README.zh.md — 讲清了 Host/Client 两半每一层怎么写、
draw.io 的 postMessage 协议细节,以及开发时踩过的坑。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。