@xmoxmo/bncr 0.0.6 → 0.0.8
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 +28 -6
- package/index.ts +6 -6
- package/package.json +4 -1
- package/src/channel.ts +2612 -2521
- package/src/core/status.ts +1 -1
- package/src/core/targets.ts +1 -1
- package/src/messaging/inbound/commands.ts +3 -3
- package/src/messaging/inbound/dispatch.ts +4 -4
- package/src/messaging/inbound/gate.ts +3 -3
- package/src/messaging/inbound/parse.ts +3 -3
- package/src/messaging/outbound/media.ts +12 -0
- package/src/messaging/outbound/send.ts +5 -1
package/README.md
CHANGED
|
@@ -27,6 +27,14 @@ openclaw plugins enable bncr
|
|
|
27
27
|
openclaw gateway restart
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
+
### 升级插件
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
openclaw plugins update @xmoxmo/bncr
|
|
34
|
+
openclaw gateway restart
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
|
|
30
38
|
### Bncr / 无界侧
|
|
31
39
|
|
|
32
40
|
安装:
|
|
@@ -37,7 +45,20 @@ openclaw gateway restart
|
|
|
37
45
|
|
|
38
46
|
---
|
|
39
47
|
|
|
40
|
-
## 3.
|
|
48
|
+
## 3. 客户端接入流程(最简)
|
|
49
|
+
|
|
50
|
+
1. 在客户端插件配置中,将 **OpenClaw Token** 填写为 **gateway token**,并正确填写 host / port / ssl 后启用插件。
|
|
51
|
+
2. 启动(或重启)bncr 客户端后,在 OpenClaw 侧执行:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
openclaw devices approve --latest
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
完成后,客户端会使用自己的身份并自动保存后续授权。
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## 4. 当前能力
|
|
41
62
|
|
|
42
63
|
- 文本
|
|
43
64
|
- 图片
|
|
@@ -54,7 +75,7 @@ openclaw gateway restart
|
|
|
54
75
|
|
|
55
76
|
---
|
|
56
77
|
|
|
57
|
-
##
|
|
78
|
+
## 5. 架构定位
|
|
58
79
|
|
|
59
80
|
bncr 当前采用两层模型:
|
|
60
81
|
|
|
@@ -77,7 +98,7 @@ plugins/bncr/src/
|
|
|
77
98
|
|
|
78
99
|
---
|
|
79
100
|
|
|
80
|
-
##
|
|
101
|
+
## 6. 配置项总览
|
|
81
102
|
|
|
82
103
|
当前主要配置字段:
|
|
83
104
|
|
|
@@ -98,7 +119,7 @@ plugins/bncr/src/
|
|
|
98
119
|
|
|
99
120
|
---
|
|
100
121
|
|
|
101
|
-
##
|
|
122
|
+
## 7. 状态与诊断
|
|
102
123
|
|
|
103
124
|
常用检查:
|
|
104
125
|
|
|
@@ -116,7 +137,7 @@ openclaw health --json
|
|
|
116
137
|
|
|
117
138
|
---
|
|
118
139
|
|
|
119
|
-
##
|
|
140
|
+
## 8. 自检与测试
|
|
120
141
|
|
|
121
142
|
```bash
|
|
122
143
|
cd plugins/bncr
|
|
@@ -133,11 +154,12 @@ npm pack
|
|
|
133
154
|
|
|
134
155
|
---
|
|
135
156
|
|
|
136
|
-
##
|
|
157
|
+
## 9. 上线前检查
|
|
137
158
|
|
|
138
159
|
上线前建议至少确认:
|
|
139
160
|
|
|
140
161
|
- README 与当前实现一致
|
|
162
|
+
- **隐私清理**:测试/示例/日志中的 scope、ID、账号等做去标识化(必要时用占位值)
|
|
141
163
|
- 配置 schema 与实际字段一致
|
|
142
164
|
- 测试通过
|
|
143
165
|
- 自检通过
|
package/index.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "openclaw/plugin-sdk";
|
|
5
|
-
import { BncrConfigSchema } from "./src/core/config-schema.
|
|
6
|
-
import { createBncrBridge, createBncrChannelPlugin } from "./src/channel.
|
|
1
|
+
import type {
|
|
2
|
+
OpenClawPluginApi,
|
|
3
|
+
GatewayRequestHandlerOptions,
|
|
4
|
+
} from "openclaw/plugin-sdk/core";
|
|
5
|
+
import { BncrConfigSchema } from "./src/core/config-schema.ts";
|
|
6
|
+
import { createBncrBridge, createBncrChannelPlugin } from "./src/channel.ts";
|
|
7
7
|
|
|
8
8
|
type BridgeSingleton = ReturnType<typeof createBncrBridge>;
|
|
9
9
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xmoxmo/bncr",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,6 +27,9 @@
|
|
|
27
27
|
"selfcheck": "node ./scripts/selfcheck.mjs",
|
|
28
28
|
"test": "node --import ./tests/register-ts-hooks.mjs --test ./tests/*.test.mjs"
|
|
29
29
|
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"openclaw": "2026.3.23-1"
|
|
32
|
+
},
|
|
30
33
|
"openclaw": {
|
|
31
34
|
"extensions": [
|
|
32
35
|
"./index.ts"
|