File size: 656 Bytes
414dc55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
"""Filesystem path helpers. Creates runtime dirs lazily; never writes at import."""

from __future__ import annotations

from pathlib import Path

from ..constants import CASES_DIR, SEED_CASES_DIR


def runtime_cases_dir() -> Path:
    path = CASES_DIR / "runtime"
    path.mkdir(parents=True, exist_ok=True)
    return path


def prebaked_cases_dir() -> Path:
    """Shipped pool of full, model-authored cases served instantly on New Case (a warm
    start so the player never waits ~2 min for live generation). Committed, read-only."""
    return CASES_DIR / "prebaked"


def seed_case_path(name: str) -> Path:
    return SEED_CASES_DIR / f"{name}.json"