Service for listing, generating, and reading reports in a web UI, supporting markdown and HTML.
# Source: https://github.com/Netw0rkNoob/VulnClaw | License: MIT | Copyright 2026 UncleC
# Provided via justclaw.it.com; keep this notice with the code.
"""Report service for the Web UI backend."""
from __future__ import annotations
import re
from datetime import datetime
from pathlib import Path
from vulnclaw.config.settings import SESSIONS_DIR, ensure_dirs, load_config
from vulnclaw.i18n import init_i18n
from vulnclaw.report.generator import generate_report_from_target_state
from vulnclaw.target_state.store import load_target_state
from vulnclaw.web.schemas import ReportContentView
def _report_item(path: Path, kind: str) -> dict[str, str | int]:
stat = path.stat()
return {
"name": path.name,
"path": str(path.resolve()),
"kind": kind,
"modified
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key