@productbrain/mcp 0.0.1-beta.8973 → 0.0.1-beta.8975

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.
@@ -12265,7 +12265,7 @@ import { z as z30 } from "zod/v3";
12265
12265
  var QUESTION_ACTIONS = ["create", "assign", "answer", "force-close", "list"];
12266
12266
  var questionSchema = z30.object({
12267
12267
  action: z30.enum(QUESTION_ACTIONS).describe(
12268
- "'create': create a new routed question from text \u2014 the dedicated birth action; every question is born escalated to the team lead (generic entry creation and move-and-retype also pair a routing facet). 'assign': reassign ownership to a role (toRole required \u2014 no bare self-confirm, no toPerson). 'answer': close the loop \u2014 creates the answering entry itself unless --entry is given. 'force-close': Team-Lead-only escape hatch \u2014 reason required. 'list': the ack-gate read model \u2014 what you owe (or, with mine:true, every question you asked, including closed ones)."
12268
+ "'create': create a new routed question from text \u2014 the dedicated birth action; every question is born escalated to the team lead (generic entry creation and move-and-retype also pair a routing facet). 'assign': reassign ownership to a role (toRole required \u2014 no bare self-confirm, no toPerson). 'answer': close the loop \u2014 writes the answer on the question and moves it to answered; --entry links an existing decision instead. 'force-close': Team-Lead-only escape hatch \u2014 reason required. 'list': the ack-gate read model \u2014 what you owe (or, with mine:true, every question you asked, including closed ones)."
12269
12269
  ),
12270
12270
  entryId: z30.string().max(200).optional().describe("Target question's id (human TEN-nnn form or a raw entry id). Required for every action except 'create'/'list'."),
12271
12271
  text: z30.string().max(5e3).optional().describe("'create': the question text. 'answer': the answer text (mutually exclusive with answerEntryId, max 2000 chars)."),
@@ -12354,8 +12354,7 @@ async function handleQuestionAnswer(entryId, text, answerEntryId) {
12354
12354
  const resolvedAnswerEntryId = answerEntryId ? await resolveEntryRef(answerEntryId, "Answer entry") : void 0;
12355
12355
  const result2 = await kernelMutation("question.answer", { entryId: resolvedEntryId, text, answerEntryId: resolvedAnswerEntryId });
12356
12356
  const askerName = (result2.askerName ? stripControlChars(result2.askerName) : "") || "The asker";
12357
- const pendingNote = result2.answerPending ? " The answer is a draft awaiting accept." : "";
12358
- 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} is already answered \u2014 no change.` : `Answered. ${askerName} will see the outcome at their next session (and in pb question list --mine).${pendingNote}`;
12357
+ 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} is already answered \u2014 no change.` : `${entryId} is answered. ${askerName} will see the answer at their next session (and in pb question list --mine).`;
12359
12358
  return successResult(message, message, result2);
12360
12359
  } catch (err) {
12361
12360
  return questionErrorResult(err, "answer", { entryId, text, answerEntryId });
@@ -12418,7 +12417,7 @@ function registerQuestionTools(server) {
12418
12417
  "question",
12419
12418
  {
12420
12419
  title: "Question",
12421
- description: "Routed questions \u2014 a question is born with no owner and escalates straight to the team lead; the team lead reassigns it to a role. Five actions:\n\n- **create**: create a new routed question from text. Always born escalated to the team lead \u2014 there is no domain-owner suggestion any more.\n- **assign**: reassign ownership to a role (`toRole` required \u2014 no self-confirm, no person-only reassignment).\n- **answer**: close the loop. Creates the answering entry itself from `text`, or points at an existing one via `answerEntryId` \u2014 never both.\n- **force-close**: Team-Lead-only escape hatch (reason required) for a question that cannot otherwise be resolved.\n- **list**: the ack-gate read model \u2014 what you owe (`mine:false`, the default), or (`mine:true`) every question you asked, including closed ones, with its outcome.\n\n`blocks` (repeatable, on create) records what a question is holding up \u2014 pass entry ids it blocks.",
12420
+ description: "Routed questions \u2014 a question is born with no owner and escalates straight to the team lead; the team lead reassigns it to a role. Five actions:\n\n- **create**: create a new routed question from text. Always born escalated to the team lead \u2014 there is no domain-owner suggestion any more.\n- **assign**: reassign ownership to a role (`toRole` required \u2014 no self-confirm, no person-only reassignment).\n- **answer**: close the loop. Writes `text` on the question as its answer, or links an existing decision via `answerEntryId` \u2014 never both.\n- **force-close**: Team-Lead-only escape hatch (reason required) for a question that cannot otherwise be resolved.\n- **list**: the ack-gate read model \u2014 what you owe (`mine:false`, the default), or (`mine:true`) every question you asked, including closed ones, with its outcome.\n\n`blocks` (repeatable, on create) records what a question is holding up \u2014 pass entry ids it blocks.",
12422
12421
  inputSchema: questionSchema,
12423
12422
  annotations: { readOnlyHint: false, idempotentHint: false, openWorldHint: false }
12424
12423
  },
@@ -13648,4 +13647,4 @@ export {
13648
13647
  createProductBrainServer,
13649
13648
  initFeatureFlags
13650
13649
  };
13651
- //# sourceMappingURL=chunk-FJ7SUWUN.js.map
13650
+ //# sourceMappingURL=chunk-5VXQWGET.js.map