D
dsh-plugin-inline-image
v0.1.1 · 0 天前发布
DSH web plugin: serve workspace image files over a constrained /dsh-image route so agents can embed images inline in conversation.
README
dsh-plugin-inline-image



DSH(DeepSeek Harness)Web 插件:在 Web 服务器上开放一条受严格约束的只读图片路由/dsh-image/<alias>/<相对路径>,让 agent 可以把工作区里的图片直接内嵌显示在对话中,
无需点击文件链接,也无需临时起本地 HTTP 服务器。
为什么需要它
DSH Web UI 的 markdown 渲染器会把 http(s) 图片链接渲染成 <img>,但:
http: / https: / mailto:,data: 内嵌被拒绝。因此 agent 生成的图表(matplotlib PNG 等)之前只能以"可点击文件"形式给出。装上本插件后,
版本兼容矩阵
| DSH 版本 | 状态 | 说明 |
|---|---|---|
dsh@0.1.0-rc.6 | ✅ 兼容 | cordis patch ✅ |
dsh@0.1.0 | ✅ 兼容 | 标准 patch ✅ |
dsh@0.2.0 | ⚠️ 待验证 | 待实测(API 可能在变) |
dsh@0.3.0+ | ❓ 未知 | 尚未发布 |
💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正
元数据
- License
- MIT
- npm
- dsh-plugin-inline-image
- Repo
- —
- Engines
{"node":">=18"}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"}}