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
112 changes: 7 additions & 105 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ serde = { version = "1", features = ["derive"] }
serde_json = "1"
url = "2"
tauri-plugin-drag = "2.1.0"
dirs = "5"
dirs = "6"

[dev-dependencies]
tempfile = "3"
12 changes: 7 additions & 5 deletions src-tauri/src/commands/ai_files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,7 @@ fn walk_for_instruction_files(dir: &Path, results: &mut Vec<String>) -> Result<(
continue;
}
walk_for_instruction_files(&path, results)?;
} else if metadata.is_file()
&& (file_name == "CLAUDE.md" || file_name == "AGENTS.md")
{
} else if metadata.is_file() && (file_name == "CLAUDE.md" || file_name == "AGENTS.md") {
results.push(path.to_string_lossy().to_string());
}
}
Expand Down Expand Up @@ -236,8 +234,12 @@ mod tests {
.collect();

assert_eq!(project_files.len(), 3);
assert!(project_files.iter().any(|p| p.ends_with("CLAUDE.md") && !p.contains("src")));
assert!(project_files
.iter()
.any(|p| p.ends_with("CLAUDE.md") && !p.contains("src")));
assert!(project_files.iter().any(|p| p.ends_with("AGENTS.md")));
assert!(project_files.iter().any(|p| p.contains("src") && p.ends_with("CLAUDE.md")));
assert!(project_files
.iter()
.any(|p| p.contains("src") && p.ends_with("CLAUDE.md")));
}
}
Loading
Loading