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.
This commit is contained in:
2025-11-01 19:46:40 +01:00
parent 5134462deb
commit 686526bbd4
2 changed files with 5 additions and 5 deletions

View File

@@ -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) {

View File

@@ -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