@productbrain/mcp 0.0.1-beta.16119 → 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.
@@ -3729,6 +3729,7 @@ function taskDueMark(due) {
3729
3729
  }
3730
3730
 
3731
3731
  // src/lib/workPackageList.ts
3732
+ var NOT_STARTED = "not started";
3732
3733
  var ALL_COMMAND_SAYS = "lists every live package";
3733
3734
  var WORK_PACKAGE_LIST_WORDS = {
3734
3735
  yours: "[yours]",
@@ -3739,7 +3740,7 @@ var WORK_PACKAGE_LIST_WORDS = {
3739
3740
  planLead: (team, n, capped) => `${team} has ${n}${capped ? "+" : ""} package${n === 1 && !capped ? "" : "s"} in progress.`,
3740
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). */
3741
3742
  tied: (levels) => `Packages not ranked inside ${levels.join(" or ")}.`,
3742
- /** The heading over the one next: the first planned package with no wait written (QUE-1480). */
3743
+ /** The heading over the one next: the first package not started with no wait written (QUE-1480). */
3743
3744
  next: "Next",
3744
3745
  nextUnread: "The next package was not read: the read ran out of calls.",
3745
3746
  taskCounts: ({ open, done, doneWeek, weekAtLeast }) => `tasks: ${open} open, ${done} done, ${doneWeek}${weekAtLeast ? "+" : ""} done in 7 days`,
@@ -3750,7 +3751,7 @@ var WORK_PACKAGE_LIST_WORDS = {
3750
3751
  const n = (count) => `${count}${capped ? "+" : ""}`, listed = [next && "the next", waiting > 0 && `${waiting} waiting`].filter(Boolean).join(" and ");
3751
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})`;
3752
3753
  },
3753
- /** QUE-1484 point 6: the heading over planned packages skipped as the next for the wait each prints. */
3754
+ /** QUE-1484 point 6: the heading over packages not started skipped as the next for the wait each prints. */
3754
3755
  waiting: "Waiting",
3755
3756
  /** QUE-1484 point 4: what a plan row serves, names first, and the lines counting each one's packages by stage (RULE-17). */
3756
3757
  serves: (targets, cut) => `serves ${targets.join(", ")}${cut ? " and more not read" : ""}`,
@@ -3760,7 +3761,7 @@ var WORK_PACKAGE_LIST_WORDS = {
3760
3761
  servesHeading: "Serves",
3761
3762
  keyResultLine: (target2, stages, atLeast) => `${target2}: ${stages.join(", ")}${atLeast ? ", and more not read" : ""}`,
3762
3763
  keyResultUncounted: (target2) => `${target2}: packages not counted`,
3763
- mismatch: (planned, going) => `Stage and work disagree: ${planned} planned with a task done in the last 7 days; ${going} in progress with none.`,
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.`,
3764
3765
  /** The command each surface names at the end of the count line: every live work package of the workspace, under listHeading. */
3765
3766
  allCommand: {
3766
3767
  cli: "pb brief confidence",
@@ -3811,7 +3812,7 @@ function workPackageListLines(rows, counts, surface) {
3811
3812
  if (plan?.nextUnread) lines.push(w.nextUnread);
3812
3813
  if (plan && plan.counted < plan.inProgress) lines.push(w.uncounted(plan.counted, plan.inProgress, plan.capped === true));
3813
3814
  const m = plan?.mismatch, n = (count, atLeast) => `${count}${atLeast ? "+" : ""}`;
3814
- if (m && (m.planned > 0 || m.going > 0 || m.plannedAtLeast || m.goingAtLeast)) lines.push(w.mismatch(n(m.planned, m.plannedAtLeast), n(m.going, m.goingAtLeast)));
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)));
3815
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));
3816
3817
  if (plan?.keyResults?.length) lines.push(surface.heading(w.servesHeading), ...plan.keyResults.map((kr) => keyResultText(kr)));
3817
3818
  return lines;
