pub struct AncestryAddendum { /* private fields */ }Expand description
Session-scoped tracker for CLAUDE.md files discovered on-demand by
Read/Edit/Glob hooks.
Implementations§
Source§impl AncestryAddendum
impl AncestryAddendum
Sourcepub fn new(
workspace_root: PathBuf,
walk_stop: WalkStop,
initial_loaded: impl IntoIterator<Item = PathBuf>,
) -> Self
pub fn new( workspace_root: PathBuf, walk_stop: WalkStop, initial_loaded: impl IntoIterator<Item = PathBuf>, ) -> Self
Build an addendum tracker primed with initial_loaded — the set of
CLAUDE.md files already loaded by the startup walk. Future
on_path_touched calls dedupe against this set.
Sourcepub fn on_path_touched(&self, path: &Path) -> Option<Vec<TierFile>>
pub fn on_path_touched(&self, path: &Path) -> Option<Vec<TierFile>>
Notification entrypoint: the model touched path (via Read / Edit /
Glob). Returns any newly discovered CLAUDE.md / AGENTS.md /
.caliban.md files in path’s ancestry, between the workspace root
(inclusive) and path’s parent (inclusive). Already-loaded files are
elided.
Returns None when nothing new was discovered.
§Panics
Panics only if the internal Mutex is poisoned (another thread
panicked while holding the lock).
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AncestryAddendum
impl RefUnwindSafe for AncestryAddendum
impl Send for AncestryAddendum
impl Sync for AncestryAddendum
impl Unpin for AncestryAddendum
impl UnsafeUnpin for AncestryAddendum
impl UnwindSafe for AncestryAddendum
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