@productbrain/mcp 0.0.1-beta.1342 → 0.0.1-beta.1344

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.
@@ -1671,7 +1671,12 @@ var captureSuccessOutputSchema = z2.object({
1671
1671
  key: z2.string(),
1672
1672
  type: z2.string(),
1673
1673
  required: z2.boolean().optional()
1674
- })).optional()
1674
+ })).optional(),
1675
+ // TEN-2365: capture-time authority-domain proposal (PENDING ratification), when one was filed.
1676
+ authorityDomain: z2.object({
1677
+ slug: z2.string(),
1678
+ status: z2.literal("proposal-pending")
1679
+ }).optional()
1675
1680
  }).strict();
1676
1681
  var captureClassifierOnlyOutputSchema = z2.object({
1677
1682
  classifier: captureClassifierSchema
@@ -1693,7 +1698,9 @@ var batchCaptureOutputSchema = z2.object({
1693
1698
  normalization: z2.object({
1694
1699
  remapped: z2.record(z2.string()).optional(),
1695
1700
  rejected: z2.array(z2.string()).optional()
1696
- }).optional()
1701
+ }).optional(),
1702
+ // TEN-2365: capture-time authority-domain proposal slug (PENDING ratification), when filed.
1703
+ domain: z2.string().optional()
1697
1704
  })),
1698
1705
  total: z2.number(),
1699
1706
  failed: z2.number(),
@@ -2005,6 +2012,7 @@ ${groundingReport.governance.map((g) => `- **${g.entryId}** ${g.name} [${g.colle
2005
2012
  let normalizationMeta;
2006
2013
  let formativeHints = [];
2007
2014
  let relationSuggestionsFromCreate = [];
2015
+ let authorityDomainFromCreate;
2008
2016
  let wasAutoCommittedServerSide = false;
2009
2017
  try {
2010
2018
  const result = await kernelMutation("chain.createEntry", {
@@ -2062,6 +2070,7 @@ No DB writes \u2014 call without \`preview:true\` to capture for real.${result.w
2062
2070
  normalizationMeta = result.normalization;
2063
2071
  relationSuggestionsFromCreate = result.relationSuggestions ?? [];
2064
2072
  formativeHints = result.qualityHints ?? [];
2073
+ authorityDomainFromCreate = result.authorityDomain;
2065
2074
  resolveGapsForEntry(name, result.entryId);
2066
2075
  if (result.status === "active") {
2067
2076
  wasAutoCommittedServerSide = true;
@@ -2446,6 +2455,10 @@ Use \`entries action=get\` to inspect the existing entry, or \`update-entry\` to
2446
2455
  }
2447
2456
  lines.push(`_Create with: \`relations action=create fromId="${finalEntryId}" toId="TARGET-ID" type="TYPE"\`_`);
2448
2457
  }
2458
+ if (authorityDomainFromCreate) {
2459
+ lines.push("");
2460
+ lines.push(`domain: ${authorityDomainFromCreate.slug} (proposal pending \u2014 ratify at session close)`);
2461
+ }
2449
2462
  if (formativeHints.length > 0) {
2450
2463
  trackCaptureQualityHints(wsCtx.workspaceId, {
2451
2464
  collection: resolvedCollection,
@@ -2590,6 +2603,8 @@ Use \`entries action=get\` to inspect the existing entry, or \`update-entry\` to
2590
2603
  qualityHints: formativeHints,
2591
2604
  // BET-272 S5: Advisory relation suggestions from graph (BR-144, STD-147)
2592
2605
  relationSuggestions: relationSuggestionsFromCreate,
2606
+ // TEN-2365: capture-time authority-domain proposal (PENDING ratification), when filed.
2607
+ ...authorityDomainFromCreate && { authorityDomain: authorityDomainFromCreate },
2593
2608
  // WP-318 S2: Pre-write grounding report — always included (empty arrays when no suggestions)
2594
2609
  groundingReport
2595
2610
  },
@@ -2895,7 +2910,9 @@ Use \`entries action=get\` to inspect the existing entry, or \`update-entry\` to
2895
2910
  normalization: { remapped: entryNorm.remapped, rejected: entryNorm.rejected }
2896
2911
  },
2897
2912
  // BET-167: Track overlap count for conflict advisory
2898
- ...entryOverlapCount > 0 ? { overlapCount: entryOverlapCount } : {}
2913
+ ...entryOverlapCount > 0 ? { overlapCount: entryOverlapCount } : {},
2914
+ // TEN-2365: capture-time authority-domain proposal echo.
2915
+ ...result.authorityDomain ? { authorityDomain: result.authorityDomain } : {}
2899
2916
  });
2900
2917
  } catch (error) {
2901
2918
  const msg = error instanceof Error ? error.message : String(error);
@@ -3075,7 +3092,8 @@ _Use \`move-entry\` to correct any misclassified entries._`);
3075
3092
  ...r.confidenceTier ? { confidenceTier: r.confidenceTier } : {},
3076
3093
  ...r.warnings?.length ? { warnings: r.warnings } : {},
3077
3094
  ...r.normalization ? { normalization: r.normalization } : {},
3078
- ...r.commitError ? { commitError: r.commitError } : {}
3095
+ ...r.commitError ? { commitError: r.commitError } : {},
3096
+ ...r.authorityDomain ? { domain: r.authorityDomain.slug } : {}
3079
3097
  })),
3080
3098
  total: created.length,
3081
3099
  failed: failed.length,
@@ -14843,4 +14861,4 @@ export {
14843
14861
  createProductBrainServer,
14844
14862
  initFeatureFlags
14845
14863
  };
14846
- //# sourceMappingURL=chunk-JFJWNU2F.js.map
14864
+ //# sourceMappingURL=chunk-RGL4R7U2.js.map