SuperPi.TUI.Owl (super_pi v0.1.0)

Copy Markdown View Source

Day-1 Interactive Terminal UI built on Owl (Decision 10, Step 10).

Provides formatted ANSI status bars, streaming assistant response rendering, tool execution boxes, and slash-command handling (/compact, /fork, /context, /quit) backed directly by SuperPi.Conversation.Machine.

Summary

Functions

Executes a single TUI command or prompt line against conversation_id and returns the formatted string output.

Renders an assistant message and any embedded tool call blocks as ANSI-formatted text.

Renders a formatted ANSI status banner for conversation_id using Owl.Data tags.

Starts an interactive session for conversation_id, supporting pluggable harnesses and extensions.

Functions

handle_line(conversation_id, pid, line)

Executes a single TUI command or prompt line against conversation_id and returns the formatted string output.

render_assistant_message(text)

Renders an assistant message and any embedded tool call blocks as ANSI-formatted text.

render_status_bar(conversation_id)

Renders a formatted ANSI status banner for conversation_id using Owl.Data tags.

start_session(opts \\ [])

Starts an interactive session for conversation_id, supporting pluggable harnesses and extensions.