@parserelay/core
The shared scan request/response contract for ParseRelay — the single source of truth used by the MCP tool, the REST endpoint, and the <DeadSimpleMicroScanner> component.
import type { ScanRequest, ScanEnvelope, Engine } from "@parserelay/core";
import { isEnvelope } from "@parserelay/core";
Design rule: the envelope (ScanEnvelope) is stable and additive-only. The engine is a swappable parameter behind it — new extraction modes ship without breaking existing callers.
The types exported here are the canonical definition of the scan contract. See
docs/SCAN_API.md for the full reference and
docs/ERRORS.md for error codes.