Documentation
¶
Index ¶
Constants ¶
View Source
const MaxFileSize = 8000
MaxFileSize is the maximum size in bytes for a single practice file.
View Source
const MaxPracticesSize = 15000
MaxPracticesSize is the maximum size in bytes for combined practices content. This prevents overwhelming the LLM context window.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RepoPractices ¶
type RepoPractices struct {
// Sources maps source file paths to their content
Sources map[string]string
// Combined is the formatted content ready to inject into prompts
Combined string
}
RepoPractices holds discovered repository practices and guidelines
func Discover ¶
func Discover(repoPath string) (*RepoPractices, error)
Discover scans a repository for practices and guidelines files. It returns a RepoPractices struct with all discovered content.
func (*RepoPractices) HasPractices ¶
func (p *RepoPractices) HasPractices() bool
HasPractices returns true if any practices were discovered
func (*RepoPractices) Summary ¶
func (p *RepoPractices) Summary() string
Summary returns a brief summary of discovered practices
Click to show internal directories.
Click to hide internal directories.