@productbrain/mcp 0.0.1-beta.12146 → 0.0.1-beta.12151

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.
@@ -231,13 +231,13 @@ var CHECKLIST_LINES = {
231
231
  beneficiary: "Name who it is for: people, a community or part of the world, specific enough to say who it is not for",
232
232
  falsifiability: "Choose a direction a reasonable rival would reject",
233
233
  stranger_test: "Explain it so a stranger knows what will be different, and for whom",
234
- serves_rung_above: "Say what will be different when the purpose above it is fulfilled"
234
+ serves_rung_above: "Say how this vision serves the purpose above it"
235
235
  },
236
236
  strategy: {
237
237
  coherent_narrative: "Connect the diagnosis, the policy and the first actions",
238
238
  decisiveness: "Say what you will not do",
239
239
  time_bounded: "Name a horizon: a date, a duration or a milestone",
240
- serves_rung_above: "Say how these choices move toward the vision above it"
240
+ serves_rung_above: "Say how this strategy serves the vision above it"
241
241
  },
242
242
  objective: {
243
243
  outcome_not_activity: "State what will be true once it is met, not the work to do",
@@ -264,16 +264,18 @@ function isRequiredCriterion(kind, c) {
264
264
  return !blocking || blocking.includes(c.id) || !c.passed && c.failedBy !== "judge";
265
265
  }
266
266
  var MARK = { met: "[x]", not_yet: "[ ]", judging: "[~]" };
267
+ var COACHING_HEADER = "Worth asking (does not block):";
267
268
  function renderChecklist(canonicalKey, criteria, judging) {
268
269
  const lines = CHECKLIST_LINES[canonicalKey];
269
270
  if (!lines) return null;
270
- return criteria.filter((c) => (c.line ?? lines[c.id]) !== void 0).map((c) => {
271
- if (!c.passed && !isRequiredCriterion(canonicalKey, c)) return `? ${c.questionTemplate ?? c.line ?? lines[c.id]}`;
271
+ const listed = criteria.filter((c) => (c.line ?? lines[c.id]) !== void 0);
272
+ const asks = listed.filter((c) => !c.passed && !isRequiredCriterion(canonicalKey, c)).map((c) => `? ${c.questionTemplate ?? c.line ?? lines[c.id]}`);
273
+ return listed.filter((c) => c.passed || isRequiredCriterion(canonicalKey, c)).map((c) => {
272
274
  const state = !c.passed ? "not_yet" : judging ? "judging" : "met";
273
275
  const still = state === "judging" ? " (still judging)" : "";
274
276
  const missing = state === "not_yet" && c.missing ? ` \u2014 missing: ${c.missing}` : "";
275
277
  return `${MARK[state]} ${c.line ?? lines[c.id]}${still}${missing}`;
276
- });
278
+ }).concat(asks.length > 0 ? [COACHING_HEADER, ...asks] : []);
277
279
  }
278
280
 
279
281
  // src/lib/createEntryPreviewResult.ts
@@ -1446,7 +1448,7 @@ async function runConflictPreflight(name, description, collectionHint, subjectId
1446
1448
 
1447
1449
  // src/lib/judgeWait.ts
1448
1450
  var JUDGE_TIMEOUT_MS = 3e4;
1449
- var JUDGE_CALLS_PER_RUN = 2;
1451
+ var JUDGE_CALLS_PER_RUN = 1;
1450
1452
  var JUDGE_WAIT_BOUND_MS = JUDGE_CALLS_PER_RUN * JUDGE_TIMEOUT_MS + 5e3;
1451
1453
  var POLL_MS = 1e3;
1452
1454
  async function settleVerdictBeforeAccept(evaluate, readLatest, opts = {}) {
@@ -9568,7 +9570,7 @@ Entry \`${entryId}\` not found. Use \`search\` to find the right ID.`,
9568
9570
  }
9569
9571
  const criteria = verdict2.criteria ?? [];
9570
9572
  const lines = [`# Quality Check: ${entryId}`, ""];
9571
- const staleWhy = res.staleReason === "rubric_removed" ? "this entry type is no longer graded" : res.staleReason === "methodology_changed_since_judged" ? "the rubric changed since it was judged" : "the entry was edited since it was judged";
9573
+ const staleWhy = res.staleReason === "rubric_removed" ? "this entry type is no longer graded" : res.staleReason === "methodology_changed_since_judged" ? "the rubric changed since it was judged" : res.staleReason === "parent_changed_since_judged" ? "the entry it hangs on changed since it was judged" : "the entry was edited since it was judged";
9572
9574
  if (res.stale) {
9573
9575
  lines.push(
9574
9576
  `> STALE \u2014 this verdict for \`${entryId}\` no longer counts: ${staleWhy}. Run \`quality action=re-evaluate entryId="${entryId}"\` for a current verdict.`,
@@ -11910,4 +11912,4 @@ export {
11910
11912
  SERVER_VERSION,
11911
11913
  createProductBrainServer
11912
11914
  };
11913
- //# sourceMappingURL=chunk-VTHPNYNE.js.map
11915
+ //# sourceMappingURL=chunk-K22LB5CH.js.map