@productbrain/mcp 0.0.1-beta.14918 → 0.0.1-beta.14920
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.
|
@@ -477,9 +477,6 @@ function renderEntryPreflight(preflight) {
|
|
|
477
477
|
function isPreviewCreateEntryResult(result2) {
|
|
478
478
|
return "preview" in result2 && result2.preview === true;
|
|
479
479
|
}
|
|
480
|
-
function resolveEffectiveCollection(result2, preview, fallbackCollection) {
|
|
481
|
-
return preview && result2 && isPreviewCreateEntryResult(result2) ? result2.collection ?? fallbackCollection : fallbackCollection;
|
|
482
|
-
}
|
|
483
480
|
|
|
484
481
|
// src/lib/listEntries.ts
|
|
485
482
|
var NARROW_IN_MCP = "Narrow it with context action=list collection=<slug> or status=<word>.";
|
|
@@ -1469,7 +1466,7 @@ ${context.trim()}` : description;
|
|
|
1469
1466
|
if (result2 && "replayed" in result2) return resumeReplayedCapture(result2, name);
|
|
1470
1467
|
if (result2 && isPreviewCreateEntryResult(result2)) {
|
|
1471
1468
|
const preflight = await resolvePreviewPreflight(result2, links, { name, data: userData ?? {}, description: text, why, sessionId: agentId ?? void 0, ownerRoleEntryId });
|
|
1472
|
-
const previewCollection =
|
|
1469
|
+
const previewCollection = result2.collection ?? collectionSlug ?? "";
|
|
1473
1470
|
const dupCount = groundingReport.duplicates.length;
|
|
1474
1471
|
const groundingSummary = dupCount > 0 ? `
|
|
1475
1472
|
|
|
@@ -12407,4 +12404,4 @@ export {
|
|
|
12407
12404
|
SERVER_VERSION,
|
|
12408
12405
|
createProductBrainServer
|
|
12409
12406
|
};
|
|
12410
|
-
//# sourceMappingURL=chunk-
|
|
12407
|
+
//# sourceMappingURL=chunk-CLVZOTYN.js.map
|