Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractJSONObject ¶
ExtractJSONObject finds the first top-level JSON object in raw by matching balanced braces.
func StripCodeFences ¶ added in v0.1.1
StripCodeFences removes markdown code fences and truncates to maxLen.
Types ¶
type ContextMatch ¶
type ContextMatch struct {
Topic string
Status string
DocURL string
Source string
LastUpdated *string
Reason string
IsInfeasible bool
}
ContextMatch represents a feature/ADR/research match from Phase 4a.
func Phase4a ¶
func Phase4a(ctx context.Context, s store.PhaseQuerier, l llm.Provider, logger *slog.Logger, repo, title, body string, preEmbedding []float32, projectName string) ([]ContextMatch, error)
Phase4a matches enhancement requests against the feature index (roadmap, ADRs, research) using vector similarity search and LLM-based semantic matching.
type MissingItem ¶
MissingItem describes a missing piece of information in an issue report.
type Phase1Result ¶
type Phase1Result struct {
MissingItems []MissingItem
IsPwaReproducible bool
}
Phase1Result contains missing information items and PWA reproducibility status.
func Phase1 ¶
func Phase1(body string) Phase1Result
Phase1 analyzes a bug report body for missing information and PWA reproducibility. This is pure string parsing with no external dependencies.
type Suggestion ¶
Suggestion represents a documentation match from Phase 2.
func Phase2 ¶
func Phase2(ctx context.Context, s store.PhaseQuerier, l llm.Provider, logger *slog.Logger, repo, title, body string, codeContext string, preEmbedding []float32, projectName string) ([]Suggestion, error)
Phase2 searches for matching troubleshooting documentation using vector similarity and then asks the LLM to pick the best matches with actionable suggestions.