module Riffer::Rig::Terminal::StatusBar
Constants
- CLOCK_WIDTH
- COST_WIDTH
- DOWN_WIDTH
-
The unit rides in the down slot’s box, so the constant
toknever shifts what follows it. - GLYPH_WIDTH
- IDLE_GLYPH
- IDLE_STATE
- JOBS_WIDTH
- KEEP_SETS
-
A narrow terminal sheds whole slots from the left in this order — the reasoning level first, since it is static and recoverable via /reasoning, then the clock, then the cost, then the tokens, then the state — so the dynamic slots and the jobs count at the right edge survive longest.
- REASONING_WIDTH
- SEPARATOR
- SLOTS
- STATE_WIDTH
- TOKEN_WIDTH
Public Instance Methods
(reasoning: String?, clock: String, up_tokens: Integer, down_tokens: Integer, cost: Float, jobs: Integer, theme: Riffer::Rig::Terminal::Theme, room: Integer) → String
Source
# File lib/riffer/rig/terminal/status_bar.rb, line 54 def idle(reasoning:, clock:, up_tokens:, down_tokens:, cost:, jobs:, theme:, room:) slots = segments(IDLE_GLYPH, IDLE_STATE, reasoning, clock, up_tokens, down_tokens, cost, jobs) theme.dim(kept(slots, room).values.join(SEPARATOR)) end
@rbs reasoning: String? @rbs clock: String @rbs up_tokens: Integer @rbs down_tokens: Integer @rbs cost: Float @rbs jobs: Integer @rbs theme: Riffer::Rig::Terminal::Theme @rbs room: Integer @rbs return: String
(glyph: String, state: String, reasoning: String?, clock: String, up_tokens: Integer, down_tokens: Integer, cost: Float, jobs: Integer, theme: Riffer::Rig::Terminal::Theme, room: Integer) → String
Source
# File lib/riffer/rig/terminal/status_bar.rb, line 70 def working(glyph:, state:, reasoning:, clock:, up_tokens:, down_tokens:, cost:, jobs:, theme:, room:) slots = segments(glyph, state, reasoning, clock, up_tokens, down_tokens, cost, jobs) kept(slots, room).map { |key, text| color(text, key, theme) }.join(SEPARATOR) end
@rbs glyph: String @rbs state: String @rbs reasoning: String? @rbs clock: String @rbs up_tokens: Integer @rbs down_tokens: Integer @rbs cost: Float @rbs jobs: Integer @rbs theme: Riffer::Rig::Terminal::Theme @rbs room: Integer @rbs return: String