Documentation
¶
Index ¶
- func AppendSymbols(wikiDir string, g ModuleGraph) error
- func AppendTypes(wikiDir string, g ModuleGraph) error
- func DeleteModuleGraph(indexDir, wikiDir, modulePath string) error
- func FileHash(path string) (string, error)
- func LangForExt(ext string) string
- func ModuleCacheKey(modulePath string, fileHashes map[string]string) string
- func ModuleHashes(repoRoot string, files []string) (map[string]string, error)
- func ResetAggregates(wikiDir string) error
- func SaveEdges(indexDir string, graphs []ModuleGraph) error
- func SaveMeta(indexDir string, m *Meta) error
- func SaveModuleGraph(indexDir string, g ModuleGraph) error
- func Slug(path string) string
- func WriteIndex(wikiDir string, graphs []ModuleGraph) error
- func WriteModule(wikiDir string, g ModuleGraph) error
- type Edges
- type LLMCache
- type Meta
- type Module
- type ModuleGraph
- type ModuleMeta
- type StructuralData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendSymbols ¶
func AppendSymbols(wikiDir string, g ModuleGraph) error
func AppendTypes ¶
func AppendTypes(wikiDir string, g ModuleGraph) error
func DeleteModuleGraph ¶
DeleteModuleGraph removes the stored JSON and wiki markdown for a module. No-op if files do not exist.
func LangForExt ¶
LangForExt returns the language name for a file extension, or "" if unknown.
func ModuleCacheKey ¶
ModuleCacheKey returns a deterministic cache key for a module. It is derived from the module path and the sorted concatenation of file content hashes, so any file change produces a different key.
func ResetAggregates ¶
func SaveEdges ¶
func SaveEdges(indexDir string, graphs []ModuleGraph) error
func SaveModuleGraph ¶
func SaveModuleGraph(indexDir string, g ModuleGraph) error
func WriteIndex ¶
func WriteIndex(wikiDir string, graphs []ModuleGraph) error
func WriteModule ¶
func WriteModule(wikiDir string, g ModuleGraph) error
Types ¶
type LLMCache ¶
type LLMCache struct {
// contains filtered or unexported fields
}
LLMCache is an in-memory LLM response cache backed by a JSON file.
func LoadLLMCache ¶
LoadLLMCache loads the cache from path. Returns an empty cache if the file does not exist.
type Meta ¶
type Meta struct {
BaseCommit string `json:"base_commit"`
Modules map[string]ModuleMeta `json:"modules"`
}
type ModuleGraph ¶
type ModuleGraph struct {
Module string
Summary string
ExportFns []string
ExportTypes []string
Imports []string
Subsystem string
}
func LoadAllModuleGraphs ¶
func LoadAllModuleGraphs(indexDir string) ([]ModuleGraph, error)
func Parse ¶
func Parse(output string) ModuleGraph
Parse extracts Summary and Subsystem from LLM output. Structural fields (Imports, ExportFns, ExportTypes) must be set by the caller from tree-sitter results.
type ModuleMeta ¶
type StructuralData ¶
StructuralData holds the tree-sitter-extracted structural information for a source file.