Documentation
¶
Overview ¶
Package filewatch monitors file/directory patterns and triggers plan re-evaluation when watched files change. Designed for TDD-style AI loops where code changes should drive plan updates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintEvent ¶
func PrintEvent(evt ChangeEvent)
PrintEvent prints a colored summary of a ChangeEvent to stdout.
Types ¶
type ChangeEvent ¶
type ChangeEvent struct {
// Files is the list of changed file paths (relative to WorkDir).
Files []string
// ResetTaskIDs are the task IDs that were reset to pending.
ResetTaskIDs []int
// Context is a human-readable description of what changed.
Context string
}
ChangeEvent describes a batch of file changes that triggered re-evaluation.
type Config ¶
type Config struct {
// WorkDir is the project root.
WorkDir string
// Globs are file patterns to watch (e.g. "**/*.go", "src/**/*.ts").
Globs []string
// Debounce is the duration to wait after the last change before triggering.
Debounce time.Duration
}
Config holds file-watch configuration.
Click to show internal directories.
Click to hide internal directories.