sugarxl/dsh-safety1

@suagr_xl/dsh-safety

用于 DeepSeek Harness 的安全防护插件,提供受保护路径强制执行、带撤销的回收站式安全删除、配置快照、重启前检查及审计日志功能。

AI 分析

核心用途是为 DSH 运行环境提供文件系统写入保护和配置备份。适合担心 AI 误删重要文件、破坏系统配置,需要高安全防护和操作审计的生产环境用户。

套件
@suagr_xl/dsh-safety
版本
0.1.2
授權
MIT
最近更新
2026年8月18日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:sugarxl/dsh-safety

Configuration

Configure via the bundle row in a patch layer (e.g. the profile's cordis.patch.yml):

- id: dsh-safety
  config:
    blockWriteRoots: ["C:\\extra\\protected"]
    confirmDeleteRoots: ["D:\\data"]
    snapshotExclude: ["settings.yaml", ".credentials.yaml"]
    blockWrites: true
    blockShellDestructive: true
    audit: true
    keepTrash: 200
    keepSnapshots: 10
FieldDefaultMeaning
blockWriteRootsprofile manifests/patches/lockfiles/node_modules, install dir, home patch/settingsno write/edit/delete
confirmDeleteRoots$HOME, profiles/*, .agent-presetsno delete without force (still trash-only)
snapshotExclude["settings.yaml", ".credentials.yaml"]files never copied into snapshots
blockWritestrueenable the write/edit guard
blockShellDestructivetrueenable the shell-delete guard
audittruejournal destructive tool calls
keepTrash / keepSnapshots200 / 10retention limits