state

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcquireLock

func AcquireLock(filename string) error

func IncrementIteration

func IncrementIteration(stage StageKey) (int, error)

func InitSession

func InitSession(briefPath string) error

func IsStageComplete

func IsStageComplete(stage StageKey) bool

func MarkStageComplete

func MarkStageComplete(stage StageKey) error

func OutputDir

func OutputDir() (string, error)

func OutputExists

func OutputExists(filename string) bool

func ReadBrief

func ReadBrief(briefPath string) (string, error)

func ReadOutput

func ReadOutput(filename string) (string, error)

func ReleaseLock

func ReleaseLock(filename string)

func SaveHumanNote

func SaveHumanNote(checkpoint, notes string) error

func WriteOutput

func WriteOutput(filename, content string) error

Types

type SessionMeta

type SessionMeta struct {
	StartedAt       string            `json:"startedAt"`
	BriefPath       string            `json:"briefPath"`
	CompletedStages []StageKey        `json:"completedStages"`
	IterationCounts map[StageKey]int  `json:"iterationCounts"`
	HumanNotes      map[string]string `json:"humanNotes"`
}

func LoadSession

func LoadSession() (*SessionMeta, error)

type StageKey

type StageKey string
const (
	StagePMPlan    StageKey = "pm_plan"
	StageResearch  StageKey = "research"
	StageBrand     StageKey = "brand"
	StageUX        StageKey = "ux"
	StageGTM       StageKey = "gtm"
	StageAssembled StageKey = "assembled"
)

Jump to

Keyboard shortcuts

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