runner

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 35 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, opts RegistryOptions) *analyze.Registry

BuildRegistry constructs the default analyzer registry. The fetcher is used by analyzers that retrieve additional resources (e.g. the sitemap analyzer). opts turns on the opt-in analyzer modes; the zero value leaves every one of them off.

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.

type RegistryOptions added in v0.5.0

type RegistryOptions struct {
	// Specialized enables the lower-confidence AI-search heuristics (AEO direct-answer-lead,
	// GEO quotable-density) and the WordPress analyzer's active endpoint probes.
	Specialized bool
	// SecurityAudit enables the security analyzer's TLS, certificate, and cookie audit.
	SecurityAudit bool
}

RegistryOptions turns on the analyzer modes that are off by default. Each corresponds to a config flag under `analyzers`; they are grouped here so adding one doesn't grow BuildRegistry's parameter list into a row of anonymous booleans.

Jump to

Keyboard shortcuts

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