@agent-wechat/wechat 0.11.2 → 0.11.3
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 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6815,7 +6815,7 @@ var wechatOnboardingAdapter = {
|
|
|
6815
6815
|
function collectWeChatStatusIssues(accounts) {
|
|
6816
6816
|
const issues = [];
|
|
6817
6817
|
for (const snapshot of accounts) {
|
|
6818
|
-
if (
|
|
6818
|
+
if (snapshot.connected === false) {
|
|
6819
6819
|
issues.push({
|
|
6820
6820
|
channel: "wechat",
|
|
6821
6821
|
accountId: snapshot.accountId,
|
|
@@ -7341,7 +7341,18 @@ Error: ${event.message}`);
|
|
|
7341
7341
|
},
|
|
7342
7342
|
// ---- Status adapter ----
|
|
7343
7343
|
status: {
|
|
7344
|
-
collectStatusIssues: collectWeChatStatusIssues
|
|
7344
|
+
collectStatusIssues: collectWeChatStatusIssues,
|
|
7345
|
+
buildAccountSnapshot: ({ account, runtime: runtime2 }) => {
|
|
7346
|
+
const configured = Boolean(account?.serverUrl?.trim());
|
|
7347
|
+
return {
|
|
7348
|
+
accountId: account?.accountId ?? "default",
|
|
7349
|
+
enabled: account?.enabled ?? false,
|
|
7350
|
+
configured,
|
|
7351
|
+
running: runtime2?.running ?? false,
|
|
7352
|
+
connected: runtime2?.connected ?? false,
|
|
7353
|
+
linked: runtime2?.linked ?? false
|
|
7354
|
+
};
|
|
7355
|
+
}
|
|
7345
7356
|
},
|
|
7346
7357
|
// ---- Agent tools adapter ----
|
|
7347
7358
|
agentTools: (({ cfg }) => {
|