@zhin.js/adapter-onebot12 0.0.22 → 0.0.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/adapter-onebot12",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "description": "Zhin.js adapter for OneBot 12 protocol",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -42,13 +42,13 @@
42
42
  "@types/node": "^25.6.0",
43
43
  "@types/ws": "^8.18.1",
44
44
  "typescript": "^6.0.3",
45
- "@zhin.js/cli": "1.0.68",
45
+ "@zhin.js/cli": "1.0.69",
46
46
  "@zhin.js/client": "1.0.18",
47
- "zhin.js": "1.0.72"
47
+ "zhin.js": "1.0.73"
48
48
  },
49
49
  "peerDependencies": {
50
- "zhin.js": "1.0.72",
51
- "@zhin.js/http": "1.0.65"
50
+ "zhin.js": "1.0.73",
51
+ "@zhin.js/http": "1.0.66"
52
52
  },
53
53
  "peerDependenciesMeta": {
54
54
  "@zhin.js/http": {
@@ -2,7 +2,10 @@
2
2
  name: onebot12
3
3
  platforms:
4
4
  - onebot12
5
- description: OneBot 12 协议适配器:支持 WebSocket 正向连接、Webhook 回调和反向 WebSocket 三种模式,兼容 OneBot 12 标准。
5
+ description: >-
6
+ OneBot 12 协议适配器:支持 WebSocket 正向连接、Webhook 回调和反向 WebSocket
7
+ 三种连接模式,兼容 OneBot 12 标准协议。纯消息通道,无额外 AI 工具。
8
+ 支持私聊、群聊、频道消息。
6
9
  keywords:
7
10
  - onebot12
8
11
  - onebot
@@ -10,7 +13,6 @@ keywords:
10
13
  - protocol
11
14
  - websocket
12
15
  - webhook
13
- - QQ
14
16
  - 协议
15
17
  tags:
16
18
  - onebot12
@@ -19,8 +21,16 @@ tags:
19
21
  tools: []
20
22
  ---
21
23
 
22
- ## 执行规则
24
+ # OneBot 12 协议适配器
23
25
 
24
- - 纯协议适配器,通过 OneBot 12 标准协议收发消息,无额外 AI 工具。
25
- - 支持 WS 正向、Webhook 回调和反向 WS 三种连接模式。
26
- - 支持私聊、群聊、频道消息。
26
+ 纯协议适配器,收发消息。无 AI 工具可调用。
27
+
28
+ ## 连接模式
29
+
30
+ - **WS 正向**:Bot 主动连接 OneBot 12 服务端
31
+ - **Webhook**:OneBot 12 向配置的 URL 推送事件
32
+ - **WS 反向**:OneBot 12 主动连接 Bot 的 WS 服务端
33
+
34
+ ## 与 OneBot11 的区别
35
+
36
+ OneBot 12 标准化了事件格式、消息段类型和 API 响应结构。如果需要群管理等 AI 工具,使用 OneBot11 适配器。