plan

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format() string

Format returns a string representation of the current plan

func HasPlan

func HasPlan() bool

HasPlan returns true if a plan exists

func IsComplete

func IsComplete() bool

IsComplete returns true if all steps are done or skipped

func Reset

func Reset()

Reset clears the current plan (call at turn start)

func Set

func Set(p *Plan)

Set replaces the current plan with a new one

func Stats

func Stats() (done, total int)

Stats returns the count of completed and total steps

func UpdateStep

func UpdateStep(index int, status Status) error

UpdateStep updates the status of a step by index (0-based)

Types

type Manager

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

Manager holds the current plan state

type Plan

type Plan struct {
	Title string `json:"title,omitempty"`
	Steps []Step `json:"steps"`
}

Plan represents a task execution plan with tracked steps

func Get

func Get() *Plan

Get returns the current plan (may be nil)

type Status

type Status string

Status represents the state of a plan step

const (
	StatusPending    Status = "pending"
	StatusInProgress Status = "in_progress"
	StatusDone       Status = "done"
	StatusSkipped    Status = "skipped"
)

type Step

type Step struct {
	Description string `json:"description"`
	Status      Status `json:"status"`
}

Step represents a single step in a plan

Jump to

Keyboard shortcuts

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