phases

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractJSONObject

func ExtractJSONObject(raw string) string

ExtractJSONObject finds the first top-level JSON object in raw by matching balanced braces.

func StripCodeFences added in v0.1.1

func StripCodeFences(text string, maxLen int) string

StripCodeFences removes markdown code fences and truncates to maxLen.

func Truncate added in v0.1.1

func Truncate(s string, maxLen int) string

Truncate shortens s to at most maxLen bytes at a valid UTF-8 boundary.

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

type MissingItem struct {
	Label  string
	Detail string
}

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

type Suggestion struct {
	Title  string
	DocURL string
	Reason string
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL