@productbrain/mcp 0.0.1-beta.10222 → 0.0.1-beta.10227
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.
|
@@ -262,12 +262,13 @@ function sanitizeSingleLineField(str) {
|
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
// src/lib/ownerLine.ts
|
|
265
|
+
var PLACED_LINE_WORD = "Home:";
|
|
265
266
|
function ownerLineParts(owner) {
|
|
266
267
|
return owner.kind === "one" ? { role: owner.role.name, team: owner.team.name } : null;
|
|
267
268
|
}
|
|
268
269
|
function formatOwnerLine(owner, options = {}) {
|
|
269
270
|
const ids = options.ids ?? true;
|
|
270
|
-
const word = owner.kind === "placed" ?
|
|
271
|
+
const word = owner.kind === "placed" ? PLACED_LINE_WORD : "Owner:";
|
|
271
272
|
const label = options.bold ? `**${word}**` : word;
|
|
272
273
|
switch (owner.kind) {
|
|
273
274
|
case "one": {
|
|
@@ -369,7 +370,14 @@ var ownerOutputShape = z2.discriminatedUnion("kind", [
|
|
|
369
370
|
// workspace's name. Nested (not flat teamName/roleName) to match the `one` kind.
|
|
370
371
|
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
372
|
// DEC-1944 (TASK-614; WP-783): where a role or a team lives — its team's name only.
|
|
372
|
-
|
|
373
|
+
// DEC-1950 (TASK-768): what is placed and, for a team, the names above its parent; no MCP line prints them.
|
|
374
|
+
z2.object({
|
|
375
|
+
kind: z2.literal("placed"),
|
|
376
|
+
of: z2.enum(["role", "team"]),
|
|
377
|
+
team: ownerTeam.pick({ name: true }),
|
|
378
|
+
ancestors: z2.array(z2.string()),
|
|
379
|
+
ancestorsTruncated: z2.boolean()
|
|
380
|
+
})
|
|
373
381
|
]);
|
|
374
382
|
function parseOwnerOutput(raw) {
|
|
375
383
|
if (!raw) return void 0;
|
|
@@ -12931,4 +12939,4 @@ export {
|
|
|
12931
12939
|
createProductBrainServer,
|
|
12932
12940
|
initFeatureFlags
|
|
12933
12941
|
};
|
|
12934
|
-
//# sourceMappingURL=chunk-
|
|
12942
|
+
//# sourceMappingURL=chunk-22KOP4XB.js.map
|