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 (the manifest is a BTreeMap,
so the order is deterministic), and only clips whose file exists on disk are
listed, 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. The album is the raw logical album title, which
legitimately differs from the sanitised, truncated album segment inside
path. The renderer takes no clock, so the output is fully deterministic.