From 825f9f6bf54c8c267541cc474cea2a7a23541208 Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Fri, 17 Jul 2026 10:38:35 -0600 Subject: [PATCH] feat: Allow users to customize the workspace-specific configuration directory name so they can use Coyote with other CLI clients like .claude --- src/config/paths.rs | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/config/paths.rs b/src/config/paths.rs index a61a361..5a82519 100644 --- a/src/config/paths.rs +++ b/src/config/paths.rs @@ -193,11 +193,19 @@ pub fn skill_file(name: &str) -> PathBuf { skill_dir(name).join("SKILL.md") } -pub fn workspace_skills_dir() -> PathBuf { +pub fn workspace_config_dir() -> PathBuf { + let workspace_dir_name = match env::var(get_env_name("workspace_config_dir")) { + Ok(value) => value, + Err(_) => WORKSPACE_COYOTE_DIR_NAME.to_string(), + }; + env::current_dir() .unwrap_or_default() - .join(WORKSPACE_COYOTE_DIR_NAME) - .join(SKILLS_DIR_NAME) + .join(workspace_dir_name) +} + +pub fn workspace_skills_dir() -> PathBuf { + workspace_config_dir().join(SKILLS_DIR_NAME) } pub fn workspace_skill_file(name: &str) -> PathBuf { @@ -205,8 +213,7 @@ pub fn workspace_skill_file(name: &str) -> PathBuf { } pub fn workspace_mcp_config_file() -> PathBuf { - env::current_dir() - .unwrap_or_default() + workspace_config_dir() .join(WORKSPACE_COYOTE_DIR_NAME) .join(MCP_FILE_NAME) }