qschen86/dsh-plantuml0

dsh-plantuml

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

AI 分析

核心用途是自动将Agent回复中的PlantUML代码块转换为可视化的SVG矢量图。适合经常需要AI绘制流程图、时序图等架构图表的技术用户。

パッケージ
dsh-plantuml
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/08/17

インストール

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

ドキュメント

README 全文を読む ↗

配置

通过环境变量配置:

变量默认值说明
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 图片。