03f723f7fc
NiceGUI è la dashboard ufficiale (port 8080, dark/neon palette, 3 pagine:
/, /convergence, /genomes). La porta è ora parametrica via env
SWARM_DASHBOARD_PORT, letta in ui.run() — Docker la usa anche per
healthcheck e label Traefik.
docker-compose.yml: entrypoint del servizio dashboard cambiato da
streamlit a python -m multi_swarm.dashboard.nicegui_app. Default porta
8080 ovunque (.env, .env.example, compose, healthcheck).
Rimossi i file legacy della vecchia GUI Streamlit:
- src/multi_swarm/dashboard/streamlit_app.py
- src/multi_swarm/dashboard/aquarium.py (helper canvas HTML5)
- src/multi_swarm/dashboard/pages/{01_overview,02_ga_convergence,
03_genomes,04_aquarium}.py
- tests/integration/test_streamlit_smoke.py
pyproject.toml: rimossa la dep streamlit; uv.lock rigenerato (10 deps
transitive eliminate: pydeck, watchdog, jsonschema, pillow, ecc.).
README aggiornato (architettura, comando dashboard, sezione Dashboard
ora descrive NiceGUI con riferimento al deploy Docker via Traefik).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
38 lines
1.3 KiB
Bash
38 lines
1.3 KiB
Bash
# Cerbero MCP — VPS endpoint per dati storici reali
|
|
CERBERO_BASE_URL=https://cerbero-mcp.tielogic.xyz
|
|
# NOTE: per dati storici reali Phase 1 (BTC-PERPETUAL Deribit) serve il MAINNET_TOKEN.
|
|
# Il TESTNET_TOKEN punta agli endpoint testnet degli exchange — utile solo per smoke test.
|
|
CERBERO_TESTNET_TOKEN=
|
|
CERBERO_MAINNET_TOKEN=
|
|
CERBERO_BOT_TAG=swarm-poc-phase1
|
|
|
|
# LLM provider (single endpoint via OpenRouter — supports anthropic/openai/qwen/llama models)
|
|
OPENROUTER_API_KEY=
|
|
OPENROUTER_BASE_URL=https://openrouter.ai/api/v1
|
|
|
|
# Models per tier (override Phase 1 defaults if needed)
|
|
LLM_MODEL_TIER_S=google/gemini-3-flash-preview
|
|
LLM_MODEL_TIER_A=deepseek/deepseek-v4-flash
|
|
LLM_MODEL_TIER_B=deepseek/deepseek-v4-flash
|
|
LLM_MODEL_TIER_C=qwen/qwen-2.5-72b-instruct
|
|
LLM_MODEL_TIER_D=openai/gpt-oss-20b
|
|
|
|
# Run config
|
|
RUN_NAME=phase1-spike-001
|
|
DATA_DIR=./data
|
|
SERIES_DIR=./series
|
|
DB_PATH=./runs.db
|
|
|
|
# Docker / Traefik (usati SOLO da docker-compose.yml)
|
|
# Dominio base: traefik espone la dashboard su swarm.${DOMAIN_NAME}
|
|
DOMAIN_NAME=tielogic.xyz
|
|
# Porta interna della NiceGUI dashboard (Traefik fa il TLS davanti)
|
|
SWARM_DASHBOARD_PORT=8080
|
|
|
|
# Paper-trading runner — override del command nel compose (opzionali)
|
|
PAPER_RUN_NAME=phase3-papertrade-prod
|
|
PAPER_INITIAL_CAPITAL=1000
|
|
PAPER_FEES_BP=5.0
|
|
PAPER_POLL_SECONDS=300
|
|
PAPER_LOOKBACK_BARS=500
|