pub struct RepositoryViewForAI {
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<CommitInfoForAI>,
}Expand description
Enhanced repository view for AI processing with full diff content
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<CommitInfoForAI>List of analyzed commits with enhanced metadata including full diff content
Implementations§
Source§impl RepositoryViewForAI
impl RepositoryViewForAI
Sourcepub fn from_repository_view(repo_view: RepositoryView) -> Result<Self>
pub fn from_repository_view(repo_view: RepositoryView) -> Result<Self>
Convert from basic RepositoryView by loading diff content for all commits
Sourcepub fn from_repository_view_with_options(
repo_view: RepositoryView,
fresh: bool,
) -> Result<Self>
pub fn from_repository_view_with_options( repo_view: RepositoryView, fresh: bool, ) -> Result<Self>
Convert from basic RepositoryView with options
If fresh is true, clears original commit messages to force AI to generate
new messages based solely on the diff content.
Trait Implementations§
Source§impl Clone for RepositoryViewForAI
impl Clone for RepositoryViewForAI
Source§fn clone(&self) -> RepositoryViewForAI
fn clone(&self) -> RepositoryViewForAI
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more