2026-07-21 06:24:20 +07:00
|
|
|
//! Subagent domain models.
|
|
|
|
|
|
|
|
|
|
/// Access tier for subagent tool permissions.
|
|
|
|
|
///
|
|
|
|
|
/// Tiers are cumulative: `Write` includes everything in `Read`, and `Full`
|
|
|
|
|
/// includes everything in `Write`.
|
|
|
|
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
|
|
|
|
pub enum AccessTier {
|
|
|
|
|
/// Read-only: search, read, glob, utility tools (no mutations).
|
|
|
|
|
Read,
|
|
|
|
|
/// Read + Write: above plus write, edit, delete, git, memory.
|
|
|
|
|
Write,
|
2026-08-27 22:38:07 +07:00
|
|
|
/// Full: above plus bash, shell, workflow, plan tools.
|
2026-07-21 06:24:20 +07:00
|
|
|
Full,
|
|
|
|
|
}
|