@productbrain/mcp 0.0.1-beta.14109 → 0.0.1-beta.14121

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.
@@ -417,7 +417,14 @@ async function listEntriesWithCut(args, next = LIST_COUNTS_OF_ROWS_READ) {
417
417
  import { z as z13 } from "zod/v3";
418
418
 
419
419
  // src/lib/conflictResolution.ts
420
- var CONFLICT_RESOLUTIONS = ["replaces", "refines", "unrelated"];
420
+ var CONFLICT_RESOLUTIONS = ["update", "replaces", "both_stand", "unrelated"];
421
+ var LEGACY_CONFLICT_RESOLUTIONS = ["refines"];
422
+ var STORED_CONFLICT_RESOLUTIONS = [...CONFLICT_RESOLUTIONS, ...LEGACY_CONFLICT_RESOLUTIONS];
423
+ var TARGETED_RESOLUTIONS = ["update", "replaces"];
424
+ var namesTarget = (choice2) => TARGETED_RESOLUTIONS.includes(choice2);
425
+ var REASONED_RESOLUTIONS = ["both_stand", "unrelated"];
426
+ var RESOLUTION_LABELS = { update: "Update", replaces: "Replace", both_stand: "Both stand", unrelated: "Unrelated" };
427
+ var answerLabel = (choice2, older) => namesTarget(choice2) ? `${RESOLUTION_LABELS[choice2]} ${older}` : RESOLUTION_LABELS[choice2];
421
428
  var CONFLICT_RESOLUTION_REASON_MAX = 200;
422
429
  var signed = (line) => line;
423
430
  var CLASH = {
@@ -436,10 +443,10 @@ var RESOLUTION_WORDS = {
436
443
  choose: signed(`Choose ${CONFLICT_RESOLUTIONS.slice(0, -1).join(", ")} or ${CONFLICT_RESOLUTIONS[CONFLICT_RESOLUTIONS.length - 1]}.`),
437
444
  both: signed("Give either the answer (real or false alarm) or the choice, not both."),
438
445
  reasonTooLong: signed(`Keep the reason to one line of ${CONFLICT_RESOLUTION_REASON_MAX} characters or fewer.`),
439
- target: "replaces or refines: the entry it replaces or refines, one of the two",
440
- reason: `For unrelated: one line on why (${CONFLICT_RESOLUTION_REASON_MAX} characters at most); for an amendment: why the answer changes`,
446
+ target: `${TARGETED_RESOLUTIONS.join(" or ")}: the entry to update or replace, one of the two`,
447
+ reason: `For ${REASONED_RESOLUTIONS.join(" or ")}: one line on why (${CONFLICT_RESOLUTION_REASON_MAX} characters at most); for an amendment: why the answer changes`,
441
448
  /** The receipt an older backend's answer gets when it carries no line of its own (the MCP's fallback): the choice in words. */
442
- recorded: (choice2) => `Recorded: ${choice2 === "unrelated" ? "unrelated" : `${choice2} the other entry`}.`,
449
+ recorded: (choice2) => `Recorded: ${answerLabel(choice2, "the other entry")}.`,
443
450
  /** TASK-1560 (QUE-518, QUE-501): what the propose verb does, as pb's help and the MCP tool say it (Voice signs). */
444
451
  proposeHelp: `Propose the answer to a ${CLASH.one}; its owner confirms it`,
445
452
  /** TASK-1571 (QUE-554, DEC-2299): what only a person does, as the person-only floor says it ("Only a person answers a possible
@@ -447,7 +454,8 @@ var RESOLUTION_WORDS = {
447
454
  answerVerb: `answers a ${CLASH.one}`,
448
455
  /** What the CLI and MCP match the gateway's answer refusal by: stable across QUE-540's pick (see CLASH). */
449
456
  answerMatch: "answers a possible ",
450
- tool: `List ${CLASH.many}; propose an answer; a person answers in Cortex.`,
457
+ tool: `List ${CLASH.many}; propose; a person answers.`,
458
+ // the MCP tool's served description, short for the 64 KB budget (DEC-1981)
451
459
  /** TASK-1571 (TEN-6206): the answer verbs' help on the CLI and MCP, which the gateway now refuses for every caller (QUE-554). */
452
460
  answerHelp: "A key proposes; a person answers in Cortex.",
453
461
  /** The list's header, one for the CLI and the MCP (DEC-2443): the open possible clashes, then the closed ones beside them when `closed` is given.
@@ -12171,4 +12179,4 @@ export {
12171
12179
  SERVER_VERSION,
12172
12180
  createProductBrainServer
12173
12181
  };
12174
- //# sourceMappingURL=chunk-ZUNF674E.js.map
12182
+ //# sourceMappingURL=chunk-GXDZHGS4.js.map