Merge branch 'main' into feature/global-proxy

This commit is contained in:
YoVinchen
2026-01-12 09:29:44 +08:00
8 changed files with 351 additions and 1 deletions
+9
View File
@@ -65,6 +65,15 @@ export const providersApi = {
handler(payload);
});
},
/**
* 打开指定提供商的终端
* 任何提供商都可以打开终端,不受是否为当前激活提供商的限制
* 终端会使用该提供商特定的 API 配置,不影响全局设置
*/
async openTerminal(providerId: string, appId: AppId): Promise<boolean> {
return await invoke("open_provider_terminal", { providerId, app: appId });
},
};
// ============================================================================