@productbrain/mcp 0.0.1-beta.15562 → 0.0.1-beta.15566
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.
|
@@ -1245,6 +1245,8 @@ var captureSinglePreviewOutputSchema = z4.object({
|
|
|
1245
1245
|
preflight: z4.custom().optional(),
|
|
1246
1246
|
entryId: z4.string(),
|
|
1247
1247
|
name: z4.string(),
|
|
1248
|
+
// DEC-2766: the "Would save as" line when the name it would store drops a kind prefix; its own field, never a warning.
|
|
1249
|
+
savedAs: z4.string().optional(),
|
|
1248
1250
|
collection: z4.string(),
|
|
1249
1251
|
outcome: z4.enum(["preview", "blocked"]),
|
|
1250
1252
|
// Present only when `outcome: "blocked"` AND the server supplied a reason.
|
|
@@ -1493,18 +1495,21 @@ ${context.trim()}` : description;
|
|
|
1493
1495
|
if (result2 && isPreviewCreateEntryResult(result2)) {
|
|
1494
1496
|
const preflight = await resolvePreviewPreflight(result2, links, { name, data: userData ?? {}, description: text, why, sessionId: agentId ?? void 0, ownerRoleEntryId });
|
|
1495
1497
|
const previewCollection = result2.collection ?? collectionSlug ?? "";
|
|
1498
|
+
const previewName = result2.name ?? name;
|
|
1496
1499
|
const dupCount = groundingReport.duplicates.length;
|
|
1497
1500
|
const groundingSummary = dupCount > 0 ? `
|
|
1498
1501
|
|
|
1499
1502
|
**Possible duplicates:** ${dupCount}.` : "";
|
|
1500
1503
|
const wouldBlock = result2.wouldBlock === true;
|
|
1501
|
-
const headline = wouldBlock ? `Preview: would be BLOCKED \u2014 "${
|
|
1504
|
+
const headline = wouldBlock ? `Preview: would be BLOCKED \u2014 "${previewName}" [${previewCollection}]` : `Preview: would capture "${previewName}" [${previewCollection}]`;
|
|
1502
1505
|
const previewEnvelope = success(
|
|
1503
|
-
wouldBlock ? `Preview: would be BLOCKED \u2014 "${
|
|
1506
|
+
wouldBlock ? `Preview: would be BLOCKED \u2014 "${previewName}" \u2014 no DB writes` : `Preview: would capture "${previewName}" \u2014 no DB writes`,
|
|
1504
1507
|
{
|
|
1505
1508
|
entryId: result2.entryId,
|
|
1506
1509
|
preflight,
|
|
1507
|
-
name,
|
|
1510
|
+
name: previewName,
|
|
1511
|
+
...result2.savedAs ? { savedAs: result2.savedAs } : {},
|
|
1512
|
+
// DEC-2766: its own line, never a warning
|
|
1508
1513
|
collection: previewCollection,
|
|
1509
1514
|
outcome: wouldBlock ? "blocked" : "preview",
|
|
1510
1515
|
...wouldBlock && result2.blockingReason ? { blockingReason: result2.blockingReason } : {},
|
|
@@ -1542,7 +1547,9 @@ ${context.trim()}` : description;
|
|
|
1542
1547
|
|
|
1543
1548
|
${renderEntryPreflight(preflight).join("\n")}`;
|
|
1544
1549
|
return {
|
|
1545
|
-
content: [{ type: "text", text: `# ${headline}
|
|
1550
|
+
content: [{ type: "text", text: `# ${headline}${result2.savedAs ? `
|
|
1551
|
+
|
|
1552
|
+
${result2.savedAs}` : ""}
|
|
1546
1553
|
|
|
1547
1554
|
No DB writes \u2014 call without \`preview:true\` to capture for real.${result2.warnings?.length ? `
|
|
1548
1555
|
|
|
@@ -12642,4 +12649,4 @@ export {
|
|
|
12642
12649
|
SERVER_VERSION,
|
|
12643
12650
|
createProductBrainServer
|
|
12644
12651
|
};
|
|
12645
|
-
//# sourceMappingURL=chunk-
|
|
12652
|
+
//# sourceMappingURL=chunk-HP5Q44MD.js.map
|