@productbrain/mcp 0.0.1-beta.3340 → 0.0.1-beta.3346
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.
|
@@ -8037,14 +8037,16 @@ function formatWhatNeedsAttentionBrief(wna) {
|
|
|
8037
8037
|
function formatShapeAdvisorySummaryLine(sas) {
|
|
8038
8038
|
const sourceEntries = sas ? Object.entries(sas.candidateRateBySource ?? {}) : [];
|
|
8039
8039
|
if (!sas || sas.compoundTotal === 0 && sourceEntries.length === 0) return void 0;
|
|
8040
|
-
const
|
|
8040
|
+
const counts = sas?.candidateCountBySource ?? {};
|
|
8041
|
+
const candidatePart = sourceEntries.length > 0 ? ` candidateRateBySource: ${sourceEntries.map(([src, rate]) => `${src} ${rate !== null ? `${Math.round(rate * 100)}%` : "n/a"}${counts[src] !== void 0 ? ` (n=${counts[src]})` : ""}`).join(", ")}.` : "";
|
|
8042
|
+
const truncatedNote = sas.scanTruncated ? " [truncated \u2014 more rows exist in this window than were scanned]" : "";
|
|
8041
8043
|
if (sas.compoundTotal === 0) {
|
|
8042
|
-
return `Shape advisories (${sas.windowDays}d): 0 compound.${candidatePart}`;
|
|
8044
|
+
return `Shape advisories (${sas.windowDays}d): 0 compound.${truncatedNote}${candidatePart}`;
|
|
8043
8045
|
}
|
|
8044
8046
|
const agentPart = `${sas.precisionAgent !== null ? `${Math.round(sas.precisionAgent * 100)}%` : "n/a"} (n=${sas.precisionAgentN})`;
|
|
8045
8047
|
const humanPart = sas.precisionHumanN > 0 ? `${Math.round((sas.precisionHuman ?? 0) * 100)}% (n=${sas.precisionHumanN})` : sas.precisionHumanNote ?? "no human verdicts yet";
|
|
8046
|
-
const
|
|
8047
|
-
return `Shape advisories (${sas.windowDays}d): ${sas.pendingCount} pending / ${sas.compoundTotal} compound \u2014 precisionAgent ${agentPart}, precisionHuman ${humanPart}.${truncatedNote}${candidatePart}`;
|
|
8048
|
+
const pendingRatePart = sas.pendingRate !== null ? ` (${Math.round(sas.pendingRate * 100)}% pending)` : "";
|
|
8049
|
+
return `Shape advisories (${sas.windowDays}d): ${sas.pendingCount} pending / ${sas.compoundTotal} compound${pendingRatePart} \u2014 precisionAgent ${agentPart}, precisionHuman ${humanPart}.${truncatedNote}${candidatePart}`;
|
|
8048
8050
|
}
|
|
8049
8051
|
|
|
8050
8052
|
// src/lib/gapToPrompt.ts
|
|
@@ -15839,4 +15841,4 @@ export {
|
|
|
15839
15841
|
createProductBrainServer,
|
|
15840
15842
|
initFeatureFlags
|
|
15841
15843
|
};
|
|
15842
|
-
//# sourceMappingURL=chunk-
|
|
15844
|
+
//# sourceMappingURL=chunk-252CQV5P.js.map
|