pr-shepherd 2.6.0 → 2.7.0

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.
Files changed (132) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/bin/classify/standard/coderabbit-walkthrough.d.mts +10 -0
  3. package/bin/classify/standard/coderabbit-walkthrough.mjs +21 -0
  4. package/bin/classify/standard/devin-no-issues.d.mts +7 -0
  5. package/bin/classify/standard/devin-no-issues.mjs +18 -0
  6. package/bin/classify/standard/index.d.mts +2 -1
  7. package/bin/classify/standard/index.mjs +6 -1
  8. package/bin/cli/apply-merge-handler.mjs +2 -0
  9. package/bin/cli/body-truncate.d.mts +7 -0
  10. package/bin/cli/body-truncate.mjs +8 -4
  11. package/bin/cli/help-command-pages.d.mts +4 -2
  12. package/bin/cli/help-command-pages.mjs +4 -1
  13. package/bin/cli/help-iterate-poll-pages.d.mts +1 -1
  14. package/bin/cli/help-iterate-poll-pages.mjs +1 -1
  15. package/bin/cli/help-top-page.d.mts +1 -1
  16. package/bin/cli/help-top-page.mjs +3 -1
  17. package/bin/cli/help-watch-status-page.d.mts +1 -0
  18. package/bin/cli/help-watch-status-page.mjs +21 -0
  19. package/bin/cli/help.d.mts +5 -3
  20. package/bin/cli/help.mjs +2 -0
  21. package/bin/cli/iterate-lean.d.mts +0 -5
  22. package/bin/cli/iterate-lean.mjs +9 -2
  23. package/bin/cli/poll-summary-formatter.mjs +2 -1
  24. package/bin/cli/review-body-cap.d.mts +10 -0
  25. package/bin/cli/review-body-cap.mjs +84 -0
  26. package/bin/cli/stack-layer-view.d.mts +2 -0
  27. package/bin/cli/stack-layer-view.mjs +8 -0
  28. package/bin/cli/stack-overview.mjs +4 -5
  29. package/bin/cli/triage-formatter.mjs +4 -1
  30. package/bin/cli/watch-status-handler.d.mts +2 -0
  31. package/bin/cli/watch-status-handler.mjs +56 -0
  32. package/bin/cli-parser.mjs +7 -0
  33. package/bin/commands/apply-merge-default-route.d.mts +56 -0
  34. package/bin/commands/apply-merge-default-route.mjs +149 -0
  35. package/bin/commands/apply-merge-output.d.mts +2 -0
  36. package/bin/commands/apply-merge-output.mjs +8 -0
  37. package/bin/commands/apply-merge-pull.d.mts +3 -0
  38. package/bin/commands/apply-merge-resume.d.mts +2 -3
  39. package/bin/commands/apply-merge-resume.mjs +74 -32
  40. package/bin/commands/apply-merge-stack-membership.d.mts +27 -0
  41. package/bin/commands/apply-merge-stack-membership.mjs +85 -0
  42. package/bin/commands/apply-merge-submit.d.mts +20 -0
  43. package/bin/commands/apply-merge-submit.mjs +47 -0
  44. package/bin/commands/apply-merge-supersede.d.mts +17 -0
  45. package/bin/commands/apply-merge-supersede.mjs +30 -0
  46. package/bin/commands/apply-merge-sync-fallback.d.mts +16 -0
  47. package/bin/commands/apply-merge-sync-fallback.mjs +55 -0
  48. package/bin/commands/apply-merge.d.mts +2 -0
  49. package/bin/commands/apply-merge.mjs +65 -41
  50. package/bin/commands/check-review-budget.mjs +12 -1
  51. package/bin/commands/check.d.mts +2 -0
  52. package/bin/commands/check.mjs +9 -1
  53. package/bin/commands/iterate/escalate.mjs +5 -0
  54. package/bin/commands/iterate/index.mjs +34 -4
  55. package/bin/commands/iterate/merge-plan.d.mts +2 -0
  56. package/bin/commands/iterate/merge-plan.mjs +1 -1
  57. package/bin/commands/iterate/merge.mjs +7 -3
  58. package/bin/commands/iterate/stack-boundary.mjs +6 -6
  59. package/bin/commands/iterate/stale-ancestry.mjs +8 -3
  60. package/bin/commands/iterate/triage.mjs +19 -6
  61. package/bin/commands/poll-events.d.mts +1 -1
  62. package/bin/commands/poll-events.mjs +8 -3
  63. package/bin/commands/poll-seen-options.d.mts +7 -0
  64. package/bin/commands/poll-seen-options.mjs +9 -0
  65. package/bin/commands/poll-summary-instructions.d.mts +1 -0
  66. package/bin/commands/poll-summary-instructions.mjs +17 -7
  67. package/bin/commands/poll-summary.mjs +8 -4
  68. package/bin/commands/poll.mjs +2 -2
  69. package/bin/commands/rest-stack-merge-readiness.d.mts +6 -2
  70. package/bin/commands/rest-stack-merge-readiness.mjs +59 -7
  71. package/bin/commands/stack-drain.d.mts +7 -1
  72. package/bin/commands/stack-drain.mjs +30 -6
  73. package/bin/commands/stack-lower-heads.d.mts +32 -0
  74. package/bin/commands/stack-lower-heads.mjs +53 -0
  75. package/bin/commands/stack-merge-escalations.d.mts +2 -1
  76. package/bin/commands/stack-merge-plan.mjs +35 -41
  77. package/bin/commands/stack-merge-trunk-check.d.mts +0 -2
  78. package/bin/commands/stack-merge-trunk-check.mjs +0 -2
  79. package/bin/commands/stack-ownership.mjs +3 -3
  80. package/bin/commands/stack-stall.d.mts +1 -0
  81. package/bin/commands/stack-stall.mjs +6 -2
  82. package/bin/commands/stack-trunk-behind.d.mts +1 -1
  83. package/bin/commands/stack-trunk-behind.mjs +1 -1
  84. package/bin/commands/stack-work.mjs +1 -1
  85. package/bin/config/merge-command-args.d.mts +2 -0
  86. package/bin/config/merge-command-args.mjs +13 -0
  87. package/bin/config/merge-method.d.mts +0 -5
  88. package/bin/config/merge-method.mjs +0 -6
  89. package/bin/config/schema.d.mts +2 -0
  90. package/bin/config/schema.mjs +2 -13
  91. package/bin/github/batch-parser-helpers.d.mts +5 -0
  92. package/bin/github/batch-parser-helpers.mjs +7 -2
  93. package/bin/github/batch-parsers.mjs +6 -2
  94. package/bin/github/errors.d.mts +2 -0
  95. package/bin/github/errors.mjs +1 -1
  96. package/bin/github/poll-summary-annotation-probe.d.mts +1 -1
  97. package/bin/github/poll-summary-annotation-probe.mjs +2 -2
  98. package/bin/github/poll-summary-command.d.mts +3 -2
  99. package/bin/github/poll-summary-command.mjs +6 -4
  100. package/bin/github/poll-summary-projector.mjs +16 -14
  101. package/bin/github/poll-summary-readiness.d.mts +4 -0
  102. package/bin/github/poll-summary-readiness.mjs +22 -0
  103. package/bin/github/poll-summary-rest-queue.d.mts +13 -0
  104. package/bin/github/poll-summary-rest-queue.mjs +21 -0
  105. package/bin/github/poll-summary-review-helpers.mjs +8 -4
  106. package/bin/state/merge-method-cache.d.mts +19 -0
  107. package/bin/state/merge-method-cache.mjs +27 -0
  108. package/bin/state/merge-request-claim.d.mts +23 -0
  109. package/bin/state/merge-request-claim.mjs +44 -0
  110. package/bin/state/merge-request-clear.d.mts +24 -0
  111. package/bin/state/merge-request-clear.mjs +36 -0
  112. package/bin/state/merge-request-lock.d.mts +13 -0
  113. package/bin/state/merge-request-lock.mjs +136 -0
  114. package/bin/state/merge-request-stack-heads.d.mts +2 -0
  115. package/bin/state/merge-request-stack-heads.mjs +8 -0
  116. package/bin/state/merge-request.d.mts +23 -6
  117. package/bin/state/merge-request.mjs +29 -29
  118. package/bin/state/ready-receipts.d.mts +11 -0
  119. package/bin/state/ready-receipts.mjs +7 -0
  120. package/bin/state/watch-lock.d.mts +10 -0
  121. package/bin/state/watch-lock.mjs +38 -3
  122. package/bin/types/poll-summary.d.mts +2 -0
  123. package/package.json +12 -5
  124. package/plugins/pr-shepherd/.claude-plugin/plugin.json +1 -1
  125. package/plugins/pr-shepherd/.codex-plugin/plugin.json +1 -1
  126. package/plugins/pr-shepherd/skills/pr-shepherd/SKILL.md +1 -1
  127. package/plugins/pr-shepherd/skills/pr-shepherd/references/create-a-pr.md +2 -2
  128. package/plugins/pr-shepherd/skills/pr-shepherd/references/waiting.md +1 -1
  129. package/plugins/pr-shepherd/skills/setup-pr-shepherd/references/classifiers.md +1 -1
  130. package/pr-shepherd.schema.json +8 -0
  131. package/bin/commands/stack-merge-flag.d.mts +0 -7
  132. package/bin/commands/stack-merge-flag.mjs +0 -6
