MCPcopy Index your code
hub / github.com/Codeplain-ai/codeplain / load_module_metadata

Method load_module_metadata

plain_modules.py:106–116  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

104 return repo
105
106 def load_module_metadata(self) -> dict | None:
107 codeplain_folder = self.get_codeplain_folder()
108 if not os.path.exists(codeplain_folder):
109 return None
110
111 metadata_path = os.path.join(codeplain_folder, MODULE_METADATA_FILENAME)
112 if not os.path.exists(metadata_path):
113 return None
114
115 with open(metadata_path, "r", encoding="utf-8") as f:
116 return json.load(f)
117
118 def update_frid_in_module_metadata(self, frid: str) -> None:
119 # Store the raw FR markdown (with any {{ code_variable }} placeholders intact), exactly

Callers 7

spec_changeFunction · 0.45
code_changeFunction · 0.45
_detect_module_changesFunction · 0.45

Calls 2

get_codeplain_folderMethod · 0.95
loadMethod · 0.80

Tested by

no test coverage detected