skills/wiki-generator/src/state
Module summary
Module skills/wiki-generator/src/state
Exports
| Name | Kind | Default |
|---|---|---|
prune | function | no |
Detail
prune
async prune(opts)Prune stale entries from file-hashes.json and issue-entries.json.
Two-pass policy:
- Files whose repo-relative path is no longer in
presentFilesget amissingSincetimestamp; once that timestamp is older thanttlDaysthe entry is moved to a monthly archive and removed from the active file. Files that come back clear theirmissingSinceimmediately. - Issue numbers whose
issueChecker(n)returns false (404) follow the same lifecycle. IfissueCheckerthrows, the entry is left untouched so transient errors (rate limits, network) do not classify a live issue as deleted.
Params
opts = {}
Returns
None.
Examples
None.