fix(profiles): use camelCase keys for current profile ids in frontend

This commit is contained in:
Jason
2026-07-04 23:23:25 +08:00
parent 754af2cc31
commit 22159430c6
2 changed files with 18 additions and 3 deletions
+10 -2
View File
@@ -38,8 +38,16 @@ export interface Profile {
updatedAt?: number;
}
/** 每个分组当前激活的项目 id(未使用项目时为 null) */
export type CurrentProfileIds = Record<ProfileScope, string | null>;
/** 每个分组当前激活的项目 id(未使用项目时为 null)
*
* 注意:JSON key 是 camelCaseclaudeDesktop),与 ProfileScope 的 kebab-case
* 字符串不同——后者用于命令参数,前者用于响应字段。
*/
export interface CurrentProfileIds {
claude: string | null;
claudeDesktop: string | null;
codex: string | null;
}
export interface ProfilesResponse {
profiles: Profile[];