Aggregates per-file measurements into tree statistics.
A file counts as orphaned when no other scanned file holds a link resolving to it (inboundLinkCount === 0), so single-file scans report one orphan.
Scanned file measurements for the full scan
Aggregate statistics with a stable field order
const files = await scanMarkdownTree("./docs");const statistics = computeTreeStatistics(files);console.log(statistics); Copy
const files = await scanMarkdownTree("./docs");const statistics = computeTreeStatistics(files);console.log(statistics);
Aggregates per-file measurements into tree statistics.
A file counts as orphaned when no other scanned file holds a link resolving to it (inboundLinkCount === 0), so single-file scans report one orphan.