runner

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 36 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

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
	// IgnoreExternalTagging suppresses the utm analyzer's tagging-quality warnings for
	// links leaving the crawled domain. On by default.
	IgnoreExternalTagging 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