mirror of
https://github.com/stablyai/orca.git
synced 2026-10-31 17:17:38 +00:00
* feat(accounts): link standalone GLM Coding Plans Adapt the reviewed GLM accounts contribution to current main, retain Antigravity behavior, guard late credential results, expose storage protection, and redact quota errors. Co-authored-by: Luchong <lu740528977@gmail.com> * fix(accounts): retain GLM credential results during quota refresh * fix(accounts): make GLM credential editing desktop-only * fix(accounts): mirror the host GLM site in paired clients * fix(accounts): report unknown GLM host details and split web settings tests Apply the independently reviewed Accounts correction from697284a without the v2 adapter commits. Preserve the saved-key store and serialized write behavior. * fix(zcode): ship required GLM account translation entries * chore: record GLM reconciliation hook validation * chore: validate installed GLM commit hooks * test: complete GLM account fixtures and web API inventory --------- Co-authored-by: Luchong <lu740528977@gmail.com>
13 lines
618 B
TypeScript
13 lines
618 B
TypeScript
import { ipcRenderer } from 'electron'
|
|
import type { PreloadApi } from '../api-types'
|
|
import type { ZcodePlanCredentialsStatus } from '../../shared/zcode-plan-sites'
|
|
|
|
export const zcodePlanCredentialsApi = {
|
|
getStatus: (): Promise<ZcodePlanCredentialsStatus> =>
|
|
ipcRenderer.invoke('zcodePlanCredentials:getStatus'),
|
|
saveApiKey: (key: string): Promise<ZcodePlanCredentialsStatus> =>
|
|
ipcRenderer.invoke('zcodePlanCredentials:saveApiKey', key),
|
|
clearApiKey: (): Promise<ZcodePlanCredentialsStatus> =>
|
|
ipcRenderer.invoke('zcodePlanCredentials:clearApiKey')
|
|
} satisfies PreloadApi['zcodePlanCredentials']
|