- Merge opencode-serve into the web container via entrypoint script - Add /api/agent/* JSON endpoints for workouts, sets, checkins - Rewrite fitness-trainer.md to use API instead of markdown files - Pass recent workouts and check-ins as chat context to the coach - Show current training phase on dashboard - Clarify check-ins as morning check-ins (calories/steps = yesterday) - Add NixOS deployment section to README - Make all check-in fields explicitly optional in UI
10 lines
422 B
Python
10 lines
422 B
Python
import os
|
|
from pathlib import Path
|
|
|
|
PROJECT_ROOT = Path(__file__).resolve().parent.parent
|
|
DATA_DIR = Path(os.environ.get("DATA_DIR", PROJECT_ROOT / "data"))
|
|
DATABASE_PATH = str(DATA_DIR / "fitness.db")
|
|
SESSION_SECRET = os.environ.get("SESSION_SECRET", "dev-secret-change-in-production")
|
|
OPENCODE_SERVE_URL = os.environ.get("OPENCODE_SERVE_URL", "http://localhost:4096")
|
|
AGENT_API_KEY = os.environ.get("AGENT_API_KEY", "")
|