Skip to main content

RepositoryViewForAI

Type Alias RepositoryViewForAI 

Source
pub type RepositoryViewForAI = RepositoryView<CommitInfoForAI>;
Expand description

Enhanced repository view for AI processing with full diff content.

Aliased Type§

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>,
}

Fields§

§versions: Option<VersionInfo>

Version information for the omni-dev tool.

§explanation: FieldExplanation

Explanation of field meanings and structure.

§working_directory: WorkingDirectoryInfo

Working directory status information.

§remotes: Vec<RemoteInfo>

List of remote repositories and their main branches.

§ai: AiInfo

AI-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 metadata and analysis.

Implementations§

Source§

impl RepositoryViewForAI

Source

pub fn from_repository_view(repo_view: RepositoryView) -> Result<Self>

Converts from basic RepositoryView by loading diff content for all commits.

Source

pub fn from_repository_view_with_options( repo_view: RepositoryView, fresh: bool, ) -> Result<Self>

Converts 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.