@productbrain/mcp 0.0.1-beta.10962 → 0.0.1-beta.10974

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.
@@ -10029,6 +10029,7 @@ function composeWrapupView(raw) {
10029
10029
  drafts,
10030
10030
  discarded,
10031
10031
  overflowUnscanned,
10032
+ held: (raw.held ?? []).map((h) => ({ entryId: h.entryId, name: h.name, line: h.line })),
10032
10033
  canClose: drafts.length === 0 && overflowUnscanned === 0
10033
10034
  };
10034
10035
  }
@@ -10072,11 +10073,11 @@ async function runWrapupReview() {
10072
10073
  const data = kernelEnvelope.data;
10073
10074
  const overflowDraftCount = (data.overflowDrafts ?? []).length;
10074
10075
  const overflowUnscanned = data.overflowUnscanned ?? 0;
10075
- const loopEmpty = data.drafts.length === 0 && overflowDraftCount === 0 && overflowUnscanned === 0 && (data.discarded ?? []).length === 0;
10076
+ const loopEmpty = data.drafts.length === 0 && overflowDraftCount === 0 && overflowUnscanned === 0 && (data.discarded ?? []).length === 0 && (data.held ?? []).length === 0;
10076
10077
  if (data.wrapupCompletedAt && loopEmpty) {
10077
10078
  return { text: "Wrapup already completed this session.", data, failureCode: "ALREADY_COMPLETED" };
10078
10079
  }
10079
- if (data.drafts.length === 0 && data.committed.length === 0 && overflowDraftCount === 0 && (data.overflowCommitted ?? []).length === 0 && (data.discarded ?? []).length === 0) {
10080
+ if (data.drafts.length === 0 && data.committed.length === 0 && overflowDraftCount === 0 && (data.overflowCommitted ?? []).length === 0 && (data.discarded ?? []).length === 0 && (data.held ?? []).length === 0) {
10080
10081
  return { text: "Empty session \u2014 no entries to review.", data, failureCode: "NOT_FOUND" };
10081
10082
  }
10082
10083
  const lines = [];
@@ -10124,6 +10125,8 @@ async function runWrapupReview() {
10124
10125
  }
10125
10126
  const discarded = data.discarded ?? [];
10126
10127
  if (discarded.length > 0) lines.push(`### Discarded or Archived (${discarded.length})`, "", ...discarded.map((e) => `- \`${e.entryId}\` \u2014 ${e.name} (${e.label})`), "");
10128
+ const held = data.held ?? [];
10129
+ if (held.length > 0) lines.push(`### Left for Their Owners (${held.length})`, "", ...held.map((h) => `- ${h.line}`), "");
10127
10130
  const topGaps = getTopGaps(5);
10128
10131
  if (topGaps.length > 0) {
10129
10132
  lines.push("### Learning Opportunities", "");
@@ -10742,7 +10745,7 @@ function formatQuestionAckGateBlock(notice) {
10742
10745
  function formatNoticeLines(notices) {
10743
10746
  if (!notices || notices.length === 0) return [];
10744
10747
  return notices.flatMap(
10745
- (n) => n.source === QUESTION_ACK_GATE_SOURCE_ID && n.payload ? formatQuestionAckGateBlock(n) : [`- ${safe(n.subject)} (${safe(n.change)})`]
10748
+ (n) => n.source === QUESTION_ACK_GATE_SOURCE_ID && n.payload ? formatQuestionAckGateBlock(n) : n.subject.split("\n").map((line, i) => i === 0 ? `- ${safe(line)} (${safe(n.change)})` : ` ${safe(line)}`)
10746
10749
  );
10747
10750
  }
10748
10751
 
@@ -12877,4 +12880,4 @@ export {
12877
12880
  createProductBrainServer,
12878
12881
  initFeatureFlags
12879
12882
  };
12880
- //# sourceMappingURL=chunk-WJLEAORU.js.map
12883
+ //# sourceMappingURL=chunk-B7TRPZ2R.js.map