feat: add Tencent WeChat channel plugin and update related configurations

- Added the Tencent WeChat channel plugin (`@tencent-weixin/openclaw-weixin`) to the project dependencies.
- Updated the `pnpm-lock.yaml` to include the new plugin version.
- Enhanced the README files to document the WeChat integration process.
- Implemented QR code login functionality for WeChat in the channel management system.
- Updated UI components to support WeChat channel configuration and display.
- Added localization support for WeChat connection messages in English, Japanese, and Chinese.
This commit is contained in:
Haze
2026-03-22 16:20:41 +08:00
parent f16e8062e1
commit 2ab0e7c386
31 changed files with 1602 additions and 152 deletions

View File

@@ -5,6 +5,7 @@ import { deleteAgentChannelAccounts, listConfiguredChannels, readOpenClawConfig,
import { withConfigLock } from './config-mutex';
import { expandPath, getOpenClawConfigDir } from './paths';
import * as logger from './logger';
import { toUiChannelType } from './channel-alias';
const MAIN_AGENT_ID = 'main';
const MAIN_AGENT_NAME = 'Main Agent';
@@ -493,14 +494,16 @@ async function buildSnapshotFromConfig(config: AgentConfigDocument): Promise<Age
workspace: entry.workspace || (entry.id === MAIN_AGENT_ID ? getDefaultWorkspacePath(config) : `~/.openclaw/workspace-${entry.id}`),
agentDir: entry.agentDir || getDefaultAgentDirPath(entry.id),
mainSessionKey: buildAgentMainSessionKey(config, entry.id),
channelTypes: configuredChannels.filter((ct) => ownedChannels.has(ct)),
channelTypes: configuredChannels
.filter((ct) => ownedChannels.has(ct))
.map((channelType) => toUiChannelType(channelType)),
};
});
return {
agents,
defaultAgentId,
configuredChannelTypes: configuredChannels,
configuredChannelTypes: configuredChannels.map((channelType) => toUiChannelType(channelType)),
channelOwners,
channelAccountOwners,
};