types/guardrails
Guardrail types — used by guardrail behaviour and tool plugins.
Types
pub type ApprovalScope {
Once
Session
Always
}
Constructors
-
Once -
Session -
Always
pub type GuardrailResult {
Allowed
Blocked(reason: String)
NeedsApproval(reason: String, command: String)
}
Constructors
-
Allowed -
Blocked(reason: String) -
NeedsApproval(reason: String, command: String)