class

Smith::UI::TuiApprover

Inherits Smith::Tools::Approver < Reference < Object

The approval gate for fullscreen mode: a modal panel with the call's summary and three keys, answered without ever touching plain stdin.

Constants

SUMMARY_LINES = 8

How much of the call the panel shows before it starts eliding.

Constructors

new(app : App, allowlist : Array(String) = Array(String).new, rules : Smith::Tools::RuleSet = Smith::Tools::RuleSet.new)
Source

Instance methods

allowlist
Source
approve?(tool : Smith::Tools::Tool, call : Smith::Tools::CallRequest) : Bool
Source