openclaw-quiubo 2.6.64 → 2.6.67
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/dist/index.js
CHANGED
|
@@ -13469,7 +13469,11 @@ function extractAgentIdFromSessionKey(key) {
|
|
|
13469
13469
|
return match?.[1] ?? "main";
|
|
13470
13470
|
}
|
|
13471
13471
|
function resolveAccountId(config, agentId) {
|
|
13472
|
-
|
|
13472
|
+
let resolvedConfig = config;
|
|
13473
|
+
if (!resolvedConfig?.bindings && typeof resolvedConfig?.loadConfig === "function") {
|
|
13474
|
+
resolvedConfig = resolvedConfig.loadConfig();
|
|
13475
|
+
}
|
|
13476
|
+
const bindings = resolvedConfig?.bindings ?? [];
|
|
13473
13477
|
const matched = bindings.find(
|
|
13474
13478
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13475
13479
|
(b) => b?.match?.channel === "quiubo" && b?.agentId === agentId
|
|
@@ -14994,6 +14998,10 @@ async function routeInboundMessage(opts) {
|
|
|
14994
14998
|
log?.debug?.(`[${accountId}] Quiubo: skipping empty ${info.kind} reply`);
|
|
14995
14999
|
return;
|
|
14996
15000
|
}
|
|
15001
|
+
if (payload.text && /^\s*(NO_REPLY|HEARTBEAT_OK)(\s+(NO_REPLY|HEARTBEAT_OK))*\s*$/i.test(payload.text) && outboundAttachments.length === 0) {
|
|
15002
|
+
log?.debug?.(`[${accountId}] Quiubo: suppressed silent reply token in ${info.kind} reply`);
|
|
15003
|
+
return;
|
|
15004
|
+
}
|
|
14997
15005
|
const gw = gateways.get(accountId);
|
|
14998
15006
|
const cachedConfig = gw?.getBotConfig(groupId);
|
|
14999
15007
|
if (cachedConfig?.grantedScopes && !cachedConfig.grantedScopes.includes("send_messages")) {
|