@productbrain/mcp 0.0.1-beta.9001 → 0.0.1-beta.9008

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.
@@ -267,7 +267,8 @@ function ownerLineParts(owner) {
267
267
  }
268
268
  function formatOwnerLine(owner, options = {}) {
269
269
  const ids = options.ids ?? true;
270
- const label = options.label ?? "Owner:";
270
+ const word = owner.kind === "placed" ? "Home:" : "Owner:";
271
+ const label = options.bold ? `**${word}**` : word;
271
272
  switch (owner.kind) {
272
273
  case "one": {
273
274
  const { role, team } = ownerLineParts(owner);
@@ -275,6 +276,8 @@ function formatOwnerLine(owner, options = {}) {
275
276
  }
276
277
  case "none":
277
278
  return `${label} none`;
279
+ case "placed":
280
+ return `${label} ${owner.team.name}`;
278
281
  case "many":
279
282
  return `${label} conflicting \u2014 ${owner.count}${owner.truncated ? "+" : ""} owners recorded`;
280
283
  case "dangling": {
@@ -364,7 +367,9 @@ var ownerOutputShape = z2.discriminatedUnion("kind", [
364
367
  // WP-753 O5b fix round 1 (item 1), nested round 3 (item 6): team/role optional — present only
365
368
  // when entryOwnershipRead.ts could name the archived/dead target without leaking a foreign
366
369
  // workspace's name. Nested (not flat teamName/roleName) to match the `one` kind.
367
- z2.object({ kind: z2.literal("dangling"), teamId: z2.string(), roleId: z2.string(), team: ownerTeam.pick({ name: true }).optional(), role: ownerRole.pick({ name: true }).optional() })
370
+ z2.object({ kind: z2.literal("dangling"), teamId: z2.string(), roleId: z2.string(), team: ownerTeam.pick({ name: true }).optional(), role: ownerRole.pick({ name: true }).optional() }),
371
+ // DEC-1944 (TASK-614; WP-783): where a role or a team lives — its team's name only.
372
+ z2.object({ kind: z2.literal("placed"), team: ownerTeam.pick({ name: true }) })
368
373
  ]);
369
374
  function parseOwnerOutput(raw) {
370
375
  if (!raw) return void 0;
@@ -372,8 +377,8 @@ function parseOwnerOutput(raw) {
372
377
  return result2.success ? result2.data : void 0;
373
378
  }
374
379
  function formatOwnerLine2(owner) {
375
- const sanitized = owner.kind === "one" ? { ...owner, team: { name: sanitizeSingleLineField(owner.team.name) }, role: { name: sanitizeSingleLineField(owner.role.name) } } : owner.kind === "dangling" ? { ...owner, ...owner.team ? { team: { name: sanitizeSingleLineField(owner.team.name) } } : {}, ...owner.role ? { role: { name: sanitizeSingleLineField(owner.role.name) } } : {} } : owner;
376
- return formatOwnerLine(sanitized, { label: "**Owner:**" });
380
+ const sanitized = owner.kind === "one" ? { ...owner, team: { name: sanitizeSingleLineField(owner.team.name) }, role: { name: sanitizeSingleLineField(owner.role.name) } } : owner.kind === "dangling" ? { ...owner, ...owner.team ? { team: { name: sanitizeSingleLineField(owner.team.name) } } : {}, ...owner.role ? { role: { name: sanitizeSingleLineField(owner.role.name) } } : {} } : owner.kind === "placed" ? { ...owner, team: { name: sanitizeSingleLineField(owner.team.name) } } : owner;
381
+ return formatOwnerLine(sanitized, { bold: true });
377
382
  }
378
383
  function extractPreview(data, maxLen) {
379
384
  if (!data || typeof data !== "object") return "";
@@ -13592,4 +13597,4 @@ export {
13592
13597
  createProductBrainServer,
13593
13598
  initFeatureFlags
13594
13599
  };
13595
- //# sourceMappingURL=chunk-IDJEB3WM.js.map
13600
+ //# sourceMappingURL=chunk-WTUALZ6W.js.map