@windyroad/architect 0.12.2-preview.463 → 0.12.2-preview.470

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windyroad/architect",
3
- "version": "0.12.2-preview.463",
3
+ "version": "0.12.2-preview.470",
4
4
  "description": "Architecture decision enforcement for AI coding agents",
5
5
  "bin": {
6
6
  "windyroad-architect": "./bin/install.mjs"
@@ -23,6 +23,17 @@
23
23
 
24
24
  set -uo pipefail
25
25
 
26
+ # P334: force byte-locale for all awk/sed/sort/grep invocations in this script.
27
+ # Without this, BSD awk on macOS (default byte-counting for length/substr) and
28
+ # GNU awk on Linux (default character-counting under any UTF-8 locale) produce
29
+ # divergent output when ADR bodies contain multi-byte chars (em-dashes, smart
30
+ # quotes, etc.). LC_ALL=C makes both treat input as raw bytes — the truncated
31
+ # slice may cut mid-UTF-8 on long lines, but the output is byte-identical
32
+ # across platforms (which is what the CI drift gate at test 2145 enforces).
33
+ # Companion to the ASCII `...` change in compact_join_bullets/chosen
34
+ # truncation — both halves are needed to close P334.
35
+ export LC_ALL=C
36
+
26
37
  # --- Flag parsing ----------------------------------------------------------
27
38
  # `--check` (no write): generate to a temp file and diff against the on-disk
28
39
  # compendium. Exit 0 if byte-identical, 1 if drift, 2 if directory missing.