opencode-forgekeeper 4.0.1 → 5.0.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 <id>` or `ack all` acknowledges them, and `summarize <id>` 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,16 @@ 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
101
- open its links, acknowledge it, summarize it in its session, or pause monitoring.
102
- Acknowledging an update doesn't reply to or resolve a remote discussion.
99
+ New checkouts show status without collecting inbox updates. Open `/forge-feedback` and choose
100
+ **Enable feedback inbox** (Ctrl+S in the terminal) to start monitoring this checkout. Set
101
+ `inbox: true` to enable monitoring by default. Automation rules also opt in. A saved checkout
102
+ preference takes precedence, including one from before the upgrade.
103
103
 
104
- To bring summaries into conversations automatically, set both delivery options to `summary`:
104
+ **Mark all as read** (Ctrl+U in the terminal) clears the badge for the displayed updates and
105
+ keeps them in the inbox. An update arriving afterward stays unread. **Acknowledge** dismisses
106
+ an update locally. Neither action replies to or resolves a remote discussion.
107
+
108
+ To enable monitoring and summarize lifecycle updates automatically:
105
109
 
106
110
  ```json
107
111
  {
@@ -109,7 +113,8 @@ To bring summaries into conversations automatically, set both delivery options t
109
113
  {
110
114
  "package": "opencode-forgekeeper",
111
115
  "options": {
112
- "delivery": { "reviews": "summary", "lifecycle": "summary" }
116
+ "inbox": true,
117
+ "delivery": { "lifecycle": "summary" }
113
118
  }
114
119
  }
115
120
  ]
@@ -118,10 +123,10 @@ To bring summaries into conversations automatically, set both delivery options t
118
123
 
119
124
  Each delivery option accepts:
120
125
 
