keepermttl/dsh-archive-viewer
DeepSeek Harness 归档会话管理插件:查看/恢复已归档会话(回到原工作区分组)+ 右上角一键关闭 dsh。MIT 许可,欢迎收录到任何插件合集,注明出处即可。
Project Overview项目介绍
This is a native plugin built exclusively for the DeepSeek Harness (DSH) Web GUI, designed to manage archived DSH sessions. It adds an "Archived Sessions" entry above the settings button in the DSH sidebar, providing core features like browsing, searching, and restoring archived sessions, plus a convenient one-click shutdown button for DSH. It supports case-insensitive keyword search, sorted filtering, custom session tags, an embedded AI assistant, automatic bilingual localization, and full skin adaptation that works seamlessly with any DSH theme. It is built to match the current DSH 0.1.2-rc.x API and does not require modifying core DSH source code to work.
For regular users, the workflow is straightforward after installation. Click the "Archived Sessions" entry in the sidebar to open the management panel, enter keywords to instantly filter sessions, and toggle content search mode to scan conversation content across archived sessions. You can adjust the scan limit per session in settings, use sorting and tag filtering to quickly locate target sessions, add custom tags to any archived session, and preview conversation content or restore sessions back to their original workspaces with one click. The embedded AI assistant at the panel bottom can help you sort, tag, and organize your archived sessions efficiently.
To install the plugin, you first need Node.js version 22 or newer and the pnpm package manager. Clone the repository, navigate into the project folder, run pnpm install and pnpm build, then use the DSH CLI command to add a linked plugin entry to your web profile. After installation, restart dsh web and hard refresh your browser with Ctrl+F5 to load the plugin correctly. The plugin is open source under the MIT license, all settings are persisted locally in browser storage, and tag data is stored securely in your DSH profile directory with restricted access to only local same-origin requests.
这是一个专为 DeepSeek Harness (DSH) 开发的原生 Web GUI 插件,核心功能是查看、搜索和恢复已归档的 DSH 会话,额外提供右上角一键关闭 DSH 的功能。它在侧边栏设置按钮上方添加「已归档会话」入口,支持关键词搜索、排序筛选、自定义标签、内嵌 AI 助手、双语界面和全皮肤适配,适配当前 DSH 0.1.2-rc.x 版本,无需修改 DSH 源码。
普通用户使用时,只需点击侧边栏入口打开面板,输入关键词即可过滤会话,可切换内容搜索模式扫描对话内容,还能通过排序、标签筛选快速定位目标会话。用户可为归档会话添加自定义标签,点击即可查看对话内容、下载日志压缩包或一键恢复会话到原工作区,底部内嵌 AI 助手可协助整理归档。
安装需要 Node.js ≥ 22 和 pnpm,克隆仓库后安装依赖、构建,再通过 DSH 命令行将插件链接添加到 web 配置文件,重启 DSH web 后硬刷新浏览器即可使用。本插件开源,遵循 MIT 许可证,无需付费,所有设置自动持久化,标签数据存储在 DSH profile 目录,仅接受本机同源请求。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-archive-viewer(keepermttl/dsh-archive-viewer)
仓库:https://github.com/keepermttl/dsh-archive-viewer
本站详情页:https://www.yhbd.top/plugins/keepermttl-dsh-archive-viewer/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 4 · 最近提交 2026-09-26 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 4 stars - very few users, little community feedback星标只有 4,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add github:keepermttl/dsh-archive-viewer
把 keepermttl/dsh-archive-viewer 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-archive-viewer
DeepSeek Harness(DSH)Web GUI 的归档会话管理插件:查看 / 恢复已归档会话,外加右上角一键关闭 dsh。
当前版本:3.1.0(适配 DSH 0.1.2-rc.x,不再需要 DSH 核心补丁)
English: README.en.md · 更新日志: CHANGELOG.md
功能
- 侧边栏插件栏入口「已归档会话」(设置按钮上方):列出全部归档会话——标题、最后活跃时间、所属工作区、运行中/空白状态
- 关键词搜索:输入即筛(标题 / 会话 ID / 工作区,不区分大小写);开启「内容」模式后还会逐页扫描每段会话最近的对话(每会话扫描页数可在设置中调整,扫描进度实时显示)
- 排序 + 筛选:按最近更新 / 名称 / 会话 ID 排序,升序/降序一键切换;标签筛选收纳在「筛选」按钮菜单内,支持多选、AND / OR 模式与标签搜索,和关键词搜索叠加
- 归档会话标签:用户可给每个归档会话添加/删除自定义标签;标签持久化在 DSH profile 目录,由 host 半区提供本地 HTTP API 读写
- 内嵌 AI 助手:面板底部可折叠小窗口,直接调用 DSH 标准模式(默认
standard,可在设置改为其他 agent preset)驱动真实 agent,帮助检索会话、添加标签、整理归档;对话中的代码块/超长文本自动折叠 - AI 助手会话自动隐藏:AI 助手使用的会话会自动归档为内部 helper 会话,不出现在侧边栏和归档面板;「新对话」会安全删除上一个 helper 会话,不会误删用户会话
- AI 工作区:AI 助手会话默认在
E:\dsh-ai-workspace下创建,可在设置中修改 - 隐藏临时检索标签:agent 检索命中后自动给会话添加隐藏标签「agent检索」并切到对应筛选;该标签不显示在会话徽章上,取消勾选后自动清除
- 排列方式:竖列列表 / 横排网格(网格下展开的对话横跨整行)
- 可关闭的介绍文本:面板顶部说明可一键关闭,可在设置中重新开启
- 设置界面(面板右上角齿轮):语言、排序、排列、内容搜索、AI 模式、AI 模型与思考强度、AI 工作区、标签筛选模式、介绍文本显隐,全部即时持久化;「恢复默认」一键还原
- 中英双语:跟随浏览器语言自动切换(设置里可手动覆盖为中文或 English)
- 查看对话:宿主半区直读会话日志(
sessionPersistence.readRaw,逐行解析、不做整段重放),分页加载更早;冷/热会话都可读,不激活 Agent,几 MB 的日志也在亚秒级返回 - 下载日志 ZIP:官方
session.export端点 - 恢复会话(取消归档):一键把会话放回原工作区分组,位置原样保留(由本插件宿主半区写入注册表归档集合,无需官方 RPC)
- 右上角「关闭 dsh」按钮:确认后优雅关机(等价于在启动终端按 Ctrl+C,5 秒宽限正确收尾)
- 皮肤全适配:全部使用 shell 设计令牌(
--dsw-alias-*),自动跟随任意皮肤(含半透明/深色侧边栏类皮肤);面板 Portal 到document.body,避开皮肤侧边栏作用域的令牌覆盖
兼容性:适配当前 DSH(0.1.2-rc.x)
DSH 客户端/宿主 API 在 0.1.2 一轮重构后与 0.1.0-rc.x 完全不同,本版本按新版接线:
| 能力 | 旧版接线(已失效) | 当前接线 |
|---|---|---|
| 读会话日志 | 客户端 connection.api.sessions.history RPC |
宿主半区 /api/archive-viewer/history(sessionPersistence.readRaw 原始 JSONL 快路径,回退 sessionQuery.readSession) |
| 内容检索 | 客户端逐页 RPC 扫描 | 宿主半区 /api/archive-viewer/content-search(一次读日志 + 计数) |
| 取消归档 | 核心补丁新增的 workspace.unarchiveSession RPC |
宿主半区 /api/archive-viewer/unarchive(写注册表归档集合并触发 domain/changed,UI 实时更新) |
| 归档(隐藏 AI 助手会话) | workspace.archiveSession RPC(点号路径) |
宿主半区 /api/archive-viewer/archive(workspaceRegistry.archiveSession) |
| AI 助手建会话/投递/选模型/模型目录/preset 列表 | connection.api.* |
官方 unary RPC:优先客户端命名空间服务 ctx.get('remote.session') / remote.agentPresets,缺失时回退线协议 POST /api/<namespace>/<method>,信封 {type:'client-request',rpcId,method,payload:{args}} |
| 关闭 dsh | 经核心补丁的 host.shutdown RPC |
宿主半区 /api/host.shutdown + launcher 的 appExit 宿主值(缺失时只报错,不让插件停摆) |
| 客户端服务依赖 | inject: ['slots','sessions','workspaces','connection'] |
inject: ['slots','sessions','workspaces'](dsh.client.inject 同步更新为现存包名) |
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
hyqibot/A-share-Ai
Sanqi-normal/dsh-webui-market-plugin
bruc3van/dsh-desktop
Minglink/DeepSeek-Harness-Hub