Skip to main content

Module report_export

Module report_export 

Source

Functions§

fix_issue_categories
fix_plan_auto_commands
fix_plan_topics
generate_diagnosis_report
Run a full staged diagnosis — health_report → triage → targeted follow-ups → fix recipes. No TUI, no model required. Output is self-contained markdown for cloud model ingestion.
generate_diagnosis_report_html
Same as generate_diagnosis_report but outputs a self-contained HTML file.
generate_fix_plan_html
generate_fix_plan_markdown
generate_inspect_output
Run one or more inspect_host topics by name and return combined plain-text output. topics_csv is a comma-separated list: e.g. “wifi,latency,dns_cache”.
generate_query_output
Route a natural-language query to the appropriate inspect_host topics and run them. Uses all_host_inspection_topics() for multi-topic detection, falls back to preferred_host_inspection_topic() for single-topic, then “summary” if nothing matches.
generate_report_html
Self-contained HTML diagnostic report — double-clickable, no external deps.
generate_report_json
generate_report_markdown
generate_triage_report_html
generate_triage_report_markdown
report_has_issues_in_content
run_inspect_topics
Run inspect topics and optionally save as a report file. Returns (content, saved_path_option).
save_diagnosis_report
save_diagnosis_report_html
save_fix_plan
save_fix_plan_html
save_fix_plan_with_summary
Like save_fix_plan but also returns the plain-text action plan for immediate terminal printing. Returns (action_plan_text, full_md, path).
save_report_html
save_report_json
Same as save_report_markdown but JSON format.
save_report_markdown
Runs diagnostic topics, writes to .hematite/reports/health-<timestamp>.md, and returns (markdown_content, saved_path).
save_research_html
Save arbitrary markdown content as a dark-theme HTML page. Returns (html_string, saved_path). Title defaults to a timestamp slug if empty. Saves to .hematite/reports/research-DATE.html.
save_triage_report
save_triage_report_html
score_health_from_content
Re-score health from a saved report’s plain-text content for terminal display. Wraps the whole content as a single pseudo-section and runs the recipe matcher.
suggest_fix_commands
Given the combined plain-text content of a triage or diagnose report, return a deduplicated list of hematite --fix "<issue>" suggestions for the IT tech. Only ACTION and INVESTIGATE severity recipes are surfaced.