@codedrifters/configulator 0.0.393 → 0.0.395
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 +17 -0
- package/lib/index.d.ts +17 -0
- package/lib/index.js +58 -9
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +58 -9
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -4285,7 +4285,17 @@ function buildBaseBundle(paths = DEFAULT_AGENT_PATHS) {
|
|
|
4285
4285
|
" `status:ready`.",
|
|
4286
4286
|
"- **Automated flag** \u2192 add `status:needs-attention` (do not remove existing",
|
|
4287
4287
|
" status). Never auto-reset a `status:needs-attention` issue back to ready;",
|
|
4288
|
-
" a human must decide.",
|
|
4288
|
+
" a human must decide. The flag is **additive**: apply it with `--add-label`",
|
|
4289
|
+
" alone \u2014 never pair it with a `--remove-label` that strips the base",
|
|
4290
|
+
" `status:*` label. A flag that swaps out the base status (e.g. scope-gate",
|
|
4291
|
+
" or worker-failure paths removing `status:ready` / `status:in-progress`)",
|
|
4292
|
+
" leaves the issue with no base status \u2014 invisible to every status-driven",
|
|
4293
|
+
" query and to the queue, and unrecoverable once the flag is cleared.",
|
|
4294
|
+
"- **Automated-flag clear** \u2192 when `status:needs-attention` is cleared, if the",
|
|
4295
|
+
" issue carries no base `status:*` label (a legacy issue flagged before the",
|
|
4296
|
+
" additive-flag rule, whose base status was stripped at flag time), restore",
|
|
4297
|
+
" `status:ready` \u2014 or `status:blocked` if the body still declares an open",
|
|
4298
|
+
" `Depends on:` dependency \u2014 in the same edit so it re-enters the workflow.",
|
|
4289
4299
|
"- **PR CI failure** \u2192 add `status:needs-attention` to the associated PR (and",
|
|
4290
4300
|
" its linked issue) when CI fails in a **permanent** state \u2014 i.e. the failure",
|
|
4291
4301
|
" persists after a rerun, or the failure is clearly not a flake (compile",
|
|
@@ -13907,6 +13917,12 @@ var DEFAULT_BUNDLE_OVERRIDES = {
|
|
|
13907
13917
|
"company:draft": {
|
|
13908
13918
|
acceptanceCriteria: { smallMax: 3, mediumMax: 12 }
|
|
13909
13919
|
},
|
|
13920
|
+
"business-models:canvas": {
|
|
13921
|
+
acceptanceCriteria: { smallMax: 3, mediumMax: 12 }
|
|
13922
|
+
},
|
|
13923
|
+
"business-models:complete": {
|
|
13924
|
+
acceptanceCriteria: { smallMax: 3, mediumMax: 12 }
|
|
13925
|
+
},
|
|
13910
13926
|
"req:draft-trace": {
|
|
13911
13927
|
acceptanceCriteria: { smallMax: 3, mediumMax: 20 }
|
|
13912
13928
|
},
|
|
@@ -14073,8 +14089,19 @@ function renderScopeGateSection(gate, excludeBundles = []) {
|
|
|
14073
14089
|
"",
|
|
14074
14090
|
"When the classifier returns `large`:",
|
|
14075
14091
|
"",
|
|
14076
|
-
"1.
|
|
14077
|
-
" `
|
|
14092
|
+
"1. **Add** the `status:needs-attention` label to the issue with",
|
|
14093
|
+
" `--add-label` alone. Leave the existing base `status:*` label",
|
|
14094
|
+
" (`status:ready`) in place \u2014 `status:needs-attention` is",
|
|
14095
|
+
" **additive**, so a flagged issue reads `status:ready` +",
|
|
14096
|
+
" `status:needs-attention`. Do **not** remove the base status:",
|
|
14097
|
+
" stripping it leaves the issue with no base `status:*` label,",
|
|
14098
|
+
" invisible to every status-driven query and to the queue itself,",
|
|
14099
|
+
" and a later flag-clear can never restore dispatchability. The",
|
|
14100
|
+
" `status:needs-attention` label already keeps the issue out of",
|
|
14101
|
+
" the dispatch queue, so the base label safely stays:",
|
|
14102
|
+
" ```bash",
|
|
14103
|
+
' gh issue edit <number> --add-label "status:needs-attention"',
|
|
14104
|
+
" ```",
|
|
14078
14105
|
"2. Post the decomposition-proposal comment (see template below),",
|
|
14079
14106
|
" with `<AC_COUNT>` / `<SOURCES_COUNT>` substituted from the",
|
|
14080
14107
|
" classification and `<AC_LIMIT>` / `<SOURCES_LIMIT>` set to",
|
|
@@ -14095,7 +14122,12 @@ function renderScopeGateSection(gate, excludeBundles = []) {
|
|
|
14095
14122
|
"4. **Auto-file is OFF.** Stop after posting the comment. A human",
|
|
14096
14123
|
" reviews the proposal, files the phased sub-issues manually,",
|
|
14097
14124
|
" and clears `status:needs-attention` when the decomposition",
|
|
14098
|
-
" is in place."
|
|
14125
|
+
" is in place. When clearing the flag, if the issue carries **no**",
|
|
14126
|
+
" base `status:*` label \u2014 a legacy issue flagged before the",
|
|
14127
|
+
" additive-flag fix, whose base status was stripped at flag time \u2014",
|
|
14128
|
+
" also add `status:ready` (or `status:blocked` when the body still",
|
|
14129
|
+
" declares an open `Depends on:` dependency) in the same edit so",
|
|
14130
|
+
" the issue re-enters the queue instead of going invisible."
|
|
14099
14131
|
);
|
|
14100
14132
|
}
|
|
14101
14133
|
const overrideEntries = Object.entries(gate.bundleOverrides).filter(
|
|
@@ -16650,9 +16682,16 @@ var orchestratorSubAgent = {
|
|
|
16650
16682
|
"",
|
|
16651
16683
|
"If the scope is `large`, **do not dispatch**. Instead:",
|
|
16652
16684
|
"",
|
|
16653
|
-
"1.
|
|
16685
|
+
"1. **Add** `status:needs-attention` with `--add-label` alone \u2014",
|
|
16686
|
+
" leave the base `status:*` label (`status:ready`) in place.",
|
|
16687
|
+
" `status:needs-attention` is **additive**; pairing it with a",
|
|
16688
|
+
' `--remove-label "status:ready"` strips the base status and',
|
|
16689
|
+
" leaves the issue with no `status:*` label at all, invisible to",
|
|
16690
|
+
" the queue and unrecoverable when the flag is later cleared. The",
|
|
16691
|
+
" `status:needs-attention` label already keeps the issue out of",
|
|
16692
|
+
" dispatch, so the base label stays:",
|
|
16654
16693
|
" ```bash",
|
|
16655
|
-
' gh issue edit <number> --
|
|
16694
|
+
' gh issue edit <number> --add-label "status:needs-attention"',
|
|
16656
16695
|
" ```",
|
|
16657
16696
|
"2. Post the decomposition-proposal comment (see the **Scope gate**",
|
|
16658
16697
|
" section in `CLAUDE.md` for the template). Substitute the",
|
|
@@ -16750,7 +16789,9 @@ var orchestratorSubAgent = {
|
|
|
16750
16789
|
"5. **Priority order:** critical > high > medium > low > trivial, then **funnel tier asc** (lower tier wins ties), then FIFO by issue number.",
|
|
16751
16790
|
"6. **Never dispatch a `large` issue.** Always run the scope check",
|
|
16752
16791
|
" on the top `PICK` line before reporting `NEXT_WORK_ITEM`. A",
|
|
16753
|
-
" `large` issue must be flagged
|
|
16792
|
+
" `large` issue must be flagged by **adding** `status:needs-attention`",
|
|
16793
|
+
" (additive \u2014 leave the base `status:*` label in place; never pair",
|
|
16794
|
+
" the flag with a `--remove-label` that strips the base status) and",
|
|
16754
16795
|
" handed a decomposition proposal \u2014 never claimed, never branched,",
|
|
16755
16796
|
" never delegated to the `issue-worker`.",
|
|
16756
16797
|
"7. **Sweep dependents whenever you apply `status:done`.** Every",
|
|
@@ -17418,9 +17459,17 @@ var issueWorkerSubAgent = {
|
|
|
17418
17459
|
" downstream agents (notably the `pr-reviewer`) can identify",
|
|
17419
17460
|
" bot-authored PRs. Pass `--label 'origin:issue-worker'` on every",
|
|
17420
17461
|
" `gh pr create` call.",
|
|
17421
|
-
"7. **On failure:** If you cannot complete the issue
|
|
17462
|
+
"7. **On failure:** If you cannot complete the issue (including a",
|
|
17463
|
+
" wrong-agent / routing mismatch), flag it for human triage and",
|
|
17464
|
+
" leave a comment. **Add** `status:needs-attention` with",
|
|
17465
|
+
" `--add-label` alone \u2014 do **not** remove the base",
|
|
17466
|
+
" `status:in-progress` label. `status:needs-attention` is",
|
|
17467
|
+
" additive, so the flagged issue reads `status:in-progress` +",
|
|
17468
|
+
" `status:needs-attention` and keeps a base status a human can act",
|
|
17469
|
+
" on; stripping it leaves the issue with no base `status:*` label,",
|
|
17470
|
+
" invisible to every status-driven query:",
|
|
17422
17471
|
" ```bash",
|
|
17423
|
-
' gh issue edit <number> --
|
|
17472
|
+
' gh issue edit <number> --add-label "status:needs-attention"',
|
|
17424
17473
|
' gh issue comment <number> --body "Worker could not complete: <reason>"',
|
|
17425
17474
|
" ```",
|
|
17426
17475
|
"8. **Never force-push in feedback mode.** If a `git pull --rebase`",
|