Documentation
¶
Index ¶
- func AcquireLock(filename string) error
- func IncrementIteration(stage StageKey) (int, error)
- func InitSession(briefPath string) error
- func IsStageComplete(stage StageKey) bool
- func MarkStageComplete(stage StageKey) error
- func OutputDir() (string, error)
- func OutputExists(filename string) bool
- func ReadBrief(briefPath string) (string, error)
- func ReadOutput(filename string) (string, error)
- func ReleaseLock(filename string)
- func SaveHumanNote(checkpoint, notes string) error
- func WriteOutput(filename, content string) error
- type SessionMeta
- type StageKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcquireLock ¶
func IncrementIteration ¶
func InitSession ¶
func IsStageComplete ¶
func MarkStageComplete ¶
func OutputExists ¶
func ReadOutput ¶
func ReleaseLock ¶
func ReleaseLock(filename string)
func SaveHumanNote ¶
func WriteOutput ¶
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)
Click to show internal directories.
Click to hide internal directories.