nirvanaslash/dsh-artifact-preview ↗★ 0
dsh-artifact-preview
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.
AI Analysis
核心用于直观预览 AI 生成的各类文件和网页。适合频繁生成代码、文档或多媒体产物,需要分栏对照查看的 DSH 用户。要求 DSH 网页端环境。
Install
This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗
README
Read the full README ↗dsh-artifact-preview
Codex-style artifact preview for DeepSeek Harness (DSH).
dsh-artifact-preview is a client plugin (dsh.client.platform: "web") that makes produced files visible and inspectable right in the chat:
- Produced-files row in chat — after the agent writes files, the closing message shows a "产物" row with file chips and inline image thumbnails; clicking any of them opens the side preview.
- Split-screen side preview panel — a resizable right-hand panel (real split, conversation stays visible and unobstructed) rendering:
- Markdown → rich text (headings, tables, lists, code fences, links, images; relative local images resolve automatically)
- Source code (
.py .js .ts .sh .css …) → dark syntax highlighting - CSV → HTML table
- JSON → collapsible tree
- Images (
.png .jpg .gif .webp .svg …) → checkerboard-backed centered view - HTML / localhost ports → iframe (with port chips for dev servers, URL bar, back/forward/reload, open-external)
- Global hooks (
window.__dshOpenFilePreview/__dshCanPreviewPath) so other plugins can route "open file" intents into the preview panel.
Install
From the DSH web Settings → Plugins → Marketplace (search dsh-artifact-preview), or via CLI:
dsh plugin --profile web add dsh-artifact-preview
Restart the dsh web service (or DSH Desktop) and refresh the page.
Prerequisites
- DSH Desktop (or a
dsh webprofile that has thedsh-file-changescompanion installed) — the preview fetches file content through its/dsh-files/static/route. On DSH Desktop this route is built in; on a baredsh webinstall add thedsh-file-changescompanion first. - A model that produces files via
write/edit-style tools (that is how a turn's "produced files" are tracked).
Compatibility
- Built for DSH
0.1.0-rc.6client plugin ABI (window.__ModuleLoader__module,dsh.clientmetadata,conversation.chat.turnTailchain slot). Chain-slot election relies on lowpriority(-100) to win the produced-files row; verify behavior after DSH upgrades.
Known boundaries
- The chat row and preview panel are fully self-contained in this package.
- Two optional behaviors are not bundled because they require patching DSH core files (intentionally left out of a public package): multi-type preview buttons in the file view, and "open → preview" for file-name mentions inside message prose. Without them, file-view preview keeps DSH's original HTML-only behavior and prose mentions open with the system app.
License
MIT