CliConfig constructor
CliConfig({
- String providerKind = 'openai-completions',
- String modelId = 'openai/gpt-4o-mini',
- String baseUrl = 'https://openrouter.ai/api/v1',
- String mode = 'code',
- String approvalMode = 'yolo',
- List<
String> allowedTools = const [], - Map<
String, String> promptOverrides = const {}, - ModelRolesConfig? modelRoles,
- TtsrConfig? ttsr,
- int? contextWindowCap,
- String? agentLoadMode,
- List<
CustomProviderEntry> customProviders = const [], - ModelsConfig? models,
- McpConfig? mcp,
- A2aConfig? a2a,
- ProviderTimeoutsOverride? providerTimeouts,
- SkillsAccess skillsAccess = SkillsAccess.granted,
- bool skillsDisableShellExecution = false,
- MemoryConfig? memory,
- FabricConfig? fabric,
- CubeSettings? cube,
- ToolsConfig? tools,
- RedactionConfig? redact,
- SpillsConfig? spills,
- CompactionEngine? compactionEngine,
- int? compactionJudgeBudgetSeconds,
- bool wireDump = false,
- ImageRegistryConfig? images,
- String? agentMode,
- SubagentsConfig subagents = const SubagentsConfig(),
- WaitingConfig waiting = const WaitingConfig(),
- JobsConfig jobs = const JobsConfig(),
- PowerAssertionLevel? powerSleepPrevention,
- PowerAssertionHold? powerHold,
- String? tuiTheme,
- bool tuiClassic = false,
- StatusLineConfig? statusLine,
- LinksConfig links = const LinksConfig(),
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.agentLoadMode,
this.customProviders = const [],
this.models,
this.mcp,
this.a2a,
this.providerTimeouts,
this.skillsAccess = SkillsAccess.granted,
this.skillsDisableShellExecution = false,
this.memory,
this.fabric,
this.cube,
this.tools,
this.redact,
this.spills,
this.compactionEngine,
this.compactionJudgeBudgetSeconds,
this.wireDump = false,
this.images,
this.agentMode,
this.subagents = const SubagentsConfig(),
this.waiting = const WaitingConfig(),
this.jobs = const JobsConfig(),
this.powerSleepPrevention,
this.powerHold,
this.tuiTheme,
this.tuiClassic = false,
this.statusLine,
this.links = const LinksConfig(),
});