Expand description
Markdown renderers.
Two entry points:
render— full scan report from aScanOutcome.render_diff— standalone diff section from acrate::scan::diff::DiffReport, used byagentsec diffand thescan_diffMCP tool.
§render output sections (always in this order)
# AgentSec scan — <RFC 3339 UTC>header + total path count.## Inventorytable with one row percrate::scan::inventory::PathEntry.## Diff vs previous snapshot—_no previous snapshot — this is the baseline._on first run,_no changes._when the diff is empty, otherwise three subsections (### Added,### Modified,### Removed).- Footer line with the absolute snapshot path.
Pure functions: no I/O, no allocation beyond the output string.
Functions§
- diff_
summary_ line - Short one-line diff summary for hook stderr output.
- render
- Render
outcomeas a Markdown report (see module docs §renderoutput sections for the schema). - render_
blacklist - Render BlackList classify verdicts as Markdown.
- render_
diff - Render a standalone diff report as Markdown.
- render_
doctor - Render a
DoctorReportas Markdown. - render_
info - Render an
InfoReportas Markdown. - render_
recent - Render a
RecentActivityReportas Markdown. - render_
status - Render a
StatusReportas Markdown.