pub enum Tier {
Safe,
Standard,
Critical,
}Expand description
Safety tier for CLI commands.
Determines the risk level of a command and whether it requires human approval when executed by AI agents.
Variants§
Safe
Safe operations (read-only, information gathering). Examples: status, list, version, help Agent permission: Always allow
Standard
Standard operations (idempotent or reversible). Examples: fmt, build, test, lint Agent permission: Auto-approve
Critical
Critical operations (destructive, deployment, authentication). Examples: deploy, publish, delete, drop-database Agent permission: Require human confirmation
Implementations§
Trait Implementations§
impl Copy for Tier
impl Eq for Tier
impl StructuralPartialEq for Tier
Auto Trait Implementations§
impl Freeze for Tier
impl RefUnwindSafe for Tier
impl Send for Tier
impl Sync for Tier
impl Unpin for Tier
impl UnwindSafe for Tier
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more