Discover Packages
github.com/MiviaLabs/mivia-agent
internal
ui
component
mark
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Aug 27, 2026
License: AGPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
TickCmd returns the next-tick command. One interval for every state:
waiting goes slower by dividing its frame index, not its clock, so
all marks on screen share one ticker.
Model is the mark plus its tick. The tick only runs while the state
animates, mirroring statusline's Start/Stop bracketing.
New returns a Model in state s. A static state needs no ticker.
Glyph is the mark's lead cell, unstyled.
SetState changes the state, resetting the frame so a rotation never
resumes mid-cycle from a stale position.
State reports the current state.
Update advances the frame on a tick. Static states ignore ticks:
their glyph never changes, so no clock runs for them.
View renders the mark: single brand glyph for idle/done/failed, and
an animated 3-cell colorful aurora wave for active states.
State is what the mark says about the turn.
const (
Idle State = iota
Waiting
Thinking
Streaming
Running
Pending
Failed
Done
)
Animated reports whether the state moves. Static means "not working".
Word is the state as a word, for screen-reader output: the mock's
rule is that a screen reader gets the state word only, never the
glyph or the animation ("thinking, 4.2 seconds, escape to cancel").
TickMsg advances an animated mark's frame.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.