Renders events for a terminal. The output is tagged, so the terminal code decides what to print:
| Item | From | Meaning |
|---|---|---|
{:text, binary} | text_delta | Answer text, written as it comes. |
{:thinking, binary} | thinking_delta | Reasoning text. |
{:line, binary} | tool, notice and compaction events | A status line. |
{:ask, wire} | ui_request of kind questionnaire | A question for the user. |
{:permission, wire} | permission_request | A tool call that waits for approval. |
{:done, :ok | :cancelled | {:error, reason}} | turn_* | The turn ended. |
Stateless: init/1 returns nil.