dsh-uml-drawio

用 JSON spec 生成可编辑的 UML 时序图 .drawio:Python 负责参与者、片段与标签布局,draw.io 桌面 CLI 按 1x-4x 渲染 PNG,Pillow 校验输出尺寸。生成结果确定可复现,遇到手工改过的文件会拒绝覆盖。需要 Python(含 Pillow 12.x)和 draw.io 桌面版;默认路径是 Windows 路径(Python 在 C:\Program Files\Python314、draw.io 在 D:\drawio),可在设置卡片里修改。

插件介绍

用 JSON spec 生成可编辑的 UML 时序图 .drawio:Python 负责参与者、片段与标签布局,draw.io 桌面 CLI 按 1x-4x 渲染 PNG,Pillow 校验输出尺寸。生成结果确定可复现,遇到手工改过的文件会拒绝覆盖。需要 Python(含 Pillow 12.x)和 draw.io 桌面版;默认路径是 Windows 路径(Python 在 C:\Program Files\Python314、draw.io 在 D:\drawio),可在设置卡片里修改。

安装方式

从 GitHub 安装

dsh plugin --profile web add github:hanwang-ai/dsh-uml-drawio

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。