ralph-hero-mcp-server 2.5.181 → 2.5.183

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.
@@ -151,14 +151,22 @@ async function buildUnblockSignalMap(client, items, now) {
151
151
  /**
152
152
  * Derive the unique `owner/repo` set from the project items so the PR search
153
153
  * mirrors the project's repo scope. Items lacking a `repository` field (e.g.
154
- * draft items) are skipped. Returns deterministic order (sorted) so the
155
- * downstream search query is stable.
154
+ * draft items) are skipped. Closed items (GitHub `closedAt` set, or workflow
155
+ * state Done/Canceled) also do NOT expand the radius — a stale closed
156
+ * cross-repo item on the board would otherwise pull every open PR from that
157
+ * foreign repo into `next_actions` (see GH-1399). Returns deterministic order
158
+ * (sorted) so the downstream search query is stable.
156
159
  */
157
160
  function uniqueRepos(items) {
158
161
  const seen = new Set();
159
162
  for (const item of items) {
160
- if (item.repository)
161
- seen.add(item.repository);
163
+ if (!item.repository)
164
+ continue;
165
+ if (item.closedAt !== null)
166
+ continue;
167
+ if (item.workflowState === "Done" || item.workflowState === "Canceled")
168
+ continue;
169
+ seen.add(item.repository);
162
170
  }
163
171
  return Array.from(seen).sort();
164
172
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ralph-hero-mcp-server",
3
- "version": "2.5.181",
3
+ "version": "2.5.183",
4
4
  "description": "MCP server for GitHub Projects V2 - Ralph workflow automation",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",