@codedrifters/configulator 0.0.390 → 0.0.391

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/lib/index.js CHANGED
@@ -15561,11 +15561,16 @@ function buildCheckBlockedScript(tiers, scopeGate, _runRatio) {
15561
15561
  " .[] |",
15562
15562
  ' (.body | split("\\n") | map(select(test("Depends on:"; "i"))) | .[0] // "") as $dep_line |',
15563
15563
  ' (.labels | map(.name) | map(select(startswith("type:"))) | .[0] // "") as $type_label |',
15564
- ' "\\(.number)\\t\\(.title)\\t\\($dep_line)\\t\\($type_label)"',
15564
+ ' "\\(.number)\\t\\(.title)\\t\\($type_label)\\t\\($dep_line)"',
15565
15565
  " ')",
15566
15566
  "",
15567
15567
  ' local results=""',
15568
- " while IFS=$'\\t' read -r num title dep_line type_label; do",
15568
+ " # Field order: number, title, type_label, dep_line. dep_line is the",
15569
+ " # only optional field, so it MUST stay last: an absent Depends-on line",
15570
+ " # yields an empty trailing field, whereas an empty non-last field",
15571
+ " # collapses under IFS=tab and shifts every later field left, dropping",
15572
+ " # type_label off the end (#884). Matches the cmd_stale blocked scan.",
15573
+ " while IFS=$'\\t' read -r num title type_label dep_line; do",
15569
15574
  ' [[ -z "$num" ]] && continue',
15570
15575
  "",
15571
15576
  ' local deps=""',