D
dsh-artifact-preview
v0.1.1 · 2 天前发布
Codex-style artifact preview for DeepSeek Harness (DSH): produced-files row in chat with inline image thumbnails, and a resizable split-screen side preview panel rendering Markdown / source code / CSV / JSON / images / HTML, plus localhost port preview.
README
dsh-artifact-preview
为 DeepSeek Harness (DSH) 提供 Codex 风格的产物预览。
dsh-artifact-preview 是一个客户端插件(dsh.client.platform: "web"),让产出的文件在对话中直接可见、可检查:
- Markdown → 富文本(标题、表格、列表、代码块、链接、图片;相对路径本地图片自动解析)
- 源代码(
.py .js .ts .sh .css …)→ 深色语法高亮- CSV → HTML 表格
- JSON → 可折叠树
- 图片(
.png .jpg .gif .webp .svg …)→ 棋盘格衬底居中- HTML / 本地端口 → iframe(含开发服务器端口 chips、地址栏、后退/前进/刷新、外部打开)
window.__dshOpenFilePreview / __dshCanPreviewPath),其他插件可把"打开文件"意图路由进预览面板。安装
DSH Web 的 设置 → 插件 → 市场(搜索 dsh-artifact-preview),或命令
版本兼容矩阵
| 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-artifact-preview
- Repo
- git+https://github.com/nirvanaslash/dsh-artifact-preview.git
- Engines
{}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"client":{"inject":["@deepseek-ai/dsh-client-ui-conversation"],"platform":"web"}}