state

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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