Courrier v2.2 (tt-2026-11-072, palier 2) : analyse IA structuree par mail

Fiche unique par mail via PrivAiTe (categorie proposee, confiance, resume, course, demande reelle),
stockee sans corps de mail ; mode automatique distinct, desactive par defaut ; bloc Analyse IA dans la lecture
(proposition, jamais appliquee sans clic) ; reglages IA dans Regles ; 20 tests (162 verts au total).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XGaEeTZLvHXfYPUNWkgYoi
This commit is contained in:
ClaudeandClaude Sonnet 5.5 committed 2026-11-20 17:19:31 +01:00
1 parent d1a1f412d3
commit 883b4e1745
5 files changed
+589 -4

No files matched your search

+3
View File
@@ -47,6 +47,7 @@ from app.classifier import (
from app import asuivre
from app.mirror_client import MirrorClient
from app.ia import creer_routeur
from app import analyse as _analyse
from app.auth import verify_cf_access_jwt
# --- Schémas Pydantic ---
@@ -90,6 +91,7 @@ async def lifespan(app: FastAPI):
pass
if ENV != "test":
mirror_client.demarrer_rafraichissement()
_analyse.demarrer_automatique(mirror_client)
yield
app = FastAPI(
@@ -678,4 +680,5 @@ def confirm_rule_endpoint(regle_id: int):
}
api.include_router(creer_routeur(mirror_client))
api.include_router(_analyse.creer_routeur(mirror_client))
app.include_router(api)