Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/exports/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { Socket } from "node:net"

import type {
GlobalSettings,
ProviderName,
ProviderSettings,
ProviderSettingsEntry,
ClineMessage,
Expand All @@ -19,6 +20,7 @@ import type {

export type {
GlobalSettings,
ProviderName,
ProviderSettings,
ProviderSettingsEntry,
ClineMessage,
Expand All @@ -37,6 +39,14 @@ import { RooCodeEventName, IpcOrigin, IpcMessageType } from "../schemas"

export { RooCodeEventName, IpcOrigin, IpcMessageType }

/**
* Constants
*/

import { providerNames } from "../schemas"

export { providerNames }

/**
* RooCodeAPI
*/
Expand Down
51 changes: 51 additions & 0 deletions src/exports/roo-code.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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?:
| (
Expand Down Expand Up @@ -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
*/
Expand Down Expand Up @@ -1660,6 +1709,7 @@ export {
IpcMessageType,
IpcOrigin,
type IpcServerEvents,
type ProviderName,
type ProviderSettings,
type ProviderSettingsEntry,
type RooCodeAPI,
Expand All @@ -1670,4 +1720,5 @@ export {
type TaskCommand,
type TaskEvent,
type TokenUsage,
providerNames,
}
25 changes: 25 additions & 0 deletions src/exports/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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?:
| (
Expand Down
1 change: 1 addition & 0 deletions src/schemas/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down