Merge pull request #2628 from QwenLM/feat/channels-telegram

feat(channels): add extensible Channels platform with plugin system and Telegram/WeChat/DingTalk channels
This commit is contained in:
tanzhenxin 2026-04-01 16:19:08 +08:00 committed by GitHub
commit b2f04418fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
97 changed files with 9624 additions and 19 deletions

View file

@ -51,6 +51,7 @@ import { getCliVersion } from '../utils/version.js';
import { loadSandboxConfig } from './sandboxConfig.js';
import { appEvents } from '../utils/events.js';
import { mcpCommand } from '../commands/mcp.js';
import { channelCommand } from '../commands/channel.js';
// UUID v4 regex pattern for validation
const SESSION_ID_REGEX =
@ -583,7 +584,9 @@ export async function parseArguments(): Promise<CliArgs> {
// Register Auth subcommands
.command(authCommand)
// Register Hooks subcommands
.command(hooksCommand);
.command(hooksCommand)
// Register Channel subcommands
.command(channelCommand);
yargsInstance
.version(await getCliVersion()) // This will enable the --version flag based on package.json
@ -604,7 +607,8 @@ export async function parseArguments(): Promise<CliArgs> {
result._.length > 0 &&
(result._[0] === 'mcp' ||
result._[0] === 'extensions' ||
result._[0] === 'hooks')
result._[0] === 'hooks' ||
result._[0] === 'channel')
) {
// MCP/Extensions/Hooks commands handle their own execution and process exit
process.exit(0);