qschen86/dsh-plantuml0

dsh-plantuml

DSH web plugin: render PlantUML fenced code blocks in conversation messages as SVG diagrams.

包名
dsh-plantuml
版本
0.1.0
许可证
MIT
最近更新
2026年8月17日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:qschen86/dsh-plantuml

配置

通过环境变量配置:

变量默认值说明
DSH_PLANTUML_SERVERhttps://www.plantuml.com/plantumlPlantUML 服务地址,例如自建 http://127.0.0.1:8080/plantuml
DSH_PLANTUML_COMMAND如果设置为本机 plantuml 命令(或可执行文件路径),则优先用本机命令渲染,不访问网络
DSH_PLANTUML_TIMEOUT_MS15000远程渲染超时(毫秒)
DSH_PLANTUML_MAX_SOURCE1048576单个 PlantUML 源码最大字节数

使用

模型在回复中输出:

```plantuml
@startuml
Alice -> Bob: 你好
@enduml
```

插件会自动把它替换成渲染后的 SVG 图片。