openclaw-quiubo 2.6.53 → 2.6.57
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
|
@@ -13540,6 +13540,7 @@ async function readOutboundAttachments(mediaUrls, source, client, groupId, log,
|
|
|
13540
13540
|
var gateways = /* @__PURE__ */ new Map();
|
|
13541
13541
|
var clients = /* @__PURE__ */ new Map();
|
|
13542
13542
|
var accounts = /* @__PURE__ */ new Map();
|
|
13543
|
+
var partnerGroupIds = /* @__PURE__ */ new Set();
|
|
13543
13544
|
var loggers = /* @__PURE__ */ new Map();
|
|
13544
13545
|
var CHANNEL_ID = "quiubo";
|
|
13545
13546
|
var DEFAULT_API_URL = "https://api.quiubo.io";
|
|
@@ -14495,6 +14496,7 @@ var quiuboPlugin = {
|
|
|
14495
14496
|
securityMode: ag.securityMode
|
|
14496
14497
|
});
|
|
14497
14498
|
} else {
|
|
14499
|
+
partnerGroupIds.add(ag.groupId);
|
|
14498
14500
|
const botSettings = ag.settings?.bot ?? {};
|
|
14499
14501
|
let ownerIdentityId = "";
|
|
14500
14502
|
try {
|
|
@@ -14530,6 +14532,7 @@ var quiuboPlugin = {
|
|
|
14530
14532
|
} else {
|
|
14531
14533
|
const { groups: allGroups } = await client.listGroups(botIdentityId);
|
|
14532
14534
|
for (const group of allGroups) {
|
|
14535
|
+
partnerGroupIds.add(group.id);
|
|
14533
14536
|
const botSettings = group.settings?.bot ?? {};
|
|
14534
14537
|
let ownerIdentityId = "";
|
|
14535
14538
|
try {
|
|
@@ -14769,14 +14772,14 @@ async function routeInboundMessage(opts) {
|
|
|
14769
14772
|
const typingInterval = setInterval(sendTyping, 4e3);
|
|
14770
14773
|
const agentId = resolveAgentId(cfg, accountId);
|
|
14771
14774
|
const sessionKey = buildSessionKey(agentId, groupId);
|
|
14772
|
-
log?.info?.(`[${accountId}] [delivery:inbound] agentId=${agentId}, sessionKey=${sessionKey}, To=quiubo:${
|
|
14775
|
+
log?.info?.(`[${accountId}] [delivery:inbound] agentId=${agentId}, sessionKey=${sessionKey}, To=quiubo:${groupId}, ConversationLabel=quiubo:${groupId}`);
|
|
14773
14776
|
const ctxPayload = runtime2.channel.reply.finalizeInboundContext({
|
|
14774
14777
|
Body: text,
|
|
14775
14778
|
RawBody: text,
|
|
14776
14779
|
CommandBody: text,
|
|
14777
14780
|
CommandAuthorized: true,
|
|
14778
14781
|
From: `quiubo:${senderId}`,
|
|
14779
|
-
To: `quiubo:${
|
|
14782
|
+
To: `quiubo:${groupId}`,
|
|
14780
14783
|
SessionKey: sessionKey,
|
|
14781
14784
|
AccountId: accountId,
|
|
14782
14785
|
ChatType: "group",
|
|
@@ -15059,6 +15062,7 @@ function setCache(groupId, data) {
|
|
|
15059
15062
|
async function fetchGroupContext(config, sessionKey) {
|
|
15060
15063
|
const groupId = extractGroupIdFromSessionKey(sessionKey);
|
|
15061
15064
|
if (!groupId) return void 0;
|
|
15065
|
+
if (partnerGroupIds.has(groupId)) return void 0;
|
|
15062
15066
|
const cached = getCached(groupId);
|
|
15063
15067
|
if (cached) return cached;
|
|
15064
15068
|
const agentId = extractAgentIdFromSessionKey(sessionKey);
|