Produce a compact, LLM-readable summary of the differences between two digests, or null when
nothing changed. The output is short enough to prepend to a user prompt without bloating the
conversation; longer per-field diffs are deliberately omitted.
constprev = getStateDigest(state); // ... user clicks around in the UI ... constdiff = formatStateDigestDiff(prev, getStateDigest(state)); // → '[map state changed since last response: places shown as pins: "amsterdam-cinemas"; route now "routes-2"]'
Produce a compact, LLM-readable summary of the differences between two digests, or
nullwhen nothing changed. The output is short enough to prepend to a user prompt without bloating the conversation; longer per-field diffs are deliberately omitted.