Documentation
¶
Overview ¶
Package snapshot canonicalizes, hashes, compares, saves, and loads snapshots
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Canonical ¶
Canonical returns JSON with tools, prompts, resources, templates, warnings, and map keys sorted. Ordering inside other slices remains significant, so this is deterministic only for the fields normalized by sortedCopy and encoding/json.
func CapabilityCoverage ¶
CapabilityCoverage converts snapshot truncation into coverage. Known missing counts balance as skips; unknown counts and scanner limits remain gaps. The caller supplies CapabilitiesAnalyzed. An unknown shortfall deliberately leaves the arithmetic unbalanced so a snapshot of uncertain completeness cannot support a clean verdict.
func FoldCapabilityCoverage ¶
FoldCapabilityCoverage merges what the snapshot knows about its own truncation into an analyzer's own coverage record, the way source.FoldWalkCoverage does for a file walk. It raises discovered and skipped counts without overwriting what the analyzer actually examined.
Types ¶
This section is empty.