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。

623 B
Raw Blame
/** 「IM 机器人」官方分栏的可见性。个人机器人在所有构建与账号中均可配置。 */

import type { CindyRegion } from '@cindy/maker-shared/brand-identity';

/** 设置搜索仍使用完整身份快照;官方分栏只取登录模式。 */
export interface ImBotIdentity {
  region: CindyRegion;
  mode: 'signed-out' | 'local' | 'cloud';
  membershipKind: 'personal' | 'org' | null;
}

/** 本地模式不提供官方分栏;未登录时仍可看到入口和登录引导。 */
export function showCindyGroup(identity: Pick<ImBotIdentity, 'mode'>): boolean {
  return identity.mode !== 'local';
}