CliConfig constructor

CliConfig({
  1. String providerKind = 'openai-completions',
  2. String modelId = 'openai/gpt-4o-mini',
  3. String baseUrl = 'https://openrouter.ai/api/v1',
  4. String mode = 'code',
  5. String approvalMode = 'yolo',
  6. List<String> allowedTools = const [],
  7. Map<String, String> promptOverrides = const {},
  8. ModelRolesConfig? modelRoles,
  9. TtsrConfig? ttsr,
  10. int? contextWindowCap,
  11. StuckToolConfig? stuckTool,
  12. ForegroundCallBudgetConfig? foregroundCall,
  13. String? agentLoadMode,
  14. List<CustomProviderEntry> customProviders = const [],
  15. ModelsConfig? models,
  16. McpConfig? mcp,
  17. A2aConfig? a2a,
  18. ProviderTimeoutsOverride? providerTimeouts,
  19. SkillsAccess skillsAccess = SkillsAccess.granted,
  20. bool skillsDisableShellExecution = false,
  21. bool skillsLiveRediscovery = true,
  22. Map<String, bool> skillToggles = const {},
  23. MemoryConfig? memory,
  24. FabricConfig? fabric,
  25. CubeSettings? cube,
  26. ToolsConfig? tools,
  27. RedactionConfig? redact,
  28. SpillsConfig? spills,
  29. SessionsConfig? sessions,
  30. ProjectContextConfig? projectContext,
  31. CompactionEngine? compactionEngine,
  32. int? compactionJudgeBudgetSeconds,
  33. bool wireDump = false,
  34. bool trajectoryRequestBlobs = true,
  35. int trajectoryRequestBlobMaxMb = 50,
  36. int trajectoryRequestBlobMaxBytes = 50 << 20,
  37. int trajectoryRequestBlobTtlDays = 30,
  38. ImageRegistryConfig? images,
  39. String? agentMode,
  40. bool misuseBreaker = true,
  41. SubagentsConfig subagents = const SubagentsConfig(),
  42. WaitingConfig waiting = const WaitingConfig(),
  43. JobsConfig jobs = const JobsConfig(),
  44. HeadlessConfig headless = const HeadlessConfig(),
  45. PowerAssertionLevel? powerSleepPrevention,
  46. PowerAssertionHold? powerHold,
  47. QuotaSection quota = const QuotaSection(),
  48. String? tuiTheme,
  49. bool tuiClassic = false,
  50. bool tuiShowCompactionDetails = false,
  51. StatusLineConfig? statusLine,
  52. LinksConfig links = const LinksConfig(),
  53. bool streamThinking = false,
  54. AutoUpdateMode autoUpdate = AutoUpdateMode.notify,
})

Implementation

CliConfig({
  this.providerKind = 'openai-completions',
  this.modelId = 'openai/gpt-4o-mini',
  this.baseUrl = 'https://openrouter.ai/api/v1',
  this.mode = 'code',
  this.approvalMode = 'yolo',
  this.allowedTools = const [],
  this.promptOverrides = const {},
  this.modelRoles,
  this.ttsr,
  this.contextWindowCap,
  this.stuckTool,
  this.foregroundCall,
  this.agentLoadMode,
  this.customProviders = const [],
  this.models,
  this.mcp,
  this.a2a,
  this.providerTimeouts,
  this.skillsAccess = SkillsAccess.granted,
  this.skillsDisableShellExecution = false,
  this.skillsLiveRediscovery = true,
  this.skillToggles = const {},
  this.memory,
  this.fabric,
  this.cube,
  this.tools,
  this.redact,
  this.spills,
  this.sessions,
  this.projectContext,
  this.compactionEngine,
  this.compactionJudgeBudgetSeconds,
  this.wireDump = false,
  this.trajectoryRequestBlobs = true,
  this.trajectoryRequestBlobMaxMb = 50,
  this.trajectoryRequestBlobMaxBytes = 50 << 20,
  this.trajectoryRequestBlobTtlDays = 30,
  this.images,
  this.agentMode,
  this.misuseBreaker = true,
  this.subagents = const SubagentsConfig(),
  this.waiting = const WaitingConfig(),
  this.jobs = const JobsConfig(),
  this.headless = const HeadlessConfig(),
  this.powerSleepPrevention,
  this.powerHold,
  this.quota = const QuotaSection(),
  this.tuiTheme,
  this.tuiClassic = false,
  this.tuiShowCompactionDetails = false,
  this.statusLine,
  this.links = const LinksConfig(),
  this.streamThinking = false,
  this.autoUpdate = AutoUpdateMode.notify,
});