pub struct DestructiveVerifierConfig {
pub enabled: bool,
pub allowed_paths: Vec<String>,
pub extra_patterns: Vec<String>,
pub shell_tools: Vec<String>,
}Expand description
Configuration for the destructive command verifier.
allowed_paths: when empty (the default), ALL destructive commands are denied.
This is a conservative default: to allow e.g. rm -rf /tmp/build you must
explicitly add /tmp/build to allowed_paths.
shell_tools: the set of tool names considered shell executors. Defaults to
["bash", "shell", "terminal"]. Add custom names here if your setup registers
shell tools under different names (e.g., via MCP or ACP integrations).
Fields§
§enabled: bool§allowed_paths: Vec<String>Explicit path prefixes under which destructive commands are permitted. Empty = deny-all destructive commands (safest default).
extra_patterns: Vec<String>Additional command patterns to treat as destructive (substring match).
shell_tools: Vec<String>Tool names to treat as shell executors (case-insensitive).
Default: ["bash", "shell", "terminal"].
Trait Implementations§
Source§impl Clone for DestructiveVerifierConfig
impl Clone for DestructiveVerifierConfig
Source§fn clone(&self) -> DestructiveVerifierConfig
fn clone(&self) -> DestructiveVerifierConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more