pub struct InterceptConfig {Show 19 fields
pub npm: bool,
pub pnpm: bool,
pub yarn: bool,
pub bun: bool,
pub tsc: bool,
pub eslint: bool,
pub vitest: bool,
pub jest: bool,
pub pytest: bool,
pub cargo: bool,
pub go: bool,
pub git: bool,
pub rg: bool,
pub grep: bool,
pub find: bool,
pub ls: bool,
pub tree: bool,
pub docker: bool,
pub extra: Vec<String>,
}Fields§
§npm: bool§pnpm: bool§yarn: bool§bun: bool§tsc: bool§eslint: bool§vitest: bool§jest: bool§pytest: bool§cargo: bool§go: bool§git: bool§rg: bool§grep: bool§find: bool§ls: bool§tree: bool§docker: bool§extra: Vec<String>User-added command names to intercept, e.g. extra = ["make", "terraform"].
Each gets a shim and is reduced generically (validation family: dedup,
deltas, bounded summaries, parser sniffing) with the usual guards
(watch-mode passthrough, min-token floor, agent gating).
Implementations§
Source§impl InterceptConfig
impl InterceptConfig
Sourcepub fn is_enabled(&self, shim: &str) -> bool
pub fn is_enabled(&self, shim: &str) -> bool
Whether a given shim name is enabled for interception.
Sourcepub fn is_extra(&self, shim: &str) -> bool
pub fn is_extra(&self, shim: &str) -> bool
Whether a name comes from the user’s extra list (and is not a builtin
— builtins keep their specialized classification).
Sourcepub fn enabled_shims(&self) -> Vec<String>
pub fn enabled_shims(&self) -> Vec<String>
The enabled shim names (builtins in stable order, then extras).
Trait Implementations§
Source§impl Clone for InterceptConfig
impl Clone for InterceptConfig
Source§impl Debug for InterceptConfig
impl Debug for InterceptConfig
Source§impl Default for InterceptConfig
impl Default for InterceptConfig
Source§impl<'de> Deserialize<'de> for InterceptConfigwhere
InterceptConfig: Default,
impl<'de> Deserialize<'de> for InterceptConfigwhere
InterceptConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InterceptConfig
impl RefUnwindSafe for InterceptConfig
impl Send for InterceptConfig
impl Sync for InterceptConfig
impl Unpin for InterceptConfig
impl UnsafeUnpin for InterceptConfig
impl UnwindSafe for InterceptConfig
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