@@ -3899,7 +3900,7 @@ var OPEN_TASK_LIST_WORDS = {
3899
3900
  restsOnUnread: "what it rests on not read",
3900
3901
  linksCommand: { cli: (entryId) => `pb get ${entryId}`, mcp: (entryId) => `\`context action=get entryId="${entryId}"\`` },
3901
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. */
3902
- dueSoon: (days) => `in ${days} day${days === 1 ? "" : "s"}, not started`,
3903
+ dueSoon: (days) => `in ${days} day${days === 1 ? "" : "s"}, ${NOT_STARTED}`,
3903
3904
  /** The read kept too few calls to look for this row's wait: not the same as none. */
3904
3905
  waitUnread: "wait not read",
3905
3906
  /** Two or more rows share a level with no place set: only their ids order them inside it (DEC-2416, TASK-2098). */
@@ -3910,11 +3911,11 @@ var OPEN_TASK_LIST_WORDS = {
3910
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. */
3911
3912
  page: (first, last, total, capped) => `Showing ${first}\u2013${last} of ${total}${capped ? "+" : ""}.`,
3912
3913
  allCommand: { cli: "pb tasks list", mcp: "`context action=tasks`" },
3913
- compact: (count, capped, roleName, team, planned = 0) => `${count}${capped ? "+" : ""} open task(s) of ${roleName}${inTeam(team)}${planned > 0 ? `; ${planned}${capped ? "+" : ""} more under planned packages` : ""}`,
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}` : ""}`,
3914
3915
  /** Only for a read that was not cut: a capped read that found none prints its capped line instead, never this. */
3915
3916
  empty: (roleName, team) => `${roleName} has no open tasks to list${inTeam(team)}.`,
3916
- /** Tasks whose only live packages are planned (DEC-2459 as amended 2026-11-16): said as a number, never left out in silence. */
3917
- underPlanned: (count, capped) => `${count}${capped ? "+" : ""} more under planned packages: counted, not listed.`,
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.`,
3918
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). */
3919
3920
  walked: (read, of) => `Tasks read under ${read} of ${of} packages in progress. Others may be missing.`,
3920
3921
  /** The tasks list's last line when another page follows. */
@@ -3967,7 +3968,7 @@ function openTaskListLines(list, surface) {
3967
3968
  const lines = [...due, ...rows.map((row) => `${surface.bullet}${openTaskRowText(row, surface.surface)}`), ...levels.length > 0 ? [w.tied(levels)] : []];
3968
3969
  if (total > shown && surface.from === void 0) lines.push(w.more(shown, total, list.capped, w.allCommand[surface.surface]));
3969
3970
  if (total > shown && surface.from !== void 0 && shown > 0) lines.push(w.page(surface.from + 1, surface.from + shown, total, list.capped));
3970
- if (list.underPlanned) lines.push(w.underPlanned(list.underPlanned, list.capped));
3971
+ if (list.underNotStarted) lines.push(w.underNotStarted(list.underNotStarted, list.capped));
3971
3972
  if (list.capped) lines.push(w.capped(list.cappedAt ?? total), ...list.walked ? [w.walked(list.walked.read, list.walked.of)] : []);
3972
3973
  return lines;
3973
3974
  }
@@ -3976,7 +3977,7 @@ function openTaskLead(list, heading) {
3976
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);
3977
3978
  }
3978
3979
  function openTaskSectionLines(list, surface) {
3979
- if (!list || list.total === 0 && !list.capped && !list.underPlanned) return [];
3980
+ if (!list || list.total === 0 && !list.capped && !list.underNotStarted) return [];
3980
3981
  return [openTaskLead(list, surface.heading), ...openTaskListLines(list, { bullet: surface.bullet, surface: surface.surface, shown: OPEN_TASK_LIST_WORDS.shown, total: list.total })];
3981
3982
  }
3982
3983
  var DRAFTS_MAY_BE_MORE = "there may be more";
@@ -3999,8 +4000,8 @@ function cleanMarks(list, clean) {
3999
4000
  })) };
4000
4001
  }
4001
4002
  function openTaskCompactLines(list) {
4002
- if (!list || list.total === 0 && !list.capped && !list.underPlanned) return [];
4003
- return [OPEN_TASK_LIST_WORDS.compact(list.total, list.capped, list.role.name, list.team, list.underPlanned)];
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)];
4004
4005
  }
4005
4006
  var nameWithId = (entry) => `${entry.name}${entry.entryId ? ` (${entry.entryId})` : ""}`;
4006
4007
  var TASKS_UNDER_WORDS = {
@@ -12812,4 +12813,4 @@ export {
12812
12813
  SERVER_VERSION,
12813
12814
  createProductBrainServer
12814
12815
  };
12815
- //# sourceMappingURL=chunk-6VDFNUSD.js.map
12816
+ //# sourceMappingURL=chunk-VIEAV355.js.map