@productbrain/mcp 0.0.1-beta.11031 → 0.0.1-beta.11044

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.
@@ -616,6 +616,12 @@ var RESTS_ON_SENTENCES = {
616
616
  promise: "Rests on {id}, which changed its promise on {date}.",
617
617
  past: "Rests on {id}, {label} on {date}."
618
618
  };
619
+ var RESTS_ON_COUNT_BOUND = 200;
620
+ function restsOnCountLine(count, bounded = false) {
621
+ if (bounded && count === 0) return `Entries may rest on this; the count stopped at ${RESTS_ON_COUNT_BOUND} links.`;
622
+ const exact = count === 1 ? "1 entry rests on this." : `${count} entries rest on this.`;
623
+ return bounded ? `At least ${exact}` : exact;
624
+ }
619
625
  function restsOnLine(item) {
620
626
  const date = new Date(item.changedAt).toISOString().split("T")[0];
621
627
  const label = item.kind === "past" ? item.label : "";
@@ -2417,7 +2423,9 @@ async function handleUpdateEntry({ entryId, name, status: rawStatus, workflowSta
2417
2423
  ``,
2418
2424
  updateResult.receipt ?? `**${entryId}** \u2014 ${versionMode}.`,
2419
2425
  // TASK-773: a draft team's discard names the drafts it took
2426
+ ...updateResult.restsOnCount !== void 0 ? [restsOnCountLine(updateResult.restsOnCount, updateResult.restsOnBounded === true)] : [],
2420
2427
  ``,
2428
+ // TASK-935
2421
2429
  `Internal ID: ${id}`,
2422
2430
  `**Workspace:** ${wsCtx.workspaceSlug} (${wsCtx.workspaceId})`
2423
2431
  ];
@@ -2461,8 +2469,10 @@ async function handleUpdateEntry({ entryId, name, status: rawStatus, workflowSta
2461
2469
  ...(updateResult.validationWarnings ?? []).length > 0 && {
2462
2470
  validationWarnings: updateResult.validationWarnings
2463
2471
  },
2464
- ...revertedFields.length > 0 && { revertedFields }
2472
+ ...revertedFields.length > 0 && { revertedFields },
2465
2473
  // #1026 R2: symmetric with the text above
2474
+ ...updateResult.restsOnCount !== void 0 ? { restsOnCount: updateResult.restsOnCount, restsOnBounded: updateResult.restsOnBounded } : {}
2475
+ // TASK-935
2466
2476
  }, next)
2467
2477
  };
2468
2478
  }
@@ -12886,4 +12896,4 @@ export {
12886
12896
  createProductBrainServer,
12887
12897
  initFeatureFlags
12888
12898
  };
12889
- //# sourceMappingURL=chunk-C7PEB3J5.js.map
12899
+ //# sourceMappingURL=chunk-KCWD7G5U.js.map