namesNow
This branch's names, each with the text version it shows: what setBranchNames takes to keep them as they are.
import type { NameRow, Store } from "#codebase/tcmts/store"; export function namesNow(store: Store): NameRow[] { const texts = store.texts(); return store.names(undefined, true).map((r) => { const text = texts.get(r.hash); return text ? { ...r, text } : r; }); }