Donglin027/dsh-session-cleanup ↗★ 1
dsh-session-residue-cleanup
Purges the residue of permanently deleted DSH sessions: orphan attachments, projection cache, spill directories and cost-meter shards.
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add https://github.com/Donglin027/dsh-session-cleanup/releases/latest/download/dsh-session-residue-cleanup.tgzドキュメント
README 全文を読む ↗快速使用
:: 1. 预览(默认,不动任何文件)
node projects\ds-session-cleanup\bin\sweep.js
:: 2. 真删:移到 DSH_HOME\trash\session-cleanup\\,可回滚
node projects\ds-session-cleanup\bin\sweep.js --apply
:: 3. 连成本账本/明细一起清(会先备份再改写 JSON)
node projects\ds-session-cleanup\bin\sweep.js --apply --include-ledger
:: 4. 机器可读
node projects\ds-session-cleanup\bin\sweep.js --json
DSH_HOME 取环境变量 DSH_HOME,未设则用 ~/.dsh(Windows 为 %USERPROFILE%\.dsh)。