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. String? agentLoadMode,
  13. List<CustomProviderEntry> customProviders = const [],
  14. ModelsConfig? models,
  15. McpConfig? mcp,
  16. A2aConfig? a2a,
  17. ProviderTimeoutsOverride? providerTimeouts,
  18. SkillsAccess skillsAccess = SkillsAccess.granted,
  19. bool skillsDisableShellExecution = false,
  20. Map<String, bool> skillToggles = const {},
  21. MemoryConfig? memory,
  22. FabricConfig? fabric,
  23. CubeSettings? cube,
  24. ToolsConfig? tools,
  25. RedactionConfig? redact,
  26. SpillsConfig? spills,
  27. CompactionEngine? compactionEngine,
  28. int? compactionJudgeBudgetSeconds,
  29. bool wireDump = false,
  30. ImageRegistryConfig? images,
  31. String? agentMode,
  32. bool misuseBreaker = true,
  33. SubagentsConfig subagents = const SubagentsConfig(),
  34. WaitingConfig waiting = const WaitingConfig(),
  35. JobsConfig jobs = const JobsConfig(),
  36. PowerAssertionLevel? powerSleepPrevention,
  37. PowerAssertionHold? powerHold,
  38. QuotaSection quota = const QuotaSection(),
  39. String? tuiTheme,
  40. bool tuiClassic = false,
  41. StatusLineConfig? statusLine,
  42. LinksConfig links = const LinksConfig(),
  43. bool streamThinking = false,
  44. 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.agentLoadMode,
  this.customProviders = const [],
  this.models,
  this.mcp,
  this.a2a,
  this.providerTimeouts,
  this.skillsAccess = SkillsAccess.granted,
  this.skillsDisableShellExecution = false,
  this.skillToggles = const {},
  this.memory,
  this.fabric,
  this.cube,
  this.tools,
  this.redact,
  this.spills,
  this.compactionEngine,
  this.compactionJudgeBudgetSeconds,
  this.wireDump = false,
  this.images,
  this.agentMode,
  this.misuseBreaker = true,
  this.subagents = const SubagentsConfig(),
  this.waiting = const WaitingConfig(),
  this.jobs = const JobsConfig(),
  this.powerSleepPrevention,
  this.powerHold,
  this.quota = const QuotaSection(),
  this.tuiTheme,
  this.tuiClassic = false,
  this.statusLine,
  this.links = const LinksConfig(),
  this.streamThinking = false,
  this.autoUpdate = AutoUpdateMode.notify,
});