globalState.ts 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. export type SecretKey =
  2. | "apiKey"
  3. | "glamaApiKey"
  4. | "openRouterApiKey"
  5. | "awsAccessKey"
  6. | "awsSecretKey"
  7. | "awsSessionToken"
  8. | "openAiApiKey"
  9. | "geminiApiKey"
  10. | "openAiNativeApiKey"
  11. | "deepSeekApiKey"
  12. | "mistralApiKey"
  13. | "unboundApiKey"
  14. | "requestyApiKey"
  15. export type GlobalStateKey =
  16. | "apiProvider"
  17. | "apiModelId"
  18. | "glamaModelId"
  19. | "glamaModelInfo"
  20. | "awsRegion"
  21. | "awsUseCrossRegionInference"
  22. | "awsProfile"
  23. | "awsUseProfile"
  24. | "vertexProjectId"
  25. | "vertexRegion"
  26. | "lastShownAnnouncementId"
  27. | "customInstructions"
  28. | "alwaysAllowReadOnly"
  29. | "alwaysAllowWrite"
  30. | "alwaysAllowExecute"
  31. | "alwaysAllowBrowser"
  32. | "alwaysAllowMcp"
  33. | "alwaysAllowModeSwitch"
  34. | "taskHistory"
  35. | "openAiBaseUrl"
  36. | "openAiModelId"
  37. | "openAiCustomModelInfo"
  38. | "openAiUseAzure"
  39. | "ollamaModelId"
  40. | "ollamaBaseUrl"
  41. | "lmStudioModelId"
  42. | "lmStudioBaseUrl"
  43. | "anthropicBaseUrl"
  44. | "anthropicThinking"
  45. | "azureApiVersion"
  46. | "openAiStreamingEnabled"
  47. | "openRouterModelId"
  48. | "openRouterModelInfo"
  49. | "openRouterBaseUrl"
  50. | "openRouterUseMiddleOutTransform"
  51. | "allowedCommands"
  52. | "soundEnabled"
  53. | "soundVolume"
  54. | "diffEnabled"
  55. | "checkpointsEnabled"
  56. | "browserViewportSize"
  57. | "screenshotQuality"
  58. | "fuzzyMatchThreshold"
  59. | "preferredLanguage" // Language setting for Cline's communication
  60. | "writeDelayMs"
  61. | "terminalOutputLineLimit"
  62. | "mcpEnabled"
  63. | "enableMcpServerCreation"
  64. | "alwaysApproveResubmit"
  65. | "requestDelaySeconds"
  66. | "rateLimitSeconds"
  67. | "currentApiConfigName"
  68. | "listApiConfigMeta"
  69. | "vsCodeLmModelSelector"
  70. | "mode"
  71. | "modeApiConfigs"
  72. | "customModePrompts"
  73. | "customSupportPrompts"
  74. | "enhancementApiConfigId"
  75. | "experiments" // Map of experiment IDs to their enabled state
  76. | "autoApprovalEnabled"
  77. | "customModes" // Array of custom modes
  78. | "unboundModelId"
  79. | "requestyModelId"
  80. | "requestyModelInfo"
  81. | "unboundModelInfo"
  82. | "modelTemperature"
  83. | "mistralCodestralUrl"
  84. | "maxOpenTabsContext"