@invarn/cibuild 2.2.1 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -99,6 +99,14 @@ var referenceGeometry = null;
99
99
  // set in main() and read by the structural assembler. Null when none declared →
100
100
  // the appearance container carries presence facts only (no copy facts).
101
101
  var referenceText = null;
102
+ // params.reference_color (Signal C: Figma fills per element id per screen, as
103
+ // { fill, text } hex), set in main() and read by the structural assembler. Null
104
+ // when none declared → no color facts.
105
+ var referenceColor = null;
106
+ // params.reference_baseline (Signal C: 'figma' (default) or 'previous_render').
107
+ // Marks whether the appearance reference is the design (divergences) or the
108
+ // previous catalog render (regressions/drift, the no-Figma path).
109
+ var referenceBaseline = null;
102
110
 
103
111
  function log(message) {
104
112
  console.log('[ui-fidelity-render-android] ' + message);
@@ -611,7 +619,7 @@ function renderScreens(renderable, projectRoot) {
611
619
  // geometry deltas vs reference_geometry) onto the screen entry, so the
612
620
  // judge reads the signals from protocol-result.json without fetching
613
621
  // artifacts. CONFIG.scale is the render density (dp = px / scale).
614
- assembleStructural(entry, layoutSource, referenceGeometry, CONFIG.scale, referenceText);
622
+ assembleStructural(entry, layoutSource, referenceGeometry, CONFIG.scale, referenceText, referenceColor, referenceBaseline);
615
623
  }
616
624
  });
617
625
  } finally {
@@ -685,6 +693,18 @@ function main() {
685
693
  !Array.isArray(params.reference_text)
686
694
  ? params.reference_text
687
695
  : null;
696
+ // Signal-C color reference: { "<Screen>": { "<elementId>": { fill, text } } } —
697
+ // the Figma fills mapped to element ids. Absent → no color facts.
698
+ referenceColor =
699
+ params.reference_color &&
700
+ typeof params.reference_color === 'object' &&
701
+ !Array.isArray(params.reference_color)
702
+ ? params.reference_color
703
+ : null;
704
+ // Signal-C baseline marker: 'previous_render' when the appearance reference was
705
+ // sourced from the previous catalog render (no-Figma drift path), else 'figma'.
706
+ referenceBaseline =
707
+ params.reference_baseline === 'previous_render' ? 'previous_render' : 'figma';
688
708
 
689
709
  var screens = Object.keys(params.screens);
690
710
  currentEntries = screens.map(function (screen) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invarn/cibuild",
3
- "version": "2.2.1",
3
+ "version": "2.2.3",
4
4
  "description": "CI Build CLI — local pipeline orchestration and validation",
5
5
  "type": "module",
6
6
  "main": "dist/cli.cjs",