discovery

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

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