From 8312a19b4e1f9849aae9912433824b19e03a8daf Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 11 Feb 2026 20:48:01 +0200 Subject: refactor: consolidate cache and state into .local/hexai directory Move all cache and state files under ~/.local/hexai/ with subdirectories: - ~/.local/hexai/cache/ (was ~/.cache/hexai/) - ~/.local/hexai/state/ (was ~/.local/state/hexai/) - ~/.local/hexai/data/ (was ~/.local/share/hexai/) This centralizes all non-config hexai files under a single .local/hexai directory, making it easier to manage and back up user data. Amp-Thread-ID: https://ampcode.com/threads/T-019c4e03-73db-70a2-ae27-3e1cc31d59c3 Co-authored-by: Amp --- internal/stats/stats.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/stats') diff --git a/internal/stats/stats.go b/internal/stats/stats.go index a98b2c5..7fa61b0 100644 --- a/internal/stats/stats.go +++ b/internal/stats/stats.go @@ -234,7 +234,7 @@ func CacheDir() (string, error) { if err != nil { return "", fmt.Errorf("cannot resolve home: %w", err) } - return filepath.Join(home, ".cache", "hexai"), nil + return filepath.Join(home, ".local", "hexai", "cache"), nil } // stringsTrim is a tiny helper to avoid importing strings everywhere here. -- cgit v1.2.3