GlobalConfig constructor

GlobalConfig({
  1. int numStartups = 0,
  2. InstallMethod? installMethod,
  3. bool? autoUpdates,
  4. ThemeSetting theme = ThemeSetting.dark,
  5. bool? hasCompletedOnboarding,
  6. String? lastReleaseNotesSeen,
  7. Map<String, dynamic>? mcpServers,
  8. NotificationChannel preferredNotifChannel = NotificationChannel.auto,
  9. bool verbose = false,
  10. String? primaryApiKey,
  11. AccountInfo? oauthAccount,
  12. EditorMode? editorMode = EditorMode.normal,
  13. bool autoCompactEnabled = true,
  14. bool showTurnDuration = true,
  15. Map<String, String> env = const {},
  16. bool? hasSeenTasksHint = false,
  17. DiffTool? diffTool = DiffTool.auto,
  18. Map<String, int> tipsHistory = const {},
  19. int memoryUsageCount = 0,
  20. int promptQueueUseCount = 0,
  21. int btwUseCount = 0,
  22. bool todoFeatureEnabled = true,
  23. bool? showExpandedTodos = false,
  24. int messageIdleNotifThresholdMs = 60000,
  25. bool? autoConnectIde = false,
  26. bool? autoInstallIdeExtension = true,
  27. bool fileCheckpointingEnabled = true,
  28. bool terminalProgressBarEnabled = true,
  29. bool respectGitignore = true,
  30. bool copyFullResponse = false,
  31. Map<String, ProjectConfig>? projects,
  32. Map<String, bool> cachedStatsigGates = const {},
  33. Map<String, dynamic>? cachedGrowthBookFeatures,
  34. Map<String, dynamic>? customApiKeyResponses,
  35. String? userID,
})

Implementation

GlobalConfig({
  this.numStartups = 0,
  this.installMethod,
  this.autoUpdates,
  this.theme = ThemeSetting.dark,
  this.hasCompletedOnboarding,
  this.lastReleaseNotesSeen,
  this.mcpServers,
  this.preferredNotifChannel = NotificationChannel.auto,
  this.verbose = false,
  this.primaryApiKey,
  this.oauthAccount,
  this.editorMode = EditorMode.normal,
  this.autoCompactEnabled = true,
  this.showTurnDuration = true,
  this.env = const {},
  this.hasSeenTasksHint = false,
  this.diffTool = DiffTool.auto,
  this.tipsHistory = const {},
  this.memoryUsageCount = 0,
  this.promptQueueUseCount = 0,
  this.btwUseCount = 0,
  this.todoFeatureEnabled = true,
  this.showExpandedTodos = false,
  this.messageIdleNotifThresholdMs = 60000,
  this.autoConnectIde = false,
  this.autoInstallIdeExtension = true,
  this.fileCheckpointingEnabled = true,
  this.terminalProgressBarEnabled = true,
  this.respectGitignore = true,
  this.copyFullResponse = false,
  this.projects,
  this.cachedStatsigGates = const {},
  this.cachedGrowthBookFeatures,
  this.customApiKeyResponses,
  this.userID,
});