claude-codex-wechat 0.1.45 → 0.1.46
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/dist/server/cli.js +3 -2
- package/package.json +1 -1
package/dist/server/cli.js
CHANGED
|
@@ -5652,13 +5652,14 @@ async function startDaemon(options) {
|
|
|
5652
5652
|
...options.tunnelProvider ? { tunnelProvider: options.tunnelProvider } : {}
|
|
5653
5653
|
});
|
|
5654
5654
|
const relayAuthToken = ensureRelayAuthTokenSync({ configPath });
|
|
5655
|
+
const relayServerUrl = bridgeDefaults.tunnel.relay?.serverUrl ?? "wss://wechat.style520.com/agent";
|
|
5655
5656
|
await persistBridgeDefaultsToConfigFile({
|
|
5656
5657
|
configPath,
|
|
5657
5658
|
defaultProvider: bridgeDefaults.defaultProvider,
|
|
5658
5659
|
defaultWorkspace: bridgeDefaults.defaultWorkspace,
|
|
5659
5660
|
tunnel: {
|
|
5660
5661
|
relay: {
|
|
5661
|
-
serverUrl:
|
|
5662
|
+
serverUrl: relayServerUrl,
|
|
5662
5663
|
authToken: relayAuthToken
|
|
5663
5664
|
}
|
|
5664
5665
|
}
|
|
@@ -5669,7 +5670,7 @@ async function startDaemon(options) {
|
|
|
5669
5670
|
await app.listen({ host, port });
|
|
5670
5671
|
const address = app.server.address();
|
|
5671
5672
|
const actualPort = typeof address === "object" && address ? address.port : port;
|
|
5672
|
-
if (
|
|
5673
|
+
if (relayServerUrl && relayAuthToken) {
|
|
5673
5674
|
void resolvedTunnelProvider?.start().catch((error) => {
|
|
5674
5675
|
console.warn("[relay] \u96A7\u9053\u540E\u53F0\u542F\u52A8\u5931\u8D25\uFF0C\u5C06\u81EA\u52A8\u91CD\u8FDE\uFF1A", error instanceof Error ? error.message : String(error));
|
|
5675
5676
|
});
|