Turn a token-by-token stream into stable line events. Buffer until a newline arrives, then emit the whole line. Zero deps.