Refine desktop setup and remove bundled app center apps

This commit is contained in:
inman
2026-06-04 09:58:58 +08:00
parent 6153579b90
commit 84128dbe23
73 changed files with 3888 additions and 2024 deletions

View File

@@ -27,6 +27,7 @@ import {
listAgentsSnapshotFromConfig,
} from '../../utils/agent-config';
import {
ensureFeishuPluginInstalled,
ensureWeChatPluginInstalled,
} from '../../utils/plugin-install';
import {
@@ -80,7 +81,7 @@ import type { HostApiContext } from '../context';
import { parseJsonBody, sendJson } from '../route-utils';
const WECHAT_QR_TIMEOUT_MS = 8 * 60 * 1000;
const DISABLED_PLUGIN_CHANNEL_TYPES = new Set(['dingtalk', 'wecom', 'feishu']);
const DISABLED_PLUGIN_CHANNEL_TYPES = new Set(['dingtalk', 'wecom']);
const activeQrLogins = new Map<string, string>();
interface WebLoginStartResult {
@@ -1568,6 +1569,13 @@ export async function handleChannelRoutes(
return true;
}
}
if (storedChannelType === 'feishu') {
const installResult = await ensureFeishuPluginInstalled();
if (!installResult.installed) {
sendJson(res, 500, { success: false, error: installResult.warning || 'Feishu plugin install failed' });
return true;
}
}
const existingValues = await getChannelFormValues(body.channelType, body.accountId);
if (isSameConfigValues(existingValues, body.config)) {
await ensureScopedChannelBinding(body.channelType, body.accountId);