fix(adapter): strip CR from jq output in phase scripts on Windows
Native Windows jq emits CRLF; under Git Bash / Cygwin that leaves a
trailing \r inside $(jq ...) values in adapter & gate scripts (e.g. a
path "backend\r/docs/api/\r/orders.yaml"), which made labdev validate
fail every jq-using gate on Windows.
Prepend a jq() shell-function shim to the script body on the bash -s
path: it calls the real binary via command jq and pipes through
tr -d '\r', preserving jq's exit status. A shell function — rather than
a PATH shim file — sidesteps every Windows path/exec quirk (8.3 names,
/c vs /cygdrive, shebang resolution). Command-substitution subshells
inherit the function, so $(jq ...) picks it up.
Fixes the 7 jq-based gates at once with no per-adapter edits.