Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
/**
* 用量历史 tab 的可见性。
*
* 与 billingVisibility 刻意不同: 计费页只对个人云账号开放, 而用量历史对**所有已登录身份**
* 开放 (local / cloud personal / cloud org) —— 它读的是本机 daily_model_usage,
* 不涉及账户与账单, 因此不该继承计费页的身份门 (issue #2785 维护者裁决)。
*/
export interface UsageSettingsIdentity {
mode: 'signed-out' | 'local' | 'cloud';
}
export function canAccessUsageSettings(identity: UsageSettingsIdentity): boolean {
return identity.mode !== 'signed-out';
}