Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterSourceFiles ¶
FilterSourceFiles returns only source code paths, excluding assets, tests, vendored code, lock files, and docs.
func FormatTreeForLLM ¶
FormatTreeForLLM formats file paths as a compact list for LLM prompts.
Types ¶
type CodeContext ¶
type CodeContext struct {
Files []FileContent
}
CodeContext holds fetched source files and can format them for inclusion in an LLM prompt.
func (CodeContext) FormatForPrompt ¶
func (cc CodeContext) FormatForPrompt() string
FormatForPrompt returns a markdown-formatted string of all fetched files, suitable for inclusion in an LLM prompt. Returns "" if no files are present.
type FileContent ¶
FileContent holds the path and decoded content of a source file.
type Navigator ¶
type Navigator struct {
// contains filtered or unexported fields
}
Navigator identifies relevant source files for a bug report using the LLM, then fetches their contents via the GitHub Contents API.
func (*Navigator) Navigate ¶
func (n *Navigator) Navigate(ctx context.Context, installationID int64, repo, title, body, projectName string) (CodeContext, error)
Navigate fetches the repository tree, asks the LLM to identify relevant files, validates the paths, and returns a CodeContext with their contents.