./deployment/update_from_git.sh --db

╔═══════════════════════════════════════════════╗
║    AGGIORNAMENTO SISTEMA IDS DA GIT         ║
╚═══════════════════════════════════════════════╝

 Verifica configurazione git...

 Backup configurazione locale...
✅ .env salvato in .env.backup

 Verifica modifiche locali...
⚠  Ci sono modifiche locali non committate
   Esegui 'git status' per vedere i dettagli
Vuoi procedere comunque? (y/n) y
   Salvo modifiche locali temporaneamente...
No local changes to save

 Download aggiornamenti da git.alfacom.it...
remote: Enumerating objects: 51, done.
remote: Counting objects: 100% (51/51), done.
remote: Compressing objects: 100% (41/41), done.
remote: Total 41 (delta 32), reused 0 (delta 0), pack-reused 0 (from 0)
Unpacking objects: 100% (41/41), 31.17 KiB | 1.35 MiB/s, done.
From https://git.alfacom.it/marco/ids.alfacom.it
   0fa2f11..3a945ec  main       -> origin/main
 * [new tag]         v1.0.55    -> v1.0.55
From https://git.alfacom.it/marco/ids.alfacom.it
 * branch            main       -> FETCH_HEAD
Updating 0fa2f11..3a945ec
Fast-forward
 database-schema/schema.sql        |   4 +-
 deployment/CHECKLIST_ML_HYBRID.md | 536 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 python_ml/dataset_loader.py       | 384 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 python_ml/main.py                 | 120 ++++++++++++++++++++++++++++------
 python_ml/ml_hybrid_detector.py   | 705 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 python_ml/requirements.txt        |   3 +
 python_ml/train_hybrid.py         | 378 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 python_ml/validation_metrics.py   | 324 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 replit.md                         |  19 +++++-
 version.json                      |  16 ++---
 10 files changed, 2459 insertions(+), 30 deletions(-)
 create mode 100644 deployment/CHECKLIST_ML_HYBRID.md
 create mode 100644 python_ml/dataset_loader.py
 create mode 100644 python_ml/ml_hybrid_detector.py
 create mode 100644 python_ml/train_hybrid.py
 create mode 100644 python_ml/validation_metrics.py
✅ Aggiornamenti scaricati con successo

🔄 Ripristino configurazione locale...
✅ .env ripristinato

📦 Aggiornamento dipendenze Node.js...

up to date, audited 492 packages in 3s

65 packages are looking for funding
  run `npm fund` for details

9 vulnerabilities (3 low, 5 moderate, 1 high)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
✅ Dipendenze Node.js aggiornate

📦 Aggiornamento dipendenze Python...
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: fastapi==0.104.1 in /home/ids/.local/lib/python3.11/site-packages (from -r requirements.txt (line 1)) (0.104.1)
Requirement already satisfied: uvicorn==0.24.0 in /home/ids/.local/lib/python3.11/site-packages (from -r requirements.txt (line 2)) (0.24.0)
Requirement already satisfied: pandas==2.1.3 in /home/ids/.local/lib/python3.11/site-packages (from -r requirements.txt (line 3)) (2.1.3)
Requirement already satisfied: numpy==1.26.2 in /home/ids/.local/lib/python3.11/site-packages (from -r requirements.txt (line 4)) (1.26.2)
Requirement already satisfied: scikit-learn==1.3.2 in /home/ids/.local/lib/python3.11/site-packages (from -r requirements.txt (line 5)) (1.3.2)
Requirement already satisfied: psycopg2-binary==2.9.9 in /home/ids/.local/lib/python3.11/site-packages (from -r requirements.txt (line 6)) (2.9.9)
Requirement already satisfied: python-dotenv==1.0.0 in /home/ids/.local/lib/python3.11/site-packages (from -r requirements.txt (line 7)) (1.0.0)
Requirement already satisfied: pydantic==2.5.0 in /home/ids/.local/lib/python3.11/site-packages (from -r requirements.txt (line 8)) (2.5.0)
Requirement already satisfied: httpx==0.25.1 in /home/ids/.local/lib/python3.11/site-packages (from -r requirements.txt (line 9)) (0.25.1)
Collecting xgboost==2.0.3
  Downloading xgboost-2.0.3-py3-none-manylinux2014_x86_64.whl (297.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 297.1/297.1 MB 8.4 MB/s eta 0:00:00
Collecting joblib==1.3.2
  Downloading joblib-1.3.2-py3-none-any.whl (302 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 302.2/302.2 kB 62.7 MB/s eta 0:00:00
ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11
ERROR: Could not find a version that satisfies the requirement eif==2.0.0 (from versions: 1.0.0, 1.0.1, 1.0.2, 2.0.2)
ERROR: No matching distribution found for eif==2.0.0