jayhe-mdviewer
v0.3.2 · 2 天前发布
General file previewer for DeepSeek Harness: after an agent turn produces files, the produced-files row expands vertically and one click opens a right-side panel that renders markdown (official MarkdownText), syntax-highlighted code, csv/tsv tables, text,
README
jayhe-mdviewer
一个面向 DeepSeek Harness(dsh)的通用文件预览器插件。
当 agent 完成一轮工作并产出文件时,收尾消息下方的"产物"行以垂直列表展示(默认折叠,点击展开全部);点击任意产物文件即在右侧弹出面板中渲染预览,且每种文件类型都有符合其风格的渲染:
| 类型 | 渲染方式 |
| --- | --- |
| 📄 markdown | 官方 MarkdownText(完整 GFM、表格、代码块、TeX 公式) |
| 💻 代码(js/ts/py/go/rs/java/c/cpp/json/yaml/css/sql/html 等约 70 种扩展名) | highlight.js 语法高亮 + 语言徽标 |
| 📊 csv / tsv | 解析为 HTML 表格(支持引号转义字段,500 行封顶) |
| 🖼 图片(png/jpg/gif/webp/svg/bmp/ico/avif) | 内联展示 |
| 📃 文本 / 日志 | 等宽纯文本 |
| 已知二进制(pdf/docx/xlsx/zip 等) | 针对性的"用 ↗ 外部打开"提示 |
特性
@deepseek-ai/dsh-client-ui-primitives 的 `Markdow版本兼容矩阵
| 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
- jayhe-mdviewer
- Repo
- git+https://github.com/1149784810/jayhe-mdviewer.git
- Engines
{}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"client":{"platform":"web","inject":["@deepseek-ai/dsh-client-locale","@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-ui-conversation","@deepseek-ai/dsh-client-ui-primitives"]}}