chore: remove legacy nix profile resources

This commit is contained in:
2026-05-30 12:05:34 +09:00
parent 1100ded218
commit b981bbd87b
11 changed files with 171 additions and 474 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ pub fn user_prompts_dir() -> Option<PathBuf> {
Some(config_dir()?.join("prompts"))
}
/// Root resource directory used for bundled prompts/Nix support files.
/// Root resource directory used for bundled prompts, profiles, catalogs, and docs.
pub fn resource_dir() -> Option<PathBuf> {
if let Some(p) = env_path(RESOURCE_DIR_ENV) {
return Some(p);
+1 -1
View File
@@ -382,7 +382,7 @@ impl ProfileResolver {
.map(str::to_string);
match extension.as_deref() {
Some("lua") => {}
Some("nix") => return Err(ProfileError::UnsupportedProfileType { path: absolute_path, message: "Nix profile evaluation is not part of the primary Profile path; use a Lua profile or --manifest for a complete Manifest".into() }),
Some("nix") => return Err(ProfileError::UnsupportedProfileType { path: absolute_path, message: "Nix profile files are no longer supported; use a Lua profile or --manifest for a complete Manifest".into() }),
other => return Err(ProfileError::UnsupportedProfileType { path: absolute_path, message: format!("unsupported profile extension {}; Lua profiles must end in .lua", other.map_or("<none>".to_string(), |s| format!(".{s}"))) }),
}
let profile_dir = absolute_path