@meet-im/meet 1.0.5 → 1.0.7

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/package.json +1 -1
  2. package/src/probe.ts +3 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meet-im/meet",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "type": "module",
5
5
  "description": "OpenClaw Meet channel plugin",
6
6
  "scripts": {
package/src/probe.ts CHANGED
@@ -47,16 +47,15 @@ export async function probeMeet(
47
47
  }
48
48
 
49
49
  // 尝试获取一次更新来验证连接
50
- const updates = await bot.getUpdates({ limit: 1, timeout: 1 })
50
+ const updates = await bot.getUpdatesV2({ limit: 1, timeout: 1 })
51
51
 
52
52
  const result: MeetProbeResult = {
53
53
  ok: true,
54
- // 从 token 中提取 bot id (格式: bot_id:secret)
55
54
  botId: account.apiToken?.split(":")[0],
56
55
  }
57
56
 
58
- if (updates && updates.length > 0) {
59
- log(`[${account.accountId}] probe: received ${updates.length} update(s)`)
57
+ if (updates && updates.msgs.length > 0) {
58
+ log(`[${account.accountId}] probe: received ${updates.msgs.length} update(s)`)
60
59
  }
61
60
 
62
61
  probeCache.set(cacheKey, { result, timestamp: Date.now() })