Coverage for src/romfarmer/ir/__init__.py: 100%
7 statements
« prev ^ index » next coverage.py v7.15.4, created at 2026-09-05 02:19 -0700
« prev ^ index » next coverage.py v7.15.4, created at 2026-09-05 02:19 -0700
1"""romfarmer.ir — the typed Intermediate Representation for the ROM Farmer compiler.
3Five-phase pipeline:
4 RESOLVE → CATALOG → PLAN → EXECUTE → EMIT
6Each phase boundary is a frozen, serialisable IR artifact defined here.
7"""
9from .actions import (
10 Action,
11 ActionId,
12 ActionKey,
13 ArtifactDecl,
14 BuildPlan,
15 ContentRef,
16 InputRef,
17 PendingRef,
18 Retention,
19 SizePrediction,
20 UnitPlan,
21 resolve_key,
22)
23from .catalog import (
24 Catalog,
25 CatalogWarning,
26 DiscRef,
27 GameUnit,
28 PassResult,
29 PassTrace,
30 PlatformId,
31 SourceRef,
32 UnitId,
33)
34from .chain import FormatChain
35from .identity import (
36 Identity,
37 IdentityConflict,
38 ZipIdentity,
39)
40from .layout import (
41 LayoutConstraints,
42 LayoutEntry,
43 LayoutPlan,
44 MediaPolicy,
45 MetadataDialect,
46 OutputSet,
47 PlatformCapability,
48)
49from .manifest import BuildManifest
51__all__ = [
52 # chain
53 "FormatChain",
54 # identity
55 "Identity",
56 "IdentityConflict",
57 "ZipIdentity",
58 # catalog
59 "Catalog",
60 "CatalogWarning",
61 "DiscRef",
62 "GameUnit",
63 "PassResult",
64 "PassTrace",
65 "PlatformId",
66 "SourceRef",
67 "UnitId",
68 # actions
69 "Action",
70 "ActionId",
71 "ActionKey",
72 "ArtifactDecl",
73 "BuildPlan",
74 "ContentRef",
75 "InputRef",
76 "PendingRef",
77 "Retention",
78 "SizePrediction",
79 "UnitPlan",
80 "resolve_key",
81 # layout
82 "LayoutConstraints",
83 "LayoutEntry",
84 "LayoutPlan",
85 "MediaPolicy",
86 "MetadataDialect",
87 "OutputSet",
88 "PlatformCapability",
89 # manifest
90 "BuildManifest",
91]