@productbrain/mcp 0.0.1-beta.11282 → 0.0.1-beta.11295
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.
|
@@ -11334,7 +11334,7 @@ async function handleQuestionAnswer(entryId, text, answerEntryId) {
|
|
|
11334
11334
|
const resolvedAnswerEntryId = answerEntryId ? await resolveEntryRef(answerEntryId, "Answer entry") : void 0;
|
|
11335
11335
|
const result2 = await kernelMutation("question.answer", { entryId: resolvedEntryId, text, answerEntryId: resolvedAnswerEntryId });
|
|
11336
11336
|
const askerName = (result2.askerName ? stripControlChars(result2.askerName) : "") || "The asker";
|
|
11337
|
-
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}
|
|
11337
|
+
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).`;
|
|
11338
11338
|
return successResult(message, message, result2);
|
|
11339
11339
|
} catch (err) {
|
|
11340
11340
|
return questionErrorResult(err, "answer", { entryId, text, answerEntryId });
|
|
@@ -12229,4 +12229,4 @@ export {
|
|
|
12229
12229
|
SERVER_VERSION,
|
|
12230
12230
|
createProductBrainServer
|
|
12231
12231
|
};
|
|
12232
|
-
//# sourceMappingURL=chunk-
|
|
12232
|
+
//# sourceMappingURL=chunk-ISKGW63I.js.map
|