claude-codex-wechat 0.1.13 → 0.1.15
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 +29 -0
- package/config.example.json +8 -0
- package/dist/server/cli.js +467 -76
- package/dist/web/assets/index-DBTko96w.js +10 -0
- package/dist/web/index.html +1 -1
- package/package.json +5 -1
- package/dist/web/assets/index-BW-_vdVB.js +0 -10
package/README.md
CHANGED
|
@@ -171,6 +171,35 @@ claude-codex-wechat init
|
|
|
171
171
|
}
|
|
172
172
|
```
|
|
173
173
|
|
|
174
|
+
如果要接入自建 `relay-server`,可在同一份配置里增加:
|
|
175
|
+
|
|
176
|
+
```json
|
|
177
|
+
{
|
|
178
|
+
"tunnel": {
|
|
179
|
+
"provider": "relay",
|
|
180
|
+
"enabled": true,
|
|
181
|
+
"relay": {
|
|
182
|
+
"serverUrl": "wss://relay.style520.com/agent",
|
|
183
|
+
"authToken": "replace-with-relay-auth-token"
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
说明:
|
|
190
|
+
|
|
191
|
+
- `relay-server` 可作为独立服务部署
|
|
192
|
+
- 当前 bridge 只需要配置 `serverUrl` 与 `authToken`
|
|
193
|
+
- 当前本地开发公网链路默认走 `relay-server`
|
|
194
|
+
- 启用后,bridge 连接 relay-server 时会获得一个随机公网访问路径
|
|
195
|
+
- 典型地址形如:`https://wechat.style520.com/sjdfh2xxx`
|
|
196
|
+
|
|
197
|
+
开发备注:
|
|
198
|
+
|
|
199
|
+
- 前端侧“接入码”主实现位于 [src/web/accessCode.ts](./src/web/accessCode.ts)
|
|
200
|
+
- [src/web/activationCode.ts](./src/web/activationCode.ts) 仅保留为兼容 re-export,新的实现不要继续写入该文件
|
|
201
|
+
- 迁移剩余兼容项与对应测试证据见 [docs/2026-06-28-access-code-migration-notes.md](./docs/2026-06-28-access-code-migration-notes.md)
|
|
202
|
+
|
|
174
203
|
环境变量:
|
|
175
204
|
|
|
176
205
|
- `BRIDGE_PORT`
|
package/config.example.json
CHANGED
|
@@ -14,5 +14,13 @@
|
|
|
14
14
|
"codex": {
|
|
15
15
|
"command": "/opt/homebrew/bin/codex"
|
|
16
16
|
}
|
|
17
|
+
},
|
|
18
|
+
"tunnel": {
|
|
19
|
+
"provider": "relay",
|
|
20
|
+
"enabled": false,
|
|
21
|
+
"relay": {
|
|
22
|
+
"serverUrl": "wss://wechat.style520.com/agent",
|
|
23
|
+
"authToken": "replace-with-relay-auth-token"
|
|
24
|
+
}
|
|
17
25
|
}
|
|
18
26
|
}
|