NattoCB/dsh-safe-delete ↗★ 0

dsh-safe-delete

Intercepts `rm` commands issued by any DSH agent session (GUI, automation runs, headless bridges) at the tools guard layer and moves the targets to the macOS Trash instead of deleting them. Switchable from the web GUI under Settings → General. 适合担心智能体误删本地文件,需要安全防护的macOS用户。

パッケージ
dsh-safe-delete
互換性
未検証
バージョン
0.2.0
ライセンス
MIT
最終更新
2026/09/03

同名パッケージの別リポジトリ

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:NattoCB/dsh-safe-delete

ドキュメント

README 全文を読む ↗

Configuration

SurfaceHow
Web GUISettings → General → Safe Delete — the switch takes effect on the next bash call, no reload
HTTPGET /safe-delete/config → { "enabled": bool }; POST /safe-delete/config with { "enabled": bool }
File$DSH_HOME/storages/safe-delete.json — { "enabled": bool }

Default: enabled. A missing or corrupt state file also resolves to enabled — installing the plugin expresses the intent to have the guard, and a corrupt file never silently downgrades protection.