From 686526bbd4f4e86e2ad23c3fc068267888789b98 Mon Sep 17 00:00:00 2001 From: vikingowl Date: Sat, 1 Nov 2025 19:46:40 +0100 Subject: [PATCH] chore: change slash command directory from .claude to .owlen Changes slash command directory from `.claude/commands/` to `.owlen/commands/` to reflect that owlen is its own tool while maintaining compatibility with claude-code slash command syntax. Updated locations: - CLI main: command file path lookup - Tests: slash_command_works and slash_command_file_refs All 56 tests passing. --- crates/app/cli/src/main.rs | 4 ++-- crates/app/cli/tests/permissions.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/app/cli/src/main.rs b/crates/app/cli/src/main.rs index f241ba7..0e38b1a 100644 --- a/crates/app/cli/src/main.rs +++ b/crates/app/cli/src/main.rs @@ -185,8 +185,8 @@ async fn main() -> Result<()> { // Check permission match perms.check(Tool::SlashCommand, None) { PermissionDecision::Allow => { - // Look for command file in .claude/commands/ - let command_path = format!(".claude/commands/{}.md", command_name); + // Look for command file in .owlen/commands/ + let command_path = format!(".owlen/commands/{}.md", command_name); // Read the command file let content = match tools_fs::read_file(&command_path) { diff --git a/crates/app/cli/tests/permissions.rs b/crates/app/cli/tests/permissions.rs index 629d513..6f61961 100644 --- a/crates/app/cli/tests/permissions.rs +++ b/crates/app/cli/tests/permissions.rs @@ -180,9 +180,9 @@ fn bash_command_timeout_works() { #[test] fn slash_command_works() { - // Create .claude/commands directory in temp dir + // Create .owlen/commands directory in temp dir let dir = tempdir().unwrap(); - let commands_dir = dir.path().join(".claude/commands"); + let commands_dir = dir.path().join(".owlen/commands"); fs::create_dir_all(&commands_dir).unwrap(); // Create a test slash command @@ -215,7 +215,7 @@ First: $1 #[test] fn slash_command_file_refs() { let dir = tempdir().unwrap(); - let commands_dir = dir.path().join(".claude/commands"); + let commands_dir = dir.path().join(".owlen/commands"); fs::create_dir_all(&commands_dir).unwrap(); // Create a file to reference