Documentation
¶
Overview ¶
Package plan provides plan mode functionality for GenCode. Plan mode allows AI to explore the codebase and create implementation plans before making changes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePlanName ¶
GeneratePlanName generates a plan name based on task description. Format: YYYYMMDD-task-keywords (e.g., "20260129-add-dark-mode") If task is empty, uses timestamp only.
func GeneratePlanNameFromContent ¶
GeneratePlanNameFromContent generates a plan name from plan content. Useful when creating name from the actual plan summary.
func SanitizeName ¶
SanitizeName ensures a name is valid for filesystem use
func ValidatePlanID ¶
ValidatePlanID checks if a plan ID is valid
Types ¶
type Plan ¶
type Plan struct {
ID string `yaml:"id"`
CreatedAt time.Time `yaml:"created_at"`
Task string `yaml:"task"`
Status PlanStatus `yaml:"status"`
Content string `yaml:"-"` // markdown body (not in frontmatter)
}
Plan represents a saved implementation plan
type PlanStatus ¶
type PlanStatus string
PlanStatus represents the status of a plan
const ( StatusDraft PlanStatus = "draft" StatusApproved PlanStatus = "approved" StatusExecuted PlanStatus = "executed" )
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store manages plan file storage