pub struct CliConfig {Show 34 fields
pub global_dir: PathBuf,
pub project_dir: PathBuf,
pub tui_state_dir: PathBuf,
pub database_path: PathBuf,
pub file_store_path: PathBuf,
pub default_profile: String,
pub skill_dirs: Vec<PathBuf>,
pub subagent_dirs: Vec<PathBuf>,
pub disabled_subagents: Vec<String>,
pub workspace_root: PathBuf,
pub environment_provider: String,
pub files_policy: String,
pub shell_enabled: bool,
pub shell_review: CliShellReviewConfig,
pub default_output: OutputMode,
pub default_hitl: HitlPolicy,
pub max_goal_iterations: usize,
pub tui_render_mode: TuiRenderMode,
pub update_channel: String,
pub oauth_refresh: OAuthRefreshConfig,
pub default_model: Option<CliModelProfile>,
pub model_profiles: BTreeMap<String, CliModelProfile>,
pub envd_profiles: BTreeMap<String, CliEnvdProfile>,
pub env_vars: BTreeMap<String, String>,
pub providers: ProviderConfigs,
pub tools_config: Value,
pub mcp_config: Value,
pub unmapped_metadata: Value,
pub slash_commands: BTreeMap<String, SlashCommandDefinition>,
pub auto_trim: bool,
pub current_session_keep_recent_runs: usize,
pub all_sessions_keep_recent_runs: usize,
pub all_sessions_keep_days: u64,
pub all_sessions_interval_hours: u64,
}Expand description
Resolved CLI configuration.
Fields§
§global_dir: PathBufGlobal config root.
project_dir: PathBufProject config root.
tui_state_dir: PathBufTUI local state root.
database_path: PathBufSQLite database path.
file_store_path: PathBufLocal file store path.
default_profile: StringDefault profile.
skill_dirs: Vec<PathBuf>Skill directory search paths.
subagent_dirs: Vec<PathBuf>Subagent directory search paths.
disabled_subagents: Vec<String>Disabled subagent names from layered subagent config.
workspace_root: PathBufWorkspace root for environment providers.
environment_provider: StringEnvironment provider kind.
files_policy: StringFilesystem policy mode.
shell_enabled: boolWhether shell execution is enabled for environment tools.
shell_review: CliShellReviewConfigShell command review configuration.
default_output: OutputModeDefault output mode.
default_hitl: HitlPolicyDefault headless human-in-the-loop policy.
max_goal_iterations: usizeDefault maximum runtime goal retry iterations.
tui_render_mode: TuiRenderModeDefault TUI transcript rendering mode.
update_channel: StringUpdate channel metadata.
oauth_refresh: OAuthRefreshConfigOAuth token refresh supervisor configuration.
default_model: Option<CliModelProfile>Default model from [general] model fields.
model_profiles: BTreeMap<String, CliModelProfile>Named model profiles from [model_profiles.*] fields.
envd_profiles: BTreeMap<String, CliEnvdProfile>Named envd profiles from [envd_profiles.*] fields.
env_vars: BTreeMap<String, String>Environment variables loaded from config [env] sections.
providers: ProviderConfigsProvider API configuration.
tools_config: ValueTool config metadata loaded from tools.toml.
mcp_config: ValueMCP config metadata loaded from mcp.json.
unmapped_metadata: ValueUnmapped config metadata preserved for configuration audits.
slash_commands: BTreeMap<String, SlashCommandDefinition>Custom slash commands loaded from [commands.*] config sections.
auto_trim: boolAutomatic retention maintenance after a run.
current_session_keep_recent_runs: usizeRecent runs to keep for the current session during automatic trim.
all_sessions_keep_recent_runs: usizeRecent runs to keep per session during all-session retention maintenance.
all_sessions_keep_days: u64Age horizon for all-session retention maintenance.
all_sessions_interval_hours: u64Minimum interval between all-session retention maintenance runs.
Implementations§
Trait Implementations§
impl Eq for CliConfig
impl StructuralPartialEq for CliConfig
Auto Trait Implementations§
impl Freeze for CliConfig
impl RefUnwindSafe for CliConfig
impl Send for CliConfig
impl Sync for CliConfig
impl Unpin for CliConfig
impl UnsafeUnpin for CliConfig
impl UnwindSafe for CliConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.