use std::path::PathBuf;

use anyhow::{Context, Result};
use directories::BaseDirs;

#[allow(dead_code)] // wired when `[[merge]]` blocks land
pub const SETTINGS_PATH: &str = ".claude/settings.json";
pub const SETTINGS_LOCAL_PATH: &str = ".claude/settings.local.json";
pub const INSTRUCTIONS_PATH: &str = "CLAUDE.md";

/// `~/.claude/settings.json` — Claude Code's user-level settings.
pub fn user_settings_path() -> Result<PathBuf> {
    let base = BaseDirs::new().context("could not determine user home directory")?;
    Ok(base.home_dir().join(".claude").join("settings.json"))
}
