yanli-nyan/dsh-recycle-bin ↗★ 1
@local/dsh-recycle-bin
Route file deletions through the Windows Recycle Bin and deny permanent shell deletes
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yanli-nyan/dsh-recycle-binドキュメント
README 全文を読む ↗配置
在 profile 的 cordis.patch.yml 中覆盖,不需修改本包:
- id: recycle-bin
config:
mode: enforce # off:只提供 trash,不做拦截
enforceOnTerminal: true # 拦 terminal_send(持久终端绕过 pwsh)
enforceOnCode: true # 拦 run_code 的 Node fs 删除
enforceScriptFiles: true # 读命令行里点名的脚本文件内容再判断
listTool: true # 注册 trash_list
restoreTool: true # 注册 trash_restore
allowPaths: # 构建产物可直接删除,不打扰
- .dsh/tmp
- node_modules
allowPaths 显式留空会回落到默认值,而不是清空白名单。