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

@pi-cordis/plugin-safety-gate

High-risk command and protected path safety gate plugin for Pi-Cordis 适合担心误删或误改敏感文件的用户;可自定义危险命令与白名单。

패키지
@pi-cordis/plugin-safety-gate
호환성
미검증
Cordis peer 범위
^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.