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

Function _save_pending_store

config/direction_lexicon.py:728–736  ·  view source on GitHub ↗
(store: Dict[str, Any])

Source from the content-addressed store, hash-verified

726
727
728def _save_pending_store(store: Dict[str, Any]) -> bool:
729 try:
730 PENDING_PATH.parent.mkdir(parents=True, exist_ok=True)
731 with PENDING_PATH.open("w", encoding="utf-8") as handle:
732 json.dump(store, handle, indent=2, ensure_ascii=False, sort_keys=True)
733 return True
734 except Exception as exc:
735 print(f"Failed to save pending direction store: {exc}")
736 return False
737
738
739def load_pending_candidates() -> Dict[str, Dict[str, Any]]:

Calls

no outgoing calls

Tested by

no test coverage detected