pub struct DoctorReport {
pub schema_version: u32,
pub generated_at: String,
pub checks: Vec<Finding>,
pub summary: Summary,
}Expand description
Top-level payload emitted by repograph doctor. schema_version is the
contract — additive-only at 1; breaking changes bump it.
Fields§
§schema_version: u32§generated_at: String§checks: Vec<Finding>§summary: SummaryImplementations§
Source§impl DoctorReport
impl DoctorReport
Sourcepub fn run(
config_load: Result<&Config, &RepographError>,
config_path: &Path,
generated_at: String,
) -> Self
pub fn run( config_load: Result<&Config, &RepographError>, config_path: &Path, generated_at: String, ) -> Self
Run every check applicable to the given config-load outcome and return
a sorted DoctorReport.
config_loadisOk(&config)when the config loaded (including the “missing file → empty config” case), orErr(&err)when the load itself surfaced an error (malformed TOML, I/O error other thanNotFound). The binary mapsPermissionDeniedto exit4before calling this function; what reaches here isConfigParseor other non-permissionIofailures.config_pathis the file theConfigPresentcheck probes and reports in itstargetfield.generated_atis the RFC 3339 UTC timestamp the binary stamps via thetimecrate (core stays free of time deps, same pattern ascontext-command).
Sourcepub fn with_index_check(self, status: &IndexStatus) -> Self
pub fn with_index_check(self, status: &IndexStatus) -> Self
Append the search-index health finding, then re-sort and re-tally.
The binary owns data-dir resolution and the IndexStatus probe, so it
computes the status and folds it into the report here. The finding is
ok when the index is present and current, warn when it is missing,
unreadable, or stale relative to one or more repos’ HEAD.
Sourcepub fn with_skill_artifact_check(
self,
selected: &[AgentId],
home: &Path,
cwd: &Path,
) -> Self
pub fn with_skill_artifact_check( self, selected: &[AgentId], home: &Path, cwd: &Path, ) -> Self
Fold in a read-only freshness check for the installed skill artifacts.
For each selected agent (with a writer) and each of its capabilities,
resolves the expected install path under both user and project scope,
reads whichever exists, and compares its version stamp to the running
binary’s crate::agent_artifact::ARTIFACT_BODY_VERSION. Reports ok
when current, warn when missing or stale — and never writes, creates,
or repairs the artifact. When selected is empty (no [agents]), no
findings are produced. The binary owns home/cwd resolution and folds
the result in here, mirroring Self::with_index_check.
Trait Implementations§
Source§impl Clone for DoctorReport
impl Clone for DoctorReport
Source§fn clone(&self) -> DoctorReport
fn clone(&self) -> DoctorReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more