permissions: auto mode refuses dangerous calls (rules + cheap-model judge)
This commit is contained in:
1 parent
63b286efaf
commit
02144d4176
11 files changed
+791
-30
No files matched your search
@@ -5,6 +5,7 @@ pub mod approve;
|
||||
pub mod command;
|
||||
pub mod compact;
|
||||
pub mod context;
|
||||
pub mod danger;
|
||||
pub mod ext;
|
||||
pub mod herdr;
|
||||
pub mod hook;
|
||||
@@ -63,6 +64,8 @@ pub struct State {
|
||||
pub ask: std::sync::OnceLock<Ask>,
|
||||
/// Permission prompt for bash/write/edit; unset = everything runs.
|
||||
pub permit: std::sync::OnceLock<permit::Permit>,
|
||||
/// Auto mode's LLM check for commands the rules cannot classify; unset = ask the user.
|
||||
pub judge: std::sync::OnceLock<danger::Judge>,
|
||||
/// Rules the user allowed for good.
|
||||
pub allow: Mutex<permit::Allow>,
|
||||
/// Serializes permission prompts: parallel tool calls are asked one by one.
|
||||
|
||||
Reference in new issue
Block a user