@productbrain/mcp 0.0.1-beta.5955 → 0.0.1-beta.5969

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.
@@ -15647,6 +15647,9 @@ async function displayName(id) {
15647
15647
  return void 0;
15648
15648
  }
15649
15649
  }
15650
+ async function unresolvableRoleFallback(id) {
15651
+ return await displayName(id) ?? `an unresolved role (\`${id}\` \u2014 reassign it)`;
15652
+ }
15650
15653
  function domainListSuffix(domainSlugs) {
15651
15654
  if (!domainSlugs) return "";
15652
15655
  return domainSlugs.length > 0 ? ` Domains in this workspace: ${domainSlugs.join(", ")}.` : " No domains exist in this workspace yet.";
@@ -15655,10 +15658,10 @@ async function renderCreateAdoptConfirmation(result2, isAdopt) {
15655
15658
  const lead = isAdopt ? `${result2.entryId} is now a routed question,` : "Question created and";
15656
15659
  let base;
15657
15660
  if (result2.status === "unrouted") {
15658
- const roleName = await displayName(result2.suggestedRoleId) ?? result2.suggestedRoleId;
15661
+ const roleName = result2.suggestedRoleId ? await unresolvableRoleFallback(result2.suggestedRoleId) : result2.suggestedRoleId;
15659
15662
  base = isAdopt ? `${lead} suggested to ${roleName}.` : `${lead} suggested to ${roleName}. Confirm with: pb question assign ${result2.entryId}`;
15660
15663
  } else {
15661
- const leadName = await displayName(result2.ownerRoleId) ?? result2.ownerRoleId;
15664
+ const leadName = result2.ownerRoleId ? await unresolvableRoleFallback(result2.ownerRoleId) : result2.ownerRoleId;
15662
15665
  base = isAdopt ? `${result2.entryId} is now a routed question. Nothing here says who owns it, so it has gone to ${leadName}.` : `Question created. Nothing here says who owns it, so it has gone to ${leadName}.`;
15663
15666
  }
15664
15667
  const blocksHint = " If something is blocked on this, add blocks:[<entry-id>...].";
@@ -17093,4 +17096,4 @@ export {
17093
17096
  createProductBrainServer,
17094
17097
  initFeatureFlags
17095
17098
  };
17096
- //# sourceMappingURL=chunk-W3MF7EC3.js.map
17099
+ //# sourceMappingURL=chunk-B7MT4TNA.js.map