MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / parse_manifest

Function parse_manifest

scripts/audit-license-provenance.py:123–132  ·  view source on GitHub ↗

grammar -> (repo, pinned_commit) from the verified-upstream table.

()

Source from the content-addressed store, hash-verified

121
122
123def parse_manifest():
124 """grammar -> (repo, pinned_commit) from the verified-upstream table."""
125 out = {}
126 with open(os.path.join(GRAMMARS, "MANIFEST.md"), encoding="utf-8") as fh:
127 for line in fh:
128 m = re.match(
129 r"^\| (\w[\w.+-]*) \| \d+ \| ([\w.-]+/[\w.-]+) \| `([^`]+)` \|", line)
130 if m:
131 out[m.group(1)] = (m.group(2), m.group(3))
132 return out
133
134
135def main():

Callers 1

mainFunction · 0.85

Calls 1

openFunction · 0.50

Tested by

no test coverage detected