Versions in this module Expand all Collapse all v0 v0.0.13 Nov 18, 2026 v0.0.12 Oct 17, 2026 v0.0.11 Sep 24, 2026 Changes in this version + const IndexDir + const KindBody + const KindFrontmatter + const KindIndexLine + const LedgerFile + const MarkerIndex + const MarkerMove + const OpEdit + const OpMove + const OpRestore + const TriageKept + const TriageQuarantined + var ErrLocked = errors.New("refs: file is locked (locked: true); not quarantined") + var RemovableKeys = []string + func LedgerPath(topicRoot string) string + type LedgerEntry struct + After string + Before string + File string + HashAfter string + HashBefore string + Line int + LineOrKey string + Op string + Original string + QuarantineID string + Reason string + Time string + func LoadLedger(topicRoot string) ([]LedgerEntry, error) + type Options struct + ID string + Now func() time.Time + Path string + Reason string + State *corpus.StateStore + TopicRoot string + VaultPath string + Writer *corpus.Writer + type Quarantined struct + Edits int + ID string + Original string + Path string + Reason string + Time string + func List(topicRoot string) ([]Quarantined, error) + type Ref struct + File string + Key string + Kind string + Line int + Text string + func Scan(vaultPath, topicRoot, target string) ([]Ref, error) + type RestoreResult struct + ID string + Manual []LedgerEntry + Path string + Restored []LedgerEntry + func Restore(ctx context.Context, opts Options) (RestoreResult, error) + type Result struct + BodyRefs []Ref + ID string + NewPath string + Removed []LedgerEntry + SkippedUserKeys []string + Unremoved []Ref + func Quarantine(ctx context.Context, opts Options) (Result, error)