Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
/**
* Shared Settings tab definitions — single source of truth for tab IDs and their i18n keys.
*
* Used by SettingsView (sidebar labels) and HelpThreadView ("Open X tab" button label).
*
* `ghosts` is a real Settings tab that embeds the same plugin catalog as `/plugins`.
* Legacy `api-keys` / `connections` ids stay on the type for old deep links.
*/
export type SettingsTab =
| 'general'
| 'appearance'
| 'billing'
| 'usage'
| 'personalization'
| 'providers'
| 'api-keys'
| 'voice-input'
| 'shortcuts'
| 'agent-island'
| 'import'
| 'connections'
| 'remote-control'
| 'shared-tasks'
| 'tina'
| 'ghosts'
| 'builtin-tools'
| 'pi-extensions'
| 'computer-use'
| 'cindy-make'
| 'im-bot'
| 'help'
| 'about'
| 'storage';
export const TAB_IDS = [
'general',
// 「外观」从通用页拆出的独立分区:主题、壁纸、字体、侧边栏样式与回复动效。
// 旧「通用」「个性化」里的外观深链由 SettingsView 重定向到这里。
'appearance',
'personalization',
'providers',
'billing',
// 「用量历史」紧随计费:两者都回答"我用了多少",但分工明确 —— billing 管账单与账户
// 信息,usage 只统计本机 Cindy 内产生的 token 消耗(#2785 维护者裁决)。
'usage',
// 「工具密钥」(api-keys)已于 2026-07-13 下架:面板里最后一把 mivo key 随
// XD Mivo 意识化改由意识设置页收单(官方别名映射同一存储键)。id 仍留在
// SettingsTab 类型与 TAB_LABEL_KEY 保留,供旧深链重定向到插件分区。
'voice-input',
// IM 机器人紧随语音输入(Lizi 2026-07-15 拍板)。
'im-bot',
'shortcuts',
'agent-island',
'import',
// 「第三方平台」(connections)已于 2026-07-15 下架:Slack 官方 MCP 随 cindy-slack
// 意识化收尾(Google/Jira/GitHub/GitLab 此前已迁意识)。id 仍留在 SettingsTab
// 类型与 TAB_LABEL_KEY 保留,供旧深链重定向到插件分区。
'remote-control',
'shared-tasks',
'ghosts',
'builtin-tools',
'computer-use',
'storage',
'help',
'about',
] as const satisfies ReadonlyArray<SettingsTab>;
export type VisibleSettingsTab = (typeof TAB_IDS)[number];
export const TAB_LABEL_KEY: Record<SettingsTab, string> = {
general: 'settings.tabs.general',
appearance: 'settings.tabs.appearance',
billing: 'settings.tabs.billing',
usage: 'settings.tabs.usage',
personalization: 'settings.tabs.personalization',
'api-keys': 'settings.tabs.apiKeys',
'voice-input': 'settings.tabs.voiceInput',
shortcuts: 'settings.tabs.shortcuts',
'agent-island': 'settings.tabs.agentIsland',
import: 'settings.tabs.import',
connections: 'settings.tabs.connections',
providers: 'settings.tabs.providers',
'remote-control': 'settings.tabs.remoteControl',
'shared-tasks': 'sharedTask.title',
tina: 'settings.tabs.tina',
ghosts: 'settings.tabs.ghosts',
'builtin-tools': 'settings.tabs.builtinTools',
'pi-extensions': 'settings.tabs.piExtensions',
'computer-use': 'settings.tabs.computerUse',
'cindy-make': 'settings.tabs.cindyMake',
'im-bot': 'settings.tabs.imBot',
help: 'settings.tabs.help',
about: 'settings.tabs.about',
storage: 'settings.tabs.storage',
};
// 只校验当前「可见/可路由」的 tab(即 TAB_IDS 里的项)。注意 `tina` 与
// `pi-extensions` 仍保留在 SettingsTab 类型与 TAB_LABEL_KEY 中,分别供旧深链
// 重定向和通用页内嵌管理面板复用;二者都不是独立可停靠的一级 tab。
export function isSettingsTab(value: string | null): value is SettingsTab {
return value !== null && (TAB_IDS as ReadonlyArray<string>).includes(value);
}