Load role metadata when available.
()
| 226 | |
| 227 | |
| 228 | def _load_roles_meta() -> Dict[str, Any]: |
| 229 | """Load role metadata when available.""" |
| 230 | roles_path = _resolve_role_meta_path() |
| 231 | if roles_path.exists(): |
| 232 | with open(roles_path, "r", encoding="utf-8") as f: |
| 233 | return json.load(f) |
| 234 | return {"roles": {}, "current_role": None} |
| 235 | |
| 236 | |
| 237 | def _save_roles_meta(meta: Dict[str, Any]) -> None: |
no test coverage detected