WIP: PAIN3

This commit is contained in:
2026-03-05 15:10:53 -05:00
parent fca57841c6
commit 8784d05db4
12 changed files with 72 additions and 52 deletions

View File

@@ -14,7 +14,7 @@ import json
from typing import Any, Optional, TYPE_CHECKING, Union
from pathlib import Path
if TYPE_CHECKING:
from models import TrackState
from src.models import TrackState
TS_FMT: str = "%Y-%m-%dT%H:%M:%S"
def now_ts() -> str:
@@ -248,7 +248,7 @@ def load_track_state(track_id: str, base_dir: Union[str, Path] = ".") -> Optiona
"""
Loads a TrackState object from conductor/tracks/<track_id>/state.toml.
"""
from models import TrackState
from src.models import TrackState
state_file = Path(base_dir) / "conductor" / "tracks" / track_id / "state.toml"
if not state_file.exists():
return None