@productbrain/mcp 0.0.1-beta.12383 → 0.0.1-beta.12389
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.
- package/dist/{chunk-QP6XP2HB.js → chunk-DMDWZILY.js} +7 -6
- package/dist/chunk-DMDWZILY.js.map +1 -0
- package/dist/{chunk-BOYRNTJM.js → chunk-VWK7TN3J.js} +6 -2
- package/dist/{chunk-BOYRNTJM.js.map → chunk-VWK7TN3J.js.map} +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/http.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{setup-CYUCFNQ7.js → setup-GWOR24IB.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-QP6XP2HB.js.map +0 -1
- /package/dist/{setup-CYUCFNQ7.js.map → setup-GWOR24IB.js.map} +0 -0
|
@@ -38,9 +38,10 @@ import {
|
|
|
38
38
|
runWithCommandId,
|
|
39
39
|
runWithSeatedSession,
|
|
40
40
|
runWithToolContext,
|
|
41
|
+
seatKeysRevoked,
|
|
41
42
|
setSessionOriented,
|
|
42
43
|
startAgentSession
|
|
43
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-VWK7TN3J.js";
|
|
44
45
|
|
|
45
46
|
// src/server.ts
|
|
46
47
|
import { McpServer as McpServer2 } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -3748,7 +3749,7 @@ async function handlePeopleRemove(person, teamId) {
|
|
|
3748
3749
|
);
|
|
3749
3750
|
}
|
|
3750
3751
|
const who = sanitizeSingleLineField(result2.person);
|
|
3751
|
-
const message = result2.removed ? `Removed ${who} from ${result2.team}
|
|
3752
|
+
const message = result2.removed ? [`Removed ${who} from ${result2.team}.`, seatKeysRevoked(result2.revokedKeys ?? 0)].filter(Boolean).join(" ") : `${who} was not assigned to ${result2.team}; nothing changed.`;
|
|
3752
3753
|
return successResult(message, message, result2);
|
|
3753
3754
|
} catch (err) {
|
|
3754
3755
|
return peopleErrorResult(err, "remove", { person, teamId });
|
|
@@ -11227,7 +11228,7 @@ async function handleQuestionAssign(entryId, toRole) {
|
|
|
11227
11228
|
try {
|
|
11228
11229
|
const resolvedEntryId = await resolveEntryRef(entryId, "Entry");
|
|
11229
11230
|
const resolvedToRoleId = await resolveEntryRef(toRole, "Role");
|
|
11230
|
-
const result2 = await kernelMutation("question.assign", { entryId: resolvedEntryId, toRoleId: resolvedToRoleId });
|
|
11231
|
+
const result2 = await kernelMutation("question.assign", { entryId: resolvedEntryId, toRoleId: resolvedToRoleId, sessionId: getAgentSessionId() ?? void 0 });
|
|
11231
11232
|
const who = await displayName(result2.ownerRoleId) ?? result2.ownerRoleId ?? "the target";
|
|
11232
11233
|
const message = `${entryId} reassigned to ${who}. They'll see it at their next session.`;
|
|
11233
11234
|
return successResult(message, message, result2);
|
|
@@ -11246,7 +11247,7 @@ async function handleQuestionAnswer(entryId, text, answerEntryId) {
|
|
|
11246
11247
|
try {
|
|
11247
11248
|
const resolvedEntryId = await resolveEntryRef(entryId, "Entry");
|
|
11248
11249
|
const resolvedAnswerEntryId = answerEntryId ? await resolveEntryRef(answerEntryId, "Answer entry") : void 0;
|
|
11249
|
-
const result2 = await kernelMutation("question.answer", { entryId: resolvedEntryId, text, answerEntryId: resolvedAnswerEntryId });
|
|
11250
|
+
const result2 = await kernelMutation("question.answer", { entryId: resolvedEntryId, text, answerEntryId: resolvedAnswerEntryId, sessionId: getAgentSessionId() ?? void 0 });
|
|
11250
11251
|
const askerName = (result2.askerName ? stripControlChars(result2.askerName) : "") || "The asker";
|
|
11251
11252
|
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
11253
|
return successResult(message, message, result2);
|
|
@@ -11258,7 +11259,7 @@ async function handleQuestionForceClose(entryId, reason) {
|
|
|
11258
11259
|
requireWriteAccess();
|
|
11259
11260
|
try {
|
|
11260
11261
|
const resolvedEntryId = await resolveEntryRef(entryId, "Entry");
|
|
11261
|
-
const result2 = await kernelMutation("question.forceClose", { entryId: resolvedEntryId, reason });
|
|
11262
|
+
const result2 = await kernelMutation("question.forceClose", { entryId: resolvedEntryId, reason, sessionId: getAgentSessionId() ?? void 0 });
|
|
11262
11263
|
const message = result2.idempotent ? `${entryId} is already closed \u2014 no change.` : "Force-closed. Reason recorded.";
|
|
11263
11264
|
return successResult(message, message, result2);
|
|
11264
11265
|
} catch (err) {
|
|
@@ -11942,4 +11943,4 @@ export {
|
|
|
11942
11943
|
SERVER_VERSION,
|
|
11943
11944
|
createProductBrainServer
|
|
11944
11945
|
};
|
|
11945
|
-
//# sourceMappingURL=chunk-
|
|
11946
|
+
//# sourceMappingURL=chunk-DMDWZILY.js.map
|