from pathlib import Path def get_work_dirs(input_path: Path) -> dict: """ Get unified work directory paths for a specific book. Structure: .work/ ├── {book_name}/ │ ├── book_structure.json │ ├── manifest.json │ ├── assets/ │ └── chunks/ """ book_name = input_path.stem work_root = Path(".work") / book_name return { "root": work_root, "structure": work_root / "book_structure.json", "manifest": work_root / "manifest.json", "assets": work_root / "assets", "chunks": work_root / "chunks", }