civaapple-alt/pi-cordis--packages-plugins-safety-gate ↗★ 0

@pi-cordis/plugin-safety-gate

拦截高风险命令并保护敏感路径,可开启只读模式限制写入。 适合担心误删或误改敏感文件的用户;可自定义危险命令与白名单。

套件
@pi-cordis/plugin-safety-gate
相容性
待驗證
Cordis 依賴範圍
^4.0.1
版本
0.1.0
最近更新
2026年8月21日

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗

Configuration

  • readOnly (boolean, default: false): Disallows any write, edit, patch, or apply_patch tool calls.
  • protectedPaths (string[], optional): File paths and extensions protected against modification (defaults: [".env", ".env.", ".git/", "id_rsa", "id_ed25519", ".pem", ".key", "node_modules/", ".ssh/"]).
  • dangerousCommands (string[], optional): Additional custom command patterns to block in bash.
  • allowedCommands (string[], optional): Exact command strings that bypass pattern checks. Suffixes and compound commands do not inherit the exception.