MuWinds/dsh-archived-sessions
归档会话管理(Archived sessions manager)—— DeepSeek Harness Web 界面的设置页扩展,以单 bundle 包分发,一条命令即可安装。
catalog 简介 / catalog descriptioncatalog description:DeepSeek Harness 插件-归档会话管理,支持释放、清除归档会话
项目介绍Project Overview
为 DeepSeek Harness Web 界面提供归档会话管理页面,属于设置页扩展,单 bundle 分发,一条命令即可安装。功能包括查看已归档会话的标题、时间、目录、磁盘路径及占用空间,支持单个、批量、一键全部的取消归档与硬盘删除操作(删除需两步确认),并可展开查看会话内容预览。适用于需要清理或管理历史归档会话的用户。需注意,硬盘删除不可恢复,安装意味着授予本仓库代码以你的权限运行,建议先审阅源码。
This plugin adds an archived sessions management page to the DeepSeek Harness web interface, distributed as a single bundle installable with one command. It lists archived sessions with titles, timestamps, directories, and on-disk paths, and reports per-session and total disk usage. It supports single, batch, and one-click unarchive (releasing sessions back to their workspace) and hard-delete operations, with the hard-delete requiring a two-step confirmation. Session contents can be expanded inline for preview. It suits users who need to review or reclaim disk space from archived sessions. Hard deletion is irreversible, so inspect the source before installing.
请帮我了解并安装插件:【dsh-archived-sessions】【https://github.com/MuWinds/dsh-archived-sessions】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.
或使用命令行安装(适合开发者)Or use CLI install (for developers)
命令行安装CLI Install
dsh plugin --profile web add github:MuWinds/dsh-archived-sessions
把 MuWinds/dsh-archived-sessions 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-archived-sessions
归档会话管理(Archived sessions manager)—— DeepSeek Harness Web 界面的设置页扩展,以单 bundle 包分发,一条命令即可安装。
在 Harness 的「设置 → 归档会话」页面中提供:
- 查看所有已归档会话(标题、创建时间、所属目录、磁盘上的实际文件路径)
- 每个会话占用的磁盘空间与总占用
- 释放(取消归档,回到原工作区)—— 单个、批量、一键全部
- 从硬盘删除会话文件 —— 单个、批量、一键清空(两步确认)
- 点击会话标题展开查看会话内容(用户 / 助手 / 工具消息预览)
⚠️ 安全提示:本插件包含「从硬盘删除会话文件」能力,删除不可恢复。安装即代表信任本仓库代码会在你的机器上以你的权限运行,请自行审阅源码。
安装(推荐:bundle 一键安装)
本包是一个声明了 dsh.bundle 的插件组合包,纯 JavaScript、无构建步骤,可直接从 GitHub 安装:
dsh plugin --profile web add github:MuWinds/dsh-archived-sessions
然后重启 Harness(npx @deepseek-ai/dsh web)。设置面板底部会出现「归档会话」页面。
纯 JS 包没有
prepare构建脚本,因此不需要 pnpmallowBuilds授权。若你习惯锁定版本,可钉住 commit:github:MuWinds/dsh-archived-sessions#<sha>。
从本地目录安装(开发调试)
dsh plugin --profile web add ./dsh-archived-sessions
dsh plugin --profile web remove @muwinds/dsh-archived-sessions 可卸载(同时移除依赖与对应的 bundle 层)。
仓库结构
dsh-archived-sessions/
├── package.json # dsh.bundle + dsh.client 声明(单包双端)
├── cordis.patch.yml # 插入一行 archived-sessions(宿主端 + 浏览器端)
├── lib/
│ ├── index.js # 宿主端插件:webServer 路由 /dsh-archived/* + 全部业务逻辑
│ └── client.js # 浏览器端插件:设置页 UI(__ModuleLoader__ bundle)
├── README.md
└── LICENSE # MIT
宿主端 API(POST /dsh-archived/*,无鉴权、同源):
| 路由 | 请求体 | 返回 |
|---|---|---|
/dsh-archived/list |
{} |
{ items, totalBytes } |
/dsh-archived/unarchive |
{ sessionId } |
{ ok, changed, archivedSessionIds } |
/dsh-archived/delete |
{ sessionId } |
{ ok, deleted, sessionId, path?, sizeBytes?, reason? } |
/dsh-archived/detail |
{ sessionId } |
{ id, createdAt, cwd, totalEvents, messageCount, truncated, messages } |
发布到 npm registry(可选)
包名使用自己的 scope(@muwinds/dsh-archived-sessions),与官方 @deepseek-ai/* 包区分,可以直接发布到 npm:
npm login --registry=https://registry.npmjs.org # 国内镜像只读,发布需显式带官方源
npm publish --registry=https://registry.npmjs.org
发布后用户安装:dsh plugin --profile web add @muwinds/dsh-archived-sessions(npm 安装的是预构建产物,同样无需 allowBuilds)。只走 GitHub 也可以,dsh plugin add github:MuWinds/dsh-archived-sessions 不受影响。
兼容性
- 目标 Harness 版本:
0.1.0-rc.6(web profile 组合结构)。 - 宿主端插件无第三方运行时依赖(纯 ESM,不 import 任何
@deepseek-ai/*,需要的能力全部从ctx获取);浏览器端仅依赖react(由 Harness 前端运行时提供,属于 platform seed)。
License
MIT
ruvnet/ruflo
amruthpillai/reactive-resume
volcengine/OpenViking
Molunerfinn/PicGo
titanwings/colleague-skill
nocobase/nocobase
Tencent/WeKnora