@zhin.js/adapter-satori 0.0.1 → 0.0.2
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 +3 -1
- package/package.json +8 -5
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# @zhin.js/adapter-satori
|
|
2
2
|
|
|
3
|
-
Zhin.js [Satori](https://satori.chat/zh-CN/introduction.html)
|
|
3
|
+
Zhin.js [Satori](https://satori.chat/zh-CN/introduction.html) **聊天协议**适配器,**一个适配器**支持 WebSocket 正向与 Webhook 两种连接方式,由配置项 `connection` 区分;支持 HTTP API 与 Bearer Token 鉴权。
|
|
4
|
+
|
|
5
|
+
> **勿与本仓库的 `@zhin.js/satori` 混淆**:后者是 [Vercel satori](https://github.com/vercel/satori) 的 **SVG 图片渲染**工具包(`packages/satori`),用于把 HTML/React 画成 SVG,**不是**聊天协议。参见 [@zhin.js/satori README](https://github.com/zhinjs/zhin/tree/master/packages/satori)。
|
|
4
6
|
|
|
5
7
|
## 功能特性
|
|
6
8
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhin.js/adapter-satori",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Zhin.js adapter for Satori protocol",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -12,8 +12,11 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"files": [
|
|
15
|
-
"lib",
|
|
16
15
|
"src",
|
|
16
|
+
"lib",
|
|
17
|
+
"client",
|
|
18
|
+
"dist",
|
|
19
|
+
"skills",
|
|
17
20
|
"README.md"
|
|
18
21
|
],
|
|
19
22
|
"keywords": [
|
|
@@ -35,11 +38,11 @@
|
|
|
35
38
|
"@types/node": "^24.3.0",
|
|
36
39
|
"@types/ws": "^8.18.1",
|
|
37
40
|
"typescript": "^5.3.0",
|
|
38
|
-
"zhin.js": "1.0.
|
|
41
|
+
"zhin.js": "1.0.52"
|
|
39
42
|
},
|
|
40
43
|
"peerDependencies": {
|
|
41
|
-
"zhin.js": "1.0.
|
|
42
|
-
"@zhin.js/http": "1.0.
|
|
44
|
+
"zhin.js": "1.0.52",
|
|
45
|
+
"@zhin.js/http": "1.0.46"
|
|
43
46
|
},
|
|
44
47
|
"peerDependenciesMeta": {
|
|
45
48
|
"@zhin.js/http": {
|