ralph-hero-mcp-server 2.5.57 → 2.5.61
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/dist/lib/plan-graph.js +4 -4
- package/package.json +1 -1
package/dist/lib/plan-graph.js
CHANGED
|
@@ -57,8 +57,8 @@ export function parsePlanGraph(content) {
|
|
|
57
57
|
const edges = [];
|
|
58
58
|
const lines = content.split("\n");
|
|
59
59
|
if (type === "plan") {
|
|
60
|
-
// Scan for ## Phase N: ...
|
|
61
|
-
const phasePattern = /^## Phase (\d+)
|
|
60
|
+
// Scan for ## Phase N: ... GH-NNN headings (with or without parens)
|
|
61
|
+
const phasePattern = /^## Phase (\d+):.*GH-(\d+)/;
|
|
62
62
|
// First pass: build phaseToIssue map
|
|
63
63
|
for (const line of lines) {
|
|
64
64
|
const m = line.match(phasePattern);
|
|
@@ -109,8 +109,8 @@ export function parsePlanGraph(content) {
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
else {
|
|
112
|
-
// plan-of-plans: scan for ### Feature ...: ...
|
|
113
|
-
const featurePattern = /^### Feature [^:]
|
|
112
|
+
// plan-of-plans: scan for ### Feature ...: ... GH-NNN headings (with or without parens)
|
|
113
|
+
const featurePattern = /^### Feature [^:]+:.*GH-(\d+)/;
|
|
114
114
|
let currentFeatureIssue = null;
|
|
115
115
|
for (const line of lines) {
|
|
116
116
|
const featureMatch = line.match(featurePattern);
|