Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

Merge upstream main and retain WeChat and X channel scopes

Chris7c5d023bfcbd
diff --cc apps/desktop/src/main/im/shared/channelToolScope.ts
index 23b8d0adcb,d027551a71..e460faa2f0
--- a/apps/desktop/src/main/im/shared/channelToolScope.ts
+++ b/apps/desktop/src/main/im/shared/channelToolScope.ts
@@@ -91,7 -91,7 +91,7 @@@ export interface FeishuToolScope
* 「当前在哪个对话、这一轮是不是主人触发」(伙伴技能读写按它授权)。
*/
export interface LaneTurnScope {
- channel: 'wecom' | 'dingtalk' | 'discord' | 'wechat';
- channel: 'wecom' | 'dingtalk' | 'discord' | 'x';
++ channel: 'wecom' | 'dingtalk' | 'discord' | 'wechat' | 'x';
/** 连接的 botContextId。 */
botId: string;
laneUserId: string;
@@@ -105,7 -105,7 +105,7 @@@
export type LaneTurnScopeChannel = LaneTurnScope['channel'];
export function isLaneTurnScopeChannel(channel: string): channel is LaneTurnScopeChannel {
- return channel === 'wecom' || channel === 'dingtalk' || channel === 'discord' || channel === 'wechat';
- return channel === 'wecom' || channel === 'dingtalk' || channel === 'discord' || channel === 'x';
++ return channel === 'wecom' || channel === 'dingtalk' || channel === 'discord' || channel === 'wechat' || channel === 'x';
}
export type ChannelToolScope = TelegramToolScope | FeishuToolScope | LaneTurnScope;