runner

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 33 Imported by: 0

Documentation

Overview

Package runner wires the crawl engine, analyzer registry, and report builder into a single entry point used by both the CLI and the MCP server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRegistry

func BuildRegistry(fetcher crawler.Fetcher, specialized bool) *analyze.Registry

BuildRegistry constructs the default analyzer registry. The fetcher is used by analyzers that retrieve additional resources (e.g. the sitemap analyzer). When specialized is true, the opt-in, lower-confidence AI-search heuristics (AEO direct-answer-lead, GEO quotable-density) are turned on; otherwise they stay silent.

func Run

func Run(ctx context.Context, cfg config.Config, seed string) (*report.Report, error)

Run performs a full crawl + analysis for the given config and seed, returning a Report. The seed argument overrides cfg.Seed when non-empty.

Types

type AnalyzerInfo

type AnalyzerInfo struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

AnalyzerInfo describes one registered analyzer.

func ListAnalyzers

func ListAnalyzers() []AnalyzerInfo

ListAnalyzers returns metadata for every registered analyzer.

Jump to

Keyboard shortcuts

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