@productbrain/mcp 0.0.1-beta.12372 → 0.0.1-beta.12386
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.
|
@@ -11119,8 +11119,7 @@ var CONFLICTS_ACTION_SPECS = {
|
|
|
11119
11119
|
resolve: { params: ["issueId", "verdict"], description: "issueId and verdict are required." }
|
|
11120
11120
|
};
|
|
11121
11121
|
async function handleConflictsList(listMode = "actionable") {
|
|
11122
|
-
const
|
|
11123
|
-
const rows = await kernelCall("conflicts.list", { mode: listMode, now });
|
|
11122
|
+
const rows = await kernelCall("conflicts.list", { mode: listMode });
|
|
11124
11123
|
const side = (name, id) => `${sanitizeSingleLineField(name)} (${id ? sanitizeSingleLineField(id) : "gone"})`;
|
|
11125
11124
|
const lines = rows.map((r) => `${r.id} \xB7 ${side(r.entryAName, r.entryAId)} \u2194 ${side(r.entryBName, r.entryBId)} \xB7 ${r.conflictType} ${r.confidence.toFixed(2)}${r.rankLabel ? ` \xB7 ${sanitizeSingleLineField(r.rankLabel)}` : ""} \xB7 ${sanitizeSingleLineField(r.explanation)}` + (r.guidance ? ` \xB7 ${sanitizeSingleLineField(r.guidance)}` : ""));
|
|
11126
11125
|
const truncated = rows[0]?.listTruncated === true;
|
|
@@ -11228,7 +11227,7 @@ async function handleQuestionAssign(entryId, toRole) {
|
|
|
11228
11227
|
try {
|
|
11229
11228
|
const resolvedEntryId = await resolveEntryRef(entryId, "Entry");
|
|
11230
11229
|
const resolvedToRoleId = await resolveEntryRef(toRole, "Role");
|
|
11231
|
-
const result2 = await kernelMutation("question.assign", { entryId: resolvedEntryId, toRoleId: resolvedToRoleId });
|
|
11230
|
+
const result2 = await kernelMutation("question.assign", { entryId: resolvedEntryId, toRoleId: resolvedToRoleId, sessionId: getAgentSessionId() ?? void 0 });
|
|
11232
11231
|
const who = await displayName(result2.ownerRoleId) ?? result2.ownerRoleId ?? "the target";
|
|
11233
11232
|
const message = `${entryId} reassigned to ${who}. They'll see it at their next session.`;
|
|
11234
11233
|
return successResult(message, message, result2);
|
|
@@ -11247,7 +11246,7 @@ async function handleQuestionAnswer(entryId, text, answerEntryId) {
|
|
|
11247
11246
|
try {
|
|
11248
11247
|
const resolvedEntryId = await resolveEntryRef(entryId, "Entry");
|
|
11249
11248
|
const resolvedAnswerEntryId = answerEntryId ? await resolveEntryRef(answerEntryId, "Answer entry") : void 0;
|
|
11250
|
-
const result2 = await kernelMutation("question.answer", { entryId: resolvedEntryId, text, answerEntryId: resolvedAnswerEntryId });
|
|
11249
|
+
const result2 = await kernelMutation("question.answer", { entryId: resolvedEntryId, text, answerEntryId: resolvedAnswerEntryId, sessionId: getAgentSessionId() ?? void 0 });
|
|
11251
11250
|
const askerName = (result2.askerName ? stripControlChars(result2.askerName) : "") || "The asker";
|
|
11252
11251
|
const message = result2.idempotent ? result2.processedVia === "force_closed" ? `${entryId} is already processed (force-closed) \u2014 no change.` : result2.processedVia === "declined" ? `${entryId} is already processed (declined) \u2014 no change.` : `${entryId} already has this answer \u2014 no change. ${result2.answeredLine ? stripControlChars(result2.answeredLine) : ""}`.trim() : result2.replaced ? `${entryId} is answered again; the previous answer stays in its history. ${askerName} will see the new answer at their next session.` : `${entryId} is answered. ${askerName} will see the answer at their next session (and in pb question list --mine).`;
|
|
11253
11252
|
return successResult(message, message, result2);
|
|
@@ -11259,7 +11258,7 @@ async function handleQuestionForceClose(entryId, reason) {
|
|
|
11259
11258
|
requireWriteAccess();
|
|
11260
11259
|
try {
|
|
11261
11260
|
const resolvedEntryId = await resolveEntryRef(entryId, "Entry");
|
|
11262
|
-
const result2 = await kernelMutation("question.forceClose", { entryId: resolvedEntryId, reason });
|
|
11261
|
+
const result2 = await kernelMutation("question.forceClose", { entryId: resolvedEntryId, reason, sessionId: getAgentSessionId() ?? void 0 });
|
|
11263
11262
|
const message = result2.idempotent ? `${entryId} is already closed \u2014 no change.` : "Force-closed. Reason recorded.";
|
|
11264
11263
|
return successResult(message, message, result2);
|
|
11265
11264
|
} catch (err) {
|
|
@@ -11943,4 +11942,4 @@ export {
|
|
|
11943
11942
|
SERVER_VERSION,
|
|
11944
11943
|
createProductBrainServer
|
|
11945
11944
|
};
|
|
11946
|
-
//# sourceMappingURL=chunk-
|
|
11945
|
+
//# sourceMappingURL=chunk-IBNGBISI.js.map
|