mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 02:47:34 +00:00
* refactor: group rate-limit providers under concrete owners * test: preserve mixed Claude account-switch regression * refactor: consolidate Antigravity service contract import
18 lines
708 B
TypeScript
18 lines
708 B
TypeScript
import { ipcMain } from 'electron'
|
|
import {
|
|
clearZcodePlanApiKeyCredential,
|
|
getZcodePlanCredentialsStatus,
|
|
saveZcodePlanApiKeyCredential
|
|
} from '../zcode/zcode-plan-credential-commands'
|
|
import type { RateLimitService } from '../rate-limits/service/rate-limit-service'
|
|
|
|
export function registerZcodePlanCredentialsHandlers(rateLimits: RateLimitService | null): void {
|
|
ipcMain.handle('zcodePlanCredentials:getStatus', () => getZcodePlanCredentialsStatus())
|
|
ipcMain.handle('zcodePlanCredentials:saveApiKey', (_event, key: unknown) =>
|
|
saveZcodePlanApiKeyCredential(rateLimits, key)
|
|
)
|
|
ipcMain.handle('zcodePlanCredentials:clearApiKey', () =>
|
|
clearZcodePlanApiKeyCredential(rateLimits)
|
|
)
|
|
}
|