* feat(oca): add Oracle Code Assist provider; auth, models, settings - Implement OCA API handler (src/core/api/providers/oca.ts) - OpenAI-compatible chat.completions with custom fetch injecting OCA headers - Optional reasoning (thinking) budget and ephemeral prompt caching - LiteLLM session tracking and usage streaming; cost via /spend/calculate - Guarded client init; clear error when OCA access token is missing - Wire provider into core API and controller - Register provider (src/core/api/index.ts) - Controller flows for OCA account login/logout and auth status subscription - refreshOcaModels command and model config plumbing - Add protobuf surfaces - proto/cline/models.proto and proto/cline/ocaAccount.proto - Extend proto/cline/state.proto for settings/state - Persist settings/state and helpers - Update StateManager, state-keys, state-helpers, updateSettings - Misc - Add changeset entry - Minor .gitignore and commit-message generator tweak feat: New redirect server feat(oca): add Oracle Code Assist provider; auth, models, settings - Implement OCA API handler (src/core/api/providers/oca.ts) - OpenAI-compatible chat.completions with custom fetch injecting OCA headers - Optional reasoning (thinking) budget and ephemeral prompt caching - LiteLLM session tracking and usage streaming; cost via /spend/calculate - Guarded client init; clear error when OCA access token is missing - Wire provider into core API and controller - Register provider (src/core/api/index.ts) - Controller flows for OCA account login/logout and auth status subscription - refreshOcaModels command and model config plumbing - Add protobuf surfaces - proto/cline/models.proto and proto/cline/ocaAccount.proto - Extend proto/cline/state.proto for settings/state - Persist settings/state and helpers - Update StateManager, state-keys, state-helpers, updateSettings - Misc - Add changeset entry - Minor .gitignore and commit-message generator tweak feat: New redirect server update UI and add NPS survey link papercuts fix model dropdown height fix: Fix 1 fix: removing ui feat(AuthManager): Adding an AuthManager fix: fixing rebase * fix: Removing AuthManager, simplifyng auth service initialization
15 lines
495 B
TypeScript
15 lines
495 B
TypeScript
import type { EmptyRequest } from "@shared/proto/cline/common"
|
|
import { Empty } from "@shared/proto/cline/common"
|
|
import type { Controller } from "../index"
|
|
|
|
/**
|
|
* Handles the account logout action
|
|
* @param controller The controller instance
|
|
* @param _request The empty request object
|
|
* @returns Empty response
|
|
*/
|
|
export async function ocaAccountLogoutClicked(controller: Controller, _request: EmptyRequest): Promise<Empty> {
|
|
await controller.handleOcaSignOut()
|
|
return Empty.create({})
|
|
}
|