Coverage for src/romfarmer/driver/__init__.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.15.4, created at 2026-09-05 02:19 -0700

1"""romfarmer.driver — the compiler driver layer. 

2 

3``driver.resolve`` is the public RESOLVE phase: it turns a 

4``ResolvedPlatformConfig`` (+ composed target) into a frozen 

5``ResolvedBuild`` — manifest, format chain, DAT file, target profile, source 

6and output directories — with no I/O beyond config/DAT discovery. 

7 

8This package sits above the compiler core (``ir``, ``analysis``, ``planner``, 

9``engine``, ``targets``) and below the operator shells (``cli``, ``web``, 

10``mcp``). It must never import ``ai``, ``mcp`` or ``farmhand.optimizer`` 

11(import-linter contract "hermetic core is model-free"). 

12""" 

13 

14from romfarmer.targets.profiles.loader import TargetProfileError 

15 

16from .capability import Capabilities, capabilities 

17from .resolve import ( 

18 FormatNegotiationError, 

19 ResolvedBuild, 

20 ResolvePaths, 

21 negotiate_format_chain, 

22 negotiate_with_profile, 

23 resolve_platform, 

24) 

25from .session import PlanSession 

26from .summary import PlanSummary, PlatformSummary 

27 

28__all__ = [ 

29 "Capabilities", 

30 "PlanSession", 

31 "PlanSummary", 

32 "PlatformSummary", 

33 "capabilities", 

34 "FormatNegotiationError", 

35 "ResolvedBuild", 

36 "ResolvePaths", 

37 "TargetProfileError", 

38 "negotiate_format_chain", 

39 "negotiate_with_profile", 

40 "resolve_platform", 

41]