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:
Dieter Schlüter 2026-06-14 19:02:17 +02:00
commit 013cf794bc
13 changed files with 479 additions and 60 deletions

View file

@ -20,6 +20,7 @@ DEFAULT_CONFIG: dict = {
".mp4", ".mp3", ".webm", ".avi", ".mov",
],
"exclude_paths": [],
"include_paths": [],
"sitemap": True,
},
"scoring": {
@ -79,9 +80,10 @@ DEFAULT_CONFIG: dict = {
"url": "",
},
},
# KI-gestützte semantische Inhaltsanalyse (OpenRouter). Optional, opt-in.
# KI-gestützte semantische Inhaltsanalyse (OpenRouter, primär).
# Hash-gegated: nur neue/geänderte Inhalte lösen einen API-Call aus — siehe
# ai_ledger.json. Der API-Key kommt NUR aus der Umgebungsvariable (nie in config.yaml).
# Lokale Server (localhost:8001, :8002) dienen nur als Dev-Fallback.
"ai_analysis": {
"enabled": False,
"api_key_env": "OPENROUTER_API_KEY",
@ -138,7 +140,7 @@ DEFAULT_CONFIG: dict = {
"audio": {
"enabled": False,
"models": ["google/gemini-2.5-flash"],
"max_files_per_scan": 5,
"max_files_per_scan": 0, # 0 = unbegrenzt
},
"video": {
"enabled": False,