| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- // Define the array first with 'as const' to create a readonly tuple type
- export const SECRET_KEYS = [
- "apiKey",
- "glamaApiKey",
- "openRouterApiKey",
- "awsAccessKey",
- "awsSecretKey",
- "awsSessionToken",
- "openAiApiKey",
- "geminiApiKey",
- "openAiNativeApiKey",
- "deepSeekApiKey",
- "mistralApiKey",
- "unboundApiKey",
- "requestyApiKey",
- ] as const
- // Derive the type from the array - creates a union of string literals
- export type SecretKey = (typeof SECRET_KEYS)[number]
- // Define the array first with 'as const' to create a readonly tuple type
- export const GLOBAL_STATE_KEYS = [
- "apiProvider",
- "apiModelId",
- "glamaModelId",
- "glamaModelInfo",
- "awsRegion",
- "awsUseCrossRegionInference",
- "awsProfile",
- "awsUseProfile",
- "vertexKeyFile",
- "vertexJsonCredentials",
- "vertexProjectId",
- "vertexRegion",
- "lastShownAnnouncementId",
- "customInstructions",
- "alwaysAllowReadOnly",
- "alwaysAllowWrite",
- "alwaysAllowExecute",
- "alwaysAllowBrowser",
- "alwaysAllowMcp",
- "alwaysAllowModeSwitch",
- "taskHistory",
- "openAiBaseUrl",
- "openAiModelId",
- "openAiCustomModelInfo",
- "openAiUseAzure",
- "ollamaModelId",
- "ollamaBaseUrl",
- "lmStudioModelId",
- "lmStudioBaseUrl",
- "anthropicBaseUrl",
- "modelMaxThinkingTokens",
- "azureApiVersion",
- "openAiStreamingEnabled",
- "openRouterModelId",
- "openRouterModelInfo",
- "openRouterBaseUrl",
- "openRouterUseMiddleOutTransform",
- "allowedCommands",
- "soundEnabled",
- "soundVolume",
- "diffEnabled",
- "enableCheckpoints",
- "checkpointStorage",
- "browserViewportSize",
- "screenshotQuality",
- "fuzzyMatchThreshold",
- "preferredLanguage", // Language setting for Cline's communication
- "writeDelayMs",
- "terminalOutputLimit",
- "mcpEnabled",
- "enableMcpServerCreation",
- "alwaysApproveResubmit",
- "requestDelaySeconds",
- "rateLimitSeconds",
- "currentApiConfigName",
- "listApiConfigMeta",
- "vsCodeLmModelSelector",
- "mode",
- "modeApiConfigs",
- "customModePrompts",
- "customSupportPrompts",
- "enhancementApiConfigId",
- "experiments", // Map of experiment IDs to their enabled state
- "autoApprovalEnabled",
- "customModes", // Array of custom modes
- "unboundModelId",
- "requestyModelId",
- "requestyModelInfo",
- "unboundModelInfo",
- "modelTemperature",
- "modelMaxTokens",
- "mistralCodestralUrl",
- "maxOpenTabsContext",
- "browserToolEnabled",
- "lmStudioSpeculativeDecodingEnabled",
- "lmStudioDraftModelId",
- "telemetrySetting",
- ] as const
- // Derive the type from the array - creates a union of string literals
- export type GlobalStateKey = (typeof GLOBAL_STATE_KEYS)[number]
|