pub fn render_library_index(
manifest: &Manifest,
store: &LineageStore,
live: &HashMap<&str, &Clip>,
) -> StringExpand description
Render the whole-library index as a stable, pretty-printed JSON document.
One row per manifest entry in clip-id order, listing only clips whose file
exists on disk so the index never advertises a missing file. Durable fields
come from the manifest and the archived LineageStore; live-only fields
(artist, handle, duration, tags) come from live when the clip was seen this
run and are null otherwise. album is the raw logical title, which
legitimately differs from the sanitised segment inside path.