Files
orca/src/shared/account-runtime-capabilities.ts
T
Brennan Benson 92590de7ea Allow Gemini Enterprise sign-in for Antigravity Chat (#38737)
* Support Gemini Enterprise authentication for Antigravity Chat

* Keep Antigravity account settings current across clients

* Type the mutable account snapshot fixture

* Keep account settings readable during Antigravity sign-in

* Use standard account form controls and localized placeholders

* Refresh Antigravity account settings after host reconnect

* Annotate the account form fixture without a cast

* Keep Antigravity auth settings at the ACP boundary

* Exercise host settings in the Enterprise sign-in regression

* Save visible Antigravity account settings before sign-in

* Remove obsolete account Apply copy and correct renderer test types

* Put Antigravity sign-in choices before the action

* Keep unchanged account fields editable on blur

* Preserve Antigravity sign-in status beside account choices

* Fix sign-in status predicate type narrowing

* Reject unconfirmed Antigravity account settings

* Show a shared Antigravity account failure once

* Type the Antigravity publication candidate

* Pair Antigravity settings failures with meaningful recovery

* Register account failure copy and refresh the schema catalog

* Keep the latest Antigravity save outcome ahead of delayed reads

* Type the retained account normalization fixture directly

* Keep RPC recovery coverage within its project boundary

* Keep Antigravity settings recovery in the Sign in action

* Keep unavailable Antigravity choices out of the recovery form

* Keep Antigravity settings reads stable across renders

* Retain the ACP task fixture deletion option type

* Hide unavailable Antigravity sign-in choices after a load failure
2026-11-06 14:36:37 -08:00

28 lines
1.6 KiB
TypeScript

export const CODEX_RESET_CREDIT_RUNTIME_CAPABILITY = 'accounts.codex-reset-credit.v1' as const
export const ACCOUNT_IMPORT_RUNTIME_CAPABILITY = 'accounts.import-host-credentials.v1' as const
// Why: `orca account add claude` signs in to an account folder the host creates first.
export const CLAUDE_SIGN_IN_RUNTIME_CAPABILITY = 'accounts.claude-sign-in.v1' as const
export const ANTIGRAVITY_ACCOUNTS_RUNTIME_CAPABILITY = 'accounts.antigravity-native.v1' as const
// Why separate: a host that serves the terminal accounts may predate the chat sign-in's methods.
export const ANTIGRAVITY_CHAT_SIGN_IN_RUNTIME_CAPABILITY =
'accounts.antigravity-chat-sign-in.v1' as const
export const ANTIGRAVITY_CHAT_AUTH_CONFIG_RUNTIME_CAPABILITY =
'accounts.antigravity-chat-auth-config.v1' as const
export const DATA_ACCOUNT_RUNTIME_CAPABILITY = 'accounts.managed-data-profiles.v1' as const
// Why: MiniMax and GLM Coding Plan keys saved on the host its usage poller reads.
export const USAGE_CREDENTIALS_RUNTIME_CAPABILITY = 'accounts.usage-credentials.v1' as const
// Why: a paired client adds a Claude/Codex account whose login runs on this host (#20009).
export const HOST_ACCOUNT_SIGN_IN_RUNTIME_CAPABILITY = 'accounts.host-sign-in.v1' as const
export const ACCOUNT_RUNTIME_CAPABILITIES = [
ACCOUNT_IMPORT_RUNTIME_CAPABILITY,
CLAUDE_SIGN_IN_RUNTIME_CAPABILITY,
ANTIGRAVITY_ACCOUNTS_RUNTIME_CAPABILITY,
ANTIGRAVITY_CHAT_SIGN_IN_RUNTIME_CAPABILITY,
ANTIGRAVITY_CHAT_AUTH_CONFIG_RUNTIME_CAPABILITY,
DATA_ACCOUNT_RUNTIME_CAPABILITY,
CODEX_RESET_CREDIT_RUNTIME_CAPABILITY,
USAGE_CREDENTIALS_RUNTIME_CAPABILITY,
HOST_ACCOUNT_SIGN_IN_RUNTIME_CAPABILITY
] as const