ralph-hero-mcp-server 2.5.194 → 2.5.195
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/hygiene.js +25 -2
- package/package.json +1 -1
package/dist/lib/hygiene.js
CHANGED
|
@@ -90,6 +90,9 @@ export function findFieldGaps(items, now) {
|
|
|
90
90
|
missingPriority: nonTerminal
|
|
91
91
|
.filter((item) => item.priority === null)
|
|
92
92
|
.map((item) => toHygieneItem(item, now)),
|
|
93
|
+
missingWorkflowState: nonTerminal
|
|
94
|
+
.filter((item) => item.workflowState === null)
|
|
95
|
+
.map((item) => toHygieneItem(item, now)),
|
|
93
96
|
};
|
|
94
97
|
}
|
|
95
98
|
/**
|
|
@@ -338,7 +341,8 @@ export function formatHygieneMarkdown(report) {
|
|
|
338
341
|
}
|
|
339
342
|
// Field gaps
|
|
340
343
|
const totalGaps = report.fieldGaps.missingEstimate.length +
|
|
341
|
-
report.fieldGaps.missingPriority.length
|
|
344
|
+
report.fieldGaps.missingPriority.length +
|
|
345
|
+
report.fieldGaps.missingWorkflowState.length;
|
|
342
346
|
if (totalGaps > 0) {
|
|
343
347
|
lines.push("## Field Gaps");
|
|
344
348
|
if (report.fieldGaps.missingEstimate.length > 0) {
|
|
@@ -359,6 +363,15 @@ export function formatHygieneMarkdown(report) {
|
|
|
359
363
|
}
|
|
360
364
|
lines.push("");
|
|
361
365
|
}
|
|
366
|
+
if (report.fieldGaps.missingWorkflowState.length > 0) {
|
|
367
|
+
lines.push("### Missing Workflow State");
|
|
368
|
+
lines.push("| Issue | Title | State | Age |");
|
|
369
|
+
lines.push("|-------|-------|-------|-----|");
|
|
370
|
+
for (const item of report.fieldGaps.missingWorkflowState) {
|
|
371
|
+
lines.push(formatItemRow(item));
|
|
372
|
+
}
|
|
373
|
+
lines.push("");
|
|
374
|
+
}
|
|
362
375
|
}
|
|
363
376
|
// WIP violations
|
|
364
377
|
if (report.wipViolations.length > 0) {
|
|
@@ -426,7 +439,8 @@ export function formatHygieneMarkdown(report) {
|
|
|
426
439
|
renderedAny = true;
|
|
427
440
|
}
|
|
428
441
|
const repoTotalGaps = repo.fieldGaps.missingEstimate.length +
|
|
429
|
-
repo.fieldGaps.missingPriority.length
|
|
442
|
+
repo.fieldGaps.missingPriority.length +
|
|
443
|
+
repo.fieldGaps.missingWorkflowState.length;
|
|
430
444
|
if (repoTotalGaps > 0) {
|
|
431
445
|
lines.push("#### Field Gaps");
|
|
432
446
|
if (repo.fieldGaps.missingEstimate.length > 0) {
|
|
@@ -447,6 +461,15 @@ export function formatHygieneMarkdown(report) {
|
|
|
447
461
|
}
|
|
448
462
|
lines.push("");
|
|
449
463
|
}
|
|
464
|
+
if (repo.fieldGaps.missingWorkflowState.length > 0) {
|
|
465
|
+
lines.push("##### Missing Workflow State");
|
|
466
|
+
lines.push("| Issue | Title | State | Age |");
|
|
467
|
+
lines.push("|-------|-------|-------|-----|");
|
|
468
|
+
for (const item of repo.fieldGaps.missingWorkflowState) {
|
|
469
|
+
lines.push(formatItemRow(item));
|
|
470
|
+
}
|
|
471
|
+
lines.push("");
|
|
472
|
+
}
|
|
450
473
|
renderedAny = true;
|
|
451
474
|
}
|
|
452
475
|
if (repo.wipViolations.length > 0) {
|