pub struct RepositoryView {
pub versions: Option<VersionInfo>,
pub explanation: FieldExplanation,
pub working_directory: WorkingDirectoryInfo,
pub remotes: Vec<RemoteInfo>,
pub ai: AiInfo,
pub branch_info: Option<BranchInfo>,
pub pr_template: Option<String>,
pub pr_template_location: Option<String>,
pub branch_prs: Option<Vec<PullRequest>>,
pub commits: Vec<CommitInfo>,
}Expand description
Complete repository view output structure.
Fields§
§versions: Option<VersionInfo>Version information for the omni-dev tool.
explanation: FieldExplanationExplanation of field meanings and structure.
working_directory: WorkingDirectoryInfoWorking directory status information.
remotes: Vec<RemoteInfo>List of remote repositories and their main branches.
ai: AiInfoAI-related information.
branch_info: Option<BranchInfo>Branch information (only present when using branch commands).
pr_template: Option<String>Pull request template content (only present in branch commands when template exists).
pr_template_location: Option<String>Location of the pull request template file (only present when pr_template exists).
branch_prs: Option<Vec<PullRequest>>Pull requests created from the current branch (only present in branch commands).
commits: Vec<CommitInfo>List of analyzed commits with metadata and analysis.
Implementations§
Source§impl RepositoryView
impl RepositoryView
Sourcepub fn update_field_presence(&mut self)
pub fn update_field_presence(&mut self)
Updates the present field for all field documentation entries based on actual data.
Sourcepub fn single_commit_view(&self, commit: &CommitInfo) -> Self
pub fn single_commit_view(&self, commit: &CommitInfo) -> Self
Creates a minimal view containing a single commit for parallel dispatch.
Strips metadata not relevant to per-commit AI analysis (versions,
working directory status, remotes, PR templates) to reduce prompt size.
Only retains branch_info (for scope context) and the single commit.
Trait Implementations§
Source§impl Clone for RepositoryView
impl Clone for RepositoryView
Source§fn clone(&self) -> RepositoryView
fn clone(&self) -> RepositoryView
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more