@productbrain/mcp 0.0.1-beta.15884 → 0.0.1-beta.15887
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.
|
@@ -3091,6 +3091,7 @@ async function handleGet(entryId) {
|
|
|
3091
3091
|
function entryCard(e) {
|
|
3092
3092
|
const conflictLabel = e.possibleConflict?.label;
|
|
3093
3093
|
const epistemic = deriveEpistemicStatus(toEpistemicInput(e));
|
|
3094
|
+
const clashLines = Object.fromEntries(["contradictionLines", "possibleClashes"].filter((k) => Array.isArray(e[k])).map((k) => [k, e[k].map(String)]));
|
|
3094
3095
|
const lines = [
|
|
3095
3096
|
// under the status, the kernel's Due, Replaced by and Changed by lines (DEC-2663; DEC-2006; TASK-1674)
|
|
3096
3097
|
`# ${e.entryId ? `${e.entryId}: ` : ""}${e.name}`,
|
|
@@ -3098,7 +3099,9 @@ function entryCard(e) {
|
|
|
3098
3099
|
`**Status:** ${e.status}${e.workflowStatus ? ` / ${e.workflowStatus}` : ""}`,
|
|
3099
3100
|
...[e.dueLine, e.replacedLine, e.changedLine].flatMap((l) => typeof l === "string" ? [sanitizeSingleLineField(l)] : []),
|
|
3100
3101
|
...typeof conflictLabel === "string" ? [`\u26A0 ${sanitizeSingleLineField(conflictLabel)}`] : [],
|
|
3102
|
+
...Object.values(clashLines).flat().map((l) => `${/^ */.exec(l)[0]}${sanitizeSingleLineField(l)}`),
|
|
3101
3103
|
`**Collection:** ${e.collectionSlug ?? "unknown"}`
|
|
3104
|
+
// the clash lines as pb get prints them
|
|
3102
3105
|
];
|
|
3103
3106
|
if (typeof e.capturedAt === "number") lines.push(`**Captured at:** ${new Date(e.capturedAt).toISOString()}`);
|
|
3104
3107
|
if (e.origin) {
|
|
@@ -3120,9 +3123,7 @@ function entryCard(e) {
|
|
|
3120
3123
|
const visibleData = sanitizeEntryData(e.data);
|
|
3121
3124
|
const filteredData = visibleData && whySourceKey ? Object.keys(visibleData).filter((k) => k !== whySourceKey).length > 0 ? Object.fromEntries(Object.entries(visibleData).filter(([k]) => k !== whySourceKey)) : void 0 : visibleData;
|
|
3122
3125
|
lines.push(...entryDataLines(filteredData));
|
|
3123
|
-
if (Array.isArray(e.tags) && e.tags.length > 0) {
|
|
3124
|
-
lines.push("", `**Tags:** ${e.tags.join(", ")}`);
|
|
3125
|
-
}
|
|
3126
|
+
if (Array.isArray(e.tags) && e.tags.length > 0) lines.push("", `**Tags:** ${e.tags.join(", ")}`);
|
|
3126
3127
|
if (Array.isArray(e.labels) && e.labels.length > 0) {
|
|
3127
3128
|
const labels = e.labels;
|
|
3128
3129
|
lines.push("", `**Labels:** ${labels.map((l) => `\`${l.slug ?? l.name}\``).join(", ")}`);
|
|
@@ -3160,6 +3161,7 @@ function entryCard(e) {
|
|
|
3160
3161
|
// DEC-2257: the Team Lead holding a role with no one seated
|
|
3161
3162
|
...restsOnChanged.length > 0 ? { restsOnChanged } : {},
|
|
3162
3163
|
...typeof conflictLabel === "string" ? { possibleConflict: e.possibleConflict } : {},
|
|
3164
|
+
...clashLines,
|
|
3163
3165
|
// TEN-2191: surface the WHY and its quality in the structured payload too.
|
|
3164
3166
|
...why.length > 0 ? { why } : {},
|
|
3165
3167
|
...e.whyQuality ? { whyQuality: String(e.whyQuality) } : {},
|
|
@@ -12650,4 +12652,4 @@ export {
|
|
|
12650
12652
|
SERVER_VERSION,
|
|
12651
12653
|
createProductBrainServer
|
|
12652
12654
|
};
|
|
12653
|
-
//# sourceMappingURL=chunk-
|
|
12655
|
+
//# sourceMappingURL=chunk-7RWF3SU5.js.map
|