refactor: ssr-*.cfg files are user-owned after creation

ssr mackup scan now only suggests NEW files — it never overwrites an
existing ssr-*.cfg. Once created, the file belongs to the user who
edits it directly in ~/.mackup/ to customise which paths are backed up.

- _ssr_mackup_write_cfg: returns early if file already exists
- scan: drops UPD logic; only shows NEW suggestions
- _ssr_mackup_resolve_paths: removed SSR_MACKUP_SELECTIVE_PATHS support
  (ssr.conf config variable removed — edit the cfg files instead)
- Scan output: hints to edit files directly after creation

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-12 15:06:43 +02:00
parent be9b37010e
commit 61091aa6bf
3 changed files with 25 additions and 57 deletions
-5
View File
@@ -26,11 +26,6 @@ SSR_MACKUP_AUTODISCOVER=true
# Built-in defaults: .claude/debug .cursor/logs .vscode/logs .npm/_logs
# SSR_MACKUP_PRECLEAN_PATHS=".my-app/tmp .other-app/run"
# Selective sub-path overrides — back up only listed sub-paths for a dir
# instead of the whole directory (avoids sockets/debug symlinks in volatile dirs).
# Format: ".dir=subpath1,subpath2" Built-in defaults cover .claude, .cursor, etc.
# SSR_MACKUP_SELECTIVE_PATHS=".my-app=config.json,themes"
# Extra paths (relative to $HOME) to always include, space-separated.
# Example: ".easymcp .my-tool .config/my-cli"
# SSR_MACKUP_EXTRA_PATHS=""