tasks

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package tasks derives terminal task inspection state from Protocol values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	Surface    surface.State
	Rows       []types.TaskRow
	Aggregates types.TaskListAggregates
	Selected   *types.TaskDetail
	SelectedID string
	Filter     string
	Page       int
	PageSize   int
	NextCursor types.TaskListCursor
}

State is the bounded task list/tree/progress projection for one session.

func Derive

func Derive(response types.TaskListResponse, detail *types.TaskDetail) State

Derive copies and deterministically orders canonical rows.

func (State) Summary

func (s State) Summary(row types.TaskRow) string

Summary returns bounded operational text without claiming authoritative cost.

func (State) Visible

func (s State) Visible() []types.TaskRow

Visible returns the filtered canonical page without changing selection.

Jump to

Keyboard shortcuts

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