Jiong-w-ang/dsh-preview-panel
Jiong-w-ang★ 0TypeScript最后同步: 2026-08-16
A multi-tab preview panel plugin for DeepSeek Harness
README 摘要
@deepseek-ai/dsh-client-ui-preview English 中文 Preview panel for agent-produced artifacts. The browser half registers one entry into the conversation view ring ( conversation.view , id preview ): it accumulates the files a turn produced (from the mutation tools' render-intent locations , filtered to a preview whitelist) and renders the selected file in a sandboxed surface — HTML in a sandbox -scoped iframe, images and SVG inline, and JSON/Markdown as read-only code. The package is a pure consumer: composing it out of cordis.yml removes the tab at zero cost. Usage Compose the package into the client and the preview tab appears beside the chat view: 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 el…
在 GitHub 查看完整 README →