Skip to content

Commit cbabda7

Browse files
CodeCasterXclaude
andcommitted
docs(server): trim Feishu bridge guide
Remove reviewer-facing verification steps from the user guide. Drop the extra bot P2P entered event note. Co-Authored-By: Codex <noreply@openai.com> Co-Authored-By: Claude <noreply@anthropic.com>
1 parent e4e5d53 commit cbabda7

2 files changed

Lines changed: 0 additions & 98 deletions

File tree

docs/en/feishu-bridge.md

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ The local `ai server` daemon can host IM adapters. The Feishu adapter connects t
1010
2. Enable the Bot capability and add the bot to the test chat.
1111
3. Under Events & callbacks, choose long connection mode and subscribe to `im.message.receive_v1`.
1212

13-
The adapter only handles `im.message.receive_v1`. Events such as `im.chat.access_event.bot_p2p_chat_entered_v1` prove that the long connection is alive, but they do not trigger `/ping`.
14-
1513
## Permissions
1614

1715
Use the narrowest set that matches the chat types you want to test:
@@ -44,53 +42,6 @@ Put the app credentials in `.agents/server.local.json`. This file is git-ignored
4442

4543
`appId` must match `cli_[0-9a-fA-F]{16}`. The daemon fails fast if `appId` or `appSecret` is missing.
4644

47-
## Verify
48-
49-
Build and run the current checkout when validating unpublished changes:
50-
51-
```bash
52-
npm run build
53-
node dist/bin/cli.js server start
54-
node dist/bin/cli.js server status
55-
```
56-
57-
Watch the latest server log:
58-
59-
```bash
60-
latest_log=$(find ~/.agent-infra/logs -name server.log -exec ls -t {} + | head -1)
61-
tail -f "$latest_log"
62-
```
63-
64-
Send a non-command first to confirm that message events reach the daemon:
65-
66-
```text
67-
/hello
68-
```
69-
70-
The log should show an unknown command. Then send:
71-
72-
```text
73-
/ping
74-
```
75-
76-
In a group chat, mention the bot:
77-
78-
```text
79-
@bot /ping
80-
```
81-
82-
The bot should reply:
83-
84-
```text
85-
pong v<VERSION>
86-
```
87-
88-
Stop the daemon when done:
89-
90-
```bash
91-
node dist/bin/cli.js server stop
92-
```
93-
9445
## References
9546

9647
- [Feishu long connection event subscription](https://open.feishu.cn/document/server-docs/event-subscription-guide/event-subscription-configure-/request-url-configuration-case?lang=en-US)

docs/zh-CN/feishu-bridge.md

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
2. 启用机器人能力,并把机器人加入测试会话。
1111
3. 在事件与回调中选择长连接模式,并订阅 `im.message.receive_v1`
1212

13-
当前 adapter 只处理 `im.message.receive_v1``im.chat.access_event.bot_p2p_chat_entered_v1` 这类事件只能说明长连接可用,不会触发 `/ping`
14-
1513
## 权限
1614

1715
按要验证的会话类型使用最小权限:
@@ -44,53 +42,6 @@
4442

4543
`appId` 必须符合 `cli_[0-9a-fA-F]{16}`。如果缺少 `appId``appSecret`,daemon 会 fail fast。
4644

47-
## 验证
48-
49-
验证尚未发布的当前 checkout 时,直接构建并运行本地构建产物:
50-
51-
```bash
52-
npm run build
53-
node dist/bin/cli.js server start
54-
node dist/bin/cli.js server status
55-
```
56-
57-
查看最新 server 日志:
58-
59-
```bash
60-
latest_log=$(find ~/.agent-infra/logs -name server.log -exec ls -t {} + | head -1)
61-
tail -f "$latest_log"
62-
```
63-
64-
先发送一个非命令消息,确认消息事件已进入 daemon:
65-
66-
```text
67-
/hello
68-
```
69-
70-
日志中应出现 unknown command。然后发送:
71-
72-
```text
73-
/ping
74-
```
75-
76-
群聊中需要 @ 机器人:
77-
78-
```text
79-
@机器人 /ping
80-
```
81-
82-
预期机器人回复:
83-
84-
```text
85-
pong v<VERSION>
86-
```
87-
88-
验证完成后停止 daemon:
89-
90-
```bash
91-
node dist/bin/cli.js server stop
92-
```
93-
9445
## 参考
9546

9647
- [飞书长连接事件订阅](https://open.feishu.cn/document/server-docs/event-subscription-guide/event-subscription-configure-/request-url-configuration-case?lang=zh-CN)

0 commit comments

Comments
 (0)