@productbrain/mcp 0.0.1-beta.16111 → 0.0.1-beta.16127
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.
|
@@ -2735,7 +2735,9 @@ ${recovery}`,
|
|
|
2735
2735
|
const lines = [
|
|
2736
2736
|
`## Move Result`,
|
|
2737
2737
|
"",
|
|
2738
|
-
`Moved **${result2.entryId}** from \`${result2.fromCollection}\` \u2192 \`${result2.toCollection}\`` + (canonicalKey ? ` and reclassified to \`${canonicalKey}\`` : "")
|
|
2738
|
+
`Moved **${result2.entryId}** from \`${result2.fromCollection}\` \u2192 \`${result2.toCollection}\`` + (canonicalKey ? ` and reclassified to \`${canonicalKey}\`` : ""),
|
|
2739
|
+
...result2.doorNotes ?? []
|
|
2740
|
+
// RULE-662: what the status door changed by itself, as the move row says it
|
|
2739
2741
|
];
|
|
2740
2742
|
if (result2.workflowStatusReset) {
|
|
2741
2743
|
lines.push(``, `\u26A0\uFE0F Workflow status \`${result2.previousWorkflowStatus}\` was reset (incompatible with target collection).`);
|
|
@@ -3727,6 +3729,7 @@ function taskDueMark(due) {
|
|
|
3727
3729
|
}
|
|
3728
3730
|
|
|
3729
3731
|
// src/lib/workPackageList.ts
|
|
3732
|
+
var NOT_STARTED = "not started";
|
|
3730
3733
|
var ALL_COMMAND_SAYS = "lists every live package";
|
|
3731
3734
|
var WORK_PACKAGE_LIST_WORDS = {
|
|
3732
3735
|
yours: "[yours]",
|
|
@@ -3737,7 +3740,7 @@ var WORK_PACKAGE_LIST_WORDS = {
|
|
|
3737
3740
|
planLead: (team, n, capped) => `${team} has ${n}${capped ? "+" : ""} package${n === 1 && !capped ? "" : "s"} in progress.`,
|
|
3738
3741
|
/** Two or more packages in progress share a level with no place set: only their ids order them inside it (DEC-2416, TASK-2098). */
|
|
3739
3742
|
tied: (levels) => `Packages not ranked inside ${levels.join(" or ")}.`,
|
|
3740
|
-
/** The heading over the one next: the first
|
|
3743
|
+
/** The heading over the one next: the first package not started with no wait written (QUE-1480). */
|
|
3741
3744
|
next: "Next",
|
|
3742
3745
|
nextUnread: "The next package was not read: the read ran out of calls.",
|
|
3743
3746
|
taskCounts: ({ open, done, doneWeek, weekAtLeast }) => `tasks: ${open} open, ${done} done, ${doneWeek}${weekAtLeast ? "+" : ""} done in 7 days`,
|
|
@@ -3748,7 +3751,7 @@ var WORK_PACKAGE_LIST_WORDS = {
|
|
|
3748
3751
|
const n = (count) => `${count}${capped ? "+" : ""}`, listed = [next && "the next", waiting > 0 && `${waiting} waiting`].filter(Boolean).join(" and ");
|
|
3749
3752
|
return `${n(notGoing)} more not in progress${listed ? `, ${listed} among them` : ""}; ${n(otherTeams)} more in other teams${noSingleOwner > 0 ? `; ${n(noSingleOwner)} more with no single owner` : ""}. All ${n(team + otherTeams + noSingleOwner)}: ${allCommand} (${ALL_COMMAND_SAYS})`;
|
|
3750
3753
|
},
|
|
3751
|
-
/** QUE-1484 point 6: the heading over
|
|
3754
|
+
/** QUE-1484 point 6: the heading over packages not started skipped as the next for the wait each prints. */
|
|
3752
3755
|
waiting: "Waiting",
|
|
3753
3756
|
/** QUE-1484 point 4: what a plan row serves, names first, and the lines counting each one's packages by stage (RULE-17). */
|
|
3754
3757
|
serves: (targets, cut) => `serves ${targets.join(", ")}${cut ? " and more not read" : ""}`,
|
|
@@ -3758,7 +3761,7 @@ var WORK_PACKAGE_LIST_WORDS = {
|
|
|
3758
3761
|
servesHeading: "Serves",
|
|
3759
3762
|
keyResultLine: (target2, stages, atLeast) => `${target2}: ${stages.join(", ")}${atLeast ? ", and more not read" : ""}`,
|
|
3760
3763
|
keyResultUncounted: (target2) => `${target2}: packages not counted`,
|
|
3761
|
-
mismatch: (
|
|
3764
|
+
mismatch: (notStarted, going) => `Stage and work disagree: ${notStarted} ${NOT_STARTED} with a task done in the last 7 days; ${going} in progress with none.`,
|
|
3762
3765
|
/** The command each surface names at the end of the count line: every live work package of the workspace, under listHeading. */
|
|
3763
3766
|
allCommand: {
|
|
3764
3767
|
cli: "pb brief confidence",
|
|
@@ -3809,7 +3812,7 @@ function workPackageListLines(rows, counts, surface) {
|
|
|
3809
3812
|
if (plan?.nextUnread) lines.push(w.nextUnread);
|
|
3810
3813
|
if (plan && plan.counted < plan.inProgress) lines.push(w.uncounted(plan.counted, plan.inProgress, plan.capped === true));
|
|
3811
3814
|
const m = plan?.mismatch, n = (count, atLeast) => `${count}${atLeast ? "+" : ""}`;
|
|
3812
|
-
if (m && (m.
|
|
3815
|
+
if (m && (m.notStarted > 0 || m.going > 0 || m.notStartedAtLeast || m.goingAtLeast)) lines.push(w.mismatch(n(m.notStarted, m.notStartedAtLeast), n(m.going, m.goingAtLeast)));
|
|
3813
3816
|
if (plan && counts && live > 0) lines.push(w.rest(counts.team - plan.inProgress, plan.next === true, plan.waiting ?? 0, counts, plan.capped === true, surface.allCommand));
|
|
3814
3817
|
if (plan?.keyResults?.length) lines.push(surface.heading(w.servesHeading), ...plan.keyResults.map((kr) => keyResultText(kr)));
|
|
3815
3818
|
return lines;
|
|
@@ -3897,7 +3900,7 @@ var OPEN_TASK_LIST_WORDS = {
|
|
|
3897
3900
|
restsOnUnread: "what it rests on not read",
|
|
3898
3901
|
linksCommand: { cli: (entryId) => `pb get ${entryId}`, mcp: (entryId) => `\`context action=get entryId="${entryId}"\`` },
|
|
3899
3902
|
/** TASK-2086 (QUE-1519; Voice, round 2): after the due mark of an open task not started, its date 1 to DUE_SOON_DAYS days away. */
|
|
3900
|
-
dueSoon: (days) => `in ${days} day${days === 1 ? "" : "s"},
|
|
3903
|
+
dueSoon: (days) => `in ${days} day${days === 1 ? "" : "s"}, ${NOT_STARTED}`,
|
|
3901
3904
|
/** The read kept too few calls to look for this row's wait: not the same as none. */
|
|
3902
3905
|
waitUnread: "wait not read",
|
|
3903
3906
|
/** Two or more rows share a level with no place set: only their ids order them inside it (DEC-2416, TASK-2098). */
|
|
@@ -3908,11 +3911,11 @@ var OPEN_TASK_LIST_WORDS = {
|
|
|
3908
3911
|
/** The tasks list's page, n of N, before the command for the next page (TASK-1948); N reads "N+" on a capped read, as `more` does. */
|
|
3909
3912
|
page: (first, last, total, capped) => `Showing ${first}\u2013${last} of ${total}${capped ? "+" : ""}.`,
|
|
3910
3913
|
allCommand: { cli: "pb tasks list", mcp: "`context action=tasks`" },
|
|
3911
|
-
compact: (count, capped, roleName, team,
|
|
3914
|
+
compact: (count, capped, roleName, team, notStarted = 0) => `${count}${capped ? "+" : ""} open task(s) of ${roleName}${inTeam(team)}${notStarted > 0 ? `; ${notStarted}${capped ? "+" : ""} more under packages ${NOT_STARTED}` : ""}`,
|
|
3912
3915
|
/** Only for a read that was not cut: a capped read that found none prints its capped line instead, never this. */
|
|
3913
3916
|
empty: (roleName, team) => `${roleName} has no open tasks to list${inTeam(team)}.`,
|
|
3914
|
-
/** Tasks whose only live packages are
|
|
3915
|
-
|
|
3917
|
+
/** Tasks whose only live packages are not started (DEC-2459 as amended 2026-11-16): said as a number, never left out in silence. */
|
|
3918
|
+
underNotStarted: (count, capped) => `${count}${capped ? "+" : ""} more under packages ${NOT_STARTED}: counted, not listed.`,
|
|
3916
3919
|
/** After the cap line only: the walk down the packages in progress stopped too, so a task under one may be missing (Voice, 2026-11-18). */
|
|
3917
3920
|
walked: (read, of) => `Tasks read under ${read} of ${of} packages in progress. Others may be missing.`,
|
|
3918
3921
|
/** The tasks list's last line when another page follows. */
|
|
@@ -3965,7 +3968,7 @@ function openTaskListLines(list, surface) {
|
|
|
3965
3968
|
const lines = [...due, ...rows.map((row) => `${surface.bullet}${openTaskRowText(row, surface.surface)}`), ...levels.length > 0 ? [w.tied(levels)] : []];
|
|
3966
3969
|
if (total > shown && surface.from === void 0) lines.push(w.more(shown, total, list.capped, w.allCommand[surface.surface]));
|
|
3967
3970
|
if (total > shown && surface.from !== void 0 && shown > 0) lines.push(w.page(surface.from + 1, surface.from + shown, total, list.capped));
|
|
3968
|
-
if (list.
|
|
3971
|
+
if (list.underNotStarted) lines.push(w.underNotStarted(list.underNotStarted, list.capped));
|
|
3969
3972
|
if (list.capped) lines.push(w.capped(list.cappedAt ?? total), ...list.walked ? [w.walked(list.walked.read, list.walked.of)] : []);
|
|
3970
3973
|
return lines;
|
|
3971
3974
|
}
|
|
@@ -3974,7 +3977,7 @@ function openTaskLead(list, heading) {
|
|
|
3974
3977
|
return list.rows.length > 0 ? heading(w.heading(r, list.team)) : list.total > 0 || list.capped ? w.compact(list.total, list.capped, r, list.team) : w.empty(r, list.team);
|
|
3975
3978
|
}
|
|
3976
3979
|
function openTaskSectionLines(list, surface) {
|
|
3977
|
-
if (!list || list.total === 0 && !list.capped && !list.
|
|
3980
|
+
if (!list || list.total === 0 && !list.capped && !list.underNotStarted) return [];
|
|
3978
3981
|
return [openTaskLead(list, surface.heading), ...openTaskListLines(list, { bullet: surface.bullet, surface: surface.surface, shown: OPEN_TASK_LIST_WORDS.shown, total: list.total })];
|
|
3979
3982
|
}
|
|
3980
3983
|
var DRAFTS_MAY_BE_MORE = "there may be more";
|
|
@@ -3997,8 +4000,8 @@ function cleanMarks(list, clean) {
|
|
|
3997
4000
|
})) };
|
|
3998
4001
|
}
|
|
3999
4002
|
function openTaskCompactLines(list) {
|
|
4000
|
-
if (!list || list.total === 0 && !list.capped && !list.
|
|
4001
|
-
return [OPEN_TASK_LIST_WORDS.compact(list.total, list.capped, list.role.name, list.team, list.
|
|
4003
|
+
if (!list || list.total === 0 && !list.capped && !list.underNotStarted) return [];
|
|
4004
|
+
return [OPEN_TASK_LIST_WORDS.compact(list.total, list.capped, list.role.name, list.team, list.underNotStarted)];
|
|
4002
4005
|
}
|
|
4003
4006
|
var nameWithId = (entry) => `${entry.name}${entry.entryId ? ` (${entry.entryId})` : ""}`;
|
|
4004
4007
|
var TASKS_UNDER_WORDS = {
|
|
@@ -12810,4 +12813,4 @@ export {
|
|
|
12810
12813
|
SERVER_VERSION,
|
|
12811
12814
|
createProductBrainServer
|
|
12812
12815
|
};
|
|
12813
|
-
//# sourceMappingURL=chunk-
|
|
12816
|
+
//# sourceMappingURL=chunk-VIEAV355.js.map
|