feat: add local server fallback to AI analyzer, include_paths support, config_path in reports
- ai_analyzer: OpenRouter primary + localhost:8001/:8002 as dev fallback - crawler: support include_paths for targeted crawling - __main__: pass config_path through report pipeline - tests: 266 tests passing
This commit is contained in:
parent
989f5a933f
commit
013cf794bc
13 changed files with 479 additions and 60 deletions
|
|
@ -20,11 +20,16 @@ def render_markdown(r: dict) -> str:
|
|||
symbol, headline = ampel(lvl)
|
||||
ai = r.get("ai_result")
|
||||
|
||||
config_path = r.get("config_path")
|
||||
scan_cmd = (f"python -m scanner --config {config_path} scan"
|
||||
if config_path else f"python -m scanner {target} scan")
|
||||
|
||||
# ---- Klartext-Teil (für den Betreiber) ----
|
||||
lines = [
|
||||
f"# Prüfbericht für Ihre Website — {target or '?'}",
|
||||
"",
|
||||
f"**Erstellt:** {r.get('generated_at', '?')}",
|
||||
f"**Erstellt:** {r.get('generated_at', '?')} ",
|
||||
f"**Kommando:** `{scan_cmd}`",
|
||||
"",
|
||||
f"## {symbol} {headline}",
|
||||
"",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue