todotool

package
v1.10.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	msg *types.Message,
	_ *service.SessionState,
) layout.Model

New creates a new unified todo component. This component handles create, create_multiple, list, and update operations.

Types

type Component

type Component struct {
	// contains filtered or unexported fields
}

Component represents a unified todo tool component that handles all todo operations. It determines which operation to display based on the tool call name.

func (*Component) Init

func (c *Component) Init() tea.Cmd

func (*Component) SetSize

func (c *Component) SetSize(width, height int) tea.Cmd

func (*Component) Update

func (c *Component) Update(msg tea.Msg) (layout.Model, tea.Cmd)

func (*Component) View

func (c *Component) View() string

type SidebarComponent

type SidebarComponent struct {
	// contains filtered or unexported fields
}

SidebarComponent represents the todo display component for the sidebar

func NewSidebarComponent

func NewSidebarComponent(manager *service.TodoManager) *SidebarComponent

func (*SidebarComponent) Render

func (c *SidebarComponent) Render() string

func (*SidebarComponent) SetSize

func (c *SidebarComponent) SetSize(width int)

func (*SidebarComponent) SetTodos

func (c *SidebarComponent) SetTodos(toolCall tools.ToolCall) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL