mirror of
https://github.com/Alkatrazz24/Funk-lab.git
synced 2026-07-08 19:54:43 +02:00
feat(finlab): alertes de prix par email (watcher sidecar, boucle 5 min)
Permet de configurer des alertes « préviens-moi par mail quand NVDA atteint 200$ » depuis la Console IA. Un sidecar surveille les cours en continu. - finlab/watcher.py : boucle toutes les 5 min, lit price_alerts.yaml (workspace), évalue les seuils above/below, envoie un email au franchissement. Anti-spam (1 mail/seuil, état .watcher-state.json, ré-armé en ré-éditant). Modes --once / --test - Email via le relais postfix du lab (storage-01:25, SMTP_HOST) qui réécrit l'expéditeur en Gmail — AUCUN secret (pods k8s dans mynetworks) - price_alerts.yaml : config seedée dans le workspace (email_to + rules), éditée par la Console IA sur demande - deployment : conteneur sidecar `watcher` (boucle 5 min, ressources minimes) - Dockerfile : seed price_alerts.yaml ; persona console + admin/ia/finlab.md documentés Logique testée en local (SMTP mocké) : franchissement → envoi, anti-spam au 2e run, seuil non atteint → rien. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
b032820f23
commit
a1abd36bf7
6 changed files with 207 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ COPY webapp/ /opt/app/webapp/
|
|||
# « Seed » du workspace : UNIQUEMENT ce que l'utilisateur édite/possède (pas de code).
|
||||
# Configs finlab + persona Claude + branchement MCP + autorisations. Copié dans le PVC au
|
||||
# 1er boot par l'initContainer (cp -rn no-clobber → edits préservés ensuite).
|
||||
COPY portfolio.yaml watchlists.yaml alerts.yaml /opt/seed/
|
||||
COPY portfolio.yaml watchlists.yaml alerts.yaml price_alerts.yaml /opt/seed/
|
||||
COPY workspace/CLAUDE.md /opt/seed/CLAUDE.md
|
||||
COPY workspace/.mcp.json /opt/seed/.mcp.json
|
||||
COPY workspace/.claude/ /opt/seed/.claude/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue