opencode-forgekeeper 5.2.0 → 6.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
@@ -13,7 +13,7 @@ Notification wording has changed since this capture.
13
13
 
14
14
  ## Installation
15
15
 
16
- Requires OpenCode 2.2 or later, plus an authenticated [`gh`](https://cli.github.com/) for GitHub
16
+ Requires OpenCode 2.3 or later, plus an authenticated [`gh`](https://cli.github.com/) for GitHub
17
17
  or [`glab`](https://gitlab.com/gitlab-org/cli) for GitLab. The CLI must be available on the
18
18
  OpenCode server's `PATH`; only the CLI for your forge is required.
19
19
 
@@ -32,19 +32,19 @@ For self-managed hosts, configure `hosts` for GitLab hosts not named `gitlab.*`,
32
32
 
33
33
  Ask the agent to work on an issue or PR/MR. Forgekeeper provides `set_session_target` and
34
34
  instructions for the agent to keep the session's target up to date, including after creating
35
- a PR/MR. Targets persist across reloads and need not match the checked-out branch.
35
+ a PR/MR. Targets persist across reloads and need not match the checked-out branch. A new
36
+ session for a general question has no target, title prefix, or PR/MR status.
36
37
 
37
38
  For example, a session working on issue `#12` and MR `!45` gets a title prefix such as
38
39
  `[#12, !45]`. Several targets produce `[!101, !102]`, or `[!101, !102, !103, +3]` for a larger set.
39
40
  Your own title text is preserved.
40
41
 
41
42
  Run `/forge-detach` to clear all explicit targets without a model call. To remove only specific
42
- targets, pass their full URLs separated by spaces. After you remove the last target,
43
- Forgekeeper follows the checked-out branch and its open PR/MR again. Default branches
44
- get no branch-based prefix. Child sessions aren't renamed.
43
+ targets, pass their full URLs separated by spaces. Removing the last target clears the
44
+ Forgekeeper title prefix and PR/MR status. The agent can also clear all targets with
45
+ `set_session_target({ target: "none" })`. Child sessions aren't renamed.
45
46
 
46
- See the reference for [target rules](https://github.com/pedropombeiro/opencode-plugins/blob/main/packages/forgekeeper/docs/reference.md#session-targets) and
47
- [branch-based naming](https://github.com/pedropombeiro/opencode-plugins/blob/main/packages/forgekeeper/docs/reference.md#branch-based-naming).
47
+ See the reference for [target rules](https://github.com/pedropombeiro/opencode-plugins/blob/main/packages/forgekeeper/docs/reference.md#session-targets).
48
48
 
49
49
  ## PR/MR status
50
50
 
@@ -58,11 +58,17 @@ For example, this footer tracks four MRs, with one conflict and two already merg
58
58
 
59
59
  ![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
60
 
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. |
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. |
66
+ | `/forge-cleanup` | Archive idle sessions whose PRs/MRs have merged or tracked issues have closed, and close their open tabs. |
67
+
68
+ When all PRs/MRs for a session merge, or all tracked issues for an issue-only session close,
69
+ Forgekeeper shows an inline reminder in the session and offers **Clean up session** in the
70
+ status dialog and panel. Issue-only sessions check their issue status when opened, after a turn
71
+ ends, when targets change, or on manual refresh.
66
72
 
67
73
  In OpenCode Desktop, a pill above the composer shows the same status, and the commands
68
74
  above open side panels for the status and the inbox. Server notices appear as toasts and
@@ -74,28 +80,16 @@ Conflicts appear in both the composer pill and the status panel:
74
80
 
75
81
  ![OpenCode Desktop showing a PR with merge conflicts in the composer pill and Forgekeeper status panel.](https://raw.githubusercontent.com/pedropombeiro/opencode-plugins/main/packages/forgekeeper/images/desktop-conflicts.png)
76
82
 
77
- The OpenCode web app loads neither the terminal nor the desktop part, but it offers two
78
- commands that answer in the conversation:
79
-
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 <id>` or `ack all` acknowledges them, and `summarize <id>` summarizes one. |
84
-
85
- Each answer is a short tool-free model turn that shows a report written from forge data.
86
- Those apps don't display the text of messages that plugins add, so the model shows it.
87
- The report stays out of the session's history.
88
-
89
83
  Status normally refreshes every 2 minutes, or every 30 seconds during automated reviews and
90
84
  while new review feedback settles.
91
- Explicit PR/MR targets take precedence over title references and branch discovery. Issue
92
- targets have no PR/MR status.
85
+ Status shows only PR/MRs set as session targets. Forgekeeper does not infer targets from
86
+ the session title or the checked-out branch. Issue targets have no PR/MR status.
93
87
 
94
88
  ## Reviews and updates
95
89
 
96
90
  Forgekeeper watches explicit PR/MR targets for human and automated review feedback, reviewer
97
- approvals, conflicts, failed jobs, and merges. Recent top-level sessions can receive updates even
98
- if their tabs aren't open. Branch-derived PRs/MRs get status but no review notifications.
91
+ approvals, conflicts, failed jobs, requested changes, and merges. Recent top-level sessions can
92
+ receive updates even if their tabs aren't open.
99
93
 
100
94
  New checkouts show status without collecting inbox updates. Open `/forge-feedback` and choose
101
95
  **Enable feedback inbox** (Ctrl+S in the terminal) to start monitoring this checkout. Set
@@ -188,7 +182,8 @@ Only specify values you want to change. The terminal part has no separate option
188
182
  | `watch.humanReviews` | `true` | Monitor human review feedback. |
189
183
  | `watch.automatedReviews` | `true` | Monitor GitLab Duo and GitHub Copilot review feedback. |
190
184
  | `watch.reviewBots` | `true` | Monitor configured review-bot accounts. |
191
- | `watch.lifecycle` | `true` | Monitor conflicts, failed jobs, and merges. |
185
+ | `watch.lifecycle` | `true` | Monitor conflicts, failed jobs, requested changes, and merges. |
186
+ | `watch.issues` | `true` | Monitor related issues: outdated GitLab issue fields and open issues left behind after all tracked GitLab MRs or GitHub PRs merge. Needs `watch.lifecycle`. |
192
187
  | `watch.reviewRequests` | `true` | Monitor requests for your review on GitLab MRs, including repeated ones. |
193
188
  | `reviewBots` | GitLab.com security reviewers | Exact bot usernames by host. Your list replaces the defaults. |
194
189
  | `inbox` | `false` | Enable inbox monitoring for checkouts without a saved monitoring preference. Automation rules also enable it. |