cuda-doctor logo

Repo scan and patch contract

Implementedv0.0.0

include/core/repo.hpp

This header models repo scanning as a first-class diagnostic. It exposes `Issue`, `ScanResult`, and `AutoFixResult`, plus the scan and auto-fix entrypoints that `doctor` relies on.

Reference

Public APIcpp
struct Issue { std::filesystem::path file; std::size_t line; std::string description; std::string snippet; };
struct ScanResult { Probe probe; std::vector<Issue> issues; };
struct AutoFixResult { Probe probe; std::vector<std::filesystem::path> changed_files; };

ScanResult scan(const std::filesystem::path& cwd);
AutoFixResult apply_fixes(const std::filesystem::path& cwd);