fix(cli): end the stdin envelope at its first newline

An Erlang port cannot close stdin without closing the port, so a host there never sends the EOF `advance -` waited for. The envelope is one JSON line; reading to the first newline (or EOF) lets such a host write the line and read the answer.

1a4bff97 parent 333f8ab4 +12 −9
browse files