@productbrain/mcp 0.0.1-beta.12658 → 0.0.1-beta.12662

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.
@@ -984,6 +984,10 @@ var groundingDuplicateEntrySchema = z4.object({
984
984
  entryId: z4.string(),
985
985
  name: z4.string(),
986
986
  collectionSlug: z4.string(),
987
+ // The candidate's embedding cosine (kernel/capture/types.ts `score`), not a word overlap.
988
+ denseScore: z4.number(),
989
+ // The same value under the name released clients read. RULE-630: it leaves in a later PR, once
990
+ // the prod /health commit and main of 24 hours earlier both serve `denseScore`.
987
991
  overlapRatio: z4.number()
988
992
  });
989
993
  var groundingReportSchema = z4.object({
@@ -1306,7 +1310,7 @@ No DB writes \u2014 call without \`preview:true\` to capture for real.${result2.
1306
1310
  if (createdStatus !== void 0 && isTrustAccepted(createdStatus)) wasAutoCommittedServerSide = true;
1307
1311
  spineFloor = created.spineFloor;
1308
1312
  const matches = created.verdict?.kind === "ask" ? created.verdict.matches : [];
1309
- groundingReport.duplicates = matches.map((m) => ({ entryId: m.entryId, name: m.name, collectionSlug: m.collectionSlug, overlapRatio: m.score }));
1313
+ groundingReport.duplicates = matches.map((m) => ({ entryId: m.entryId, name: m.name, collectionSlug: m.collectionSlug, denseScore: m.score, overlapRatio: m.score }));
1310
1314
  if (created.verdict) groundingReport.scanTruncated = false;
1311
1315
  groundingCaveat = created.judged === false ? CAVEAT_JUDGE_LATE : "";
1312
1316
  } catch (error) {
@@ -1669,12 +1673,12 @@ var updateEntrySchema = z7.object({
1669
1673
  sourceExcerpt: z7.string().optional().describe("Verbatim excerpt from the source that backs this entry's claims. Write-once: can only be set if currently empty."),
1670
1674
  // WP-465 slice ⑤ — relay-only (TEN-2233): validation/min-length/recording live in Convex.
1671
1675
  steeringOverrideReason: z7.string().optional().describe("Why it stands alone, at least 12 characters. Your name is kept with it."),
1672
- qualityOverrideReason: z7.string().optional().describe("Why (\u226512 chars) to keep an accepted spine text its quality checklist failed \u2014 recorded as an override with who wrote it."),
1676
+ qualityOverrideReason: z7.string().optional().describe("Why a text keeps after its checklist failed, at least 12 characters. Your name is kept with it."),
1673
1677
  // TASK-954
1674
1678
  coherencyAcknowledgement: z7.object({
1675
1679
  response: z7.enum(["linked", "accepted-fix", "diverged"]).describe("Your answer to why it stands alone."),
1676
1680
  entryId: z7.string().optional().describe("Authorizing entry being linked/accepted (required for 'linked' and 'accepted-fix')."),
1677
- reason: z7.string().optional().describe("Divergence rationale (required for 'diverged', \u226512 chars).")
1681
+ reason: z7.string().optional().describe("Why you diverge, at least 12 characters; required for 'diverged'.")
1678
1682
  }).optional().describe("Your answer when an entry links to nothing. One answer per entry per session.")
1679
1683
  });
1680
1684
  var commitEntrySchema = z7.object({
@@ -1688,7 +1692,7 @@ var commitEntrySchema = z7.object({
1688
1692
  coherencyAcknowledgement: z7.object({
1689
1693
  response: z7.enum(["linked", "accepted-fix", "diverged"]).describe("Your answer to why it stands alone."),
1690
1694
  entryId: z7.string().optional().describe("Authorizing entry being linked/accepted (required for 'linked' and 'accepted-fix')."),
1691
- reason: z7.string().optional().describe("Divergence rationale (required for 'diverged', \u226512 chars).")
1695
+ reason: z7.string().optional().describe("Why you diverge, at least 12 characters; required for 'diverged'.")
1692
1696
  }).optional().describe("Your answer when an entry links to nothing."),
1693
1697
  replaces: z7.string().max(200).optional(),
1694
1698
  // TASK-1030: described once, on the served entries schema
@@ -2564,7 +2568,7 @@ var ENTRIES_ACTIONS = [
2564
2568
  var coherencyAcknowledgementFlatSchema = z12.object({
2565
2569
  response: z12.enum(["linked", "accepted-fix", "diverged"]).describe("Your answer to why it stands alone."),
2566
2570
  entryId: z12.string().max(200).optional().describe("Authorizing entry being linked/accepted (required for 'linked' and 'accepted-fix')."),
2567
- reason: z12.string().max(2e3).optional().describe("Divergence rationale (required for 'diverged', \u226512 chars).")
2571
+ reason: z12.string().max(2e3).optional().describe("Why you diverge, at least 12 characters; required for 'diverged'.")
2568
2572
  });
2569
2573
  var ENTRIES_MOVED = {
2570
2574
  preflight: "entries only writes. Check a collection's requirements with the read-only context tool: context action=preflight collection=..."
@@ -11977,4 +11981,4 @@ export {
11977
11981
  SERVER_VERSION,
11978
11982
  createProductBrainServer
11979
11983
  };
11980
- //# sourceMappingURL=chunk-NAY6UWWU.js.map
11984
+ //# sourceMappingURL=chunk-HULJJZV4.js.map