@agent-wechat/wechat 0.11.2 → 0.11.4

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.
Files changed (2) hide show
  1. package/dist/index.js +13 -2
  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 (!snapshot.connected) {
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 }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-wechat/wechat",
3
- "version": "0.11.2",
3
+ "version": "0.11.4",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",