pub struct RepoModeler;Expand description
Scans a repository root and builds a RepoModel.
Implementations§
Source§impl RepoModeler
impl RepoModeler
Sourcepub fn scan(root: &Path) -> Result<RepoModel, ContextError>
pub fn scan(root: &Path) -> Result<RepoModel, ContextError>
Scans the repository root using Ferrify’s structural-first read order.
The scan prefers root manifests, toolchain files, CI entry points, and repository policy before it expands into crate-specific source files. That ordering keeps planning grounded in the repo’s declared structure.
§Errors
Returns ContextError when a required manifest cannot be read or
parsed, when repository-relative paths cannot be normalized into
RepoPath, or when the filesystem cannot be traversed.
§Examples
use agent_context::RepoModeler;
use std::path::Path;
let repo_model = RepoModeler::scan(Path::new("."))?;
println!("discovered {} crate(s)", repo_model.crates.len());Trait Implementations§
Source§impl Debug for RepoModeler
impl Debug for RepoModeler
Source§impl Default for RepoModeler
impl Default for RepoModeler
Source§fn default() -> RepoModeler
fn default() -> RepoModeler
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RepoModeler
impl RefUnwindSafe for RepoModeler
impl Send for RepoModeler
impl Sync for RepoModeler
impl Unpin for RepoModeler
impl UnsafeUnpin for RepoModeler
impl UnwindSafe for RepoModeler
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