metheus-governance-mcp-cli 0.2.109 → 0.2.111
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/cli.mjs +3 -3
- package/lib/bot-commands.mjs +2 -2
- package/lib/selftest-bot-commands.mjs +1 -1
- package/package.json +1 -1
package/cli.mjs
CHANGED
|
@@ -1771,7 +1771,7 @@ function validateRunnerRoute(route, { requireCommand = true, config = null } = {
|
|
|
1771
1771
|
errors.push("workspace_dir is missing for project_id; configure project_mappings or route.workspace_dir");
|
|
1772
1772
|
}
|
|
1773
1773
|
if (route.botID && !isUUID(route.botID)) {
|
|
1774
|
-
errors.push("
|
|
1774
|
+
errors.push("server_bot_id must be a valid UUID");
|
|
1775
1775
|
}
|
|
1776
1776
|
if (route.archiveThreadID && !isUUID(route.archiveThreadID)) {
|
|
1777
1777
|
errors.push("archive_thread_id must be a valid UUID");
|
|
@@ -4302,7 +4302,7 @@ async function runDoctor(flags) {
|
|
|
4302
4302
|
rows,
|
|
4303
4303
|
strictMode ? "fail" : "warn",
|
|
4304
4304
|
`runner route ${routeLabel} server_bot_id`,
|
|
4305
|
-
`route
|
|
4305
|
+
`route server_bot_id ${route.botID} != local env ${envConfig.serverBotID}`,
|
|
4306
4306
|
);
|
|
4307
4307
|
}
|
|
4308
4308
|
if (route.botID && !envConfig.serverBotID) {
|
|
@@ -4325,7 +4325,7 @@ async function runDoctor(flags) {
|
|
|
4325
4325
|
rows,
|
|
4326
4326
|
strictMode ? "fail" : "warn",
|
|
4327
4327
|
`runner route ${routeLabel} server_bot_id`,
|
|
4328
|
-
`route
|
|
4328
|
+
`route server_bot_id ${route.botID} is set, but local env entry does not carry SERVER_BOT_ID`,
|
|
4329
4329
|
);
|
|
4330
4330
|
}
|
|
4331
4331
|
}
|
package/lib/bot-commands.mjs
CHANGED
|
@@ -1276,9 +1276,9 @@ function summarizeTelegramRouteLinks(parsedEnv, entry, serverBinding, deps) {
|
|
|
1276
1276
|
const routeRole = String(route.role_profile || route.roleProfile || route.role || "").trim();
|
|
1277
1277
|
let matchedBy = "";
|
|
1278
1278
|
if (serverBotID && routeBotID === serverBotID) {
|
|
1279
|
-
matchedBy = "
|
|
1279
|
+
matchedBy = "server_bot_id";
|
|
1280
1280
|
} else if (routeBotName && normalizedNames.has(routeBotName)) {
|
|
1281
|
-
matchedBy = "
|
|
1281
|
+
matchedBy = "server_bot_name";
|
|
1282
1282
|
} else if (!routeBotID && !routeBotName && entryKey && defaultBotKey && entryKey === defaultBotKey) {
|
|
1283
1283
|
matchedBy = "default_bot";
|
|
1284
1284
|
}
|
|
@@ -600,7 +600,7 @@ export async function runSelftestBotCommands(push, deps) {
|
|
|
600
600
|
intFromRaw(safeObject(showWithRoutesPayload.routeLinks).total, 0) >= 1
|
|
601
601
|
&& ensureArray(safeObject(showWithRoutesPayload.routeLinks).routes).some((route) => (
|
|
602
602
|
String(safeObject(route).routeName || "") === "telegram-monitor"
|
|
603
|
-
&& String(safeObject(route).matchedBy || "") === "
|
|
603
|
+
&& String(safeObject(route).matchedBy || "") === "server_bot_id"
|
|
604
604
|
)),
|
|
605
605
|
`routes=${JSON.stringify(safeObject(showWithRoutesPayload.routeLinks))}`,
|
|
606
606
|
);
|