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

@@ -88,6 +88,19 @@ describe('channel credential normalization and duplicate checks', () => {
expect(channels.feishu.accounts['agent-a'].appId).toBe('BoT-XyZ');
});
it('registers the bundled openclaw-lark plugin when saving Feishu config', async () => {
const { saveChannelConfig } = await import('@electron/utils/channel-config');
await saveChannelConfig('feishu', { appId: 'bot-lark', appSecret: 'secret' }, 'agent-a');
const config = await readOpenClawJson();
const plugins = config.plugins as { allow?: string[]; entries?: Record<string, { enabled?: boolean }> };
expect(plugins.allow).toContain('openclaw-lark');
expect(plugins.entries?.['openclaw-lark']?.enabled).toBe(true);
expect(plugins.entries?.feishu?.enabled).toBe(false);
});
it('emits warning logs when credential normalization (trim) occurs', async () => {
const { saveChannelConfig } = await import('@electron/utils/channel-config');