@zhin.js/adapter-satori 0.0.21 → 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-satori",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "description": "Zhin.js adapter for Satori protocol",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -41,11 +41,13 @@
41
41
  "@types/node": "^25.6.0",
42
42
  "@types/ws": "^8.18.1",
43
43
  "typescript": "^6.0.3",
44
- "zhin.js": "1.0.72"
44
+ "@zhin.js/cli": "1.0.69",
45
+ "@zhin.js/client": "1.0.18",
46
+ "zhin.js": "1.0.73"
45
47
  },
46
48
  "peerDependencies": {
47
- "zhin.js": "1.0.72",
48
- "@zhin.js/http": "1.0.65"
49
+ "zhin.js": "1.0.73",
50
+ "@zhin.js/http": "1.0.66"
49
51
  },
50
52
  "peerDependenciesMeta": {
51
53
  "@zhin.js/http": {
@@ -53,7 +55,7 @@
53
55
  }
54
56
  },
55
57
  "scripts": {
56
- "build": "tsc && node ../../../scripts/build-console-client-if-present.mjs",
58
+ "build": "zhin build",
57
59
  "clean": "rimraf lib"
58
60
  }
59
61
  }
@@ -2,7 +2,10 @@
2
2
  name: satori
3
3
  platforms:
4
4
  - satori
5
- description: Satori 协议适配器:支持 WebSocket(正向)和 Webhook 两种连接方式,实现 Satori 标准协议的消息收发。
5
+ description: >-
6
+ Satori 协议适配器:支持 WebSocket(正向)和 Webhook 两种连接方式,
7
+ 实现 Satori 标准协议的消息收发。纯消息通道,无额外 AI 工具。
8
+ Satori 是跨平台的统一协议,可对接多种 IM 后端。
6
9
  keywords:
7
10
  - satori
8
11
  - adapter:satori
@@ -10,6 +13,7 @@ keywords:
10
13
  - websocket
11
14
  - webhook
12
15
  - 协议
16
+ - 跨平台
13
17
  tags:
14
18
  - satori
15
19
  - protocol
@@ -17,7 +21,13 @@ tags:
17
21
  tools: []
18
22
  ---
19
23
 
20
- ## 执行规则
24
+ # Satori 协议适配器
21
25
 
22
- - 纯协议适配器,通过 Satori 标准协议收发消息,无额外 AI 工具。
23
- - 支持 WS 正向连接和 Webhook 回调两种模式。
26
+ 纯协议适配器,收发消息。无 AI 工具可调用。
27
+
28
+ ## 连接模式
29
+
30
+ - **WS 正向**:Bot 主动连接 Satori 服务端
31
+ - **Webhook**:Satori 向配置的 URL 推送事件
32
+
33
+ Satori 是跨平台统一协议,可作为中间层对接 QQ、Discord、Telegram 等后端。