dsh-session-cleanup

清理 DSH 删除会话后的残留:孤儿附件、会话投影缓存、dsh-spill 临时目录,以及 cost-meter 账本里 已不存在会话的行。宿主插件监听 api-session/removed 自动清理(去抖 800 ms,启动补扫一次), 另带预览优先的 CLI。默认 dry-run,真删只移入 DSH_HOME\trash\session-cleanup\<时间戳>\ 并写 journal.json。

插件介绍

清理 DSH 删除会话后的残留:孤儿附件、会话投影缓存、dsh-spill 临时目录,以及 cost-meter 账本里 已不存在会话的行。宿主插件监听 api-session/removed 自动清理(去抖 800 ms,启动补扫一次), 另带预览优先的 CLI。默认 dry-run,真删只移入 DSH_HOME\trash\session-cleanup\<时间戳>\ 并写 journal.json。

安装方式

通过 npm 安装

dsh plugin --profile web add dsh-session-residue-cleanup

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

从 GitHub 安装

dsh plugin --profile web add github:Donglin027/dsh-session-cleanup

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。