@productbrain/mcp 0.0.1-beta.8945 → 0.0.1-beta.8947

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.
@@ -234,12 +234,17 @@ function sanitizeSingleLineField(str) {
234
234
  }
235
235
 
236
236
  // src/lib/ownerLine.ts
237
+ function ownerLineParts(owner) {
238
+ return owner.kind === "one" ? { role: owner.role.name, team: owner.team.name } : null;
239
+ }
237
240
  function formatOwnerLine(owner, options = {}) {
238
241
  const ids = options.ids ?? true;
239
242
  const label = options.label ?? "Owner:";
240
243
  switch (owner.kind) {
241
- case "one":
242
- return `${label} ${owner.role.name} in ${owner.team.name}`;
244
+ case "one": {
245
+ const { role, team } = ownerLineParts(owner);
246
+ return `${label} ${role} in ${team}`;
247
+ }
243
248
  case "none":
244
249
  return `${label} none`;
245
250
  case "many":
@@ -13590,4 +13595,4 @@ export {
13590
13595
  createProductBrainServer,
13591
13596
  initFeatureFlags
13592
13597
  };
13593
- //# sourceMappingURL=chunk-VCTEGRTF.js.map
13598
+ //# sourceMappingURL=chunk-ISGBWBXR.js.map