style: format code and apply clippy lint fixes (#941)

This commit is contained in:
Dex Miller
2026-02-06 16:02:57 +08:00
committed by GitHub
parent 92785a8078
commit 95bc0e38df
24 changed files with 135 additions and 127 deletions
+1 -1
View File
@@ -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 });
},
+2 -9
View File
@@ -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 });
}