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

Function _load_pending_store

config/direction_lexicon.py:714–725  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

712
713
714def _load_pending_store() -> Dict[str, Dict[str, Any]]:
715 if not PENDING_PATH.exists():
716 return {}
717 try:
718 with PENDING_PATH.open("r", encoding="utf-8") as handle:
719 raw = json.load(handle) or {}
720 except Exception as exc:
721 print(f"Failed to load pending direction store: {exc}")
722 return {}
723 if not isinstance(raw, dict):
724 return {}
725 return {key: value for key, value in raw.items() if isinstance(value, dict)}
726
727
728def _save_pending_store(store: Dict[str, Any]) -> bool:

Calls

no outgoing calls

Tested by

no test coverage detected