feat(content-build): scaffold package + Markdown yaml-block parser

This commit is contained in:
2026-07-11 18:01:45 -05:00
parent 40c3a7fc4b
commit bd293c1701
6 changed files with 116 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
"""The single failure type. Every validation/parse problem raises BuildError so
the CLI can print a uniform 'BUILD FAILED: <what> [<id>] (<file:line>)'."""
class BuildError(Exception):
def __init__(self, message: str, source: str = "", entry_id: str = ""):
self.message = message
self.source = source
self.entry_id = entry_id
loc = f" [{entry_id}]" if entry_id else ""
src = f" ({source})" if source else ""
super().__init__(f"{message}{loc}{src}")