Documentation
¶
Overview ¶
Package query answers questions against a built graph.json without rebuilding: find nodes by name, explain a node and its neighbours, and find the shortest dependency path between two nodes. These back the CLI commands the Claude skill uses instead of grepping the source tree.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Explanation ¶
Explanation is a node plus its grouped neighbours.
type Graph ¶
type Graph struct {
Nodes []Node `json:"nodes"`
Links []Link `json:"links"`
// contains filtered or unexported fields
}
Graph is a loaded graph.json.
type Link ¶
type Link struct {
Source string `json:"source"`
Target string `json:"target"`
Relation string `json:"relation"`
Confidence string `json:"confidence"`
}
Link mirrors a graph.json edge.
type Neighbor ¶
type Neighbor struct {
ID, Label, Relation, Direction, Location string
}
Neighbor is an adjacent node in a given direction.
type Node ¶
type Node struct {
ID string `json:"id"`
Label string `json:"label"`
FileType string `json:"file_type"`
SourceFile string `json:"source_file"`
SourceLocation string `json:"source_location"`
Community *int `json:"community"`
NormLabel string `json:"norm_label"`
}
Node mirrors a graph.json node.
Click to show internal directories.
Click to hide internal directories.