ralph-hero-mcp-server 2.5.61 → 2.5.70

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.
@@ -39,7 +39,8 @@ export const OVERSIZED_ESTIMATES = new Set(["M", "L", "XL"]);
39
39
  * 6. Any issues in Plan in Progress or Plan in Review -> REVIEW
40
40
  * 7. All issues in Plan in Review -> HUMAN_GATE (plans awaiting human approval)
41
41
  * 8. Any issues in In Progress -> IMPLEMENT
42
- * 9. All issues in In Review/Done -> TERMINAL
42
+ * 9. Any issues in In Review (with rest Done/Canceled) -> INTEGRATE
43
+ * 9b. All issues Done/Canceled -> TERMINAL
43
44
  * 10. Any issues in Human Needed -> TERMINAL (need human)
44
45
  * 11. Fallback -> TRIAGE
45
46
  *
@@ -120,14 +121,15 @@ export function detectPipelinePosition(issues, isGroup, groupPrimary, options =
120
121
  if (inProgress.length > 0) {
121
122
  return buildResult("IMPLEMENT", `${inProgress.length} issue(s) in progress`, issues, isGroup, groupPrimary, { required: false, met: true, blocking: [] }, options.streamCount);
122
123
  }
123
- // Step 9: All issues terminal (In Review or Done or Canceled)
124
- const terminal = inReview.length + done.length + canceled.length;
125
- if (terminal === issues.length) {
126
- // In auto mode, "In Review" issues are actionable (integrator can merge)
127
- if (options.autoMode && inReview.length > 0 && done.length + canceled.length < issues.length) {
128
- return buildResult("INTEGRATE", `${inReview.length} issue(s) awaiting integration`, issues, isGroup, groupPrimary, { required: false, met: true, blocking: [] }, options.streamCount);
124
+ // Step 9: All issues in In Review, Done, or Canceled
125
+ const completed = inReview.length + done.length + canceled.length;
126
+ if (completed === issues.length) {
127
+ // "In Review" = PRs awaiting review/merge — actionable, not terminal
128
+ if (inReview.length > 0) {
129
+ return buildResult("INTEGRATE", `${inReview.length} issue(s) in review`, issues, isGroup, groupPrimary, { required: false, met: true, blocking: [] }, options.streamCount);
129
130
  }
130
- return buildResult("TERMINAL", "All issues in review or done", issues, isGroup, groupPrimary, { required: false, met: true, blocking: [] }, options.streamCount);
131
+ // All Done/Canceled truly terminal
132
+ return buildResult("TERMINAL", `All issues done or canceled (${done.length} done, ${canceled.length} canceled)`, issues, isGroup, groupPrimary, { required: false, met: true, blocking: [] }, options.streamCount);
131
133
  }
132
134
  // Step 10: Any issues need human intervention -> TERMINAL
133
135
  if (humanNeeded.length > 0) {
@@ -94,7 +94,10 @@ export function toDashboardItems(raw, projectNumber, projectTitle) {
94
94
  estimate: getFieldValue(r, "Estimate"),
95
95
  assignees: r.content.assignees?.nodes?.map((a) => a.login) ?? [],
96
96
  subIssueCount: r.content.subIssues?.totalCount ?? 0,
97
- blockedBy: [], // blockedBy requires separate queries; omit for now
97
+ blockedBy: r.content.trackedIssues?.nodes?.map((n) => ({
98
+ number: n.number,
99
+ workflowState: n.state === "CLOSED" ? "Done" : null,
100
+ })) ?? [],
98
101
  ...(projectNumber !== undefined ? { projectNumber } : {}),
99
102
  ...(projectTitle !== undefined ? { projectTitle } : {}),
100
103
  ...(r.content.repository ? { repository: r.content.repository.nameWithOwner } : {}),
@@ -131,6 +134,7 @@ export const DASHBOARD_ITEMS_QUERY = `query($projectId: ID!, $cursor: String, $f
131
134
  assignees(first: 5) { nodes { login } }
132
135
  repository { nameWithOwner name }
133
136
  subIssues { totalCount }
137
+ trackedIssues(first: 10) { nodes { number state } }
134
138
  }
135
139
  ... on PullRequest {
136
140
  __typename
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ralph-hero-mcp-server",
3
- "version": "2.5.61",
3
+ "version": "2.5.70",
4
4
  "description": "MCP server for GitHub Projects V2 - Ralph workflow automation",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",