@productbrain/mcp 0.0.1-beta.207 → 0.0.1-beta.208
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.
|
@@ -10706,7 +10706,7 @@ function checkDocCompleteness(collections, checkedAt) {
|
|
|
10706
10706
|
};
|
|
10707
10707
|
}
|
|
10708
10708
|
function renderDocCompletenessLines(report) {
|
|
10709
|
-
const lines = ["##
|
|
10709
|
+
const lines = ["## Collection Documentation Gaps"];
|
|
10710
10710
|
if (report.summary.total === 0) {
|
|
10711
10711
|
lines.push(`All ${report.totalChecked} collection docs have required fields populated.`);
|
|
10712
10712
|
lines.push("");
|
|
@@ -10718,21 +10718,23 @@ function renderDocCompletenessLines(report) {
|
|
|
10718
10718
|
lines.push(`**${report.summary.total} gap${report.summary.total === 1 ? "" : "s"}** across ${report.totalChecked} collections (${parts.join(", ")})`);
|
|
10719
10719
|
const errors = report.violations.filter((v) => v.severity === "error");
|
|
10720
10720
|
const warnings = report.violations.filter((v) => v.severity === "warning");
|
|
10721
|
+
const ERROR_INLINE = 10;
|
|
10722
|
+
const WARNING_INLINE = 10;
|
|
10721
10723
|
if (errors.length > 0) {
|
|
10722
10724
|
lines.push("");
|
|
10723
10725
|
lines.push("**Errors** (must fix):");
|
|
10724
|
-
for (const v of errors.slice(0,
|
|
10726
|
+
for (const v of errors.slice(0, ERROR_INLINE)) {
|
|
10725
10727
|
lines.push(`- ${v.message} \u2014 ${v.fix}`);
|
|
10726
10728
|
}
|
|
10727
|
-
if (errors.length >
|
|
10729
|
+
if (errors.length > ERROR_INLINE) lines.push(`- ...and ${errors.length - ERROR_INLINE} more`);
|
|
10728
10730
|
}
|
|
10729
10731
|
if (warnings.length > 0) {
|
|
10730
10732
|
lines.push("");
|
|
10731
10733
|
lines.push("**Warnings**:");
|
|
10732
|
-
for (const v of warnings.slice(0,
|
|
10734
|
+
for (const v of warnings.slice(0, WARNING_INLINE)) {
|
|
10733
10735
|
lines.push(`- ${v.message}`);
|
|
10734
10736
|
}
|
|
10735
|
-
if (warnings.length >
|
|
10737
|
+
if (warnings.length > WARNING_INLINE) lines.push(`- ...and ${warnings.length - WARNING_INLINE} more`);
|
|
10736
10738
|
}
|
|
10737
10739
|
lines.push("");
|
|
10738
10740
|
return lines;
|
|
@@ -15674,4 +15676,4 @@ export {
|
|
|
15674
15676
|
createProductBrainServer,
|
|
15675
15677
|
initFeatureFlags
|
|
15676
15678
|
};
|
|
15677
|
-
//# sourceMappingURL=chunk-
|
|
15679
|
+
//# sourceMappingURL=chunk-BBK5IO4R.js.map
|