Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cli/src/services/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ use render::{format_show_output, format_validate_output};
use resolver::resolve_runtime_config;

pub(crate) use resolver::{
resolve_agent_trace_storage_runtime_config, resolve_auth_runtime_config,
resolve_bash_policy_runtime_config, resolve_hook_runtime_config,
resolve_agent_trace_auto_sync_runtime_config, resolve_agent_trace_storage_runtime_config,
resolve_auth_runtime_config, resolve_bash_policy_runtime_config, resolve_hook_runtime_config,
resolve_observability_runtime_config,
};
pub(crate) use schema::validate_config_file;
Expand Down
23 changes: 23 additions & 0 deletions cli/src/services/config/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,29 @@ pub(crate) fn resolve_hook_runtime_config(cwd: &Path) -> Result<ResolvedHookRunt
)
}

pub(crate) fn resolve_agent_trace_auto_sync_runtime_config(
cwd: &Path,
) -> Result<ResolvedValue<bool>> {
let runtime = resolve_runtime_config_with(
&ConfigRequest {
report_format: ReportFormat::Text,
config_path: None,
log_level: None,
timeout_ms: None,
},
cwd,
|key| std::env::var(key).ok(),
|path| {
std::fs::read_to_string(path)
.with_context(|| format!("Failed to read config file '{}'.", path.display()))
},
Path::exists,
resolve_default_global_config_path,
)?;

Ok(runtime.agent_trace_auto_sync)
}

pub(crate) fn resolve_agent_trace_storage_runtime_config(
cwd: &Path,
) -> Result<ResolvedAgentTraceStorageRuntimeConfig> {
Expand Down
1 change: 0 additions & 1 deletion cli/src/services/default_paths.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,6 @@ pub(crate) mod claude_asset {
pub const SETTINGS_FILE: &str = "settings.json";
pub const HOOKS_DIR: &str = "hooks";
pub const SKILLS_DIR: &str = "skills";
pub const AGENTS_DIR: &str = "agents";
pub const COMMANDS_DIR: &str = "commands";
}

Expand Down
Loading
Loading