cloverleaf-larry/bin
Bryan Johnson 9233d23cda v0.9.12: cl-format-migrate (table/xlate CRLF→LF + native-convert) + cdr/cds/cdd + bare-site shortcuts
New `larry tools cl-format-migrate <dir>`: fixes the "' before prologue start" errors on
Windows-authored tables/xlates whose CRLF line endings choke the Linux Cloverleaf parser
(and Cloverleaf's own hcitblconvert/hcixltconvert). Root cause field-confirmed by Bryan:
`file` shows broken=CRLF/working=LF, both version:6.0 (no format bump) — the stray CR is
read as a bogus char before the prologue keyword.

- Default: strip ONLY trailing CR (sed 's/\r$//'), backup-first via journal.sh, idempotent
  (SKIP already-LF), per-file verify (no trailing CRLF remains + prologue block intact),
  summary report. Bryan proved a CR-stripped table loads clean.
- Opt-in --run-native-convert: chains hcitblconvert/hcixltconvert after a successful strip
  (Cloverleaf's real format bump), resolving the bare name against <site>/Tables|Xlate then
  $HCIROOT/Tables|Xlate, one name per call; separate journal checkpoint so a native-step
  failure auto-rolls-back to the CR-stripped-safe state. Orphan file -> NATIVE_SKIPPED (never
  guesses a site). Default stays strip-only pending Bryan's hcitblconvert-post-strip confirm.
- Unified tbl+xlt (both choke on CRLF identically).
- QoL REPL: cdr->$HCIROOT, cds->$HCIROOT/$HCISITE, cdd->$HCIROOT/$HCISITE/data; bare site name
  -> setsite+cd, first-match-wins ordering so it never shadows an existing command.

Vera CODE-PASS (re-gate after fixing a Major verify defect: _count_cr matched any CR byte ->
false FAILED_VERIFY loop on files with a legitimate mid-line CR; now _count_trailing_cr on
\r$, matching the strip). Own-fixture verified: convert/preserve-mid-line-CR/converge-to-SKIP,
full regression + --run-native-convert mocked suite, bash -n 3.2.57, manifest --check clean.
Live-acceptance: Bryan (Gundersen box; dry-run -> single-file --confirm pilot -> batch).
2026-07-23 13:22:58 -07:00
..
_nc_common.sh v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
cheat v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
cl-format-migrate v0.9.12: cl-format-migrate (table/xlate CRLF→LF + native-convert) + cdr/cds/cdd + bare-site shortcuts 2026-07-23 13:22:58 -07:00
create-thread v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
csv-to-table v0.9.4: short on-PATH commands + live 3-level tab-completion + durable fixture 2026-06-08 11:58:25 -07:00
diff-interface v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
document v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
each-site v0.9.4: short on-PATH commands + live 3-level tab-completion + durable fixture 2026-06-08 11:58:25 -07:00
engine v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
help v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
hl7-desanitize v0.9.4: short on-PATH commands + live 3-level tab-completion + durable fixture 2026-06-08 11:58:25 -07:00
hl7-diff v0.9.4: short on-PATH commands + live 3-level tab-completion + durable fixture 2026-06-08 11:58:25 -07:00
hl7-diff-set v0.9.10: hl7-diff-set (batch route-set compare) + hl7-diff --format text readability (F-8) 2026-07-23 11:15:24 -07:00
hl7-field v0.9.4: short on-PATH commands + live 3-level tab-completion + durable fixture 2026-06-08 11:58:25 -07:00
hl7-sanitize v0.9.4: short on-PATH commands + live 3-level tab-completion + durable fixture 2026-06-08 11:58:25 -07:00
inbound v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
insert-protocol v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
len2nl v0.9.4: short on-PATH commands + live 3-level tab-completion + durable fixture 2026-06-08 11:58:25 -07:00
make-jump v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
msgs v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
nc-completion.bash v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
nc-create-thread v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
nc-diff-interface v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
nc-document v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
nc-engine v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
nc-find v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
nc-inbound v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
nc-insert-protocol v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
nc-make-jump v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
nc-msgs v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
nc-parse v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
nc-paths v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
nc-provision-jumps v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
nc-regression v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
nc-revisions v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
nc-set-field v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
nc-smat-diff v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
nc-status v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
nc-table v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
nc-tclgen v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
nc-xlate v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
nfind v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
parse v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
paths v0.9.4: short on-PATH commands + live 3-level tab-completion + durable fixture 2026-06-08 11:58:25 -07:00
provision-jumps v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
regression v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
revisions v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
route_test v0.9.4: short on-PATH commands + live 3-level tab-completion + durable fixture 2026-06-08 11:58:25 -07:00
set-field v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
smat-diff v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
status v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
table v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
table-to-csv v0.9.4: short on-PATH commands + live 3-level tab-completion + durable fixture 2026-06-08 11:58:25 -07:00
tbh v0.9.4: short on-PATH commands + live 3-level tab-completion + durable fixture 2026-06-08 11:58:25 -07:00
tbn v0.9.4: short on-PATH commands + live 3-level tab-completion + durable fixture 2026-06-08 11:58:25 -07:00
tbp v0.9.4: short on-PATH commands + live 3-level tab-completion + durable fixture 2026-06-08 11:58:25 -07:00
tbpr v0.9.4: short on-PATH commands + live 3-level tab-completion + durable fixture 2026-06-08 11:58:25 -07:00
tclgen v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00
where v0.9.4: short on-PATH commands + live 3-level tab-completion + durable fixture 2026-06-08 11:58:25 -07:00
xlate v0.9.6: help canonical + prefix-free short commands (nc-find→nfind guard) + HCISITEDIR auto-init 2026-06-08 20:21:32 -07:00