Documentation
¶
Overview ¶
Package specwatcher watches spec files and triggers prompt generation on changes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpecWatcher ¶
SpecWatcher watches the specs in-progress directory and triggers generation when a spec appears there.
func NewScopedSpecWatcher ¶ added in v0.201.0
func NewScopedSpecWatcher( inProgressDir string, generator generator.SpecGenerator, debounce time.Duration, currentDateTimeGetter libtime.CurrentDateTimeGetter, allowedSpecs []string, autoGenerate bool, ) SpecWatcher
NewScopedSpecWatcher creates a SpecWatcher limited to allowedSpecs (spec ids = filename stems). An empty allowedSpecs behaves like NewSpecWatcher (no limit). The daemon uses this so one agent run only generates for the specs its task matched, never unrelated approved specs sharing the repo.
func NewSpecWatcher ¶
func NewSpecWatcher( inProgressDir string, generator generator.SpecGenerator, debounce time.Duration, currentDateTimeGetter libtime.CurrentDateTimeGetter, optionalAutoGenerate ...bool, ) SpecWatcher
NewSpecWatcher creates a new SpecWatcher. An optional bool can be passed as the 5th argument to enable auto-generation. When the optional arg is omitted, auto-generation defaults to false (disabled).