1use std::path::{Path, PathBuf};
2
3use crate::provider_profile::CODEX_PROVIDER_PROFILE;
4
5pub fn resolve_secret_dir() -> Option<PathBuf> {
6 crate::runtime::resolve_secret_dir()
7}
8
9pub fn resolve_secret_dir_from_env() -> Option<PathBuf> {
10 nils_common::provider_runtime::paths::resolve_secret_dir_from_env(&CODEX_PROVIDER_PROFILE)
11}
12
13pub fn resolve_auth_file() -> Option<PathBuf> {
14 crate::runtime::resolve_auth_file()
15}
16
17pub fn resolve_secret_cache_dir() -> Option<PathBuf> {
18 crate::runtime::resolve_secret_cache_dir()
19}
20
21pub fn resolve_secret_timestamp_path(target_file: &Path) -> Option<PathBuf> {
22 nils_common::provider_runtime::paths::resolve_secret_timestamp_path(
23 &CODEX_PROVIDER_PROFILE,
24 target_file,
25 )
26}
27
28pub fn resolve_feature_dir() -> Option<PathBuf> {
29 crate::runtime::resolve_feature_dir()
30}
31
32pub fn resolve_script_dir() -> Option<PathBuf> {
33 crate::runtime::resolve_script_dir()
34}
35
36pub fn resolve_zdotdir() -> Option<PathBuf> {
37 crate::runtime::resolve_zdotdir()
38}