from pathlib import Path

PROJECT_ROOT = Path(__file__).resolve().parent.parent
TEMPLATES_DIR = PROJECT_ROOT / "templates"
STORAGE_DIR = PROJECT_ROOT / "storage"
FRONTEND_DIST = PROJECT_ROOT / "frontend" / "dist"
DB_PATH = STORAGE_DIR / "guides.db"
PROJECTS_DIR = PROJECT_ROOT / "projects"
PROJECTS_CACHE_DIR = STORAGE_DIR / "projects"

ALLOWED_FORMATS = [
    "OnePager",
    "Cheatsheet",
    "MiniGuide",
    "Guide",
    "EndGuide",
]

FORMAT_META = {
    "OnePager": {"pages": "1 Seite", "time": "~5 Min"},
    "Cheatsheet": {"pages": "1 Seite", "time": "~10 Min"},
    "MiniGuide": {"pages": "3-4 Seiten", "time": "~15 Min"},
    "Guide": {"pages": "15-250 Seiten", "time": "variabel"},
    "EndGuide": {"pages": "120-150 Seiten", "time": "~6h"},
}

AGENT_TIMEOUT = 3600

MAX_CONCURRENT_GENERATIONS = 6
CLAUDE_CLI = "claude"

MODEL_GUIDE = "claude-opus-4-8[1m]"
MODEL_BAUSTEIN_GEN = "claude-sonnet-4-6"
MODEL_BAUSTEIN_REWORK = "claude-sonnet-4-6"
MODEL_CHAT = "claude-sonnet-4-6"
MODEL_PROJECT_INDEX = MODEL_BAUSTEIN_GEN
