CliConfig class final

Persisted CLI configuration.

Constructors

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})
CliConfig.fromYaml(YamlMap map)
factory

Properties

allowedTools List<String>
Tools the user always-allowed (via /allow or an "approve always" prompt answer), persisted across runs.
final
approvalMode String
Approval mode label (always-ask, write, yolo); parsed with approvalModeFromLabel from lib/src/approval/.
final
baseUrl String
final
hashCode int
The hash code for this object.
no setterinherited
mode String
final
modelId String
final
modelRoles ModelRolesConfig?
Optional model roles: role → fallback chains, path-scoped overrides, and the retry policy (roles: / modelOverrides: / retry: yaml sections). null keeps the legacy single provider/model behavior.
final
promptOverrides Map<String, String>
Raw prompt overrides from the prompts: yaml section: prompt name → file path or inline text (validated by parsePromptOverrideMap). The executable resolves it into a PromptOverrides via resolvePromptOverrides (file reads live in lib/io.dart); an empty map keeps the built-in prompts.
final
providerKind String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
ttsr TtsrConfig?
Optional TTSR stream rules (ttsr: yaml section). null disables stream-rule monitoring.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
toYaml() String

Operators

operator ==(Object other) bool
The equality operator.
inherited