"""Alive configuration and paths."""

import os
from pathlib import Path

ALIVE_HOME = Path(os.environ.get("ALIVE_HOME", Path.home() / ".alive"))
SKILLS_DIR = ALIVE_HOME / "skills"
DB_PATH = ALIVE_HOME / "alive.db"
VENV_DIR = ALIVE_HOME / "venv"
CONFIG_FILE = ALIVE_HOME / "config.json"
DREAMS_DIR = ALIVE_HOME / "dreams"


def ensure_dirs() -> None:
    """Create the alive home directory structure."""
    ALIVE_HOME.mkdir(parents=True, exist_ok=True)
    SKILLS_DIR.mkdir(exist_ok=True)
    DREAMS_DIR.mkdir(exist_ok=True)
