@productbrain/mcp 0.0.1-beta.12383 → 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.
|
@@ -11227,7 +11227,7 @@ async function handleQuestionAssign(entryId, toRole) {
|
|
|
11227
11227
|
try {
|
|
11228
11228
|
const resolvedEntryId = await resolveEntryRef(entryId, "Entry");
|
|
11229
11229
|
const resolvedToRoleId = await resolveEntryRef(toRole, "Role");
|
|
11230
|
-
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 });
|
|
11231
11231
|
const who = await displayName(result2.ownerRoleId) ?? result2.ownerRoleId ?? "the target";
|
|
11232
11232
|
const message = `${entryId} reassigned to ${who}. They'll see it at their next session.`;
|
|
11233
11233
|
return successResult(message, message, result2);
|
|
@@ -11246,7 +11246,7 @@ async function handleQuestionAnswer(entryId, text, answerEntryId) {
|
|
|
11246
11246
|
try {
|
|
11247
11247
|
const resolvedEntryId = await resolveEntryRef(entryId, "Entry");
|
|
11248
11248
|
const resolvedAnswerEntryId = answerEntryId ? await resolveEntryRef(answerEntryId, "Answer entry") : void 0;
|
|
11249
|
-
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 });
|
|
11250
11250
|
const askerName = (result2.askerName ? stripControlChars(result2.askerName) : "") || "The asker";
|
|
11251
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).`;
|
|
11252
11252
|
return successResult(message, message, result2);
|
|
@@ -11258,7 +11258,7 @@ async function handleQuestionForceClose(entryId, reason) {
|
|
|
11258
11258
|
requireWriteAccess();
|
|
11259
11259
|
try {
|
|
11260
11260
|
const resolvedEntryId = await resolveEntryRef(entryId, "Entry");
|
|
11261
|
-
const result2 = await kernelMutation("question.forceClose", { entryId: resolvedEntryId, reason });
|
|
11261
|
+
const result2 = await kernelMutation("question.forceClose", { entryId: resolvedEntryId, reason, sessionId: getAgentSessionId() ?? void 0 });
|
|
11262
11262
|
const message = result2.idempotent ? `${entryId} is already closed \u2014 no change.` : "Force-closed. Reason recorded.";
|
|
11263
11263
|
return successResult(message, message, result2);
|
|
11264
11264
|
} catch (err) {
|
|
@@ -11942,4 +11942,4 @@ export {
|
|
|
11942
11942
|
SERVER_VERSION,
|
|
11943
11943
|
createProductBrainServer
|
|
11944
11944
|
};
|
|
11945
|
-
//# sourceMappingURL=chunk-
|
|
11945
|
+
//# sourceMappingURL=chunk-IBNGBISI.js.map
|