gewe-openclaw 2026.1.29 → 2026.1.30
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 +75 -1
- package/index.ts +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,6 +32,81 @@ openclaw plugins install ./gewe-openclaw.tgz
|
|
|
32
32
|
|
|
33
33
|
> 安装或启用插件后需要重启 Gateway。
|
|
34
34
|
|
|
35
|
+
## 配置
|
|
36
|
+
|
|
37
|
+
插件配置放在 `~/.openclaw/openclaw.json` 的 `channels.gewe`,并确保插件开启:
|
|
38
|
+
|
|
39
|
+
```json5
|
|
40
|
+
{
|
|
41
|
+
"plugins": {
|
|
42
|
+
"entries": {
|
|
43
|
+
"gewe-openclaw": { "enabled": true }
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"channels": {
|
|
47
|
+
"gewe": {
|
|
48
|
+
"enabled": true,
|
|
49
|
+
"apiBaseUrl": "https://www.geweapi.com",
|
|
50
|
+
"token": "<gewe-token>",
|
|
51
|
+
"appId": "<gewe-app-id>",
|
|
52
|
+
"webhookHost": "0.0.0.0",
|
|
53
|
+
"webhookPort": 4399,
|
|
54
|
+
"webhookPath": "/webhook",
|
|
55
|
+
"mediaHost": "0.0.0.0",
|
|
56
|
+
"mediaPort": 4400,
|
|
57
|
+
"mediaPath": "/gewe-media",
|
|
58
|
+
"mediaPublicUrl": "https://your-public-domain/gewe-media",
|
|
59
|
+
"allowFrom": ["wxid_xxx"]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
说明:
|
|
66
|
+
- `webhookHost/webhookPort/webhookPath`:GeWe 回调入口(需公网可达,常配合 FRP)。
|
|
67
|
+
- `mediaPublicUrl`:公网访问地址,供微信拉取媒体。
|
|
68
|
+
- `allowFrom`:允许私聊触发的微信 ID(或在群里走 allowlist 规则)。
|
|
69
|
+
|
|
70
|
+
> 配置变更后需重启 Gateway。
|
|
71
|
+
|
|
72
|
+
## 在 onboarding 列表中显示(可选)
|
|
73
|
+
|
|
74
|
+
OpenClaw 支持外部插件目录(catalog)。放置到以下路径即可被 onboarding 读取:
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
~/.openclaw/plugins/catalog.json
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
示例(只需添加一次):
|
|
81
|
+
|
|
82
|
+
```json
|
|
83
|
+
{
|
|
84
|
+
"entries": [
|
|
85
|
+
{
|
|
86
|
+
"name": "gewe-openclaw",
|
|
87
|
+
"openclaw": {
|
|
88
|
+
"channel": {
|
|
89
|
+
"id": "gewe",
|
|
90
|
+
"label": "GeWe",
|
|
91
|
+
"selectionLabel": "WeChat (GeWe)",
|
|
92
|
+
"detailLabel": "WeChat (GeWe)",
|
|
93
|
+
"docsPath": "/channels/gewe",
|
|
94
|
+
"docsLabel": "gewe",
|
|
95
|
+
"blurb": "WeChat channel via GeWe API and webhook callbacks.",
|
|
96
|
+
"aliases": ["wechat", "wx", "gewe"],
|
|
97
|
+
"order": 72,
|
|
98
|
+
"quickstartAllowFrom": true
|
|
99
|
+
},
|
|
100
|
+
"install": {
|
|
101
|
+
"npmSpec": "gewe-openclaw",
|
|
102
|
+
"defaultChoice": "npm"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
```
|
|
109
|
+
|
|
35
110
|
## 依赖
|
|
36
111
|
|
|
37
112
|
### npm 依赖
|
|
@@ -53,4 +128,3 @@ openclaw plugins install ./gewe-openclaw.tgz
|
|
|
53
128
|
- GeWe API 服务
|
|
54
129
|
- Webhook 回调需要公网可达(可配合 FRP)
|
|
55
130
|
- 媒体对外地址(`mediaPublicUrl`)
|
|
56
|
-
|
package/index.ts
CHANGED
package/openclaw.plugin.json
CHANGED