metheus-governance-mcp-cli 0.2.86 → 0.2.87
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.
- package/lib/bot-commands.mjs +18 -1
- package/package.json +1 -1
package/lib/bot-commands.mjs
CHANGED
|
@@ -633,6 +633,23 @@ function displayLocalAIClientName(clientName) {
|
|
|
633
633
|
return String(clientName || "").trim();
|
|
634
634
|
}
|
|
635
635
|
|
|
636
|
+
function formatRuntimeReasoningField(clientName, reasoningEffort) {
|
|
637
|
+
const normalizedClient = String(clientName || "").trim().toLowerCase();
|
|
638
|
+
const normalizedEffort = String(reasoningEffort || "").trim();
|
|
639
|
+
if (!normalizedEffort) {
|
|
640
|
+
if (normalizedClient === "claude") return "thinking=(blank)";
|
|
641
|
+
if (normalizedClient === "gemini") return "thinking=(blank)";
|
|
642
|
+
return "reasoning=(blank)";
|
|
643
|
+
}
|
|
644
|
+
if (normalizedClient === "claude") {
|
|
645
|
+
return `thinking=${normalizedEffort} (Claude effort)`;
|
|
646
|
+
}
|
|
647
|
+
if (normalizedClient === "gemini") {
|
|
648
|
+
return `thinking=${normalizedEffort} (Gemini level)`;
|
|
649
|
+
}
|
|
650
|
+
return `reasoning=${normalizedEffort}`;
|
|
651
|
+
}
|
|
652
|
+
|
|
636
653
|
function telegramEntryDisplayDescription(entry) {
|
|
637
654
|
const current = safeObject(entry);
|
|
638
655
|
const detail = [
|
|
@@ -948,7 +965,7 @@ function formatRoleProfileOutputLine(profile) {
|
|
|
948
965
|
current.client ? `client=${displayLocalAIClientName(current.client)}` : "client=(blank)",
|
|
949
966
|
current.model ? `model=${current.model}` : "model=(blank)",
|
|
950
967
|
current.permissionMode ? `permission=${current.permissionMode}` : "permission=(blank)",
|
|
951
|
-
current.
|
|
968
|
+
formatRuntimeReasoningField(current.client, current.reasoningEffort),
|
|
952
969
|
].join(" | ");
|
|
953
970
|
}
|
|
954
971
|
|