opencode-forgekeeper 4.0.0 → 4.1.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.
package/README.md CHANGED
@@ -4,13 +4,12 @@ An [OpenCode](https://opencode.ai) plugin that keeps coding sessions connected t
4
4
  PRs/MRs, review feedback, and CI status. It supports GitHub and GitLab.
5
5
 
6
6
  Session titles include the references you're working on. The prompt footer shows what needs
7
- attention, and optional summaries bring review feedback back into the relevant conversation.
7
+ attention, and automatic summaries bring review feedback back into the relevant conversation.
8
8
  A session can track several PRs/MRs across repositories.
9
9
 
10
10
  ![OpenCode session list with issue and MR references, a review notification, and a footer summarizing four MRs.](https://raw.githubusercontent.com/pedropombeiro/opencode-plugins/main/packages/forgekeeper/images/session-review-notification.png)
11
11
 
12
- This capture shows optional session delivery. Current releases default to the feedback inbox;
13
- notification wording has changed since this capture.
12
+ Notification wording has changed since this capture.
14
13
 
15
14
  ## Installation
16
15
 
@@ -58,11 +57,11 @@ For example, this footer tracks four MRs, with one conflict and two already merg
58
57
 
59
58
  ![Forgekeeper status dialog within an OpenCode session, showing pipeline results, unresolved threads, conflicts, and review requirements.](https://raw.githubusercontent.com/pedropombeiro/opencode-plugins/main/packages/forgekeeper/images/review-and-ci-status.png)
60
59
 
61
- | Command | Action |
62
- | --- | --- |
63
- | `/forge-status` | Show detailed status and refresh it. Aliases: `/mr-status`, `/pr-status`. |
64
- | `/forge-open` | Open the PR/MR in your browser. Aliases: `/mr-open`, `/pr-open`. |
65
- | `/forge-feedback` | Browse pending review feedback and PR/MR updates. |
60
+ | Command | Action |
61
+ | ----------------- | ------------------------------------------------------------------------- |
62
+ | `/forge-status` | Show detailed status and refresh it. Aliases: `/mr-status`, `/pr-status`. |
63
+ | `/forge-open` | Open the PR/MR in your browser. Aliases: `/mr-open`, `/pr-open`. |
64
+ | `/forge-feedback` | Browse pending review feedback and PR/MR updates. |
66
65
 
67
66
  In OpenCode Desktop, a pill above the composer shows the same status, and the commands
68
67
  above open side panels for the status and the inbox. Server notices appear as toasts and
@@ -77,10 +76,10 @@ Conflicts appear in both the composer pill and the status panel:
77
76
  The OpenCode web app loads neither the terminal nor the desktop part, but it offers two
78
77
  commands that answer in the conversation:
79
78
 
80
- | Command | Action |
81
- | --- | --- |
82
- | `/forge-report` | Show the PR/MR status of the session. |
83
- | `/forge-inbox` | List the session's pending updates. `ack <number>` or `ack all` acknowledges them, and `summarize <number>` summarizes one. |
79
+ | Command | Action |
80
+ | --------------- | --------------------------------------------------------------------------------------------------------------------------- |
81
+ | `/forge-report` | Show the PR/MR status of the session. |
82
+ | `/forge-inbox` | List the session's pending updates. `ack <number>` or `ack all` acknowledges them, and `summarize <number>` summarizes one. |
84
83
 
85
84
  Each answer is a short tool-free model turn that shows a report written from forge data.
86
85
  Those apps don't display the text of messages that plugins add, so the model shows it.
@@ -97,11 +96,12 @@ Forgekeeper watches explicit PR/MR targets for human and automated review feedba
97
96
  failed jobs, and merges. Recent top-level sessions can receive updates even if their tabs
98
97
  aren't open. Branch-derived PRs/MRs get status but no review notifications.
99
98
 
100
- By default, updates go to a persistent local inbox. In `/forge-feedback`, select an update to
99
+ All updates go to a persistent local inbox. By default, review feedback also starts a summary
100
+ turn, while lifecycle updates stay in the inbox. In `/forge-feedback`, select an update to
101
101
  open its links, acknowledge it, summarize it in its session, or pause monitoring.
102
102
  Acknowledging an update doesn't reply to or resolve a remote discussion.
103
103
 
104
- To bring summaries into conversations automatically, set both delivery options to `summary`:
104
+ To summarize lifecycle updates automatically too, set `delivery.lifecycle` to `summary`:
105
105
 
106
106
  ```json
107
107
  {
@@ -109,7 +109,7 @@ To bring summaries into conversations automatically, set both delivery options t
109
109
  {
110
110
  "package": "opencode-forgekeeper",
111
111
  "options": {
112
- "delivery": { "reviews": "summary", "lifecycle": "summary" }
112
+ "delivery": { "lifecycle": "summary" }
113
113
  }
114
114
  }
115
115
  ]
@@ -118,10 +118,10 @@ To bring summaries into conversations automatically, set both delivery options t
118
118
 
119
119
  Each delivery option accepts:
120
120
 
121
- - `inbox`: retain the update without posting to the session. This is the default.
121
+ - `inbox`: retain the update without posting to the session. This is the lifecycle default.
122
122
  - `passive`: queue a notice without starting a turn.
123
- - `summary`: start a restricted summary turn after active work finishes. Review updates
124
- without comments use a passive notice instead.
123
+ - `summary`: start a restricted summary turn after active work finishes. This is the review
124
+ default. Review updates without comments use a passive notice instead.
125
125
 
126
126
  Human and GitLab Duo feedback wait for a four-minute quiet period, with status polling every
127
127
  30 seconds meanwhile, so an update arrives within about 5 minutes of the last comment. That's
@@ -129,12 +129,17 @@ before a typical 5-minute prompt cache expires. Monitoring records an initial ba
129
129
  than announcing existing feedback. Pending updates survive reloads and clear when acknowledged
130
130
  or no longer relevant; merge updates remain until acknowledged.
131
131
 
132
+ On GitLab, a request for your review, including a repeated one, also becomes an update. It
133
+ links the author's replies since the previous request, including those in resolved threads. A
134
+ request is informational and never starts review automation.
135
+
132
136
  Forgekeeper reports failed jobs but never retries or fixes them. For tracked stacks, it can
133
137
  also propose retargeting dependents after a parent merges, but never retargets or rebases itself.
134
138
 
135
139
  Optionally, `automation.rules` lets exact reviewers on exact projects, such as GitLab Duo, start
136
- a coding turn that prepares fixes for their feedback. It runs only on PRs/MRs you wrote, in the
137
- one session that targets them, with the checkout on the source branch. A rule can require models
140
+ a coding turn that prepares fixes for their feedback. It runs only on PRs/MRs you wrote, or that
141
+ an account in the rule's `authors` wrote, in the one session that targets them, with the
142
+ checkout on the source branch. A rule can require models
138
143
  you trust with code changes. The turn uses the session's instructions and permissions, and
139
144
  leaves changes uncommitted. In `/forge-feedback`, **Act on feedback** (Ctrl+A) starts the same
140
145
  turn on request, and **Retry feedback work** (Ctrl+T) retries one after you inspect it.
@@ -142,10 +147,20 @@ turn on request, and **Retry feedback work** (Ctrl+T) retries one after you insp
142
147
  A `job-failed` rule investigates failed jobs on exact projects instead. Once a pipeline's
143
148
  failures go quiet for four minutes, or the pipeline finishes, one turn reads the failed jobs'
144
149
  logs and reports each failure's cause and a recommended fix, without changing anything. It runs
145
- on PRs/MRs you wrote or review, with the checkout at the head commit the pipeline tested. See
150
+ on PRs/MRs you wrote or review, or that an account in the rule's `authors` wrote, with the
151
+ checkout at the head commit the pipeline tested. See
146
152
  [Investigate failed jobs](https://github.com/pedropombeiro/opencode-plugins/blob/main/packages/forgekeeper/docs/reference.md#investigate-failed-jobs).
147
153
 
154
+ A session that tracks several PRs/MRs is on at most one of their branches. With
155
+ `"execution": "environment"` on a rule, a batch whose checkout is elsewhere runs through the
156
+ environment provider. The current local provider runs a linked session in a worktree at the
157
+ PR/MR's head commit, and the owning session gets a notice with its path.
158
+ Forgekeeper removes the worktrees it created once their PR/MR is over and nothing in them would
159
+ be lost. See
160
+ [Run automation in an execution environment](https://github.com/pedropombeiro/opencode-plugins/blob/main/packages/forgekeeper/docs/reference.md#run-automation-in-an-execution-environment).
161
+
148
162
  See [review detection and summaries](https://github.com/pedropombeiro/opencode-plugins/blob/main/packages/forgekeeper/docs/reference.md#review-notifications),
163
+ [review requests](https://github.com/pedropombeiro/opencode-plugins/blob/main/packages/forgekeeper/docs/reference.md#review-requests),
149
164
  [monitoring eligibility](https://github.com/pedropombeiro/opencode-plugins/blob/main/packages/forgekeeper/docs/reference.md#which-sessions-the-server-watches),
150
165
  [stacked PRs/MRs](https://github.com/pedropombeiro/opencode-plugins/blob/main/packages/forgekeeper/docs/reference.md#stacked-prsmrs), and
151
166
  [preparing fixes](https://github.com/pedropombeiro/opencode-plugins/blob/main/packages/forgekeeper/docs/reference.md#prepare-fixes-from-review-feedback) for details.
@@ -155,22 +170,23 @@ See [review detection and summaries](https://github.com/pedropombeiro/opencode-p
155
170
  Set options in the object form of the plugin entry in `opencode.json`, as in the example above.
156
171
  Only specify values you want to change. The terminal part has no separate options.
157
172
 
158
- | Option | Default | Purpose |
159
- | --- | --- | --- |
160
- | `status` | `true` | Set to `false` to keep only session targets and titles, without polling or notifications. |
161
- | `hosts` | `["gitlab.com"]` | Additional recognized GitLab hosts, besides hosts named `gitlab.*`. |
162
- | `githubHosts` | `["github.com"]` | Recognized GitHub hosts, including Enterprise. |
163
- | `pollSeconds` | `120` | Normal status polling interval. |
164
- | `watch.humanReviews` | `true` | Monitor human review feedback. |
165
- | `watch.automatedReviews` | `true` | Monitor GitLab Duo and GitHub Copilot review feedback. |
166
- | `watch.reviewBots` | `true` | Monitor configured review-bot accounts. |
167
- | `watch.lifecycle` | `true` | Monitor conflicts, failed jobs, and merges. |
168
- | `reviewBots` | GitLab.com security reviewers | Exact bot usernames by host. Your list replaces the defaults. |
169
- | `delivery.reviews` | `"inbox"` | Review delivery: `inbox`, `passive`, or `summary`. |
170
- | `delivery.lifecycle` | `"inbox"` | Conflict, job-failure, and merge delivery. |
171
- | `lifecycleExecution.parentMerged` | `{ "mode": "notify" }` | Optionally prepare retarget proposals for tracked dependents. |
172
- | `automation.rules` | No rules | Reviewers whose feedback starts a coding turn that prepares fixes, or projects whose failed jobs start an investigation, optionally limited to allowed models. |
173
- | `automation.modelGroups` | No groups | Named lists of `provider/model` IDs that rules reference in `allowedModelGroup`. |
173
+ | Option | Default | Purpose |
174
+ | --------------------------------- | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
175
+ | `status` | `true` | Set to `false` to keep only session targets and titles, without polling or notifications. |
176
+ | `hosts` | `["gitlab.com"]` | Additional recognized GitLab hosts, besides hosts named `gitlab.*`. |
177
+ | `githubHosts` | `["github.com"]` | Recognized GitHub hosts, including Enterprise. |
178
+ | `pollSeconds` | `120` | Normal status polling interval. |
179
+ | `watch.humanReviews` | `true` | Monitor human review feedback. |
180
+ | `watch.automatedReviews` | `true` | Monitor GitLab Duo and GitHub Copilot review feedback. |
181
+ | `watch.reviewBots` | `true` | Monitor configured review-bot accounts. |
182
+ | `watch.lifecycle` | `true` | Monitor conflicts, failed jobs, and merges. |
183
+ | `watch.reviewRequests` | `true` | Monitor requests for your review on GitLab MRs, including repeated ones. |
184
+ | `reviewBots` | GitLab.com security reviewers | Exact bot usernames by host. Your list replaces the defaults. |
185
+ | `delivery.reviews` | `"summary"` | Review delivery: `inbox`, `passive`, or `summary`. |
186
+ | `delivery.lifecycle` | `"inbox"` | Conflict, job-failure, and merge delivery. |
187
+ | `lifecycleExecution.parentMerged` | `{ "mode": "notify" }` | Optionally prepare retarget proposals for tracked dependents. |
188
+ | `automation.rules` | No rules | Reviewers whose feedback starts a coding turn that prepares fixes, or projects whose failed jobs start an investigation, optionally limited to allowed models. Set `"execution": "environment"` to permit the configured environment provider when the owning checkout doesn't match. |
189
+ | `automation.modelGroups` | No groups | Named lists of `provider/model` IDs that rules reference in `allowedModelGroup`. |
174
190
 
175
191
  See the [configuration reference](https://github.com/pedropombeiro/opencode-plugins/blob/main/packages/forgekeeper/docs/reference.md#options) for validation behavior and
176
192
  [review-bot configuration](https://github.com/pedropombeiro/opencode-plugins/blob/main/packages/forgekeeper/docs/reference.md#review-notifications) for account matching.