@productbrain/mcp 0.0.1-beta.16102 → 0.0.1-beta.16111
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.
|
@@ -1795,9 +1795,9 @@ function buildFieldsRejectedFailure(entryId, fieldsProvided, appliedFields, reje
|
|
|
1795
1795
|
"Run `collections action=describe` for this entry's collection to see valid fields."
|
|
1796
1796
|
);
|
|
1797
1797
|
}
|
|
1798
|
-
function pushAppliedFieldsLines(responseLines, fieldsProvided, appliedFields, rejectedDataFields, revertedFields = []) {
|
|
1798
|
+
function pushAppliedFieldsLines(responseLines, fieldsProvided, appliedFields, rejectedDataFields, revertedFields = [], doorNotes = []) {
|
|
1799
1799
|
if (fieldsProvided.length > 0) {
|
|
1800
|
-
responseLines.push(`**Fields applied:** ${appliedFields.join(", ")}
|
|
1800
|
+
responseLines.push(`**Fields applied:** ${appliedFields.join(", ")}`, ...doorNotes);
|
|
1801
1801
|
if (rejectedDataFields.length > 0) {
|
|
1802
1802
|
responseLines.push("");
|
|
1803
1803
|
responseLines.push(`\u26A0\uFE0F **Fields rejected:** ${rejectedDataFields.join(", ")}`);
|
|
@@ -2017,7 +2017,8 @@ ${mcp}`, "QUALITY_HELD", mcp.split("\n")[0] ?? mcp, mcp.split("\n")[1] ?? mcp, v
|
|
|
2017
2017
|
`Internal ID: ${id}`,
|
|
2018
2018
|
`**Workspace:** ${wsCtx.workspaceSlug} (${wsCtx.workspaceId})`
|
|
2019
2019
|
];
|
|
2020
|
-
|
|
2020
|
+
const doorNotes = applied.doorNotes ?? [];
|
|
2021
|
+
pushAppliedFieldsLines(responseLines, fieldsProvided, appliedFields, rejectedDataFields, revertedFields, doorNotes);
|
|
2021
2022
|
const warnings = applied.normalizationWarnings ?? [];
|
|
2022
2023
|
if (warnings.length > 0) {
|
|
2023
2024
|
responseLines.push("");
|
|
@@ -2064,7 +2065,8 @@ ${mcp}`, "QUALITY_HELD", mcp.split("\n")[0] ?? mcp, mcp.split("\n")[1] ?? mcp, v
|
|
|
2064
2065
|
// #1026 R2: symmetric with the text above
|
|
2065
2066
|
...applied.restsOnCount !== void 0 ? { restsOnCount: applied.restsOnCount, restsOnBounded: applied.restsOnBounded } : {},
|
|
2066
2067
|
// TASK-935
|
|
2067
|
-
...changedLine ? { changedLine } : {}
|
|
2068
|
+
...changedLine ? { changedLine } : {},
|
|
2069
|
+
...doorNotes.length > 0 ? { doorNotes } : {}
|
|
2068
2070
|
}, next)
|
|
2069
2071
|
};
|
|
2070
2072
|
}
|
|
@@ -2155,9 +2157,11 @@ No DB writes \u2014 call without \`preview:true\` to accept for real.` }],
|
|
|
2155
2157
|
const docId = result2?._id ?? entry._id;
|
|
2156
2158
|
const wsCtx = await getWorkspaceContext();
|
|
2157
2159
|
await recordSessionActivity({ entryModified: docId });
|
|
2160
|
+
const doorNotes = Array.isArray(result2?.doorNotes) ? result2.doorNotes : [];
|
|
2158
2161
|
const lines = [
|
|
2159
2162
|
`# Accepted: ${entryId}`,
|
|
2160
2163
|
`**${entry.name}** accepted onto the Chain.`,
|
|
2164
|
+
...doorNotes,
|
|
2161
2165
|
`**Workspace:** ${wsCtx.workspaceSlug} (${wsCtx.workspaceId})`
|
|
2162
2166
|
];
|
|
2163
2167
|
const autoVerified = result2?.autoVerified;
|
|
@@ -2244,6 +2248,7 @@ No DB writes \u2014 call without \`preview:true\` to accept for real.` }],
|
|
|
2244
2248
|
...overlap ? { overlap } : {},
|
|
2245
2249
|
// TASK-1159; TASK-1325
|
|
2246
2250
|
...possibleClashes.length ? { possibleClashes } : {},
|
|
2251
|
+
...doorNotes.length > 0 ? { doorNotes } : {},
|
|
2247
2252
|
// TASK-1553: for agents that read the data, not the text
|
|
2248
2253
|
// WP-582 B1 (FEAT-1403): mirror the direction-trace advisory into the structured payload.
|
|
2249
2254
|
...publishAdvisories && publishAdvisories.length > 0 ? { publishAdvisories } : {},
|
|
@@ -12805,4 +12810,4 @@ export {
|
|
|
12805
12810
|
SERVER_VERSION,
|
|
12806
12811
|
createProductBrainServer
|
|
12807
12812
|
};
|
|
12808
|
-
//# sourceMappingURL=chunk-
|
|
12813
|
+
//# sourceMappingURL=chunk-OZZYV23Q.js.map
|