MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / load_roles_meta

Function load_roles_meta

scripts/clear_database.py:38–44  ·  view source on GitHub ↗

Load role metadata from disk.

(roles_path: Path = ROLES_FILE)

Source from the content-addressed store, hash-verified

36
37
38def load_roles_meta(roles_path: Path = ROLES_FILE) -> Dict[str, Any]:
39 """Load role metadata from disk."""
40 if not roles_path.exists():
41 raise FileNotFoundError(f"Roles file not found: {roles_path}")
42
43 with roles_path.open("r", encoding="utf-8") as handle:
44 return json.load(handle)
45
46
47def backup_database(db_path: Path = DB_PATH, backup_dir: Path = BACKUP_DIR) -> Path:

Callers 3

full_resetFunction · 0.70
benchmark_resetFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected