Returns a compact, LLM-readable summary of the differences between two digests, or null if
nothing changed. The output is short enough to prepend to a user prompt without bloating the
conversation, so it deliberately omits longer per-field diffs.
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"]'
Returns a compact, LLM-readable summary of the differences between two digests, or
nullif nothing changed. The output is short enough to prepend to a user prompt without bloating the conversation, so it deliberately omits longer per-field diffs.