rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:ASALULU/dsh-conversation-trash
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
可撤销的对话删除 — DeepSeek Harness 只提供归档,不提供删除。这个插件把会话日志、列表投影缓存与工作区归属移入一个 30 天回收站:删错了可以撤销,彻底不要了再永久清除。
Reversible conversation deletion for DeepSeek Harness. DSH archives, but never deletes. This plugin moves a Session's log, list-projection cache and workspace membership into a 30-day trash, with one-click undo, restore and permanent purge.
在 DSH 里打开 Plugins → Add plugin,填 dsh-conversation-trash;或使用 CLI:
dsh plugin --profile web add dsh-conversation-trash
安装后重启 DSH(宿主半在启动时加载)。桌面端请用应用内的 Plugins 页面安装;profile 名按你的实际配置替换。
要求:DSH >= 0.2.2-rc.1 < 0.3.0,Node >= 22.15.0。
| 对象 | 处理 |
|---|---|
<DSH_HOME>/sessions/<项目目录>/<session-id>/ |
移入回收站;失败时原样不动 |
<DSH_HOME>/storages/session_projcache/sessions/<session-id>.json |
尽力移入;移不动就留在原处,不影响删除 |
workspace.json 的成员 / 置顶 / 归档记录 |
通过 Workspace registry 解除 |
<DSH_HOME>/attachments/** |
不动(内容寻址、跨会话共享) |
| 子代理会话 | 不动(独立的 session 目录) |
| 搜索索引 | 不动;派生索引按源日志自动对账 |
回收站位置:<DSH_HOME>/plugin-data/session-delete/trash/<时间戳>--<session-id>--<随机后缀>/,内含 manifest.json、log/、projection.json。
resolve + 根目录包含检查(assertInside);sessionId 先校验格式再触碰文件系统;回收站条目名只允许 [0-9A-Za-z_.-]。ctx.connection.fetch.register 注册;DSH 的 exact fetch route 对非 owner Peer 返回 403,Web 载体的 Host/Origin 校验在 handler 之前完成。请求体另有 64 KiB 上限。live,提示重启 DSH 后再删。projection: "left",绝不因为缓存失败去清空回收站。mkdir 占位;同一会话的并发删除,后到请求返回 duplicate。DSH_HOME 的路径;原位置已有同名目录时返回 conflict,不覆盖。| DeepSeek Harness | 状态 |
|---|---|
0.2.2-rc.1 |
本机 Desktop / Web GUI 实测通过 |
其它 0.2.x |
未逐版本验证;engines.dsh 已限定 < 0.3.0 |
插件依赖 DSH 的磁盘布局(sessions/<project>/<id>、session_projcache)与 workspace/session-activity、workspace/session-stop 两个事件。DSH 大版本升级后若布局变化,删除会返回诊断而不是静默破坏;升级前请先在测试 profile 验证。
单一路由 POST /api/session-delete,body 带 action:
| action | 参数 | 作用 |
|---|---|---|
delete |
sessionId / title? / stopActivity? |
移入回收站 |
restore |
trashId |
放回原位并尝试重新挂回工作区 |
list-trash |
— | 列出回收站 |
purge |
trashId |
彻底删除一条 |
purge-all |
— | 清空回收站 |
delete 失败码:live(需重启)、duplicate(正在删除)、busy(仍在工作)、gone(已不存在)、file-busy(被占用)。restore 可能返回 conflict / outside-home;成功时 reattached: false 表示没能挂回原工作区。
live 拒绝;冷启动后它不在列表里,也不需要删。workspace.json 没有跨进程写锁,删除期间不要在另一个 DSH 进程里操作同一工作区。node test/host.test.mjs # 假 home + 假 ctx:移动、拒绝 live、并发、恢复、冲突、缓存失败
node test/client.test.mjs # 槽位注册、对话框、RPC 载荷、撤销
无构建步骤:index.js 是宿主 ESM,client.js 是 Module Loader 客户端包。
Reversible conversation deletion for DeepSeek Harness. Adds a delete entry to the session row (hover button + “…” menu), moves the log and projection cache into a 30-day trash, and exposes a trash page under Plugins → Conversation Trash with restore and permanent purge.
dsh plugin --profile web add dsh-conversation-trash
Safety: no shell, no network, no eval; every path is root-checked; the HTTP route is owner-only through DSH’s exact fetch routes; live Sessions are refused (restart DSH, then delete); the log moves first and a cache failure never clears the trash; concurrent deletes are serialized per Session.
Requires DSH >= 0.2.2-rc.1 < 0.3.0 and Node >= 22.15.0. Attachments and subagent sessions are not deleted. MIT licensed.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek。