Documentation
¶
Index ¶
- func FormatAsYamlLike(v interface{}, indent int) string
- func NewParallelProgram(total int, nodeName string) *tea.Program
- func ReadInput(title string, description string) (string, error)
- func ReadSelection(options []string, title string, description string) (string, error)
- func RenderCharmFlow(cfg *config.AgentConfig)
- func RenderErrorBox(title, reason, suggestion, originalError string) string
- func RenderMaxRetriesBox(attempts int, originalError string) string
- func RenderRetryBadge(attempt, maxRetries int, oneLiner string) string
- func RenderStatusBadge(text string, success bool) string
- func RenderToolBox(toolName string, args map[string]interface{}) string
- func SmartRender(input string) string
- type ActiveCountMsg
- type ItemFinishedMsg
- type ItemLogMsg
- type ParallelModel
- type SpinnerModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatAsYamlLike ¶
FormatAsYamlLike formats a value as a YAML-like string for console output. It handles nested maps, slices, and primitives recursively.
func NewParallelProgram ¶
NewParallelProgram creates a new tea.Program for the parallel progress UI
func ReadSelection ¶
ReadSelection prompts the user to select from a list of options using huh
func RenderCharmFlow ¶
func RenderCharmFlow(cfg *config.AgentConfig)
RenderCharmFlow prints the flow using Lipgloss styles in a tree-like structure
func RenderErrorBox ¶
RenderErrorBox: Pure lipgloss implementation with dynamic wrapping
func RenderMaxRetriesBox ¶
func RenderRetryBadge ¶
RenderRetryBadge: Clean text-only line
func RenderStatusBadge ¶
RenderStatusBadge renders a styled status badge (e.g. "✓ Command approved")
func RenderToolBox ¶
RenderToolBox renders a styled box for tool execution approval.
func SmartRender ¶
SmartRender returns the input as-is for terminal output. This bypasses glamour markdown rendering to: 1. Preserve markdown tags for easy copy/paste 2. Let the terminal handle natural line wrapping 3. Avoid artificial double-spacing between lines
Types ¶
type ActiveCountMsg ¶
type ActiveCountMsg int
ActiveCountMsg signals an update to the number of active workers
type ItemFinishedMsg ¶
type ItemFinishedMsg struct{}
ItemFinishedMsg signals that a worker has finished an item
type ParallelModel ¶
type ParallelModel struct {
// contains filtered or unexported fields
}
ParallelModel holds the state of the parallel execution UI
func (ParallelModel) Init ¶
func (m ParallelModel) Init() tea.Cmd
func (ParallelModel) View ¶
func (m ParallelModel) View() string
type SpinnerModel ¶
type SpinnerModel struct {
// contains filtered or unexported fields
}
func NewSpinner ¶
func NewSpinner(text string) SpinnerModel
func (SpinnerModel) Init ¶
func (m SpinnerModel) Init() tea.Cmd
func (SpinnerModel) View ¶
func (m SpinnerModel) View() string