ralph-hero-mcp-server 2.5.61 → 2.5.65

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) {
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.65",
4
4
  "description": "MCP server for GitHub Projects V2 - Ralph workflow automation",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",