class

Crowbar::TUI::ReviewerModel

Inherits Opal::TEA::Model < Reference < Object

Interactive Terminal User Interface for reviewing session items, inspecting side-by-side hex diffs, examining transformation provenance, and applying deferred rewards to any past iteration.

Constructors

new(session : Session, session_dir : String = Session.default_dir, width : Int32 = 100, height : Int32 = 28)
Source

Instance methods

active_tab
Source
active_tab=(active_tab : Int32)
Source
current_selected_item
Source
diff_mode
Source
diff_mode=(diff_mode : Symbol)
Source
filter_mode
Source
filter_mode=(filter_mode : Symbol)
Source
filtered_items
Source
height
Source
height=(height : Int32)
Source
init

Returns initial commands to execute upon application startup.

Source
reward_buffer
Source
reward_buffer=(reward_buffer : String)
Source
reward_mode
Source
reward_mode=(reward_mode : Bool)
Source
selected_index
Source
selected_index=(selected_index : Int32)
Source
session
Source
session_dir
Source
session_dir=(session_dir : String)
Source
status_message
Source
status_message=(status_message : String | Nil)
Source
update(msg : Opal::TEA::Msg) : Tuple(Opal::TEA::Model, Opal::TEA::Cmd)

Updates the model state based on an incoming message, returning the new model and optional command.

Source
view

Renders the current state as a formatted terminal string.

Source
width
Source
width=(width : Int32)
Source