Documentation
¶
Overview ¶
Package status provides task index status reporting.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregateMetrics ¶
type AggregateMetrics struct {
TotalDurationMs int64 // Sum of all DurationMs + elapsed time for in-flight
TotalTokensPrompt int // Sum of TokensPrompt
TotalTokensOutput int // Sum of TokensResponse
TotalTokens int // Sum of TokensTotal
}
AggregateMetrics holds cumulative metrics across all tasks.
type PlanningStepSummary ¶
type PlanningStepSummary struct {
ID string
Name string
Status string
Order int
PID int // From supervisor if this step is currently running
StartedAt time.Time // From supervisor if this step is currently running
}
PlanningStepSummary captures the status output for a planning step.
type StatusRow ¶
type StatusRow struct {
// contains filtered or unexported fields
}
StatusRow represents a single task row in the status display.
func NewSeparatorRow ¶
func NewSeparatorRow() StatusRow
NewSeparatorRow creates an empty row used as a visual separator.
type Summary ¶
type Summary struct {
Supervisors []SupervisorSummary
Workers []WorkerSummary
PlanningSteps []PlanningStepSummary
Total int
Backlog int
Merged int
InProgress int
Rows []StatusRow // Active (non-merged) tasks
MergedRows []StatusRow // Merged tasks (kept separate)
Aggregates AggregateMetrics
}
Summary represents task counts and the in-progress table.
func GetSummary ¶
GetSummary reads the task index and returns a detailed summary.
func (Summary) String ¶
String returns the formatted status output per flow.md. Uses styled output for TTY, plain output for pipes/redirects.
func (Summary) StringWithMerged ¶ added in v1.0.5
StringWithMerged returns formatted status output and optionally includes merged tasks.