Skip to content

An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.

fix: make verify:data pass on Windows checkouts (#540)

Elvin Novruzov04cfb449bd84
diff --git a/.gitattributes b/.gitattributes
index 77b40e6..376b65d 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -4,3 +4,15 @@
# Pin these files to LF so the snapshot is reproducible everywhere.
src/ui-ux-pro-max/data/*.csv text eol=lf
src/ui-ux-pro-max/data/*.json text eol=lf
+src/ui-ux-pro-max/data/stacks/*.csv text eol=lf
+
+# scripts/evaluate-relevance.py fingerprints the raw bytes of these files, and
+# the committed thresholds manifest records that hash. A CRLF checkout (for
+# example core.autocrlf=true on Windows) changes the bytes, so the relevance
+# gate fails with "runtimeFingerprint does not match" on a clean tree.
+src/ui-ux-pro-max/scripts/core.py text eol=lf
+src/ui-ux-pro-max/scripts/design_system.py text eol=lf
+src/ui-ux-pro-max/scripts/reasoning_contract.py text eol=lf
+src/ui-ux-pro-max/scripts/tests/fixtures/relevance-cases.json text eol=lf
+scripts/evaluate-relevance.py text eol=lf
+scripts/relevance_metrics.py text eol=lf
diff --git a/cli/package.json b/cli/package.json
index 00bb25a..68ccde6 100755
--- a/cli/package.json
+++ b/cli/package.json
@@ -19,7 +19,7 @@
"validate:semantic": "cd .. && node cli/scripts/run-python.mjs src/ui-ux-pro-max/scripts/validate_data.py",
"validate:agent-guide": "cd .. && node cli/scripts/run-python.mjs scripts/validate-agent-guide.py",
"validate:catalog-summary": "cd .. && node cli/scripts/run-python.mjs scripts/generate-catalog-summary.py --check",
- "test:python": "cd .. && node cli/scripts/run-python.mjs -m unittest discover -s src/ui-ux-pro-max/scripts/tests -p 'test_*.py'",
+ "test:python": "cd .. && node cli/scripts/run-python.mjs -m unittest discover -s src/ui-ux-pro-max/scripts/tests -p \"test_*.py\"",
"evaluate:relevance": "cd .. && node cli/scripts/run-python.mjs scripts/evaluate-relevance.py",
"evaluate:relevance:calibration": "cd .. && node cli/scripts/run-python.mjs scripts/evaluate-relevance.py --split calibration",
"evaluate:relevance:held-out": "cd .. && node cli/scripts/run-python.mjs scripts/evaluate-relevance.py --split held_out",