Documentation
¶
Overview ¶
Package report writes human- and agent-readable dry-run artifacts from a graph store.
Index ¶
Constants ¶
const SchemaVersion = 1
SchemaVersion is the version of manifest.json / graph.json shapes.
Variables ¶
This section is empty.
Functions ¶
func CopyArtifacts ¶
CopyArtifacts copies the standard report files from srcDir into dstDir.
func NewRunID ¶
func NewRunID() string
NewRunID returns a unique run folder name: UTC timestamp with milliseconds plus a short random suffix so back-to-back runs in the same second do not collide.
func NormalizeImportTarget ¶
NormalizeImportTarget groups import specs for ranking using the importer's language. Relative specs are resolved against the importing file directory. Go keeps full package paths; JS/TS apply npm scoped/subpath rules; Python keeps dotted modules as-is. Unknown languages are conservative (no npm truncation).
Types ¶
type Hub ¶
Hub is a ranked graph node for human navigation sections.
func ImportantFiles ¶
ImportantFiles ranks file nodes by imports/calls activity attributed to them. Parsers attach imports to modules/packages and calls to functions/methods, so those edges are rolled up to the owning file via Path / contains ownership. Unresolved KindSymbol / KindImport targets never receive To-side credit.
func ImportantSymbols ¶
ImportantSymbols ranks resolved symbols (functions, methods, types, contracts) by undirected degree over calls / implements / consumes. Unresolved kind=symbol nodes and container kinds are excluded.
func TopImports ¶
TopImports ranks external/local dependency specs by how many distinct files import them. Per-file import nodes (import:path#spec) are grouped by a normalized target: package names stay as-is, relative specs are resolved against the importing file directory.