Documentation
¶
Index ¶
- Variables
- func ExtractTaskBodyTitle(body string) string
- func FixPrompt(report Report, registry *TypeRegistry) string
- func MarkTaskCompleted(tasksDir, taskFileName string) error
- func MetaPath(tasksDir string) string
- func ReadTaskMeta(tasksDir string) (model.TaskMeta, error)
- func RefreshTaskMeta(tasksDir string) (model.TaskMeta, error)
- func RemapLegacyTaskType(raw string, registry *TypeRegistry) string
- func WriteTaskMeta(tasksDir string, meta model.TaskMeta) error
- type Issue
- type Report
- type TypeRegistry
Constants ¶
This section is empty.
Variables ¶
View Source
var BuiltinTypes = []string{
"frontend",
"backend",
"docs",
"test",
"infra",
"refactor",
"chore",
"bugfix",
}
Functions ¶
func ExtractTaskBodyTitle ¶ added in v0.1.7
ExtractTaskBodyTitle returns the first H1 title from the body with any leading "Task N:" or "Task N -" prefix removed.
func FixPrompt ¶ added in v0.1.7
func FixPrompt(report Report, registry *TypeRegistry) string
FixPrompt renders a deterministic LLM-ready remediation prompt for a validation report.
func MarkTaskCompleted ¶ added in v0.1.1
func RemapLegacyTaskType ¶ added in v0.1.7
func RemapLegacyTaskType(raw string, registry *TypeRegistry) string
RemapLegacyTaskType canonicalizes a legacy v1 task type into an allowed v2 registry value when possible. It returns the empty string when the legacy type requires manual selection or has no known mapping.
Types ¶
type Issue ¶ added in v0.1.7
type Issue struct {
Path string `json:"path"`
Field string `json:"field"`
Message string `json:"message"`
}
Issue describes one validation problem found in a task file.
type Report ¶ added in v0.1.7
type Report struct {
TasksDir string `json:"tasks_dir"`
Scanned int `json:"scanned"`
Issues []Issue `json:"issues"`
}
Report captures the outcome of validating a tasks directory.
type TypeRegistry ¶ added in v0.1.7
type TypeRegistry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶ added in v0.1.7
func NewRegistry(configured []string) (*TypeRegistry, error)
func (*TypeRegistry) IsAllowed ¶ added in v0.1.7
func (r *TypeRegistry) IsAllowed(slug string) bool
func (*TypeRegistry) Values ¶ added in v0.1.7
func (r *TypeRegistry) Values() []string
Click to show internal directories.
Click to hide internal directories.