@productbrain/mcp 0.0.1-beta.11211 → 0.0.1-beta.11217
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.
|
@@ -3074,6 +3074,14 @@ async function handleMoveEntry(entryId, toCollection, canonicalKey) {
|
|
|
3074
3074
|
changedBy: sessionId ? `agent:${sessionId}` : void 0
|
|
3075
3075
|
});
|
|
3076
3076
|
if (result2.outcome === "refused") {
|
|
3077
|
+
if (result2.refusal.code === "QUALITY_HELD") {
|
|
3078
|
+
const fix = result2.refusal.requiredAction ?? "Fix the text so it meets that checklist, then move it again.";
|
|
3079
|
+
return failureResult(`# ${entryId} not moved
|
|
3080
|
+
|
|
3081
|
+
${result2.refusal.reason}
|
|
3082
|
+
|
|
3083
|
+
${fix}`, "QUALITY_HELD", result2.refusal.reason, fix, void 0, { entryId, toCollection, refusal: result2.refusal });
|
|
3084
|
+
}
|
|
3077
3085
|
const recovery = result2.refusal.requiredAction ?? "Ask the record owner or relevant Team Lead for the required authority change.";
|
|
3078
3086
|
return failureResult(
|
|
3079
3087
|
`Move refused for **${entryId}**.
|
|
@@ -11934,7 +11942,8 @@ async function handleQuestionList(mine) {
|
|
|
11934
11942
|
}
|
|
11935
11943
|
const lines = rows.map((r) => {
|
|
11936
11944
|
const outcomeSuffix = mine && r.outcome ? ` \u2014 ${stripControlChars(r.outcome)}` : "";
|
|
11937
|
-
|
|
11945
|
+
const judgeSuffix = !mine && r.judgeSentence ? ` \u2014 ${stripControlChars(r.judgeSentence)}` : "";
|
|
11946
|
+
return `[${stripControlChars(r.entryId)}] ${stripControlChars(r.question)} \u2014 ${stripControlChars(r.stateLabel)} \u2014 ${stripControlChars(r.why)} \u2014 ${stripControlChars(r.domain)} \u2014 ${stripControlChars(r.withLabel)} \u2014 ${r.ageDays}d${outcomeSuffix}${judgeSuffix}`;
|
|
11938
11947
|
});
|
|
11939
11948
|
const truncationNote = result2.truncated ? `
|
|
11940
11949
|
(${mine ? "showing your most recent questions only \u2014 older ones exist but are not shown" : "this list may be incomplete \u2014 some obligations may not be shown"})` : "";
|
|
@@ -12827,4 +12836,4 @@ export {
|
|
|
12827
12836
|
createProductBrainServer,
|
|
12828
12837
|
initFeatureFlags
|
|
12829
12838
|
};
|
|
12830
|
-
//# sourceMappingURL=chunk-
|
|
12839
|
+
//# sourceMappingURL=chunk-Y7YDQNWU.js.map
|