Initial commit
This commit is contained in:
@@ -197,7 +197,7 @@ fn extract_skill_parent_directory_different_providers() {
|
||||
return;
|
||||
};
|
||||
let repo = home_dir.join("repo");
|
||||
let providers = [".warp", ".claude", ".codex", ".cursor", ".gemini"];
|
||||
let providers = [".warp-core", ".claude", ".codex", ".cursor", ".gemini"];
|
||||
for provider in providers {
|
||||
let path = repo
|
||||
.join(provider)
|
||||
|
||||
@@ -21,7 +21,7 @@ fn write_skill_file(path: &Path, name: &str, description: &str, body: &str) -> R
|
||||
#[test]
|
||||
fn resolve_from_skill_dirs_by_directory_scan_resolves_home_skill_dir() -> Result<()> {
|
||||
let temp_dir = tempfile::TempDir::new().context("Failed to create temp dir")?;
|
||||
let skill_dir = temp_dir.path().join(".warp").join("skills");
|
||||
let skill_dir = temp_dir.path().join(".warp-core").join("skills");
|
||||
let skill_path = skill_dir.join("my-skill").join("SKILL.md");
|
||||
|
||||
write_skill_file(
|
||||
|
||||
@@ -60,7 +60,7 @@ fn try_insert_skill(
|
||||
///
|
||||
/// Two skills are considered duplicates only when they share the same owning directory
|
||||
/// **and** identical content — which is the common case when a tool like `npx skills`
|
||||
/// symlinks the same skill under `~/.agents/skills/`, `~/.warp/skills/`, `~/.claude/skills/`, etc.
|
||||
/// symlinks the same skill under `~/.agents/skills/`, `~/.warp-core/skills/`, `~/.claude/skills/`, etc.
|
||||
///
|
||||
/// Each element of `skill_paths` is a `(dir_path, skill_file_path)` tuple where
|
||||
/// `dir_path` is the directory that owns the skill.
|
||||
|
||||
Reference in New Issue
Block a user