pub struct Probe<'a> {
pub env: &'a dyn Fn(&str) -> Option<String>,
pub home: Option<PathBuf>,
pub project_dir: PathBuf,
pub managed_claude_settings: Vec<PathBuf>,
pub transcript_path: Option<PathBuf>,
pub codex_system_config: Vec<PathBuf>,
pub codex_managed_config: Vec<PathBuf>,
}Expand description
Everything detection may look at.
Fields§
§env: &'a dyn Fn(&str) -> Option<String>Environment lookup (the hook process’s environment in production).
home: Option<PathBuf>The user’s home directory.
project_dir: PathBufDirectory the agent was started in (project-level settings live here).
managed_claude_settings: Vec<PathBuf>Administrator-managed Claude Code settings files, highest precedence.
transcript_path: Option<PathBuf>The session transcript (Codex: the rollout), if the hook named one.
codex_system_config: Vec<PathBuf>Codex’s machine-wide config layers outside $CODEX_HOME, in Codex’s
precedence: system sits below the user config, managed above it.
codex_managed_config: Vec<PathBuf>Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Probe<'a>
impl<'a> !Send for Probe<'a>
impl<'a> !Sync for Probe<'a>
impl<'a> !UnwindSafe for Probe<'a>
impl<'a> Freeze for Probe<'a>
impl<'a> Unpin for Probe<'a>
impl<'a> UnsafeUnpin for Probe<'a>
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