@productbrain/mcp 0.0.1-beta.10445 → 0.0.1-beta.10450
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.
|
@@ -4362,7 +4362,8 @@ async function handlePeopleRemove(person, teamId) {
|
|
|
4362
4362
|
sessionId: getAgentSessionId()
|
|
4363
4363
|
});
|
|
4364
4364
|
if (result2.outcome === "refused") {
|
|
4365
|
-
const { reason
|
|
4365
|
+
const { reason } = result2.refusal;
|
|
4366
|
+
const requiredAction = authorityRecovery(result2.refusal);
|
|
4366
4367
|
const message2 = `Refused: ${reason}${requiredAction ? ` ${requiredAction}` : ""}`;
|
|
4367
4368
|
return failureResult(
|
|
4368
4369
|
message2,
|
|
@@ -12081,13 +12082,14 @@ async function runSeatAction(action, fn, params) {
|
|
|
12081
12082
|
try {
|
|
12082
12083
|
requireWriteAccess();
|
|
12083
12084
|
const sessionId = getAgentSessionId();
|
|
12084
|
-
const
|
|
12085
|
+
const raw = await kernelMutation(fn, {
|
|
12085
12086
|
roleRef: params.roleId,
|
|
12086
12087
|
targetPersonRef: params.person,
|
|
12087
12088
|
newPersonName: params.newPersonName,
|
|
12088
12089
|
teamRef: params.teamId,
|
|
12089
12090
|
sessionId
|
|
12090
12091
|
});
|
|
12092
|
+
const result2 = raw.refusal ? { ...raw, refusal: { ...raw.refusal, requiredAction: authorityRecovery(raw.refusal) } } : raw;
|
|
12091
12093
|
const message = formatSeatSentence(action, result2, sanitizeSingleLineField);
|
|
12092
12094
|
if (result2.outcome === "refused") {
|
|
12093
12095
|
return failureResult(
|
|
@@ -12781,4 +12783,4 @@ export {
|
|
|
12781
12783
|
createProductBrainServer,
|
|
12782
12784
|
initFeatureFlags
|
|
12783
12785
|
};
|
|
12784
|
-
//# sourceMappingURL=chunk-
|
|
12786
|
+
//# sourceMappingURL=chunk-JS3QN4FB.js.map
|