@productbrain/mcp 0.0.1-beta.15117 → 0.0.1-beta.15139
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.
- package/dist/{chunk-DZFIMMZO.js → chunk-3FALUEKN.js} +16 -4
- package/dist/chunk-3FALUEKN.js.map +1 -0
- package/dist/{chunk-SDB7KN72.js → chunk-NSKPW27J.js} +1 -1
- package/dist/chunk-NSKPW27J.js.map +1 -0
- package/dist/cli/index.js +1 -1
- package/dist/http.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{setup-Q524PRBB.js → setup-ZT2473HY.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-DZFIMMZO.js.map +0 -1
- package/dist/chunk-SDB7KN72.js.map +0 -1
- /package/dist/{setup-Q524PRBB.js.map → setup-ZT2473HY.js.map} +0 -0
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
startAgentSession,
|
|
57
57
|
startTimingLine,
|
|
58
58
|
withAcceptPrompt
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-NSKPW27J.js";
|
|
60
60
|
|
|
61
61
|
// src/server.ts
|
|
62
62
|
import { McpServer as McpServer2 } from "@modelcontextprotocol/server";
|
|
@@ -3752,6 +3752,16 @@ function openTaskSectionLines(list, surface) {
|
|
|
3752
3752
|
const rows = openTaskListLines(list, { bullet: surface.bullet, surface: surface.surface, shown: OPEN_TASK_LIST_WORDS.shown, total: list.total });
|
|
3753
3753
|
return [surface.heading(OPEN_TASK_LIST_WORDS.heading(list.role.name)), ...rows];
|
|
3754
3754
|
}
|
|
3755
|
+
var DRAFTS_MAY_BE_MORE = "there may be more";
|
|
3756
|
+
var SEAT_DRAFTS_CUT_WORDS = {
|
|
3757
|
+
cliNote: (count) => ` (${count}+, ${DRAFTS_MAY_BE_MORE})`,
|
|
3758
|
+
mcpLine: `${DRAFTS_MAY_BE_MORE.charAt(0).toUpperCase()}${DRAFTS_MAY_BE_MORE.slice(1)} drafts than shown.`,
|
|
3759
|
+
/** The scan stopped before it found one this seat wrote: a capped scan that found none is not a zero (signed by the Team Lead of
|
|
3760
|
+
* the Product Team covering Voice, 2026-11-14T02:50Z). The CLI heading takes the note with no colon, as no rows follow it. */
|
|
3761
|
+
cliNoneNote: ` (none found, ${DRAFTS_MAY_BE_MORE})`,
|
|
3762
|
+
cliNoneBrief: `no draft of yours found, ${DRAFTS_MAY_BE_MORE}`,
|
|
3763
|
+
mcpNoneLine: `No draft of yours found; ${DRAFTS_MAY_BE_MORE}.`
|
|
3764
|
+
};
|
|
3755
3765
|
function openTaskCompactLines(list) {
|
|
3756
3766
|
if (!list || list.total === 0 && !list.capped) return [];
|
|
3757
3767
|
return [OPEN_TASK_LIST_WORDS.compact(list.total, list.capped, list.role.name)];
|
|
@@ -6306,7 +6316,7 @@ async function handleExport() {
|
|
|
6306
6316
|
import { z as z23 } from "zod/v3";
|
|
6307
6317
|
|
|
6308
6318
|
// src/tools/planned-work.ts
|
|
6309
|
-
var MORE_DRAFTS_LINE =
|
|
6319
|
+
var MORE_DRAFTS_LINE = `_${SEAT_DRAFTS_CUT_WORDS.mcpLine}_`;
|
|
6310
6320
|
var NO_PLANNED_WORK = { uncommittedDrafts: [], openTensions: [] };
|
|
6311
6321
|
function cleanOpenTasks(list) {
|
|
6312
6322
|
const s = sanitizeSingleLineField;
|
|
@@ -6320,7 +6330,7 @@ function openTaskCountLines(work) {
|
|
|
6320
6330
|
return openTaskCompactLines(cleanOpenTasks(work.openTasks));
|
|
6321
6331
|
}
|
|
6322
6332
|
function hasPlannedWork(work) {
|
|
6323
|
-
return work.uncommittedDrafts.length > 0 || work.openTensions.length > 0;
|
|
6333
|
+
return work.uncommittedDrafts.length > 0 || work.draftsTruncated === true || work.openTensions.length > 0;
|
|
6324
6334
|
}
|
|
6325
6335
|
function formatRecoveryBlock(block) {
|
|
6326
6336
|
const fmt = (items, overflow) => items.map((e) => `${e.entryId} [${e.collection}] ${e.name}`).join(", ") + (overflow && overflow > 0 ? ` (+${overflow} more)` : "");
|
|
@@ -6347,6 +6357,8 @@ function buildPlannedWorkSection(work, priorSessions, recoveryBlock) {
|
|
|
6347
6357
|
const topNames = work.uncommittedDrafts.slice(0, 3).map((d) => d.name).join(", ");
|
|
6348
6358
|
lines.push(`- **${label2}** \u2014 ${topNames}${count > 3 ? ", ..." : ""}`);
|
|
6349
6359
|
if (work.draftsTruncated) lines.push(` - ${MORE_DRAFTS_LINE}`);
|
|
6360
|
+
} else if (work.draftsTruncated) {
|
|
6361
|
+
lines.push(`- _${SEAT_DRAFTS_CUT_WORDS.mcpNoneLine}_`);
|
|
6350
6362
|
}
|
|
6351
6363
|
if (work.openTensions.length > 0) {
|
|
6352
6364
|
const top = work.openTensions[0];
|
|
@@ -12446,4 +12458,4 @@ export {
|
|
|
12446
12458
|
SERVER_VERSION,
|
|
12447
12459
|
createProductBrainServer
|
|
12448
12460
|
};
|
|
12449
|
-
//# sourceMappingURL=chunk-
|
|
12461
|
+
//# sourceMappingURL=chunk-3FALUEKN.js.map
|