Skip to main content

ScopedProjectContextProvider

Trait ScopedProjectContextProvider 

Source
pub trait ScopedProjectContextProvider: Send + Sync {
    // Required methods
    fn select(
        &self,
        targets: &[PathBuf],
    ) -> Result<Option<String>, ScopedProjectContextError>;
    fn fork_session(&self) -> Arc<dyn ScopedProjectContextProvider> ;
}
Expand description

Stateful session boundary for discovering project instructions that apply to concrete structured tool targets.

Required Methods§

Source

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>

Starts independent delivery bookkeeping for a child agent while retaining the same initial project snapshot authority.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§