Expand description
Interactive TUI mode using charmed_rust (bubbletea/lipgloss/bubbles/glamour).
This module provides the full interactive terminal interface for Pi, implementing the Elm Architecture for state management.
§Features
- Multi-line editor: Full text area with line wrapping and history
- Viewport scrolling: Scrollable conversation history with keyboard navigation
- Slash commands: Built-in commands like /help, /clear, /model, /exit
- Token tracking: Real-time cost and token usage display
- Markdown rendering: Assistant responses rendered with syntax highlighting
Structs§
- Conversation
Message - A message in the conversation history.
- PiApp
- The main interactive TUI application model.
Enums§
- Agent
State - State of the agent processing.
- Input
Mode - Input mode for the TUI.
- Message
Role - Role of a message.
- Pending
Input - PiMsg
- Custom message types for async agent events.
- Slash
Command - Available slash commands.