Documentation
¶
Overview ¶
Package spec provides types and functions for generating epics and tasks from design specifications
Package spec provides types and functions for generating epics and tasks from design specifications ¶
Package spec provides types and functions for generating epics and tasks from design specifications ¶
Package spec provides types and functions for generating epics and tasks from design specifications
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analyzer ¶
type Analyzer struct {
// contains filtered or unexported fields
}
Analyzer uses AI to break down specs into epics and tasks
func NewAnalyzer ¶
NewAnalyzer creates a new spec analyzer
func NewAnalyzerWithDirectAPI ¶
NewAnalyzerWithDirectAPI creates a new spec analyzer that uses Anthropic API directly
func (*Analyzer) AnalyzeSpec ¶
AnalyzeSpec analyzes design content and generates epics/tasks
type EpicSpec ¶
type EpicSpec struct {
Title string `json:"title"`
Description string `json:"description"`
Tasks []TaskSpec `json:"tasks"`
}
EpicSpec represents an epic with its tasks
type SpecAnalysis ¶
type SpecAnalysis struct {
Epics []EpicSpec `json:"epics"`
}
SpecAnalysis represents the AI's analysis of design specs
type SubTaskSpec ¶
type SubTaskSpec struct {
Title string `json:"title"`
Description string `json:"description"`
Priority int `json:"priority"`
BlockedBy []string `json:"blocked_by,omitempty"`
}
SubTaskSpec represents a subtask
type TaskSpec ¶
type TaskSpec struct {
Title string `json:"title"`
Description string `json:"description"`
Type string `json:"type"` // feature, bug, refactor, test, docs, research, fix, other
Priority int `json:"priority"`
AcceptanceCriteria []string `json:"acceptance_criteria"`
TestMode string `json:"test_mode"` // strict, lenient, disabled
TestScope string `json:"test_scope"` // all, diff, skip
SubTasks []SubTaskSpec `json:"sub_tasks,omitempty"`
BlockedBy []string `json:"blocked_by,omitempty"`
}
TaskSpec represents a task (story) with optional subtasks
type ValidationResult ¶
ValidationResult represents validation errors
type WriteResult ¶
WriteResult tracks what was created
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer creates epics and tasks in the database
func (*Writer) WriteAnalysis ¶
func (w *Writer) WriteAnalysis(analysis *SpecAnalysis) (*WriteResult, error)
WriteAnalysis creates epics and tasks from the analysis