Skip to main content

RepositoryViewForAiFromCommits

Type Alias RepositoryViewForAiFromCommits 

Source
pub type RepositoryViewForAiFromCommits = RepositoryView<CommitInfoFromCommits>;
Expand description

Repository view used by --from-commits.

Never reads diff content from disk. Each commit carries only its metadata and the curated commit message.

Aliased Type§

pub struct RepositoryViewForAiFromCommits {
    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<CommitAnalysisFromCommits>>,
}

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<CommitInfo<CommitAnalysisFromCommits>>

List of analyzed commits with metadata and analysis.

Implementations§

Source§

impl RepositoryViewForAiFromCommits

Source

pub fn from_repository_view(repo_view: RepositoryView) -> Self

Converts a RepositoryView into the commit-message-only view.

No diff content is read; only pre-computed analysis metadata (detected_type, detected_scope) is retained alongside the commit hash, author, date, and message.

The schema-documentation FieldExplanation is stripped here: the default explanation lists diff-related field names (e.g. commits[].analysis.diff_file) that this view never carries, and the user prompt explicitly tells the AI what shape the payload has — leaving the documentation in would be misleading.