@codedrifters/configulator 0.0.391 → 0.0.393
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.d.mts +28 -0
- package/lib/index.d.ts +28 -0
- package/lib/index.js +37 -20
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +37 -20
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -13865,12 +13865,21 @@ var DEFAULT_BUNDLE_OVERRIDES = {
|
|
|
13865
13865
|
"research:verify": {
|
|
13866
13866
|
acceptanceCriteria: { smallMax: 3, mediumMax: 12 }
|
|
13867
13867
|
},
|
|
13868
|
+
"research:scope": {
|
|
13869
|
+
acceptanceCriteria: { smallMax: 3, mediumMax: 12 }
|
|
13870
|
+
},
|
|
13868
13871
|
"software:profile": {
|
|
13869
13872
|
acceptanceCriteria: { smallMax: 3, mediumMax: 14 }
|
|
13870
13873
|
},
|
|
13874
|
+
"software:research": {
|
|
13875
|
+
acceptanceCriteria: { smallMax: 3, mediumMax: 14 }
|
|
13876
|
+
},
|
|
13871
13877
|
"regulatory:research": {
|
|
13872
13878
|
acceptanceCriteria: { smallMax: 3, mediumMax: 12 }
|
|
13873
13879
|
},
|
|
13880
|
+
"regulatory:impact": {
|
|
13881
|
+
acceptanceCriteria: { smallMax: 3, mediumMax: 10 }
|
|
13882
|
+
},
|
|
13874
13883
|
"standards:research": {
|
|
13875
13884
|
acceptanceCriteria: { smallMax: 3, mediumMax: 10 }
|
|
13876
13885
|
},
|
|
@@ -14676,8 +14685,9 @@ function renderUnblockDependentsSection(ud) {
|
|
|
14676
14685
|
"",
|
|
14677
14686
|
"1. Searches open issues for `Depends on: #<closed>` references in",
|
|
14678
14687
|
" their body.",
|
|
14679
|
-
"2. For each match, re-reads every dependency listed
|
|
14680
|
-
" `Depends on:`
|
|
14688
|
+
"2. For each match, re-reads every dependency listed across",
|
|
14689
|
+
" **all** `Depends on:` lines in the body (bodies routinely list",
|
|
14690
|
+
" one dependency per line) and checks whether they are all closed.",
|
|
14681
14691
|
"3. If **all** dependencies are closed, flips the dependent from",
|
|
14682
14692
|
" `status:blocked` to `status:ready` and posts a one-line comment",
|
|
14683
14693
|
" citing the resolving issue.",
|
|
@@ -14816,14 +14826,17 @@ function renderUnblockDependentsScript(ud) {
|
|
|
14816
14826
|
"",
|
|
14817
14827
|
"# \u2500\u2500 helpers \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500",
|
|
14818
14828
|
"",
|
|
14819
|
-
'# Extract issue numbers from a "Depends on:"
|
|
14820
|
-
'#
|
|
14829
|
+
'# Extract issue numbers from a "Depends on:" text. The argument may be a',
|
|
14830
|
+
'# single line ("Depends on: #1, #2, #3") OR several Depends-on lines',
|
|
14831
|
+
"# joined into one string: bodies routinely list one dependency per line",
|
|
14832
|
+
"# (issue #881), so callers union every matching line before calling this.",
|
|
14833
|
+
"# Returns the space-separated union of every #<n> reference, or an empty",
|
|
14834
|
+
'# string when the text has no concrete references (e.g. a lone "(none)"',
|
|
14835
|
+
'# sentinel). References are extracted directly, so a stray "(none)"',
|
|
14836
|
+
"# concatenated with a real dep line never suppresses the real dependency",
|
|
14837
|
+
"# \u2014 only reference-free text counts as having no dependencies.",
|
|
14821
14838
|
"parse_deps() {",
|
|
14822
14839
|
' local line="$1"',
|
|
14823
|
-
` if echo "$line" | grep -qi '(none)'; then`,
|
|
14824
|
-
' echo ""',
|
|
14825
|
-
" return",
|
|
14826
|
-
" fi",
|
|
14827
14840
|
` echo "$line" | grep -oE '#[0-9]+' | tr -d '#' | tr '\\n' ' ' || echo ""`,
|
|
14828
14841
|
"}",
|
|
14829
14842
|
"",
|
|
@@ -14880,11 +14893,12 @@ function renderUnblockDependentsScript(ud) {
|
|
|
14880
14893
|
" exit 0",
|
|
14881
14894
|
"fi",
|
|
14882
14895
|
"",
|
|
14883
|
-
"#
|
|
14884
|
-
"#
|
|
14896
|
+
"# Union every `Depends on:` line per candidate (a body may list one",
|
|
14897
|
+
"# dependency per line) into a single space-joined dep string and stream",
|
|
14898
|
+
"# as tab-separated number / title / dep-line tuples.",
|
|
14885
14899
|
`matches=$(echo "$dependents" | jq -r '`,
|
|
14886
14900
|
" .[] |",
|
|
14887
|
-
' (.body | split("\\n") | map(select(test("Depends on:"; "i"))) |
|
|
14901
|
+
' (.body | split("\\n") | map(select(test("Depends on:"; "i"))) | join(" ")) as $dep_line |',
|
|
14888
14902
|
' "\\(.number)\\t\\(.title)\\t\\($dep_line)"',
|
|
14889
14903
|
"')",
|
|
14890
14904
|
"",
|
|
@@ -15056,14 +15070,17 @@ function buildCheckBlockedScript(tiers, scopeGate, _runRatio) {
|
|
|
15056
15070
|
"",
|
|
15057
15071
|
"# \u2500\u2500 helpers \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500",
|
|
15058
15072
|
"",
|
|
15059
|
-
'# Extract issue numbers from a "Depends on:"
|
|
15060
|
-
'#
|
|
15073
|
+
'# Extract issue numbers from a "Depends on:" text. The argument may be a',
|
|
15074
|
+
'# single line ("Depends on: #1, #2, #3") OR several Depends-on lines',
|
|
15075
|
+
"# joined into one string: bodies routinely list one dependency per line",
|
|
15076
|
+
"# (issue #881), so callers union every matching line before calling this.",
|
|
15077
|
+
"# Returns the space-separated union of every #<n> reference, or an empty",
|
|
15078
|
+
'# string when the text has no concrete references (e.g. a lone "(none)"',
|
|
15079
|
+
'# sentinel). References are extracted directly, so a stray "(none)"',
|
|
15080
|
+
"# concatenated with a real dep line never suppresses the real dependency",
|
|
15081
|
+
"# \u2014 only reference-free text counts as having no dependencies.",
|
|
15061
15082
|
"parse_deps() {",
|
|
15062
15083
|
' local line="$1"',
|
|
15063
|
-
` if echo "$line" | grep -qi '(none)'; then`,
|
|
15064
|
-
' echo ""',
|
|
15065
|
-
" return",
|
|
15066
|
-
" fi",
|
|
15067
15084
|
` echo "$line" | grep -oE '#[0-9]+' | tr -d '#' | tr '\\n' ' ' || echo ""`,
|
|
15068
15085
|
"}",
|
|
15069
15086
|
"",
|
|
@@ -15111,7 +15128,7 @@ function buildCheckBlockedScript(tiers, scopeGate, _runRatio) {
|
|
|
15111
15128
|
" local issue_data",
|
|
15112
15129
|
` issue_data=$(echo "$issues" | jq -r '`,
|
|
15113
15130
|
" .[] |",
|
|
15114
|
-
' (.body | split("\\n") | map(select(test("Depends on:"; "i"))) |
|
|
15131
|
+
' (.body | split("\\n") | map(select(test("Depends on:"; "i"))) | join(" ")) as $dep_line |',
|
|
15115
15132
|
' "\\(.number)\\t\\($dep_line)"',
|
|
15116
15133
|
" ')",
|
|
15117
15134
|
"",
|
|
@@ -15211,7 +15228,7 @@ function buildCheckBlockedScript(tiers, scopeGate, _runRatio) {
|
|
|
15211
15228
|
" local issue_data",
|
|
15212
15229
|
` issue_data=$(echo "$issues" | jq -r '`,
|
|
15213
15230
|
" .[] |",
|
|
15214
|
-
' (.body | split("\\n") | map(select(test("Depends on:"; "i"))) |
|
|
15231
|
+
' (.body | split("\\n") | map(select(test("Depends on:"; "i"))) | join(" ")) as $dep_line |',
|
|
15215
15232
|
' (.labels | map(.name) | map(select(startswith("type:"))) | .[0] // "") as $type_label |',
|
|
15216
15233
|
' "\\(.number)\\t\\(.title)\\t\\($type_label)\\t\\($dep_line)"',
|
|
15217
15234
|
" ')",
|
|
@@ -15316,7 +15333,7 @@ function buildCheckBlockedScript(tiers, scopeGate, _runRatio) {
|
|
|
15316
15333
|
" local bl_data",
|
|
15317
15334
|
` bl_data=$(echo "$bl_issues" | jq -r '`,
|
|
15318
15335
|
" .[] |",
|
|
15319
|
-
' (.body | split("\\n") | map(select(test("Depends on:"; "i"))) |
|
|
15336
|
+
' (.body | split("\\n") | map(select(test("Depends on:"; "i"))) | join(" ")) as $dep_line |',
|
|
15320
15337
|
' "\\(.number)\\t\\(.title)\\t\\(.updatedAt)\\t\\($dep_line)"',
|
|
15321
15338
|
" ')",
|
|
15322
15339
|
"",
|