metheus-governance-mcp-cli 0.2.247 → 0.2.248
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.
|
@@ -4724,14 +4724,6 @@ export async function processRunnerSelectedRecord({
|
|
|
4724
4724
|
const replyMessageThreadID = intFromRawAllowZero(sourceMessageEnvelope.message_thread_id, 0);
|
|
4725
4725
|
const replyToMessageID = intFromRawAllowZero(sourceMessageEnvelope.message_id, 0);
|
|
4726
4726
|
const replyAnchorSource = replyToMessageID > 0 ? "source_message_envelope" : "";
|
|
4727
|
-
const attemptedDeliveryEnvelope = buildTelegramBotReplyEnvelope({
|
|
4728
|
-
sourceEnvelope: sourceMessageEnvelope,
|
|
4729
|
-
messageThreadID: replyMessageThreadID,
|
|
4730
|
-
replyToMessageID,
|
|
4731
|
-
sender: bot?.username ? `@${String(bot.username || "").trim().replace(/^@+/, "")}` : String(bot?.name || "bot").trim(),
|
|
4732
|
-
senderUsername: normalizeMentionSelector(bot?.username || bot?.name),
|
|
4733
|
-
body: sanitizedReplyText,
|
|
4734
|
-
});
|
|
4735
4727
|
const normalizedPrecomputedHumanIntentContext = safeObject(precomputedHumanIntentContext);
|
|
4736
4728
|
const validateWorkspaceArtifacts = typeof executionDeps.validateWorkspaceArtifacts === "function"
|
|
4737
4729
|
? executionDeps.validateWorkspaceArtifacts
|
|
@@ -5500,6 +5492,14 @@ export async function processRunnerSelectedRecord({
|
|
|
5500
5492
|
triggerDecision: effectiveTriggerDecision,
|
|
5501
5493
|
conversationContext: effectiveConversationContext,
|
|
5502
5494
|
});
|
|
5495
|
+
const attemptedDeliveryEnvelope = buildTelegramBotReplyEnvelope({
|
|
5496
|
+
sourceEnvelope: sourceMessageEnvelope,
|
|
5497
|
+
messageThreadID: replyMessageThreadID,
|
|
5498
|
+
replyToMessageID,
|
|
5499
|
+
sender: bot?.username ? `@${String(bot.username || "").trim().replace(/^@+/, "")}` : String(bot?.name || "bot").trim(),
|
|
5500
|
+
senderUsername: normalizeMentionSelector(bot?.username || bot?.name),
|
|
5501
|
+
body: sanitizedReplyText,
|
|
5502
|
+
});
|
|
5503
5503
|
const normalizedExecutionTargets = ensureArray(executionContract?.assignments)
|
|
5504
5504
|
.map((item) => normalizeMentionSelector(item?.targetBot))
|
|
5505
5505
|
.filter(Boolean);
|