@productbrain/mcp 0.0.1-beta.9900 → 0.0.1-beta.9916
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.
|
@@ -9922,10 +9922,12 @@ function composeWrapupView(raw) {
|
|
|
9922
9922
|
...(raw.drafts ?? []).map(toComposed),
|
|
9923
9923
|
...(raw.overflowDrafts ?? []).map(toComposed)
|
|
9924
9924
|
];
|
|
9925
|
+
const discarded = (raw.discarded ?? []).map((e) => ({ ...toComposed(e), label: e.label }));
|
|
9925
9926
|
const overflowUnscanned = raw.overflowUnscanned ?? 0;
|
|
9926
9927
|
return {
|
|
9927
9928
|
committed,
|
|
9928
9929
|
drafts,
|
|
9930
|
+
discarded,
|
|
9929
9931
|
overflowUnscanned,
|
|
9930
9932
|
canClose: drafts.length === 0 && overflowUnscanned === 0
|
|
9931
9933
|
};
|
|
@@ -9970,11 +9972,11 @@ async function runWrapupReview() {
|
|
|
9970
9972
|
const data = kernelEnvelope.data;
|
|
9971
9973
|
const overflowDraftCount = (data.overflowDrafts ?? []).length;
|
|
9972
9974
|
const overflowUnscanned = data.overflowUnscanned ?? 0;
|
|
9973
|
-
const loopEmpty = data.drafts.length === 0 && overflowDraftCount === 0 && overflowUnscanned === 0;
|
|
9975
|
+
const loopEmpty = data.drafts.length === 0 && overflowDraftCount === 0 && overflowUnscanned === 0 && (data.discarded ?? []).length === 0;
|
|
9974
9976
|
if (data.wrapupCompletedAt && loopEmpty) {
|
|
9975
9977
|
return { text: "Wrapup already completed this session.", data, failureCode: "ALREADY_COMPLETED" };
|
|
9976
9978
|
}
|
|
9977
|
-
if (data.drafts.length === 0 && data.committed.length === 0 && overflowDraftCount === 0 && (data.overflowCommitted ?? []).length === 0) {
|
|
9979
|
+
if (data.drafts.length === 0 && data.committed.length === 0 && overflowDraftCount === 0 && (data.overflowCommitted ?? []).length === 0 && (data.discarded ?? []).length === 0) {
|
|
9978
9980
|
return { text: "Empty session \u2014 no entries to review.", data, failureCode: "NOT_FOUND" };
|
|
9979
9981
|
}
|
|
9980
9982
|
const lines = [];
|
|
@@ -10020,6 +10022,8 @@ async function runWrapupReview() {
|
|
|
10020
10022
|
}
|
|
10021
10023
|
lines.push("");
|
|
10022
10024
|
}
|
|
10025
|
+
const discarded = data.discarded ?? [];
|
|
10026
|
+
if (discarded.length > 0) lines.push(`### Discarded or Archived (${discarded.length})`, "", ...discarded.map((e) => `- \`${e.entryId}\` \u2014 ${e.name} (${e.label})`), "");
|
|
10023
10027
|
const topGaps = getTopGaps(5);
|
|
10024
10028
|
if (topGaps.length > 0) {
|
|
10025
10029
|
lines.push("### Learning Opportunities", "");
|
|
@@ -10254,7 +10258,7 @@ function createWrapupHandler() {
|
|
|
10254
10258
|
lastReviewData = data;
|
|
10255
10259
|
lastReviewSessionId = getAgentSessionId();
|
|
10256
10260
|
const composed = data ? composeWrapupView(data) : null;
|
|
10257
|
-
const fullText = composed && (composed.drafts.length > 0 || composed.committed.length > 0) ? `## Session Wrapup
|
|
10261
|
+
const fullText = composed && (composed.drafts.length > 0 || composed.committed.length > 0 || composed.discarded.length > 0) ? `## Session Wrapup
|
|
10258
10262
|
|
|
10259
10263
|
${text}` : text;
|
|
10260
10264
|
if (failureCode) {
|
|
@@ -13072,4 +13076,4 @@ export {
|
|
|
13072
13076
|
createProductBrainServer,
|
|
13073
13077
|
initFeatureFlags
|
|
13074
13078
|
};
|
|
13075
|
-
//# sourceMappingURL=chunk-
|
|
13079
|
+
//# sourceMappingURL=chunk-OQ5VWMAU.js.map
|