v4.2.0
New features
- The installer now offers to install Doc Detective’s agent tools when it finds a supported coding agent that doesn’t have them. It asks only in an interactive terminal, and never in CI or when
DOC_DETECTIVE_SKIP_AGENT_PROMPTis set. The prompt never fails the install. See AI agents.
v4.1.2
Maintenance release; no user-facing changes.
v4.1.1
Maintenance release; no user-facing changes.
v4.1.0
New features
- Added the
install-agentscommand, which detects the AI coding agents on your machine and installs or updates Doc Detective’s agent tools for each one. It supports Claude Code, GitHub Copilot CLI, Gemini CLI, Codex, Qwen Code, and OpenCode. See AI agents. - Added the
htmlreporter, which writes your test results to a single self-contained HTML file with search, status filters, and media previews. Choose reporters with the newreportersconfig field or the--reporters(-r) CLI flag. The default isterminalandjson. See Reporters and artifacts. - Added the
originParamsconfig field and aparamsfield ongoToandcheckLinksteps, which append query parameters to URLs.originParamsapplies to relative URLs resolved againstorigin. Step-levelparamsmerge on top of it and also apply to absolute URLs. - A
screenshotstep’spathcan now be an HTTP or HTTPS URL to a PNG file. Doc Detective downloads the image as the reference, compares it with a new capture, and saves the capture locally. It never writes to the remote location. - Added a
headersfield tocheckLinkfor sites that require specific headers or cookies, such as bot-protection bypass tokens. Your headers override the defaults.
Behavior changes
checkLinksends browser-like request headers, retries up to three times on429and5xxresponses while honoringRetry-After, and falls back to aHEADrequest when aGETreturns429or403. These changes reduce false failures on sites behind bot protection.
Bug fixes
- Fixed
screenshotcomparisons that failed with an aspect-ratio mismatch when a padded crop extended past the edge of the viewport. Crops now shift to stay in bounds instead of shrinking, and comparisons tolerate small aspect-ratio differences.