mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-28 08:44:41 +08:00
style: format code and apply clippy lint fixes
This commit is contained in:
@@ -8,7 +8,7 @@ export const sessionsApi = {
|
||||
|
||||
async getMessages(
|
||||
providerId: string,
|
||||
sourcePath: string
|
||||
sourcePath: string,
|
||||
): Promise<SessionMessage[]> {
|
||||
return await invoke("get_session_messages", { providerId, sourcePath });
|
||||
},
|
||||
|
||||
@@ -91,11 +91,7 @@ export const skillsApi = {
|
||||
},
|
||||
|
||||
/** 切换 Skill 的应用启用状态 */
|
||||
async toggleApp(
|
||||
id: string,
|
||||
app: AppId,
|
||||
enabled: boolean,
|
||||
): Promise<boolean> {
|
||||
async toggleApp(id: string, app: AppId, enabled: boolean): Promise<boolean> {
|
||||
return await invoke("toggle_skill_app", { id, app, enabled });
|
||||
},
|
||||
|
||||
@@ -133,10 +129,7 @@ export const skillsApi = {
|
||||
},
|
||||
|
||||
/** 卸载技能(兼容旧 API) */
|
||||
async uninstall(
|
||||
directory: string,
|
||||
app: AppId = "claude",
|
||||
): Promise<boolean> {
|
||||
async uninstall(directory: string, app: AppId = "claude"): Promise<boolean> {
|
||||
if (app === "claude") {
|
||||
return await invoke("uninstall_skill", { directory });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user