| 295 | if isinstance(out.get("options"), dict): |
| 296 | options = dict(out["options"]) |
| 297 | for key, value in options.items(): |
| 298 | if key.endswith("_path") or key.endswith("_file") or key.endswith(".path") or key.endswith(".file"): |
| 299 | options[key] = maybe_absolute_path(value) |
| 300 | elif key in {"voice_samples", "vibevoice.voice_samples"}: |
| 301 | options[key] = maybe_absolute_path_list(value) |
| 302 | out["options"] = options |
| 303 | return out |
| 304 | |
| 305 | |
| 306 | def write_sequence_file(case: dict[str, Any], case_dir: Path) -> Path: |
| 307 | sequence_path = case_dir / "requests.json" |
| 308 | requests = [materialize_request_paths(request) for request in case["requests"]] |