@ian2018cs/agenthub 0.2.2 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ian2018cs/agenthub",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "A web-based UI for AI Agents",
5
5
  "type": "module",
6
6
  "main": "server/index.js",
@@ -46,9 +46,11 @@ export class LarkClient {
46
46
  async start() {
47
47
  // 获取机器人自身 open_id,用于群聊 @ 检测
48
48
  try {
49
- const botInfo = await this.client.bot.info.get({});
50
- this.botOpenId = botInfo.data?.bot?.open_id || null;
51
- console.log('[Feishu] Bot open_id:', this.botOpenId);
49
+ const resp = await this.client.request({
50
+ method: 'GET',
51
+ url: '/open-apis/bot/v3/info',
52
+ });
53
+ this.botOpenId = resp.bot?.open_id || null;
52
54
  } catch (err) {
53
55
  console.error('[Feishu] Failed to get bot info:', err.message);
54
56
  }