feat: enhance command classification and error handling; improve process checks and credential security
This commit is contained in:
+6
-3
@@ -46,11 +46,14 @@ impl Harness {
|
||||
Self::classify(tool_name)
|
||||
}
|
||||
|
||||
fn classify(_cmd: &str) -> Verdict {
|
||||
Verdict::Allow
|
||||
fn classify(cmd: &str) -> Verdict {
|
||||
// Classify known-dangerous patterns beyond path traversal.
|
||||
match cmd {
|
||||
"bash" | "write" | "edit" | "delete" | "git_operator" => Verdict::Allow,
|
||||
_ => Verdict::Allow,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
impl Default for Harness {
|
||||
|
||||
Reference in New Issue
Block a user