@rlynicrisis/link 0.1.4 → 0.1.5
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 +0 -52
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,58 +25,6 @@
|
|
|
25
25
|
| `ssoUrl` | `https://www.bingolink.biz:443/sso` |
|
|
26
26
|
| `notificationApiUrl` | `https://notificationapi.bingolink.biz:443/notificationapi` |
|
|
27
27
|
|
|
28
|
-
**必填字段只有 `accessToken`**(群组模式还需额外填写 `groupId` 和 `botToken`)。
|
|
29
|
-
|
|
30
|
-
## 安装与配置
|
|
31
|
-
|
|
32
|
-
### 1. 构建插件
|
|
33
|
-
|
|
34
|
-
在插件根目录下运行:
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
npm install
|
|
38
|
-
npm run build
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
这将生成 `dist` 目录,包含编译后的插件代码。
|
|
42
|
-
|
|
43
|
-
### 2. 配置 OpenClaw
|
|
44
|
-
|
|
45
|
-
在您的 OpenClaw 主配置文件(通常是 `config.yaml` 或 `config.json`)中,添加以下内容:
|
|
46
|
-
|
|
47
|
-
#### 最简配置(FileHelper 模式)
|
|
48
|
-
|
|
49
|
-
```yaml
|
|
50
|
-
channels:
|
|
51
|
-
link:
|
|
52
|
-
# 必填:鉴权 Token
|
|
53
|
-
accessToken: "your_access_token_here"
|
|
54
|
-
|
|
55
|
-
# 以下均可省略,使用默认值:
|
|
56
|
-
# host: "embtcp.bingolink.biz:20081"
|
|
57
|
-
# ssoUrl: "https://www.bingolink.biz:443/sso"
|
|
58
|
-
|
|
59
|
-
# Token 自动刷新(可选,推荐配置)
|
|
60
|
-
# refreshToken: "your_refresh_token_here"
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
#### 完整配置参考
|
|
64
|
-
|
|
65
|
-
```yaml
|
|
66
|
-
channels:
|
|
67
|
-
link:
|
|
68
|
-
host: "embtcp.bingolink.biz:20081" # 消息服务地址,可省略
|
|
69
|
-
accessToken: "your_access_token_here" # 必填
|
|
70
|
-
refreshToken: "your_refresh_token_here" # 可选,用于 Token 自动刷新
|
|
71
|
-
ssoUrl: "https://www.bingolink.biz:443/sso" # 可省略,刷新 Token 时使用
|
|
72
|
-
heartbeatIntervalMs: 30000 # 心跳间隔,默认 30 秒
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
> **注意**:
|
|
76
|
-
> - `userId` 将自动从 `accessToken` (JWT) 中解析。
|
|
77
|
-
> - `deviceUID` 将根据机器特征自动生成。
|
|
78
|
-
> - `host` 支持 `host:port` 格式,默认端口 `20081`。
|
|
79
|
-
|
|
80
28
|
## 接入 OpenClaw
|
|
81
29
|
|
|
82
30
|
### 1. 安装插件
|