"""FastAPI dependency injection helpers."""
from __future__ import annotations

from pathlib import Path

# Project root is two levels up from this file (apps/web/dependencies.py -> fithia2/)
_PROJECT_ROOT = Path(__file__).parent.parent.parent


def get_project_root() -> Path:
    return _PROJECT_ROOT


def get_configs_dir() -> Path:
    return _PROJECT_ROOT / "configs" / "experiments"


def get_journal_dir() -> Path:
    return _PROJECT_ROOT / "journal"


def get_runs_dir() -> Path:
    return _PROJECT_ROOT / "runs"