@@ -24,6 +24,16 @@ export declare function acquireWatchLock(repo: WatchRepo, pr: number, flags: str
24
24
  * stale holder is taken over, and a live other holder is left untouched and returned as lost.
25
25
  */
26
26
  export declare function verifyWatchLock(repo: WatchRepo, pr: number, flags: string[]): AcquireResult;
27
+ export type WatcherInspection = {
28
+ state: "none";
29
+ } | {
30
+ state: "live";
31
+ holder: WatchHolder;
32
+ } | {
33
+ state: "unreadable";
34
+ };
35
+ /** Read-only: creates nothing, takes no lock. Absent file or dead holder is `none`; unreadable is not. */
36
+ export declare function inspectWatcher(repo: WatchRepo, pr: number): WatcherInspection;
27
37
  /** Removes this process's lock for `pr`; another process's lock is never touched. */
28
38
  export declare function releaseWatchLock(repo: WatchRepo, pr: number): void;
29
39
  export declare function releaseAllWatchLocks(): void;
@@ -1,5 +1,6 @@
1
1
  import { linkSync, mkdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
2
2
  import { dirname } from "node:path";
3
+ import { runReadOnly } from "../execution-context.mjs";
3
4
  import { resolvePrStatePath } from "./base.mjs";
4
5
  import { readProcessStart } from "./process-start.mjs";
5
6
  const LOCK_FILE = "watch.lock.json";
@@ -11,16 +12,31 @@ let hooksInstalled = false;
11
12
  let tmpSeq = 0;
12
13
  const keyOf = (repo, pr) => `${repo.owner}/${repo.name}#${pr}`;
13
14
  const pathFor = (repo, pr, file = LOCK_FILE) => resolvePrStatePath({ owner: repo.owner, repo: repo.name, pr }, file);
14
- function readHolder(path) {
15
+ /** `strict` (inspection only) also requires a `pr`, string flags and startedAt; acquisition stays lax. */
16
+ function parseHolder(raw, strict = false) {
15
17
  try {
16
- const parsed = JSON.parse(readFileSync(path, "utf8"));
17
- const valid = Number.isInteger(parsed.pid) && parsed.pid > 0 && Array.isArray(parsed.flags);
18
+ const parsed = JSON.parse(raw);
19
+ const valid = Number.isInteger(parsed.pid) &&
20
+ parsed.pid > 0 &&
21
+ Array.isArray(parsed.flags) &&
22
+ (!strict ||
23
+ (Number.isInteger(parsed.pr) &&
24
+ parsed.flags.every((flag) => typeof flag === "string") &&
25
+ (parsed.startedAt === undefined || typeof parsed.startedAt === "string")));
18
26
  return valid ? parsed : undefined;
19
27
  }
20
28
  catch {
21
29
  return undefined;
22
30
  }
23
31
  }
32
+ function readHolder(path) {
33
+ try {
34
+ return parseHolder(readFileSync(path, "utf8"));
35
+ }
36
+ catch {
37
+ return undefined;
38
+ }
39
+ }
24
40
  /** Only ESRCH proves the process is gone; EPERM (a sandbox hiding it) means it exists. */
25
41
  function pidAlive(pid) {
26
42
  try {
@@ -119,6 +135,25 @@ function takeOverIfStale(repo, pr, mine) {
119
135
  const current = readHolder(pathFor(repo, pr));
120
136
  return (current === undefined || isStale(current)) && takeOver(repo, pr, mine);
121
137
  }
138
+ /** Read-only: creates nothing, takes no lock. Absent file or dead holder is `none`; unreadable is not. */
139
+ export function inspectWatcher(repo, pr) {
140
+ // The read-only scope keeps state resolution from creating the shared state directory.
141
+ return runReadOnly(() => {
142
+ let raw;
143
+ try {
144
+ raw = readFileSync(pathFor(repo, pr), "utf8");
145
+ }
146
+ catch (error) {
147
+ // Only an absent path proves no lock; EACCES and the like may hide one.
148
+ const code = error.code;
149
+ return code === "ENOENT" || code === "ENOTDIR" ? { state: "none" } : { state: "unreadable" };
150
+ }
151
+ const holder = parseHolder(raw, true);
152
+ if (!holder)
153
+ return { state: "unreadable" };
154
+ return isStale(holder) ? { state: "none" } : { state: "live", holder };
155
+ });
156
+ }
122
157
  /** Removes this process's lock for `pr`; another process's lock is never touched. */
123
158
  export function releaseWatchLock(repo, pr) {
124
159
  held.delete(keyOf(repo, pr));
@@ -85,6 +85,8 @@ export interface PollSummaryItem {
85
85
  isInMergeQueue?: true;
86
86
  /** REST branch policy: true requires a queue, false proves no queue; omitted when unknown. */
87
87
  requiresMergeQueue?: boolean;
88
+ /** The base branch requires linear history, so a direct merge cannot use a merge commit; omitted otherwise. */
89
+ requiresLinearHistory?: true;
88
90
  queueRemoval?: MergeQueueRemovalStatus;
89
91
  blockingReviewerInProgress?: true;
90
92
  remainingSeconds?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pr-shepherd",
3
- "version": "2.6.0",
3
+ "version": "2.7.0",
4
4
  "description": "Autonomous PR CI monitor and review-comment resolver for agentic coding tools",
5
5
  "keywords": [
6
6
  "automation",
@@ -59,13 +59,13 @@
59
59
  },
60
60
  "scripts": {
61
61
  "build": "node scripts/build.mjs",
62
- "prepare": "node scripts/install-husky.mjs && npm run build",
63
- "prepublishOnly": "npm run typecheck && npm test && npm run build",
62
+ "prepare": "node scripts/install-husky.mjs && node scripts/build.mjs",
63
+ "prepublishOnly": "pnpm run typecheck && pnpm test && pnpm run build",
64
64
  "typecheck": "tsc --noEmit",
65
65
  "knip": "knip",
66
66
  "knip:production": "knip --production",
67
- "lint:dead-code": "npm run --silent knip && npm run --silent knip:production",
68
- "lint": "oxlint src/ test-helpers/ fixtures/*.mts test-cases/ plugins/ site/build.mjs site/serve.mjs site/lib/ && npm run --silent lint:dead-code",
67
+ "lint:dead-code": "pnpm run --silent knip && pnpm run --silent knip:production",
68
+ "lint": "oxlint src/ test-helpers/ fixtures/*.mts test-cases/ plugins/ site/build.mjs site/serve.mjs site/lib/ && pnpm run --silent lint:dead-code",
69
69
  "format": "oxfmt src/ test-helpers/ fixtures/*.mts test-cases/*.mts plugins/ docs/ README.md site/build.mjs site/serve.mjs site/lib/",
70
70
  "format:check": "oxfmt --check src/ test-helpers/ fixtures/*.mts test-cases/*.mts plugins/ docs/ README.md site/build.mjs site/serve.mjs site/lib/",
71
71
  "test": "vitest run",
@@ -95,5 +95,12 @@
95
95
  },
96
96
  "engines": {
97
97
  "node": ">=22.19.0"
98
+ },
99
+ "devEngines": {
100
+ "packageManager": {
101
+ "name": "pnpm",
102
+ "version": "^12",
103
+ "onFail": "ignore"
104
+ }
98
105
  }
99
106
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pr-shepherd",
3
3
  "description": "Autonomous PR CI monitor and review-comment resolver for agentic coding tools",
4
- "version": "2.6.0",
4
+ "version": "2.7.0",
5
5
  "author": {
6
6
  "name": "Jonathan Ong",
7
7
  "email": "jonathanrichardong@gmail.com"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pr-shepherd",
3
- "version": "2.6.0",
3
+ "version": "2.7.0",
4
4
  "description": "Autonomous PR CI monitor and review-comment resolver for Codex.",
5
5
  "author": {
6
6
  "name": "Jonathan Ong",
@@ -12,7 +12,7 @@ allowed-tools: Bash(npx pr-shepherd:*), Bash(pnpm exec pr-shepherd:*), Bash(pnpm
12
12
 
13
13
  - To make, create, or open a PR, read the "Create a PR" playbook, then pass its URL on.
14
14
  - External shepherd: read the "Draft handoff" playbook, not an in-session loop.
15
- - `$ARGUMENTS`: PR numbers, PR URLs, or `'owner/repo#N'` (quoted), or `stack PR...` / `stack owner/repo#N` (the number owns all layers), plus one optional merge flag: `--merge`, `--merge-ready`, `--merge-through PR`; reject anything else. Use `stack` only when asked or routed. With no PR, pass none. A qualified PR picks the GitHub target; this checkout supplies git and config.
15
+ - `$ARGUMENTS`: PR numbers, PR URLs, or `'owner/repo#N'` (quoted), or `stack PR...` / `stack owner/repo#N` (the number owns all layers; listed PRs own only themselves, so list every layer you opened), plus one optional merge flag: `--merge`, `--merge-ready`, `--merge-through PR`; reject anything else. Use `stack` only when asked or routed. With no PR, pass none. A qualified PR picks the GitHub target; this checkout supplies git and config.
16
16
  - Add a merge flag only when the user asks to merge, land, enqueue, or requeue. A stack or PR named with no such request ("the stack", "#N", a URL) gets no merge flag: shepherd it to ready, report, and leave the merge to them. A merge flag, or a request to merge, land, enqueue, or requeue after an ejection, allows the printed merge/enqueue/dequeue commands. Run Shepherd first: never merge, enqueue or retarget with `gh` or a GitHub MCP tool before Shepherd prints that step. Run them without asking again; escalate only when the host requires it.
17
17
  - Only when asked to merge: "merge the stack" -> `stack owner/repo#N --merge` (given only a PR, `stack PR --merge`, then on `unowned-stack-layers` run its printed stack-number command); "merge them as they're ready"/"drain" -> `--merge-ready`; "merge #N" -> one-PR `--merge`, but if they claim other layers or say "up to #N" -> `stack <claimed PRs incl. N> --merge-through N`; "ship it" -> ask.
18
18
  - Follow printed branch-update steps without asking: update the branch the way the step names (a rebase, or a merge of the base when the repository configured `iterate.branch-update: merge`), resolve conflicts, push your own PR head (`--force-with-lease` after a rebase, a normal push after a merge). Never merge any other branch into the PR.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Apply when the user asks to make, create, or open a PR, before dispatching.
4
4
 
5
- - Before creating any PR, split the work into one PR per change that can be reviewed alone and choose each base. Stack a PR on an earlier one when it needs that PR's code or edits the same lines (it would need a rebase once the earlier one merges); otherwise base it on the default branch. When such a branch was cut from the default branch, rebase it onto the earlier branch first and push it with `--force-with-lease`; it is your own branch. Then shepherd every PR until it is mergeable: `pr-shepherd stack <top PR>` for a stack, one `pr-shepherd` run listing the separate PRs otherwise.
5
+ - Before creating any PR, split the work into one PR per change that can be reviewed alone and choose each base. Stack a PR on an earlier one when it needs that PR's code or edits the same lines (it would need a rebase once the earlier one merges); otherwise base it on the default branch. When such a branch was cut from the default branch, rebase it onto the earlier branch first and push it with `--force-with-lease`; it is your own branch. Then shepherd every PR until it is mergeable: for a stack, `pr-shepherd stack <PR> <PR> ...` listing every layer you opened (one PR alone lists only that layer, and an unlisted layer gets no session); otherwise one `pr-shepherd` run listing the separate PRs.
6
6
  - Review and commit the in-scope changes, verify the push remote and the chosen base, push each branch, create each PR (stacked PRs through `gh stack`, below), and pass the qualified URLs to Dispatch.
7
7
  - Push is the ordinary non-force push of those reviewed commits. Do not ask for a separate confirmation because the push publishes them. Request runtime escalation when the host requires it.
8
8
  - A skill cannot grant host permissions. Unattended approval comes from a trusted command rule or host policy.
@@ -10,4 +10,4 @@ Apply when the user asks to make, create, or open a PR, before dispatching.
10
10
  - Bare `--force`, pushes to any other branch, remote or credential changes, unrelated changes, and ambiguous targets stay outside this workflow.
11
11
  - Creating or opening a PR without merge intent leaves `--merge` off.
12
12
  - To stack, create a GitHub native stack with `gh stack` instead of pointing branches at each other by hand: `gh extension install github/gh-stack`, `gh stack init <branch>`, `gh stack add <branch>`, `gh stack submit --auto`. When the earlier PR is already open, add the new branch with `gh stack link <earlier PR> <new branch>` (or `gh stack link <stack number> <new branch>` when it is already in a stack), not `gh pr create --base <earlier branch>`. If GitHub reports that stacks are unavailable for the repository (not when one `gh stack` subcommand fails or is unknown; use another `gh stack` route), open separate PRs on the default branch and merge them in order.
13
- - Merge a native stack with one `gh stack merge <top PR>` (or the merge Shepherd prints), which lands every layer below it; do not `gh pr merge` layer by layer and rebase between merges.
13
+ - Merge a native stack with the one `pr-shepherd apply merge` command (PR URL and pinned stack state) that `pr-shepherd stack <PR> <PR> ... --until-terminal --merge` (every layer you opened) prints, which lands every layer below the named one; do not `gh pr merge` layer by layer and rebase between merges.
@@ -3,6 +3,6 @@
3
3
  Apply when picking how to wait for Shepherd. Choose by what your host does when a command exits.
4
4
 
5
5
  1. A background command's exit wakes you: run `pr-shepherd [PR ...] --until-terminal` (plus `--merge` when requested) as a background command, end the turn, and act on its output when it exits. Do not read or poll its output before then. Exit 10–16 is a Shepherd action, not a crash: read the output. Exit 64 and above is a command failure (75 is retryable): handle it as one.
6
- 2. No wake-up on exit (a foreground subagent, for example): run the bounded `pr-shepherd [PR ...]` in the foreground. If your command-time limit is under the default 270s, pass a smaller `--timeout`, and set the tool's own timeout above the poll when it allows. On a non-terminal `WAIT` or `READY`, rerun the same command. Never background it and check its output on a loop.
6
+ 2. No wake-up on exit (a foreground subagent, for example): run the bounded `pr-shepherd [PR ...]` in the foreground. Its `--timeout` (default 270s) covers the debounce, but one final tick can run past it. Keep it at least 30s below the smaller of your command-time limit and, when your host states one, your prompt-cache TTL, to leave room for that tick: the default fits a 5-minute TTL, and a longer TTL lets you raise it (for example 9m under a 10-minute command limit). When the tool allows, set its own timeout at least 30s above the poll's `--timeout`. If your command-time limit is too short for that margin (under about a minute), pass `--timeout 1s --interval 60s --debounce 0s` so each call is a single tick. On a non-terminal `WAIT` or `READY`, rerun the same command. Never background it and check its output on a loop.
7
7
  3. Single ticks (cloud sessions, `iterate`): follow the "Event loop" playbook.
8
8
  4. One watcher per selection: before starting Shepherd with different PRs or flags (such as adding `--merge`), stop the running one. Never run two on the same PR.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Use a classification rule when the unwanted item has a recognizable author and message pattern. Inspect a representative item first so the rule does not hide other feedback from the same bot. Prefer an existing settings control for polling- or output-wide behavior.
4
4
 
5
- Check the bundled rules first. Under `classify.standard` in the active config file, `all: true` enables every rule, and a named boolean such as `codecov-report: false` overrides `all`. They cover vendor bot notices on conversation comments (`claude-notices`, `coderabbit-notices`, `codecov-report`, `codex-notices`, `dependabot-notices`, `dependency-review-no-issues`, `gemini-notices`, `kilo-no-issues`, `snyk-no-issues`, `socket-reports`, `sonarqube-gate-passed`, `sourcery-notices`, and `sourcery-review-guide`), and `coderabbit-notices` also suppresses CodeRabbit chat rate-limit replies on review threads (`review-thread-reply`, suppress-only). They do not match review summaries or review-thread root comments. Write a custom rule only when no bundled rule fits. If a name here is rejected as unknown, this list is stale for the installed version; trust the error.
5
+ Check the bundled rules first. Under `classify.standard` in the active config file, `all: true` enables every rule, and a named boolean such as `codecov-report: false` overrides `all`. They cover vendor bot notices on conversation comments (`claude-notices`, `coderabbit-notices`, `coderabbit-walkthrough`, `codecov-report`, `codex-notices`, `dependabot-notices`, `dependency-review-no-issues`, `devin-no-issues`, `gemini-notices`, `kilo-no-issues`, `snyk-no-issues`, `socket-reports`, `sonarqube-gate-passed`, `sourcery-notices`, and `sourcery-review-guide`), and `coderabbit-notices` also suppresses CodeRabbit chat rate-limit replies on review threads (`review-thread-reply`, suppress-only). `devin-no-issues` also matches Devin's no-issues review (`review-summary`). Otherwise they do not match review summaries or review-thread root comments. Write a custom rule only when no bundled rule fits. If a name here is rejected as unknown, this list is stale for the installed version; trust the error.
6
6
 
7
7
  Place an `.mjs` file in `.pr-shepherd/classification/` in the project. Shepherd uses the first classification directory on the working directory's ancestor chain; it stops at the home directory if reached, otherwise at the filesystem root. A home-level rule directory is not discovered when the project is outside the home tree. Rule directories do not merge. Files ending in `.ts`, `.mts`, `.mjs`, or `.js` load, except names beginning with `_` or `.`. Prefer `.mjs`; an `.mts` rule also works if it uses only erasable TypeScript syntax.
8
8
 
@@ -154,6 +154,12 @@
154
154
  "minimum": 0,
155
155
  "maximum": 9007199254740991
156
156
  },
157
+ "changes-requested-review-max-chars": {
158
+ "default": 10000,
159
+ "type": "integer",
160
+ "minimum": 0,
161
+ "maximum": 9007199254740991
162
+ },
157
163
  "resolve-other-human-threads": {
158
164
  "default": "none",
159
165
  "type": "string",
@@ -388,10 +394,12 @@
388
394
  "all",
389
395
  "claude-notices",
390
396
  "coderabbit-notices",
397
+ "coderabbit-walkthrough",
391
398
  "codecov-report",
392
399
  "codex-notices",
393
400
  "dependabot-notices",
394
401
  "dependency-review-no-issues",
402
+ "devin-no-issues",
395
403
  "gemini-notices",
396
404
  "kilo-no-issues",
397
405
  "snyk-no-issues",
@@ -1,7 +0,0 @@
1
- import { type MergeMethod } from "../config/merge-method.mts";
2
- /** Stack commands prefer squash unless config or the repository selects another method. */
3
- export declare function stackMergeFlag(allowed: readonly MergeMethod[] | undefined): {
4
- flag: string;
5
- } | {
6
- unavailable: string;
7
- };
@@ -1,6 +0,0 @@
1
- import { loadConfig } from "../config/load.mjs";
2
- import { configuredMergeMethod, mergeMethodFlag, } from "../config/merge-method.mjs";
3
- /** Stack commands prefer squash unless config or the repository selects another method. */
4
- export function stackMergeFlag(allowed) {
5
- return mergeMethodFlag(allowed, "squash", configuredMergeMethod(loadConfig().merge));
6
- }