@searchfe/openclaw-baiduapp 0.1.7-beta.2 → 0.1.7-beta.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/README.md +3 -3
- package/dist/index.d.ts +7 -0
- package/dist/index.js +421 -198
- package/dist/index.js.map +1 -1
- package/openclaw.plugin.json +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
| 私聊 | ✅ |
|
|
12
12
|
| Webhook 回调 | ✅ |
|
|
13
13
|
|
|
14
|
-
>
|
|
14
|
+
> 当前仅处理文本消息。图片、语音、文件等非文本类型不会被作为可处理消息派发。
|
|
15
15
|
|
|
16
16
|
## 前置条件
|
|
17
17
|
|
|
@@ -95,8 +95,8 @@ openclaw gateway restart
|
|
|
95
95
|
## 步骤五:验证配置
|
|
96
96
|
|
|
97
97
|
1. 在百度平台配置 Webhook 回调地址,指向你的 OpenClaw Gateway
|
|
98
|
-
2.
|
|
99
|
-
3. 查看 OpenClaw
|
|
98
|
+
2. 平台验证通过后,发送一条测试文本消息
|
|
99
|
+
3. 查看 OpenClaw 日志,确认 webhook 接收生效
|
|
100
100
|
|
|
101
101
|
## 常见问题
|
|
102
102
|
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { IncomingMessage, ServerResponse } from 'http';
|
|
|
3
3
|
interface BaiduAppAccountConfig {
|
|
4
4
|
name?: string;
|
|
5
5
|
enabled?: boolean;
|
|
6
|
+
pollingEnabled?: boolean;
|
|
6
7
|
webhookPath?: string;
|
|
7
8
|
token?: string;
|
|
8
9
|
encodingAESKey?: string;
|
|
@@ -114,6 +115,9 @@ declare const baiduAppPlugin: {
|
|
|
114
115
|
enabled: {
|
|
115
116
|
type: string;
|
|
116
117
|
};
|
|
118
|
+
pollingEnabled: {
|
|
119
|
+
type: string;
|
|
120
|
+
};
|
|
117
121
|
webhookPath: {
|
|
118
122
|
type: string;
|
|
119
123
|
};
|
|
@@ -150,6 +154,9 @@ declare const baiduAppPlugin: {
|
|
|
150
154
|
enabled: {
|
|
151
155
|
type: string;
|
|
152
156
|
};
|
|
157
|
+
pollingEnabled: {
|
|
158
|
+
type: string;
|
|
159
|
+
};
|
|
153
160
|
webhookPath: {
|
|
154
161
|
type: string;
|
|
155
162
|
};
|