"""Per-user 路径 helper — users/{user_id}/persona · objects。"""

from __future__ import annotations

from pathlib import Path


def user_root(home: Path, user_id: str) -> Path:
    return Path(home) / "users" / str(user_id).strip()


def persona_dir(home: Path, user_id: str) -> Path:
    return user_root(home, user_id) / "persona"


def persona_registry_path(home: Path, user_id: str) -> Path:
    return persona_dir(home, user_id) / "persona_registry.yaml"


def objects_root(home: Path, user_id: str) -> Path:
    return user_root(home, user_id) / "objects"


def virtual_personas_root(home: Path, user_id: str) -> Path:
    return user_root(home, user_id) / "virtual_personas"
