Versions in this module Expand all Collapse all v0 v0.0.2 Apr 30, 2026 v0.0.1 Apr 27, 2026 Changes in this version + const InspectFormatBundle + const InspectFormatCSSJSON + const InspectFormatCSSMarkdown + const InspectFormatHTML + const InspectFormatInspectJSON + const InspectFormatMetadataJSON + const InspectFormatPNG + func AIReview(ctx context.Context, cfg *config.Config) error + func CSSDiff(ctx context.Context, cfg *config.Config) error + func Capture(ctx context.Context, cfg *config.Config) error + func Compare(ctx context.Context, settings CompareSettings) error + func HTMLReport(ctx context.Context, cfg *config.Config) error + func MatchedStyles(ctx context.Context, cfg *config.Config) error + func PixelDiff(ctx context.Context, cfg *config.Config, threshold int) error + func RunAIReview(ctx context.Context, cfg *config.Config) error + func RunAIReviewWithClient(ctx context.Context, cfg *config.Config, client ai.Client) error + func RunCapture(ctx context.Context, cfg *config.Config) error + func RunMatchedStyles(ctx context.Context, cfg *config.Config) error + func RunPixelDiff(ctx context.Context, cfgDir string, threshold int) error + func StoryDiscovery(ctx context.Context, cfg *config.Config) error + func WriteCompareArtifacts(result CompareResult, writeJSONFile bool, writeMarkdownFile bool) error + type AIResponse struct + Answer ai.Answer + Screenshot string + type AIReviewResult struct + Sections []AISectionReview + type AISectionReview struct + Name string + Original AIResponse + Question string + React AIResponse + Selector string + type Bounds = service.Bounds + type CSSDiffResult struct + Styles []StyleResult + type Candidate struct + Important bool + Order int + Origin CascadeOrigin + Property string + Selector string + Specificity Specificity + Value string + type CaptureResult struct + Coverage CoverageSummary + Original PageResult + React PageResult + Validation []ValidationResult + type CascadeOrigin string + const OriginAuthor + const OriginInline + const OriginUserAgent + type CompareInputs struct + Attrs []string + OutDir string + Props []string + Selector1 string + Selector2 string + URL1 string + URL2 string + ViewportH int + ViewportW int + WaitMS1 int + WaitMS2 int + type CompareResult struct + ComputedDiffs []StyleDiff + Inputs CompareInputs + PixelDiff PixelDiffStats + URL1 CompareSideResult + URL2 CompareSideResult + WinnerDiffs []WinnerDiff + func GenerateCompareResult(ctx context.Context, settings CompareSettings) (CompareResult, error) + type CompareSettings struct + Attributes []string + OutDir string + PixelDiffThreshold int + Props []string + Selector1 string + Selector2 string + URL1 string + URL2 string + ViewportH int + ViewportW int + WaitMS1 int + WaitMS2 int + WriteJSON bool + WriteMarkdown bool + WritePNGs bool + type CompareSideResult struct + Computed StyleSnapshot + ElementScreenshot string + FullScreenshot string + Matched MatchedSnapshot + Selector string + URL string + type CoverageSummary struct + OriginalHidden int + OriginalMissing int + ReactHidden int + ReactMissing int + Total int + type InspectArtifactResult = service.InspectArtifactResult + type InspectMetadata = service.InspectMetadata + type InspectOptions struct + AllSections bool + AllStyles bool + Attributes []string + Format string + OutDir string + OutputFile string + Props []string + Root bool + Section string + Selector string + Side string + Style string + type InspectRequest = service.InspectRequest + func BuildInspectRequests(cfg *config.Config, opts InspectOptions) ([]InspectRequest, error) + type InspectResult = service.InspectResult + func Inspect(ctx context.Context, cfg *config.Config, opts InspectOptions) (InspectResult, error) + type MatchedRule struct + Origin CascadeOrigin + Properties []RuleProperty + Selector string + Specificity Specificity + type MatchedSnapshot struct + Bounds *Bounds + Computed map[string]string + Exists bool + Rules []MatchedRule + type MatchedStyleEntry struct + Name string + Original MatchedSnapshot + OriginalSelector string + React MatchedSnapshot + ReactSelector string + Selector string + Winners []WinnerDiff + type MatchedStylesResult struct + Styles []MatchedStyleEntry + type PNGStats struct + BottomStripAverage [3]int + Height int + TopStripAverage [3]int + Width int + type PageResult struct + FullScreenshot string + InspectJSON string + Name string + PreparedHTML string + Sections []SectionResult + URL string + type PixelDiffEntry struct + ChangedPercent float64 + ChangedPixels int + DiffComparisonPath string + DiffOnlyPath string + NormalizedHeight int + NormalizedWidth int + OriginalScreenshot string + ReactScreenshot string + Section string + SkipReason string + Skipped bool + Threshold int + TotalPixels int + type PixelDiffResult struct + Entries []PixelDiffEntry + Threshold int + type PixelDiffStats struct + ChangedPercent float64 + ChangedPixels int + DiffComparisonPath string + DiffOnlyPath string + NormalizedHeight int + NormalizedWidth int + Threshold int + TotalPixels int + type RuleProperty struct + Important bool + Name string + Value string + type SectionResult struct + Bounds *Bounds + Exists bool + Name string + PNG *PNGStats + Screenshot string + Selector string + TextStart string + ValidationIssues []string + Visible bool + type Specificity struct + A int + B int + C int + func (s Specificity) Add(other Specificity) Specificity + func (s Specificity) Compare(other Specificity) int + func (s Specificity) String() string + type StoryDiscoveryResult struct + Entries []StoryEntry + type StoryEntry struct + ID string + Name string + Title string + type StyleDiff struct + Original string + Property string + React string + type StyleResult struct + Diffs []StyleDiff + Name string + Original StyleSnapshot + OriginalSelector string + React StyleSnapshot + ReactSelector string + Selector string + type StyleSnapshot = service.StyleSnapshot + type ValidationResult struct + Bounds *Bounds + Issues []string + PNG *PNGStats + Section string + Status string + Target string + type Winner struct + Important bool + Origin CascadeOrigin + Selector string + Specificity Specificity + Value string + type WinnerDiff struct + Original Winner + Property string + React Winner