Sales Trainer v0.1: corporate sales-training simulator (Flask+Vue, 15 personas, chat simulator, judge, analytics)

- Auth/roles (no self-reg), admin user provision, JWT
- Analyze: sales kit + initial pain-fit from form/upload
- Persona generator: 15 personas (5/tier) w/ pain variety, negotiation, init mode, channel, latent/revealable, wrong_text special
- Chat simulator: per-mode initiation, one-shot, hidden signals, judge-LLM debrief+coaching
- Trainee loop: win/lose board, weak-areas, user-generated personas
- Admin analytics; EN+TH Vue SPA served by Flask
- Deploy: Dockerfile, docker-compose, README, eng-log + HANDOFF
- Tests (mock LLM): m0/m1/routes/e2e all pass
This commit is contained in:
Macky
2026-08-07 15:31:06 +07:00
commit c3d31c06e2
70 changed files with 6135 additions and 0 deletions

21
.env.example Normal file
View File

@@ -0,0 +1,21 @@
# ===== Sales Trainer configuration =====
# Copy to .env for docker-compose / deployment.
# --- LLM (OpenAI / DeepSeek / any OpenAI-compatible) ---
# provider: deepseek | openai | custom (custom => set LLM_BASE_URL + LLM_MODEL_NAME)
LLM_PROVIDER=deepseek
LLM_BASE_URL=
LLM_MODEL_NAME=deepseek-chat
LLM_API_KEY=replace_me
# --- Auth ---
# REQUIRED: use a long random value in production
JWT_SECRET=change_this_secret_to_a_long_random_string
JWT_EXPIRES_HOURS=24
# --- Runtime ---
FLASK_HOST=0.0.0.0
FLASK_PORT=5001
FLASK_DEBUG=0
DATA_DIR=./data
UPLOAD_MAX_MB=15