Documentation
¶
Overview ¶
Package repomap draws a ranked map of a repository's definitions, as Aider's repo map does, so a model can find its way in a large codebase. Go files are parsed with go/parser, other languages lexed with chroma.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type File ¶
File is a source file to map, by its slash path below the root, with the size and modification time that key its cached tags.
type Mapper ¶
type Mapper struct {
// contains filtered or unexported fields
}
Mapper keeps the tags of recently mapped directories, so a map of an unchanged tree reads no file again; safe for concurrent use.
type Request ¶
type Request struct {
Root string
Files []File
FocusFiles []string
FocusSymbols []string
Tokens int
}
Request asks for the map of Files below Root. FocusFiles (slash paths below Root) are the files the work is about: what they use ranks higher and they are left out of the map. FocusSymbols are identifiers the work names. Tokens is the map's budget, 2048 when zero.