@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.mjs CHANGED
@@ -4362,8 +4362,14 @@ var issueWorkerSubAgent = {
4362
4362
  "",
4363
4363
  "## Phase 7: Open a PR",
4364
4364
  "",
4365
+ "Every PR you open must carry the `origin:issue-worker` label so downstream",
4366
+ "agents can identify bot-authored PRs. Always include",
4367
+ "`--label 'origin:issue-worker'` in the `gh pr create` invocation:",
4368
+ "",
4365
4369
  "```bash",
4366
- 'gh pr create --title "<type>(<scope>): <description>" --body "## Summary',
4370
+ 'gh pr create --title "<type>(<scope>): <description>" \\',
4371
+ " --label 'origin:issue-worker' \\",
4372
+ ' --body "## Summary',
4367
4373
  "",
4368
4374
  "<bullet points>",
4369
4375
  "",
@@ -4415,7 +4421,12 @@ var issueWorkerSubAgent = {
4415
4421
  "3. **Follow CLAUDE.md conventions** for branch naming, commits, and PRs.",
4416
4422
  "4. **Do not assign PRs to a project board** \u2014 this repo has no GitHub project.",
4417
4423
  "5. **Do not add AI co-author** attribution to commits.",
4418
- "6. **On failure:** If you cannot complete the issue, update labels and leave a comment:",
4424
+ "6. **Always label PRs with `origin:issue-worker`.** Every PR opened by",
4425
+ " the issue-worker must carry the `origin:issue-worker` label so",
4426
+ " downstream agents (notably the `pr-reviewer`) can identify",
4427
+ " bot-authored PRs. Pass `--label 'origin:issue-worker'` on every",
4428
+ " `gh pr create` call.",
4429
+ "7. **On failure:** If you cannot complete the issue, update labels and leave a comment:",
4419
4430
  " ```bash",
4420
4431
  ' gh issue edit <number> --remove-label "status:in-progress" --add-label "status:needs-attention"',
4421
4432
  ' gh issue comment <number> --body "Worker could not complete: <reason>"',
@@ -5294,6 +5305,25 @@ var prReviewerSubAgent = {
5294
5305
  "---",
5295
5306
  "",
5296
5307
  ...PROJECT_CONTEXT_READER_SECTION,
5308
+ "## Invocation Flags",
5309
+ "",
5310
+ "Your invocation prompt may include flags that modify how you select and",
5311
+ "process PRs. Parse the prompt for these flags before starting Phase 1:",
5312
+ "",
5313
+ "- **`--allow-human-author`** \u2014 opt-in flag that allows the reviewer to",
5314
+ " process PRs authored by humans in addition to bot-authored PRs",
5315
+ " (those carrying the `origin:issue-worker` label). When absent, the",
5316
+ " reviewer only processes bot-authored PRs; when present, human-authored",
5317
+ " PRs are also eligible for this invocation only. The flag does **not**",
5318
+ " persist across invocations.",
5319
+ "",
5320
+ "Note: the behaviour wiring for `--allow-human-author` (the bot-only",
5321
+ "guard that the flag opts out of) lands in a follow-up issue. This",
5322
+ "agent currently acknowledges the flag so consumers can start passing",
5323
+ "it through; full gating on author identity arrives later.",
5324
+ "",
5325
+ "---",
5326
+ "",
5297
5327
  "## Phase 1: Identify the PR",
5298
5328
  "",
5299
5329
  "If a PR number was provided in your instructions, use that. Otherwise stop",
@@ -5500,7 +5530,16 @@ var reviewPrSkill = {
5500
5530
  "",
5501
5531
  "## Usage",
5502
5532
  "",
5503
- "/review-pr <pr-number>",
5533
+ "/review-pr <pr-number> [--allow-human-author]",
5534
+ "",
5535
+ "### Flags",
5536
+ "",
5537
+ "- **`--allow-human-author`** \u2014 opt the reviewer into processing",
5538
+ " human-authored PRs for **this invocation only**. By default, the",
5539
+ " reviewer only processes bot-authored PRs (those carrying the",
5540
+ " `origin:issue-worker` label); pass this flag to review a",
5541
+ " human-authored PR. The flag does not persist \u2014 subsequent",
5542
+ " invocations return to the bot-only default.",
5504
5543
  "",
5505
5544
  "## What This Skill Does",
5506
5545
  "",
@@ -5515,6 +5554,10 @@ var reviewPrSkill = {
5515
5554
  "9. After merge, verifies the linked issue is closed and closes it if not",
5516
5555
  "10. Cleans up the local branch after merge",
5517
5556
  "",
5557
+ "Passing `--allow-human-author` opts the reviewer into processing",
5558
+ "human-authored PRs for this invocation only (the default scope is",
5559
+ "bot-authored PRs labeled `origin:issue-worker`).",
5560
+ "",
5518
5561
  "## Input",
5519
5562
  "",
5520
5563
  "Provide the PR number to review. The skill resolves the linked issue from",
@@ -5549,7 +5592,16 @@ var reviewPrsSkill = {
5549
5592
  "",
5550
5593
  "## Usage",
5551
5594
  "",
5552
- "/review-prs",
5595
+ "/review-prs [--allow-human-author]",
5596
+ "",
5597
+ "### Flags",
5598
+ "",
5599
+ "- **`--allow-human-author`** \u2014 opt the reviewer into processing",
5600
+ " human-authored PRs for **this invocation only**. By default, the",
5601
+ " loop only processes bot-authored PRs (those carrying the",
5602
+ " `origin:issue-worker` label); pass this flag to include",
5603
+ " human-authored PRs in the queue. The flag does not persist \u2014",
5604
+ " subsequent invocations return to the bot-only default.",
5553
5605
  "",
5554
5606
  "## What This Skill Does",
5555
5607
  "",
@@ -5594,6 +5646,10 @@ var reviewPrsSkill = {
5594
5646
  "When no eligible PRs remain, emit a final summary listing every PR",
5595
5647
  "processed and the verdict for each, then stop.",
5596
5648
  "",
5649
+ "Passing `--allow-human-author` opts the reviewer into including",
5650
+ "human-authored PRs in the queue for this invocation only (the default",
5651
+ "scope is bot-authored PRs labeled `origin:issue-worker`).",
5652
+ "",
5597
5653
  "## Output",
5598
5654
  "",
5599
5655
  "Per-PR structured report (same shape as `/review-pr`), followed by a",