dsh-artifacts
Manifest validArtifact manager for DSH: a sidebar entry and central panel to browse and manage the files DSH generates, with colored card / list views, cross-directory search, image and text previews, sorting and f
dsh-artifacts · 产物管家
一个 DeepSeek Harness (DSH) 插件:在左侧栏新增「产物管家」入口,集中浏览和管理 DSH 生成的产物文件。
功能
- 左侧栏入口:彩色渐变图标,点击进入中央面板
- 产物目录随你定:面板 ⚙ 设置里可用系统目录选择器选文件夹(或手动输入路径),保存后立即生效;别人下载安装后默认使用
~/.dsh/artifacts(首次自动创建),不再是作者的个人路径 - 卡片 / 列表两种视图:一键切换,选择本地记忆;卡片按文件类型着色,图片显示真实缩略图
- 全局搜索:顶栏输入产物名(支持中文),跨全部子目录即时搜索;结果带所在文件夹,可一键跳转,同样支持预览与管理
- 隐藏代码 / 脚本:一键隐藏执行过程产生的 .py / .js / .sh 等代码脚本文件、.pyc 等编译缓存和
__pycache__/node_modules等运行器目录,只看真正的产物;开关状态本地记忆,目录与搜索结果均生效 - 目录浏览:面包屑 + 上一级,跨层级自由跳转
- 排序与筛选:按时间 / 名称 / 大小排序,即时筛选
- 统计条:文件夹数、文件数、总大小
- 预览:图片放大预览(可下载),文本类文件直接预览前 256 KB
- 管理:打开(系统默认应用)、在资源管理器中显示、重命名、新建文件夹、删除(带确认)
- 中英双语:全部界面文案走 DSH locale 服务
安装
本插件随 profile 安装(Plugins > Add plugin 指向本目录,或 plugin_manager install_bundle),安装后重启 DSH 即生效。
配置(产物根目录)
三种方式,按优先级排列:
- 面板设置(推荐):点面板右上角 ⚙,用系统目录选择器选一个文件夹或手动输入完整路径,保存后立即生效。该配置通过 DSH 的 config editor 写进你自己的补丁层,升级插件不会丢。
- 环境变量:
DSH_ARTIFACTS_ROOT。 - 默认值:
~/.dsh/artifacts(首次启动自动创建)。
也可以直接在自己的补丁层(cordis.patch.yml)加一行按 id 覆盖:
- id: dsh-artifacts
config:
root: 'D:\我的产物'
安全边界
- 所有文件请求被限制在配置的
root之内,..、绝对路径、其他盘符一律 403 - 搜索不进入符号链接目录(不逃逸、不死循环),单次最多返回 200 条、最多扫描 20000 项
- 单层目录最多列出 2000 项;预览路由不服务超过 128 MB 的文件
- 删除为物理删除(文件夹递归),操作前有确认弹窗
结构
| 文件 | 说明 |
|---|---|
index.js | Host 半:.list / .file / .action 三条经认证路由 |
client.js | 浏览器半:sidebar.panellist 图标 + main 面板 |
locale/*.json | 插件清单标题与描述(en / zh) |
icon.svg | 插件图标 |
docs/DETAIL.md | 插件详情页文档 |
test/*.mjs | 独立冒烟测试:npm test(无需 cordis / 浏览器) |
测试
npm test # node test/host.mjs && node test/search-fallback.mjs
test/host.mjs:不依赖 cordis,伪造 connection / ctx 驱动全部 host 路由——列表 / 文件服务 / 动作 / 搜索 / 配置持久化,路径穿越与符号链接逃逸拒绝、Windows 保留名等断言test/search-fallback.mjs:伪造浏览器外壳加载真实client.js,shimfetch打真实路由,验证旧宿主(无.search路由)下的搜索回退、过期查询守卫与「隐藏代码」谓词
License
MIT
Comments
Loading…
Similar plugins
by lucagiftzek
An Artifacts tab for the DSH (DeepSeek Harness) web GUI sidebar: lists the files an agent produced and previews them in place, with live reload.
★ 2
↓ 370/wk
MIT
JavaScript
Nov 2, 2026
dsh plugin --profile web add dsh-artifactsby LINGTIAN303
Views, creates and edits AGENTS.md and other AI rule files from the DSH settings page: the project directory chain from project root to cwd, both DSH global roots (~/.dsh and ~/.agents), and user-leve
★ 1
MIT
JavaScript
Nov 7, 2026
dsh plugin --profile web add dsh-agents-visualizationby windrover
Four right-Sidebar panels for the dsh web client — an artifacts browser, long-term memory, a terminal and notes — paired two per tab with a draggable split, so two panes show all four at once. Ships t
★ 1
MIT
JavaScript
Oct 22, 2026
dsh plugin --profile web add dsh-minimal-ui-panelsArtifact center: search, preview and open files produced by DSH conversations.
★ 0
MIT
JavaScript
dsh plugin --profile web add dsh-artifact-centerby nirvanaslash
Adds a produced-files card row to the chat and a resizable split-screen preview panel for workspace artifacts (Markdown, source code, CSV, JSON, images, HTML), plus a localhost port preview.
★ 1
↓ 292/wk
MIT
JavaScript
Aug 18, 2026
dsh plugin --profile web add dsh-artifact-previewby Huuuuung
The missing backend for the dsh-artifacts sidebar tab — serves the /report artifact index and the artifact bytes it renders.
★ 0
MIT
JavaScript
Sep 11, 2026
dsh plugin --profile web add dsh-artifact-index