121
- - `inbox`: retain the update without posting to the session. This is the default.
126
+ - `inbox` (default): retain the update without posting to the session.
122
127
  - `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.
128
+ - `summary`: start a restricted summary turn after active work finishes. Review updates without
129
+ comments use a passive notice instead.
125
130
 
126
131
  Human and GitLab Duo feedback wait for a four-minute quiet period, with status polling every
127
132
  30 seconds meanwhile, so an update arrives within about 5 minutes of the last comment. That's
@@ -129,12 +134,17 @@ before a typical 5-minute prompt cache expires. Monitoring records an initial ba
129
134
  than announcing existing feedback. Pending updates survive reloads and clear when acknowledged
130
135
  or no longer relevant; merge updates remain until acknowledged.
131
136
 
137
+ On GitLab, a request for your review, including a repeated one, also becomes an update. It
138
+ links the author's replies since the previous request, including those in resolved threads. A
139
+ request is informational and never starts review automation.
140
+
132
141
  Forgekeeper reports failed jobs but never retries or fixes them. For tracked stacks, it can
133
142
  also propose retargeting dependents after a parent merges, but never retargets or rebases itself.
134
143
 
135
144
  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
145
+ a coding turn that prepares fixes for their feedback. It runs only on PRs/MRs you wrote, or that
146
+ an account in the rule's `authors` wrote, in the one session that targets them, with the
147
+ checkout on the source branch. A rule can require models
138
148
  you trust with code changes. The turn uses the session's instructions and permissions, and
139
149
  leaves changes uncommitted. In `/forge-feedback`, **Act on feedback** (Ctrl+A) starts the same
140
150
  turn on request, and **Retry feedback work** (Ctrl+T) retries one after you inspect it.
@@ -142,10 +152,20 @@ turn on request, and **Retry feedback work** (Ctrl+T) retries one after you insp
142
152
  A `job-failed` rule investigates failed jobs on exact projects instead. Once a pipeline's
143
153
  failures go quiet for four minutes, or the pipeline finishes, one turn reads the failed jobs'
144
154
  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
155
+ on PRs/MRs you wrote or review, or that an account in the rule's `authors` wrote, with the
156
+ checkout at the head commit the pipeline tested. See
146
157
  [Investigate failed jobs](https://github.com/pedropombeiro/opencode-plugins/blob/main/packages/forgekeeper/docs/reference.md#investigate-failed-jobs).
147
158
 
159
+ A session that tracks several PRs/MRs is on at most one of their branches. With
160
+ `"execution": "environment"` on a rule, a batch whose checkout is elsewhere runs through the
161
+ environment provider. The current local provider runs a linked session in a worktree at the
162
+ PR/MR's head commit, and the owning session gets a notice with its path.
163
+ Forgekeeper removes the worktrees it created once their PR/MR is over and nothing in them would
164
+ be lost. See
165
+ [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).
166
+
148
167
  See [review detection and summaries](https://github.com/pedropombeiro/opencode-plugins/blob/main/packages/forgekeeper/docs/reference.md#review-notifications),
168
+ [review requests](https://github.com/pedropombeiro/opencode-plugins/blob/main/packages/forgekeeper/docs/reference.md#review-requests),
149
169
  [monitoring eligibility](https://github.com/pedropombeiro/opencode-plugins/blob/main/packages/forgekeeper/docs/reference.md#which-sessions-the-server-watches),
150
170
  [stacked PRs/MRs](https://github.com/pedropombeiro/opencode-plugins/blob/main/packages/forgekeeper/docs/reference.md#stacked-prsmrs), and
151
171
  [preparing fixes](https://github.com/pedropombeiro/opencode-plugins/blob/main/packages/forgekeeper/docs/reference.md#prepare-fixes-from-review-feedback) for details.
@@ -155,22 +175,24 @@ See [review detection and summaries](https://github.com/pedropombeiro/opencode-p
155
175
  Set options in the object form of the plugin entry in `opencode.json`, as in the example above.
156
176
  Only specify values you want to change. The terminal part has no separate options.
157
177
 
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`. |
178
+ | Option | Default | Purpose |
179
+ | --------------------------------- | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
180
+ | `status` | `true` | Set to `false` to keep only session targets and titles, without polling or notifications. |
181
+ | `hosts` | `["gitlab.com"]` | Additional recognized GitLab hosts, besides hosts named `gitlab.*`. |
182
+ | `githubHosts` | `["github.com"]` | Recognized GitHub hosts, including Enterprise. |
183
+ | `pollSeconds` | `120` | Normal status polling interval. |
184
+ | `watch.humanReviews` | `true` | Monitor human review feedback. |
185
+ | `watch.automatedReviews` | `true` | Monitor GitLab Duo and GitHub Copilot review feedback. |
186
+ | `watch.reviewBots` | `true` | Monitor configured review-bot accounts. |
187
+ | `watch.lifecycle` | `true` | Monitor conflicts, failed jobs, and merges. |
188
+ | `watch.reviewRequests` | `true` | Monitor requests for your review on GitLab MRs, including repeated ones. |
189
+ | `reviewBots` | GitLab.com security reviewers | Exact bot usernames by host. Your list replaces the defaults. |
190
+ | `inbox` | `false` | Enable inbox monitoring for checkouts without a saved monitoring preference. Automation rules also enable it. |
191
+ | `delivery.reviews` | `"inbox"` | Review delivery: `inbox`, `passive`, or `summary`. |
192
+ | `delivery.lifecycle` | `"inbox"` | Conflict, job-failure, and merge delivery. |
193
+ | `lifecycleExecution.parentMerged` | `{ "mode": "notify" }` | Optionally prepare retarget proposals for tracked dependents. |
194
+ | `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. |
195
+ | `automation.modelGroups` | No groups | Named lists of `provider/model` IDs that rules reference in `allowedModelGroup`. |
174
196
 
175
197
  See the [configuration reference](https://github.com/pedropombeiro/opencode-plugins/blob/main/packages/forgekeeper/docs/reference.md#options) for validation behavior and
176
198
  [review-bot configuration](https://github.com/pedropombeiro/opencode-plugins/blob/main/packages/forgekeeper/docs/reference.md#review-notifications) for account matching.