Jiong-w-ang/dsh-preview-panel0

dsh-preview-panel

DeepSeek Harness 的多标签预览面板插件,支持 HTML、图片、Markdown 等文件渲染

AI 分析

核心用途是在聊天视图旁提供一个多标签预览面板,自动收集并渲染会话中产生的文件。适合需要实时查看 HTML 效果、图片或 Markdown 渲染的用户。

套件
dsh-preview-panel
版本
0.1.0
最近更新
2026年8月16日

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗

Usage

Compose the package into the client and the preview tab appears beside the chat view:

plugins:
  '@deepseek-ai/dsh-client-ui-preview': true

For each turn the panel accumulates files whose render-intent locations end in a whitelisted extension (.html, .htm, .svg, .png, .jpg, .jpeg, .json, .md), deduplicated by path and newest-turn-first. Selecting a file reads it through the host's session.readFile RPC and renders it by MIME:

  • text/html — a sandbox="allow-scripts" iframe; the page's scripts run against an opaque origin and cannot reach the shell
  • image/png / image/jpeg / image/svg+xml — an inline `` over a base64 data URL
  • application/json / text/markdown / anything else — a read-only code block (Markdown renders as formatted text)

The host refuses reads outside the session cwd, outside the extension whitelist, or above 20 MiB (5 MiB returns a truncated preview with a warning).