@productbrain/mcp 0.0.1-beta.10694 → 0.0.1-beta.10698
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.
|
@@ -4279,11 +4279,22 @@ async function handleFind(entryId, direction) {
|
|
|
4279
4279
|
import { z as z15 } from "zod/v3";
|
|
4280
4280
|
|
|
4281
4281
|
// src/lib/seatSentence.ts
|
|
4282
|
+
var PERSON_STATUS_WORDS = {
|
|
4283
|
+
active: "Active",
|
|
4284
|
+
invited: "Invited",
|
|
4285
|
+
placeholder: "Not invited",
|
|
4286
|
+
archived: "Archived"
|
|
4287
|
+
};
|
|
4288
|
+
function personStatusTag(status2) {
|
|
4289
|
+
if (!status2 || status2 === "active" || !Object.prototype.hasOwnProperty.call(PERSON_STATUS_WORDS, status2)) return null;
|
|
4290
|
+
return PERSON_STATUS_WORDS[status2];
|
|
4291
|
+
}
|
|
4282
4292
|
function formatSeatSentence(action, reply, clean) {
|
|
4283
4293
|
if (reply.outcome === "refused") {
|
|
4284
4294
|
return `Refused: ${reply.refusal?.reason ?? reply.refusal?.code ?? "not allowed"}${reply.refusal?.requiredAction ? ` ${reply.refusal.requiredAction}` : ""}`;
|
|
4285
4295
|
}
|
|
4286
|
-
const
|
|
4296
|
+
const tag = personStatusTag(reply.personStatus);
|
|
4297
|
+
const who = `${clean(reply.person ?? "")}${tag ? ` (${tag})` : ""}`;
|
|
4287
4298
|
const roleLabel2 = `${clean(reply.roleName ?? "")} (${reply.role ?? ""})`;
|
|
4288
4299
|
const teamLabel = clean(reply.teamName ?? "");
|
|
4289
4300
|
if (action === "seat") {
|
|
@@ -4390,7 +4401,7 @@ async function handlePeopleRemove(person, teamId) {
|
|
|
4390
4401
|
async function handlePeopleList() {
|
|
4391
4402
|
try {
|
|
4392
4403
|
const { people, truncated } = await kernelQuery("people.list", {});
|
|
4393
|
-
const lines = people.map((p) => `${sanitizeSingleLineField(p.displayName)} <${p.email ? sanitizeSingleLineField(p.email) : "no email"}> \xB7 ${p.status} \xB7 ${p.role}`);
|
|
4404
|
+
const lines = people.map((p) => `${sanitizeSingleLineField(p.displayName)} <${p.email ? sanitizeSingleLineField(p.email) : "no email"}> \xB7 ${PERSON_STATUS_WORDS[p.status]} \xB7 ${p.role}`);
|
|
4394
4405
|
if (people.length === 0) lines.push("No people in this workspace.");
|
|
4395
4406
|
if (truncated) lines.push("List cut at 200 live people; the full list is on Settings, Members in the web app.");
|
|
4396
4407
|
const text = lines.join("\n");
|
|
@@ -12056,7 +12067,8 @@ function formatHolders(result2) {
|
|
|
12056
12067
|
return [
|
|
12057
12068
|
" holders:",
|
|
12058
12069
|
...result2.holders.map((h) => {
|
|
12059
|
-
const
|
|
12070
|
+
const word = personStatusTag(h.status);
|
|
12071
|
+
const tag = word ? ` (${word})` : "";
|
|
12060
12072
|
const team = h.teamName ? ` in ${sanitizeSingleLineField(h.teamName)}` : "";
|
|
12061
12073
|
return ` ${sanitizeSingleLineField(h.displayName)}${tag}${team}`;
|
|
12062
12074
|
}),
|
|
@@ -12827,4 +12839,4 @@ export {
|
|
|
12827
12839
|
createProductBrainServer,
|
|
12828
12840
|
initFeatureFlags
|
|
12829
12841
|
};
|
|
12830
|
-
//# sourceMappingURL=chunk-
|
|
12842
|
+
//# sourceMappingURL=chunk-RH3ITH3Y.js.map
|