mirror of
https://github.com/Ar9av/obsidian-wiki.git
synced 2026-09-14 20:36:34 +08:00
5016cde0a5
cache-check / cache-update assumed a dict-keyed manifest with bare hex hashes, but the wiki-ingest skill writes 'sources' as a list of entry objects with sha256:-prefixed content_hash and vault-relative paths. Against a skill-built manifest the commands crashed, then (once past the crash) reported every file as modified/new. Both shapes occur in real vaults. - _load/_iter: read both dict- and list-shaped 'sources' transparently - compare content_hash prefix-insensitively (strip optional algo: prefix) - match paths across raw / absolute / vault-relative forms - update_source edits in place, preserving manifest shape, duplicate-path entries, skill-written fields, and top-level keys (stats/version) - don't flag URL / pseudo-path source keys as missing-on-disk - add regression tests covering all four failure modes from the issue
5.2 KiB
5.2 KiB