Vibe.TUI.Presentation.ToolBlock (vibe v0.2.2)

Copy Markdown View Source

Renders structured tool display body blocks for TUI tool cards.

Summary

Functions

diff_block_lines(diff, width, theme, truncate?, opts)

@spec diff_block_lines(
  term(),
  pos_integer(),
  Vibe.Terminal.Theme.t(),
  boolean(),
  keyword()
) :: [
  IO.chardata()
]

display_block_lines(arg, width, theme, truncate?)

@spec display_block_lines(tuple(), pos_integer(), Vibe.Terminal.Theme.t(), boolean()) ::
  [IO.chardata()]

display_body_lines(display, width, theme)

@spec display_body_lines(
  Vibe.Presentation.Tool.Display.t(),
  pos_integer(),
  Vibe.Terminal.Theme.t()
) ::
  [IO.chardata()] | nil

source_block_lines(source, width, theme, truncate?, opts)

@spec source_block_lines(
  term(),
  pos_integer(),
  Vibe.Terminal.Theme.t(),
  boolean(),
  keyword()
) :: [
  IO.chardata()
]

text_block_lines(text, width, theme, kind, truncate?, opts)

@spec text_block_lines(
  term(),
  pos_integer(),
  Vibe.Terminal.Theme.t(),
  :text | :inspect | :error,
  boolean(),
  keyword()
) :: [IO.chardata()]