hccccc01333/dsh-report-card
hccccc01333★ 0TypeScript最后同步: 2026-08-15
Report render intent for DeepSeek Harness: render interactive HTML report cards directly inside the conversation (card: 'report')
README 摘要
DeepSeek Harness This repository is a feature fork: dsh-report-card adds a card: 'report' render intent to DeepSeek Harness so tools can render interactive HTML reports directly inside the conversation. What this fork adds - packages/client/ui-report-panel - a standalone client plugin ( dsh-client-ui-report-panel ) that contributes the report artifact surface through public ui-conversation slots: the turn-tail card and the right-hand panel (tabs, search, scroll memory, minimize, multi-document tabs, ask-in-chat). The fork's ui-conversation stays at the upstream baseline; the panel is an opt-in composition entry. - packages/core/tools/src/presentation.ts — new ReportCallView / ReportResultView ( card: 'report' , carrying a self-contained HTML document), wired into the ToolCallView / ToolResultView unions. The wire types flow to clients automatically, so any tool can emit the card. - packages/client/ui-primitives/src/ReportBlock.tsx — sandboxed inline renderer: the report HTML is displayed in an (no same-origin), so report scripts can run but cannot touch the host page. The frame auto-resizes via a postMessage height contract ( dsh-report-height ), can open the report in a new tab, c…
在 GitHub 查看完整 README →