daimingxing/dsh-session-recycle ↗★ 0

dsh-session-recycle

会话回收站:侧边栏删除会话进入回收站,可查看预览、还原或彻底删除 · Session trash for DeepSeek Harness. 适合需要防止误删会话并对历史对话进行垃圾回收管理的用户。

패키지
dsh-session-recycle
호환성
미검증
버전
0.2.0
라이선스
MIT
최근 업데이트
2026. 10. 19.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:daimingxing/dsh-session-recycle

使用须知

  • 彻底删除不可撤销。 删除前会校验日志目录;遇到未知文件会拒绝操作,避免误删。
  • 回收站状态由插件索引维护;卸载插件或丢失索引后,原位保留的会话可能重新出现。
  • 保护范围是当前 DSH 进程;清理时避免在另一个实例中同时操作相同会话。
  • 全局附件存储与 SQLite 全文索引不在清理范围;还原后的会话回到工作区列表顶部。

开发与测试

运行时代码只有 index.js 和 client.js,无 npm 依赖、无周期轮询。

本地安装:

dsh plugin --profile  add link:/绝对路径/dsh-session-recycle
node --test test/operations.test.mjs
node test/parity.test.mjs

operations 使用临时会话数据,通过插件 HTTP 入口验证删除、还原、彻底删除和并发保护;parity 抽样本机 DSH 日志,验证目录编码、文件白名单与多帧解压。

打包(在项目根目录执行,无需构建或安装依赖):

npm pack --dry-run
npm pack

生成 dsh-session-recycle-0.2.0.tgz。发布到 npm 时,先用 npm login 登录发布账号,再执行 npm publish --access public;发布前请先用本地包安装验证。

English · Session Recycle Bin

A recycle bin for DeepSeek Harness. Delete sessions with their subagent trees, undo within 3 seconds, preview or restore them later, and permanently delete logs when you are ready. Running sessions are protected. A ghost scan helps clean up blank sessions, orphaned subagents, and stale records.

Soft deletion leaves logs in place. Only permanent deletion removes them from disk; global attachments and the SQLite full-text index are outside its scope. Protection applies to the current DSH process. Uninstalling the plugin or losing its index may make retained sessions reappear.

Requires **DSH >= 0.2.1-rc.1,


MIT License