363e126914
The previous expression used `if ($r | type) == "!!str" then ... end`
which produces a lexer error in yq v4.50–v4.53. This caused every
parse_reference call to return empty output, silently skipping all
references — the root cause of the missing [INFO] messages and tree.
Replace with a single-line expression using only the // alternative
operator and select(), which work across all tested yq v4 versions:
.references[N] | (.url // .) + "|" + (.into // "") + "|" +
(.ref // "") + "|" +
((.env | select(tag == "!!seq") | join(",")) // .env // "")
.url // . handles both string refs (no .url key) and object refs.
env arrays are joined; null env falls back to "".
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>