@codedrifters/configulator 0.0.212 → 0.0.213

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.mjs CHANGED
@@ -717,9 +717,10 @@ var baseBundle = {
717
717
  "|-------|----------|",
718
718
  "| `status:ready` | The issue is fully specified, has no open blockers, and is available for a worker to pick up. |",
719
719
  "| `status:blocked` | The issue cannot be started yet \u2014 either it declares `Depends on: #N` on an open issue, or it is an epic with one or more open children. |",
720
- "| `status:in-progress` | A worker has claimed the issue and a branch exists. Set when the worker starts; cleared only on completion or failure. |",
720
+ "| `status:in-progress` | A worker has claimed the issue and a branch exists. Set when the worker starts; cleared only when the worker opens a PR or the issue fails. |",
721
+ "| `status:ready-for-review` | A PR has been opened for this issue and is awaiting review and merge. Replaces `status:in-progress` at the moment the PR opens. |",
721
722
  "| `status:needs-attention` | Automated triage has flagged the issue for human review (stale, failed worker, or ambiguous state). Humans reset this label manually. |",
722
- "| `status:done` | The change has shipped. Usually set when the PR merges and the issue closes. |",
723
+ "| `status:done` | The change has shipped. Set when the PR merges and the issue closes. |",
723
724
  "",
724
725
  "### Blocking Rules",
725
726
  "",
@@ -741,9 +742,9 @@ var baseBundle = {
741
742
  " either blocking rule applies.",
742
743
  "- **Worker claims the issue** \u2192 remove `status:ready`, add",
743
744
  " `status:in-progress`. A branch must exist before this transition.",
744
- "- **Worker opens a PR** \u2192 leave `status:in-progress` in place until the",
745
- " PR merges. Do not pre-flip to `status:done`.",
746
- "- **PR merges / issue closes** \u2192 remove `status:in-progress`, add",
745
+ "- **Worker opens a PR** \u2192 remove `status:in-progress`, add",
746
+ " `status:ready-for-review`. The PR URL should be posted on the issue.",
747
+ "- **PR merges / issue closes** \u2192 remove `status:ready-for-review`, add",
747
748
  " `status:done`.",
748
749
  "- **Dependency resolves** \u2192 if the issue was `status:blocked` solely because",
749
750
  " of the dependency-blocking rule, remove `status:blocked` and add",
@@ -760,8 +761,9 @@ var baseBundle = {
760
761
  " by CI. Those are expected self-healing behaviors, not failures.",
761
762
  "",
762
763
  "An issue must always carry exactly one of `status:ready`, `status:blocked`,",
763
- "`status:in-progress`, or `status:done`. The `status:needs-attention` label",
764
- "is additive \u2014 it coexists with whichever of those four applies."
764
+ "`status:in-progress`, `status:ready-for-review`, or `status:done`. The",
765
+ "`status:needs-attention` label is additive \u2014 it coexists with whichever of",
766
+ "those five applies."
765
767
  ].join("\n"),
766
768
  tags: ["workflow"]
767
769
  },
@@ -4283,11 +4285,14 @@ var issueWorkerSubAgent = {
4283
4285
  "",
4284
4286
  "## Phase 8: Update Status",
4285
4287
  "",
4286
- "After the PR is created:",
4288
+ "After the PR is created, transition the issue to the review phase:",
4287
4289
  "```bash",
4288
- 'gh issue edit <number> --remove-label "status:in-progress" --add-label "status:done"',
4290
+ 'gh issue edit <number> --remove-label "status:in-progress" --add-label "status:ready-for-review"',
4289
4291
  "```",
4290
4292
  "",
4293
+ "Do **not** set `status:done` here \u2014 the `pr-reviewer` sub-agent is",
4294
+ "responsible for that transition once the PR successfully merges.",
4295
+ "",
4291
4296
  "## Phase 9: Branch Cleanup",
4292
4297
  "",
4293
4298
  "The PR will not auto-merge until the `pr-reviewer` enables it. Poll the PR",
@@ -5176,6 +5181,14 @@ var prReviewerSubAgent = {
5176
5181
  " git fetch --prune origin",
5177
5182
  " git branch -d <branch-name> 2>/dev/null || git branch -D <branch-name> 2>/dev/null || true",
5178
5183
  " ```",
5184
+ " Transition the linked issue to `status:done` (replaces whichever of",
5185
+ " `status:ready-for-review` or `status:in-progress` it was carrying):",
5186
+ " ```bash",
5187
+ " gh issue edit <issue-number> \\",
5188
+ ' --remove-label "status:ready-for-review" \\',
5189
+ ' --remove-label "status:in-progress" \\',
5190
+ ' --add-label "status:done"',
5191
+ " ```",
5179
5192
  " Then check the linked issue state:",
5180
5193
  " ```bash",
5181
5194
  " gh issue view <issue-number> --json state --jq '.state'",
@@ -9823,6 +9836,11 @@ var DEFAULT_STATUS_LABELS = [
9823
9836
  color: "FBCA04",
9824
9837
  description: "Actively being worked on"
9825
9838
  },
9839
+ {
9840
+ name: "status:ready-for-review",
9841
+ color: "1D76DB",
9842
+ description: "PR opened and awaiting review"
9843
+ },
9826
9844
  {
9827
9845
  name: "status:blocked",
9828
9846
  color: "D93F0B",