Skip to content

feat: make automatic updates opt-in and add maintenance controls - #28

Open
1aifanatic wants to merge 2 commits into
scaledown-team:mainfrom
1aifanatic:feat/maintenance-controls
Open

1aifanatic wants to merge 2 commits into
scaledown-team:mainfrom
1aifanatic:feat/maintenance-controls

Conversation

@1aifanatic

Copy link
Copy Markdown

Make status-line package installation opt-in and allow registry checks and automatic config reconciliation to be disabled independently:

  • SCALEDOWN_UPDATE_CHECK=false disables checks and notifications, including cached notifications.
  • SCALEDOWN_AUTO_UPDATE=true opts into minor/patch installation; the default shows a manual upgrade command.
  • SCALEDOWN_AUTO_RECONCILE=false disables status-line and npm postinstall reconciliation. Explicit dietcode-reconcile remains available.

Fixes #20. README documents defaults and setup for pinned installations. Automatic reconciliation remains enabled by default to preserve existing behavior; automatic package installation changes to opt-in.

Validation: build plus 12 process-level tests with temporary homes, stubbed registry fetches/package spawning, and real config file assertions. Tests cover notification-only mode, disabled side effects, opted-in and already-pending updates, postinstall, and explicit reconciliation; added to CI/release matrices.

The pre-existing ESM failures in general CI suites are tracked in #24; this change is independently based on main. Live-provider tests were not run.

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.

Make background package updates and automatic config reconciliation optional

1 participant