ocelot-D/dsh-delete-archived-session ↗★ 1
dsh-delete-archived-session
List and delete archived DeepSeek Harness sessions: move a session's log to a trash folder (reversible) or purge it, behind explicit confirmation and per-log ownership proof. 适合需要清理历史会话,且要求支持回收站防误删功能的用户。
Other repositories with this package name
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ocelot-D/dsh-delete-archived-sessionREADME
Read the full README ↗配置
插件不导入 Node 标准库以外的任何东西——它注册的是朴素的工具/命令描述对象,也不接受 schemastery 的 Config。这样做是为了不管 profile 怎么提升 DSH 自身的依赖,它都能挂载成功。
配置因此走环境变量:
| 环境变量 | 默认值 | 含义 |
|---|---|---|
DSH_DELETE_ARCHIVED_SESSIONS_ROOT | $DSH_HOME/sessions | 要操作的会话根目录 |
DSH_DELETE_ARCHIVED_SESSIONS_TRASH | /../.deleted-sessions | 删除时移入的回收站 |
DSH_DELETE_ARCHIVED_SESSIONS_PERMANENT | 不设(允许永久删除) | 设为 0、false 或 no 则禁止永久删除,强制走可恢复路径 |
$DSH_HOME 的读取方式和 DSH 本身一致:先看 $DSH_HOME,没有就用 ~/.dsh。