package
Version:
v0.3.5
Opens a new window with list of versions in this module.
Published: Jan 19, 2026
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Format returns a string representation of the current plan
HasPlan returns true if a plan exists
IsComplete returns true if all steps are done or skipped
Reset clears the current plan (call at turn start)
Set replaces the current plan with a new one
func Stats() (done, total int)
Stats returns the count of completed and total steps
UpdateStep updates the status of a step by index (0-based)
Manager holds the current plan state
type Plan struct {
Title string `json:"title,omitempty"`
Steps []Step `json:"steps"`
}
Plan represents a task execution plan with tracked steps
Get returns the current plan (may be nil)
Status represents the state of a plan step
const (
StatusPending Status = "pending"
StatusInProgress Status = "in_progress"
StatusDone Status = "done"
StatusSkipped Status = "skipped"
)
type Step struct {
Description string `json:"description"`
Status Status `json:"status"`
}
Step represents a single step in a plan
Source Files
¶
Click to show internal directories.
Click to hide internal directories.