pub struct SessionProjectContext { /* private fields */ }Expand description
Per-agent-session delivery state for nested project instructions.
Initial sources are seeded from the host’s system-context snapshot. Later target directories are evaluated once and newly selected sources are returned as stable system-message deltas.
Implementations§
Source§impl SessionProjectContext
impl SessionProjectContext
pub fn new( workspace: PathBuf, initial_sources: impl IntoIterator<Item = PathBuf>, ) -> Self
Trait Implementations§
Source§impl ScopedProjectContextProvider for SessionProjectContext
impl ScopedProjectContextProvider for SessionProjectContext
Source§fn select(
&self,
targets: &[PathBuf],
) -> Result<Option<String>, ScopedProjectContextError>
fn select( &self, targets: &[PathBuf], ) -> Result<Option<String>, ScopedProjectContextError>
Returns only a newly discovered system-context delta. Implementations
own delivered-source bookkeeping so a session does not replay rules.
Source§fn fork_session(&self) -> Arc<dyn ScopedProjectContextProvider> ⓘ
fn fork_session(&self) -> Arc<dyn ScopedProjectContextProvider> ⓘ
Starts independent delivery bookkeeping for a child agent while
retaining the same initial project snapshot authority.
Auto Trait Implementations§
impl !Freeze for SessionProjectContext
impl RefUnwindSafe for SessionProjectContext
impl Send for SessionProjectContext
impl Sync for SessionProjectContext
impl Unpin for SessionProjectContext
impl UnsafeUnpin for SessionProjectContext
impl UnwindSafe for SessionProjectContext
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