Vibe.TUI.Views.Agents (vibe v0.2.1)

Copy Markdown View Source

TUI agent dashboard view — shows all sessions with status, preview, and dispatch.

Renders a table of sessions grouped by state, with inline peek preview and an input for dispatching new background sessions. Arrow keys navigate rows, Space peeks, Enter attaches, and Esc exits back to the attached session.

Summary

Types

t()

@type t() :: %Vibe.TUI.Views.Agents{
  height: pos_integer(),
  peek: map() | nil,
  selected: non_neg_integer(),
  sessions: [map()],
  width: pos_integer()
}

Functions

move(state, arg2)

@spec move(t(), :up | :down) :: t()

new(opts \\ [])

@spec new(keyword()) :: t()

refresh(state)

@spec refresh(t()) :: t()

render(state, theme)

@spec render(t(), Vibe.Terminal.Theme.t()) :: [IO.chardata()]

selected_session(map)

@spec selected_session(t()) :: map() | nil

toggle_peek(state)

@spec toggle_peek(t()) :: t()