yanli-nyan/dsh-recycle-bin ↗★ 1

@local/dsh-recycle-bin

Route file deletions through the Windows Recycle Bin and deny permanent shell deletes

パッケージ
@local/dsh-recycle-bin
互換性
未検証
バージョン
1.6.0
ライセンス
MIT
最終更新
2026/10/28

インストール

$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 显式留空会回落到默认值,而不是清空白名单。