internal/

directory
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: MIT

Directories

Path Synopsis
Package app orchestrates the full scan pipeline: preflight → crawl → judge → embed/dedup → report.
Package app orchestrates the full scan pipeline: preflight → crawl → judge → embed/dedup → report.
Package config loads and validates prompts.yaml.
Package config loads and validates prompts.yaml.
Package emb defines the EmbeddingClient interface plus Ollama / OpenAI / Voyage implementations.
Package emb defines the EmbeddingClient interface plus Ollama / OpenAI / Voyage implementations.
Package embed implements Pass 2 — embedding-based duplicate detection.
Package embed implements Pass 2 — embedding-based duplicate detection.
Package errs holds the sentinel errors used across redline so that callers can use errors.Is/As to classify failures, and the CLI can map them to deterministic exit codes.
Package errs holds the sentinel errors used across redline so that callers can use errors.Is/As to classify failures, and the CLI can map them to deterministic exit codes.
Package extract converts an HTML document into the two outputs the rest of the pipeline needs: body_text (for the LLM judge) and outbound_links (for crawler BFS).
Package extract converts an HTML document into the two outputs the rest of the pipeline needs: body_text (for the LLM judge) and outbound_links (for crawler BFS).
Package httpx provides the shared HTTP client + universal retry wrapper used for every outbound call (target site, Ollama, Anthropic, OpenAI, Voyage).
Package httpx provides the shared HTTP client + universal retry wrapper used for every outbound call (target site, Ollama, Anthropic, OpenAI, Voyage).
Package judge orchestrates the LLM call for every page.
Package judge orchestrates the LLM call for every page.
llm
Package llm defines the provider-agnostic LLM client interface used by the judge.
Package llm defines the provider-agnostic LLM client interface used by the judge.
anthropic
Package anthropic implements llm.LLMClient against the Anthropic Messages API.
Package anthropic implements llm.LLMClient against the Anthropic Messages API.
ollama
Package ollama implements llm.LLMClient against an Ollama HTTP server.
Package ollama implements llm.LLMClient against an Ollama HTTP server.
Package log provides the structured slog handler used across redline.
Package log provides the structured slog handler used across redline.
Package report builds the JSON and Markdown report artifacts.
Package report builds the JSON and Markdown report artifacts.
normalize
Package normalize replaces dynamic fields in reports with stable placeholders so golden-file tests can compare byte-for-byte.
Package normalize replaces dynamic fields in reports with stable placeholders so golden-file tests can compare byte-for-byte.
Package store is the SQLite repository layer for redline.
Package store is the SQLite repository layer for redline.
Package version exposes build metadata baked in at link time.
Package version exposes build metadata baked in at link time.

Jump to

Keyboard shortcuts

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