openclaw-quiubo 2.3.0 → 2.3.2
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 +13 -3
- package/dist/index.js.map +2 -2
- package/dist/src/api.d.ts.map +1 -1
- package/dist/src/channel.d.ts.map +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9206,7 +9206,8 @@ var QuiuboApiClient = class {
|
|
|
9206
9206
|
async getGroupAgent(agentId, groupId) {
|
|
9207
9207
|
try {
|
|
9208
9208
|
return await this.request("GET", `/agents/${agentId}/groups/${groupId}/agent-status`);
|
|
9209
|
-
} catch {
|
|
9209
|
+
} catch (err) {
|
|
9210
|
+
console.warn(`[Quiubo API] getGroupAgent failed for agent=${agentId} group=${groupId}: ${err}`);
|
|
9210
9211
|
return null;
|
|
9211
9212
|
}
|
|
9212
9213
|
}
|
|
@@ -13632,6 +13633,7 @@ var quiuboPlugin = {
|
|
|
13632
13633
|
agentName: resolvedAgentName,
|
|
13633
13634
|
agentDisplayName: resolvedAgentDisplayName,
|
|
13634
13635
|
onCacheMiss: async (groupId) => {
|
|
13636
|
+
log?.info?.(`[${accountId}] Quiubo: cache-miss for group ${groupId}, resolvedAgentId=${resolvedAgentId}`);
|
|
13635
13637
|
try {
|
|
13636
13638
|
const [group, { members }] = await Promise.all([
|
|
13637
13639
|
client.getGroup(groupId),
|
|
@@ -13639,16 +13641,20 @@ var quiuboPlugin = {
|
|
|
13639
13641
|
]);
|
|
13640
13642
|
const owner = members.find((m) => m.role === "owner");
|
|
13641
13643
|
const botSettings = group.settings?.bot ?? {};
|
|
13644
|
+
log?.info?.(`[${accountId}] Quiubo: cache-miss resolved as partner group ${groupId}`);
|
|
13642
13645
|
return {
|
|
13643
13646
|
enabled: botSettings.enabled ?? false,
|
|
13644
13647
|
suppressionMinutes: botSettings.suppressionMinutes ?? 10,
|
|
13645
13648
|
ownerIdentityId: owner?.identityId ?? "",
|
|
13646
13649
|
groupType: group.groupType ?? "standard"
|
|
13647
13650
|
};
|
|
13648
|
-
} catch {
|
|
13651
|
+
} catch (partnerErr) {
|
|
13652
|
+
log?.info?.(`[${accountId}] Quiubo: not a partner group ${groupId}: ${partnerErr}`);
|
|
13649
13653
|
if (resolvedAgentId) {
|
|
13650
13654
|
try {
|
|
13655
|
+
log?.info?.(`[${accountId}] Quiubo: trying getGroupAgent(${resolvedAgentId}, ${groupId})`);
|
|
13651
13656
|
const status = await client.getGroupAgent(resolvedAgentId, groupId);
|
|
13657
|
+
log?.info?.(`[${accountId}] Quiubo: getGroupAgent result: ${JSON.stringify(status)}`);
|
|
13652
13658
|
if (status) {
|
|
13653
13659
|
return {
|
|
13654
13660
|
enabled: status.enabled,
|
|
@@ -13665,6 +13671,7 @@ var quiuboPlugin = {
|
|
|
13665
13671
|
log?.warn?.(`[${accountId}] Quiubo: directory agent status fetch failed for group ${groupId}: ${dirErr}`);
|
|
13666
13672
|
}
|
|
13667
13673
|
}
|
|
13674
|
+
log?.warn?.(`[${accountId}] Quiubo: cache-miss returned null for group ${groupId} (fail-closed)`);
|
|
13668
13675
|
return null;
|
|
13669
13676
|
}
|
|
13670
13677
|
},
|
|
@@ -13712,12 +13719,14 @@ var quiuboPlugin = {
|
|
|
13712
13719
|
}
|
|
13713
13720
|
});
|
|
13714
13721
|
gateways.set(accountId, gateway);
|
|
13715
|
-
await gateway.start();
|
|
13716
13722
|
try {
|
|
13717
13723
|
if (resolvedAgentId) {
|
|
13724
|
+
log?.info?.(`[${accountId}] Quiubo: calling listAgentGroups for agent ${resolvedAgentId}`);
|
|
13718
13725
|
const { groups: agentGroups } = await client.listAgentGroups(resolvedAgentId);
|
|
13726
|
+
log?.info?.(`[${accountId}] Quiubo: listAgentGroups returned ${agentGroups.length} group(s): ${agentGroups.map((g) => `${g.groupId}(${g.source})`).join(", ")}`);
|
|
13719
13727
|
for (const ag of agentGroups) {
|
|
13720
13728
|
if (ag.source === "directory") {
|
|
13729
|
+
log?.info?.(`[${accountId}] Quiubo: hydrating directory group ${ag.groupId} (${ag.name}) triggerMode=${ag.triggerMode} enabled=${ag.enabled}`);
|
|
13721
13730
|
gateway.setBotConfig(ag.groupId, {
|
|
13722
13731
|
enabled: ag.enabled ?? true,
|
|
13723
13732
|
suppressionMinutes: 10,
|
|
@@ -13785,6 +13794,7 @@ var quiuboPlugin = {
|
|
|
13785
13794
|
} catch (err) {
|
|
13786
13795
|
log?.warn?.(`[${accountId}] Quiubo: failed to hydrate bot config (non-fatal): ${err}`);
|
|
13787
13796
|
}
|
|
13797
|
+
await gateway.start();
|
|
13788
13798
|
log?.info?.(`[${accountId}] Quiubo: gateway started`);
|
|
13789
13799
|
return new Promise((resolve) => {
|
|
13790
13800
|
const cleanup = () => {
|