collector

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2026 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectCommits

func CollectCommits(
	repoPath string,
	opts models.CollectOptions,
) ([]models.CommitSummary, string, string, error)

func CollectFileCommits

func CollectFileCommits(repoPath, filePath string, maxCommits, fullDiffCommits int, includeDiff bool) ([]models.CommitSummary, error)

CollectFileCommits returns the commit history for a specific file path. Commits are ordered oldest-first to support the "why" narrative. Only the newest fullDiffCommits commits keep their diffs; older ones are reduced to messages to bound prompt size (0 = keep all diffs).

func CollectRepo

func CollectRepo(
	path string,
	opts models.CollectOptions,
) (models.RepoData, error)

func NormalizeRepoRelativePath added in v0.3.0

func NormalizeRepoRelativePath(repoPath, filePath string) (string, error)

NormalizeRepoRelativePath converts a user-supplied file path into the slash separated form expected by Git and rejects paths outside repoPath.

func ParseGoals

func ParseGoals() (models.GoalsData, error)

func PlanFiles

func PlanFiles() []string

PlanFiles returns the list of plan file names scanned for each repo. It is the single source of truth for plan-file discovery.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL