Documentation
¶
Overview ¶
Package repomap scans a workspace into a compact, deterministic repository map.
Index ¶
Constants ¶
View Source
const ( DefaultMaxFiles = workspaceindex.DefaultMaxFiles DefaultMaxDepth = workspaceindex.DefaultMaxDepth )
View Source
const ( MatchReasonExactBasename = "exact-basename" MatchReasonPrefixBasename = "prefix-basename" MatchReasonPathSegment = "path-segment" MatchReasonSubstring = "substring" MatchReasonFuzzy = "fuzzy" MatchReasonMultiTerm = "multi-term" )
Variables ¶
This section is empty.
Functions ¶
func RenderPrompt ¶
RenderPrompt renders a compact, deterministic repository map without exceeding budget bytes. For very small budgets it returns an empty string.
Types ¶
type RepoMap ¶
type RepoMap = Snapshot
RepoMap is kept as a semantic alias for call sites/tests that use the product term instead of the storage term.
type SearchResult ¶
type Snapshot ¶
type Snapshot struct {
Root string `json:"root"`
Files []File `json:"files"`
FileCount int `json:"fileCount"`
DirectoryCount int `json:"directoryCount"`
MaxDepth int `json:"maxDepth"`
LanguageCounts []Count `json:"languages"`
ExtensionCounts []Count `json:"extensions"`
ImportantFiles []string `json:"importantFiles"`
Tree []string `json:"tree"`
Truncated bool `json:"truncated,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.