metheus-governance-mcp-cli 0.2.90 → 0.2.91
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 +3 -4
- package/package.json +1 -1
package/lib/bot-commands.mjs
CHANGED
|
@@ -2151,8 +2151,8 @@ async function addTelegramBot(ui, flags, deps) {
|
|
|
2151
2151
|
if (nonInteractive && existingKeys.has(botKey)) {
|
|
2152
2152
|
throw new Error(`Telegram bot key "${botKey}" already exists`);
|
|
2153
2153
|
}
|
|
2154
|
-
const serverGroupMatched =
|
|
2155
|
-
if (serverGroupMatched) {
|
|
2154
|
+
const serverGroupMatched = serverBot.matchMode === "group";
|
|
2155
|
+
if (serverGroupMatched && !nonInteractive) {
|
|
2156
2156
|
process.stdout.write(
|
|
2157
2157
|
`Matched server Telegram bot "${serverBot.name || username || botKey}" with roles: ${ensureArray(serverBot.roles).join(", ")}. Runtime will use the server role, so local role/AI fields can stay empty.\n`,
|
|
2158
2158
|
);
|
|
@@ -2176,8 +2176,7 @@ async function addTelegramBot(ui, flags, deps) {
|
|
|
2176
2176
|
|| hasOwnFlag(flags, "reasoning-effort")
|
|
2177
2177
|
|| hasOwnFlag(flags, "ai-reasoning-effort");
|
|
2178
2178
|
const autoApplyRoleDefaults = !nonInteractive && roleProfileAutoResolved && !aiFlagOverrides;
|
|
2179
|
-
const autoUseServerRoleRouting =
|
|
2180
|
-
&& serverGroupMatched
|
|
2179
|
+
const autoUseServerRoleRouting = serverGroupMatched
|
|
2181
2180
|
&& !String(flags["role-profile"] || "").trim()
|
|
2182
2181
|
&& !aiFlagOverrides;
|
|
2183
2182
|
const client = requireDependency(deps, "normalizeLocalAIClientName")(
|