Export ProviderName type to Roo-Code-Types (#3675)

This commit is contained in:
Chris Estreich 2025-05-16 12:05:09 -07:00 committed by hannesrudolph
parent 69d63b9502
commit 36aff9fdc6
4 changed files with 87 additions and 0 deletions

View file

@ -7,6 +7,7 @@ import { Socket } from "node:net"
import type {
GlobalSettings,
ProviderName,
ProviderSettings,
ProviderSettingsEntry,
ClineMessage,
@ -19,6 +20,7 @@ import type {
export type {
GlobalSettings,
ProviderName,
ProviderSettings,
ProviderSettingsEntry,
ClineMessage,
@ -37,6 +39,14 @@ import { RooCodeEventName, IpcOrigin, IpcMessageType } from "../schemas"
export { RooCodeEventName, IpcOrigin, IpcMessageType }
/**
* Constants
*/
import { providerNames } from "../schemas"
export { providerNames }
/**
* RooCodeAPI
*/

View file

@ -174,6 +174,29 @@ type GlobalSettings = {
historyPreviewCollapsed?: boolean | undefined
}
type ProviderName =
| "anthropic"
| "glama"
| "openrouter"
| "bedrock"
| "vertex"
| "openai"
| "ollama"
| "vscode-lm"
| "lmstudio"
| "gemini"
| "openai-native"
| "mistral"
| "deepseek"
| "unbound"
| "requesty"
| "human-relay"
| "fake-ai"
| "xai"
| "groq"
| "chutes"
| "litellm"
type ProviderSettings = {
apiProvider?:
| (
@ -1474,6 +1497,32 @@ type TaskEvent =
]
}
/**
* ProviderName
*/
declare const providerNames: readonly [
"anthropic",
"glama",
"openrouter",
"bedrock",
"vertex",
"openai",
"ollama",
"vscode-lm",
"lmstudio",
"gemini",
"openai-native",
"mistral",
"deepseek",
"unbound",
"requesty",
"human-relay",
"fake-ai",
"xai",
"groq",
"chutes",
"litellm",
]
/**
* RooCodeEvent
*/
@ -1660,6 +1709,7 @@ export {
IpcMessageType,
IpcOrigin,
type IpcServerEvents,
type ProviderName,
type ProviderSettings,
type ProviderSettingsEntry,
type RooCodeAPI,
@ -1670,4 +1720,5 @@ export {
type TaskCommand,
type TaskEvent,
type TokenUsage,
providerNames,
}

View file

@ -176,6 +176,31 @@ type GlobalSettings = {
export type { GlobalSettings }
type ProviderName =
| "anthropic"
| "glama"
| "openrouter"
| "bedrock"
| "vertex"
| "openai"
| "ollama"
| "vscode-lm"
| "lmstudio"
| "gemini"
| "openai-native"
| "mistral"
| "deepseek"
| "unbound"
| "requesty"
| "human-relay"
| "fake-ai"
| "xai"
| "groq"
| "chutes"
| "litellm"
export type { ProviderName }
type ProviderSettings = {
apiProvider?:
| (

View file

@ -1212,6 +1212,7 @@ export type TypeDefinition = {
export const typeDefinitions: TypeDefinition[] = [
{ schema: globalSettingsSchema, identifier: "GlobalSettings" },
{ schema: providerNamesSchema, identifier: "ProviderName" },
{ schema: providerSettingsSchema, identifier: "ProviderSettings" },
{ schema: providerSettingsEntrySchema, identifier: "ProviderSettingsEntry" },
{ schema: clineMessageSchema, identifier: "ClineMessage" },