@core-workspace/infoflow-openclaw-plugin 2026.3.35 → 2026.3.36
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/docs/qa-feature-list.md
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
| `appSecret` | 是 | 应用密钥 |
|
|
41
41
|
| `checkToken` | 是 | Webhook 签名验证 Token |
|
|
42
42
|
| `encodingAESKey` | 是 | 消息 AES 解密密钥 |
|
|
43
|
-
| `apiHost` | 否 | 默认 `http://
|
|
43
|
+
| `apiHost` | 否 | 默认 `http://api.im.baidu.com` |
|
|
44
44
|
|
|
45
45
|
**行为:**
|
|
46
46
|
- 接收如流平台推送的 HTTP 回调请求
|
|
@@ -386,7 +386,7 @@ channels:
|
|
|
386
386
|
appSecret: "xxx"
|
|
387
387
|
checkToken: "xxx" # webhook 模式必填
|
|
388
388
|
encodingAESKey: "xxx" # webhook 模式必填
|
|
389
|
-
apiHost: "http://
|
|
389
|
+
apiHost: "http://api.im.baidu.com"
|
|
390
390
|
connectionMode: "webhook" # "webhook" | "websocket"
|
|
391
391
|
wsGateway: "xxx" # websocket 模式可选
|
|
392
392
|
appAgentId: 123 # 私聊撤回必填
|
package/package.json
CHANGED
|
@@ -23,12 +23,12 @@ Authorization: Bearer-<token> ← 注意是连字符,不是空格
|
|
|
23
23
|
|
|
24
24
|
### 发群消息端点
|
|
25
25
|
```
|
|
26
|
-
POST http://
|
|
26
|
+
POST http://api.im.baidu.com/api/v1/robot/msg/groupmsgsend
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
### 发私聊端点
|
|
30
30
|
```
|
|
31
|
-
POST http://
|
|
31
|
+
POST http://api.im.baidu.com/api/v1/app/message/send
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
### 消息类型
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
### API 端点
|
|
10
10
|
|
|
11
|
-
- **生产环境**: `http://
|
|
11
|
+
- **生产环境**: `http://api.im.baidu.com/api/v1/robot/msg/groupmsgsend`
|
|
12
12
|
- **预发布环境**: `http://xplatform-preonline.dev.weiyun.baidu.com/open-plat/api/devp/v1/robot/msg/groupmsgsend`
|
|
13
13
|
|
|
14
14
|
### 权限要求
|
package/src/channel/accounts.ts
CHANGED
|
@@ -136,7 +136,7 @@ export function resolveInfoflowAccount(params: {
|
|
|
136
136
|
const merged = mergeInfoflowAccountConfig(params.cfg, accountId);
|
|
137
137
|
const accountEnabled = merged.enabled !== false;
|
|
138
138
|
const enabled = baseEnabled && accountEnabled;
|
|
139
|
-
const apiHost = merged.apiHost ?? "http://
|
|
139
|
+
const apiHost = merged.apiHost ?? "http://api.im.baidu.com";
|
|
140
140
|
const checkToken = merged.checkToken ?? "";
|
|
141
141
|
const encodingAESKey = merged.encodingAESKey ?? "";
|
|
142
142
|
const appKey = merged.appKey ?? "";
|
package/src/commands/doctor.ts
CHANGED
|
@@ -139,7 +139,7 @@ async function checkTokenFetch(cfg: OpenClawConfig): Promise<CheckResult[]> {
|
|
|
139
139
|
const adapter = getOrCreateAdapter({
|
|
140
140
|
appKey: account.config.appKey,
|
|
141
141
|
appSecret: account.config.appSecret,
|
|
142
|
-
apiHost: account.config.apiHost ?? "http://
|
|
142
|
+
apiHost: account.config.apiHost ?? "http://api.im.baidu.com",
|
|
143
143
|
});
|
|
144
144
|
const token = await adapter.getToken();
|
|
145
145
|
results.push({
|
|
@@ -60,7 +60,7 @@ export class InfoflowSDKAdapter {
|
|
|
60
60
|
private tokenManager: TokenManager;
|
|
61
61
|
|
|
62
62
|
constructor(params: SDKAdapterParams) {
|
|
63
|
-
// SDK ConfigManager expects pure domain (e.g. "
|
|
63
|
+
// SDK ConfigManager expects pure domain (e.g. "api.im.baidu.com"),
|
|
64
64
|
// but plugin's apiHost is a full URL (e.g. "https://api.im.baidu.com").
|
|
65
65
|
// Extract the host portion.
|
|
66
66
|
const apiUrl = ensureHttps(params.apiHost);
|