@codedrifters/configulator 0.0.220 → 0.0.221

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
@@ -4439,8 +4439,14 @@ var issueWorkerSubAgent = {
4439
4439
  "",
4440
4440
  "## Phase 7: Open a PR",
4441
4441
  "",
4442
+ "Every PR you open must carry the `origin:issue-worker` label so downstream",
4443
+ "agents can identify bot-authored PRs. Always include",
4444
+ "`--label 'origin:issue-worker'` in the `gh pr create` invocation:",
4445
+ "",
4442
4446
  "```bash",
4443
- 'gh pr create --title "<type>(<scope>): <description>" --body "## Summary',
4447
+ 'gh pr create --title "<type>(<scope>): <description>" \\',
4448
+ " --label 'origin:issue-worker' \\",
4449
+ ' --body "## Summary',
4444
4450
  "",
4445
4451
  "<bullet points>",
4446
4452
  "",
@@ -4492,7 +4498,12 @@ var issueWorkerSubAgent = {
4492
4498
  "3. **Follow CLAUDE.md conventions** for branch naming, commits, and PRs.",
4493
4499
  "4. **Do not assign PRs to a project board** \u2014 this repo has no GitHub project.",
4494
4500
  "5. **Do not add AI co-author** attribution to commits.",
4495
- "6. **On failure:** If you cannot complete the issue, update labels and leave a comment:",
4501
+ "6. **Always label PRs with `origin:issue-worker`.** Every PR opened by",
4502
+ " the issue-worker must carry the `origin:issue-worker` label so",
4503
+ " downstream agents (notably the `pr-reviewer`) can identify",
4504
+ " bot-authored PRs. Pass `--label 'origin:issue-worker'` on every",
4505
+ " `gh pr create` call.",
4506
+ "7. **On failure:** If you cannot complete the issue, update labels and leave a comment:",
4496
4507
  " ```bash",
4497
4508
  ' gh issue edit <number> --remove-label "status:in-progress" --add-label "status:needs-attention"',
4498
4509
  ' gh issue comment <number> --body "Worker could not complete: <reason>"',
@@ -5371,6 +5382,25 @@ var prReviewerSubAgent = {
5371
5382
  "---",
5372
5383
  "",
5373
5384
  ...PROJECT_CONTEXT_READER_SECTION,
5385
+ "## Invocation Flags",
5386
+ "",
5387
+ "Your invocation prompt may include flags that modify how you select and",
5388
+ "process PRs. Parse the prompt for these flags before starting Phase 1:",
5389
+ "",
5390
+ "- **`--allow-human-author`** \u2014 opt-in flag that allows the reviewer to",
5391
+ " process PRs authored by humans in addition to bot-authored PRs",
5392
+ " (those carrying the `origin:issue-worker` label). When absent, the",
5393
+ " reviewer only processes bot-authored PRs; when present, human-authored",
5394
+ " PRs are also eligible for this invocation only. The flag does **not**",
5395
+ " persist across invocations.",
5396
+ "",
5397
+ "Note: the behaviour wiring for `--allow-human-author` (the bot-only",
5398
+ "guard that the flag opts out of) lands in a follow-up issue. This",
5399
+ "agent currently acknowledges the flag so consumers can start passing",
5400
+ "it through; full gating on author identity arrives later.",
5401
+ "",
5402
+ "---",
5403
+ "",
5374
5404
  "## Phase 1: Identify the PR",
5375
5405
  "",
5376
5406
  "If a PR number was provided in your instructions, use that. Otherwise stop",
@@ -5577,7 +5607,16 @@ var reviewPrSkill = {
5577
5607
  "",
5578
5608
  "## Usage",
5579
5609
  "",
5580
- "/review-pr <pr-number>",
5610
+ "/review-pr <pr-number> [--allow-human-author]",
5611
+ "",
5612
+ "### Flags",
5613
+ "",
5614
+ "- **`--allow-human-author`** \u2014 opt the reviewer into processing",
5615
+ " human-authored PRs for **this invocation only**. By default, the",
5616
+ " reviewer only processes bot-authored PRs (those carrying the",
5617
+ " `origin:issue-worker` label); pass this flag to review a",
5618
+ " human-authored PR. The flag does not persist \u2014 subsequent",
5619
+ " invocations return to the bot-only default.",
5581
5620
  "",
5582
5621
  "## What This Skill Does",
5583
5622
  "",
@@ -5592,6 +5631,10 @@ var reviewPrSkill = {
5592
5631
  "9. After merge, verifies the linked issue is closed and closes it if not",
5593
5632
  "10. Cleans up the local branch after merge",
5594
5633
  "",
5634
+ "Passing `--allow-human-author` opts the reviewer into processing",
5635
+ "human-authored PRs for this invocation only (the default scope is",
5636
+ "bot-authored PRs labeled `origin:issue-worker`).",
5637
+ "",
5595
5638
  "## Input",
5596
5639
  "",
5597
5640
  "Provide the PR number to review. The skill resolves the linked issue from",
@@ -5626,7 +5669,16 @@ var reviewPrsSkill = {
5626
5669
  "",
5627
5670
  "## Usage",
5628
5671
  "",
5629
- "/review-prs",
5672
+ "/review-prs [--allow-human-author]",
5673
+ "",
5674
+ "### Flags",
5675
+ "",
5676
+ "- **`--allow-human-author`** \u2014 opt the reviewer into processing",
5677
+ " human-authored PRs for **this invocation only**. By default, the",
5678
+ " loop only processes bot-authored PRs (those carrying the",
5679
+ " `origin:issue-worker` label); pass this flag to include",
5680
+ " human-authored PRs in the queue. The flag does not persist \u2014",
5681
+ " subsequent invocations return to the bot-only default.",
5630
5682
  "",
5631
5683
  "## What This Skill Does",
5632
5684
  "",
@@ -5671,6 +5723,10 @@ var reviewPrsSkill = {
5671
5723
  "When no eligible PRs remain, emit a final summary listing every PR",
5672
5724
  "processed and the verdict for each, then stop.",
5673
5725
  "",
5726
+ "Passing `--allow-human-author` opts the reviewer into including",
5727
+ "human-authored PRs in the queue for this invocation only (the default",
5728
+ "scope is bot-authored PRs labeled `origin:issue-worker`).",
5729
+ "",
5674
5730
  "## Output",
5675
5731
  "",
5676
5732
  "Per-PR structured report (same shape as `/review-pr`), followed by a",