pub struct LayeredInstructions {
pub global: Option<InstructionFile>,
pub project: Option<InstructionFile>,
pub user: Option<InstructionFile>,
}Fields§
§global: Option<InstructionFile>§project: Option<InstructionFile>§user: Option<InstructionFile>Implementations§
Source§impl LayeredInstructions
impl LayeredInstructions
Sourcepub fn load(project_root: &Path) -> Self
pub fn load(project_root: &Path) -> Self
Load all three instruction tiers from disk.
- Global:
~/.atomcode/ATOMCODE.md - Project:
<project_root>/.atomcode.md,ATOMCODE.md,CLAUDE.md, orclaude.md(first match wins, in that order) - User:
<project_root>/.atomcode.user.md
Sourcepub fn merged(&self) -> String
pub fn merged(&self) -> String
Merge all levels into prompt text. Low priority first, high last (recency effect: user > project > global).
Sourcepub fn status_lines(&self) -> Vec<(InstructionLevel, Option<&Path>)>
pub fn status_lines(&self) -> Vec<(InstructionLevel, Option<&Path>)>
Return status for all three levels (loaded path or None).
pub fn has_any(&self) -> bool
Auto Trait Implementations§
impl Freeze for LayeredInstructions
impl RefUnwindSafe for LayeredInstructions
impl Send for LayeredInstructions
impl Sync for LayeredInstructions
impl Unpin for LayeredInstructions
impl UnsafeUnpin for LayeredInstructions
impl UnwindSafe for LayeredInstructions
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more