Skip to content

Release v1.3.0#23

Merged
elfensky merged 2 commits into
mainfrom
develop
Jul 11, 2026
Merged

Release v1.3.0#23
elfensky merged 2 commits into
mainfrom
develop

Conversation

@elfensky

Copy link
Copy Markdown
Owner

Release v1.3.0

Centralized user config. Per-user files (config.toml, overrides/, data/ incl. backups/) now resolve against common.user_dir()$SCOURGIFY_HOME$XDG_CONFIG_HOME/scourgify~/.config/scourgify (mac + Linux) — instead of the invoking CWD, so an installed copy (uv tool install / pipx) finally has a stable home.

  • Single resolver owns all 12 former os.getcwd() sites.
  • Wizard header shows backups count · size, with a trim nudge past 500 MB.
  • config.toml untracked (it only held load_config()'s defaults; no longer read from the repo).
  • New tests/test_paths.py; wired into CI.

🤖 Generated with Claude Code

elfensky and others added 2 commits July 11, 2026 02:28
Per-user files (config.toml, overrides/, data/ incl. backups/) resolved
against os.getcwd(), so an installed copy had no stable home — it read and
wrote relative to whatever directory it was launched from. Introduce
common.user_dir() as the single owner of "where user data lives":
$SCOURGIFY_HOME, else $XDG_CONFIG_HOME/scourgify, else ~/.config/scourgify
(mac + Linux; no Windows). All 12 os.getcwd() sites now route through it.

Wizard header gains a backups line (count · size), turning yellow with a
trim nudge past BACKUP_WARN (500 MB) — surfaced, not relocated, since the
snapshots now sit under the config dir.

config.toml was tracked but only ever held load_config()'s baked-in defaults
and is no longer read from the repo; untrack it and gitignore it.

tests/test_paths.py covers user_dir() precedence + backups_size().
Spec: docs/superpowers/specs/2026-07-11-centralized-config-design.md

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The centralized-config swap means classify/wrangle read overrides from
user_dir(), not os.getcwd(), so the chdir-based tests no longer pointed the
loader at their temp dirs. Set $SCOURGIFY_HOME instead. Also wire the new
test_paths.py into CI.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@elfensky
elfensky merged commit 625c499 into main Jul 11, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant