SuperPi.Event.Renderer.TUI (super_pi v0.1.0)

Copy Markdown View Source

Renders events for a terminal. The output is tagged, so the terminal code decides what to print:

ItemFromMeaning
{:text, binary}text_deltaAnswer text, written as it comes.
{:thinking, binary}thinking_deltaReasoning text.
{:line, binary}tool, notice and compaction eventsA status line.
{:ask, wire}ui_request of kind questionnaireA question for the user.
{:permission, wire}permission_requestA tool call that waits for approval.
{:done, :ok | :cancelled | {:error, reason}}turn_*The turn ended.

Stateless: init/1 returns nil.