namesByHash
This branch's definitions' names, by hash (the first, as pathsOf has it): one query, to name what a run executes
as it was when the run started (#3h4tae6e).
import type { Codebase } from "#codebase/tcmts/cli/codebase"; export function namesByHash(cb: Codebase): Map<string, string> { const out = new Map<string, string>(); for (const r of cb.store.names()) if (!out.has(r.hash)) out.set(r.hash, r.path); return out; }