@43world/43chat-openclaw-plugin 0.1.6 → 0.1.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 +4 -15
- package/index.ts +1 -1
- package/openclaw.plugin.json +2 -2
- package/package.json +2 -2
- package/src/channel.ts +2 -2
package/README.md
CHANGED
|
@@ -22,23 +22,12 @@ openclaw gateway restart
|
|
|
22
22
|
|
|
23
23
|
你可以把下面内容直接复制给openclaw
|
|
24
24
|
```
|
|
25
|
-
openclaw 自动安装 43chat
|
|
26
|
-
|
|
27
|
-
1. 下载 43chat 插件压缩包(推荐使用最新版,以下为 v0.1.4):
|
|
28
|
-
wget https://github.com/bitcomputing/43chat-openclaw-plugin/archive/refs/tags/v0.1.4.zip
|
|
29
|
-
|
|
30
|
-
2. 使用 openclaw 命令行安装插件包(可用文件浏览器或 unzip 解压后,也可直接用 zip 包安装):
|
|
31
|
-
openclaw plugins install 43chat-openclaw-plugin-0.1.4.zip
|
|
32
|
-
或
|
|
33
|
-
unzip 43chat-openclaw-plugin-0.1.4.zip
|
|
34
|
-
cd 43chat-openclaw-plugin-0.1.4
|
|
35
|
-
openclaw plugins install .
|
|
36
|
-
|
|
37
|
-
3. 安装完成后,重启 openclaw gateway:
|
|
38
|
-
openclaw gateway restart
|
|
25
|
+
openclaw 自动安装 43chat 插件:
|
|
26
|
+
openclaw plugins install @43world/43chat-openclaw-plugin
|
|
39
27
|
|
|
28
|
+
openclaw 自动更新插件:
|
|
29
|
+
openclaw plugins update 43chat-openclaw-plugin
|
|
40
30
|
|
|
41
|
-
即可完成 43chat 渠道插件的自动安装。
|
|
42
31
|
```
|
|
43
32
|
## 配置
|
|
44
33
|
默认安装好会自动读取注册43chat时保存的~/.config/43chat/credentials.json这个文件内的api_key配置
|
package/index.ts
CHANGED
|
@@ -8,7 +8,7 @@ export { sendMessage43Chat } from "./src/send.js";
|
|
|
8
8
|
export { chat43Plugin } from "./src/channel.js";
|
|
9
9
|
|
|
10
10
|
const plugin = {
|
|
11
|
-
id:
|
|
11
|
+
id: packageJson.openclaw.channel.id,
|
|
12
12
|
name: "43Chat",
|
|
13
13
|
version: packageJson.version,
|
|
14
14
|
description: "43Chat OpenAPI + SSE channel plugin",
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@43world/43chat-openclaw-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "43World: 43Chat OpenClaw channel plugin",
|
|
6
6
|
"scripts": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"./index.ts"
|
|
24
24
|
],
|
|
25
25
|
"channel": {
|
|
26
|
-
"id": "43chat",
|
|
26
|
+
"id": "43chat-openclaw-plugin",
|
|
27
27
|
"label": "43Chat",
|
|
28
28
|
"selectionLabel": "43Chat",
|
|
29
29
|
"docsPath": "/channels/43chat",
|
package/src/channel.ts
CHANGED
|
@@ -15,7 +15,7 @@ const DEFAULT_ACCOUNT_ID = "default";
|
|
|
15
15
|
const PAIRING_APPROVED_MESSAGE = "✓ You have been approved to chat with this agent.";
|
|
16
16
|
|
|
17
17
|
const meta = {
|
|
18
|
-
id:
|
|
18
|
+
id: packageJson.openclaw.channel.id,
|
|
19
19
|
label: "43Chat",
|
|
20
20
|
selectionLabel: "43Chat",
|
|
21
21
|
docsPath: "/channels/43chat",
|
|
@@ -26,7 +26,7 @@ const meta = {
|
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
export const chat43Plugin: ChannelPlugin<Resolved43ChatAccount> = {
|
|
29
|
-
id:
|
|
29
|
+
id: packageJson.openclaw.channel.id,
|
|
30
30
|
meta,
|
|
31
31
|
|
|
32
32
|
pairing: {
|