pub struct ClaudeCode {
pub projects_dir: PathBuf,
}Fields§
§projects_dir: PathBufImplementations§
Source§impl ClaudeCode
impl ClaudeCode
Sourcepub fn excerpts_indexed(
&self,
repo_path: &Path,
branch: &str,
window: (DateTime<Utc>, DateTime<Utc>),
max_sessions: usize,
max_kb: u64,
index: Option<&Index>,
) -> Result<Vec<SessionExcerpt>>
pub fn excerpts_indexed( &self, repo_path: &Path, branch: &str, window: (DateTime<Utc>, DateTime<Utc>), max_sessions: usize, max_kb: u64, index: Option<&Index>, ) -> Result<Vec<SessionExcerpt>>
Core excerpt logic, optionally accelerated by an FTS index.
None index = in-memory path (reads bounded tail for every candidate).
Some(index) = FTS path (uses session_mentions for the mention probe;
still reads the bounded tail for the final selected sessions).
§Errors
Returns an error if the project directory cannot be read.
Trait Implementations§
Source§impl SessionSource for ClaudeCode
impl SessionSource for ClaudeCode
Source§fn excerpts(
&self,
repo_path: &Path,
branch: &str,
window: (DateTime<Utc>, DateTime<Utc>),
max_sessions: usize,
max_kb: u64,
) -> Result<Vec<SessionExcerpt>>
fn excerpts( &self, repo_path: &Path, branch: &str, window: (DateTime<Utc>, DateTime<Utc>), max_sessions: usize, max_kb: u64, ) -> Result<Vec<SessionExcerpt>>
Excerpts of the sessions most relevant to the branch.
Delegates to ClaudeCode::excerpts_indexed with no index (in-memory path).
§Errors
Returns an error if the project directory cannot be read.
Auto Trait Implementations§
impl Freeze for ClaudeCode
impl RefUnwindSafe for ClaudeCode
impl Send for ClaudeCode
impl Sync for ClaudeCode
impl Unpin for ClaudeCode
impl UnsafeUnpin for ClaudeCode
impl UnwindSafe for ClaudeCode
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